|
So... I tried to make a convertor shop (like 1 Gem for 100 Coins, Gems are obtonaible in-game) but I don't know how to make it! Someone can help me by sending me what to do? Thanks :)! |
|
|
Post your code here, I'll fix it for you.
|
|
|
Well I don't know "really" how this works <.< but I Think I need make like -1 blah blah but i'm a newbie :( So I don't really know how (I'm sorry ;-;) |
|
|
You understand events right?? And guis??
|
|
|
If you're asking for a script, I can do write up a few scripts probably, for some robux.
#code while (youStupid) do wait() print("wahts 9 plus ten?????/") end |
|
|
He's NBC. You get NBC with a couple of hundred R$, they typically are skint or have 10k + R$
|
|
|
So I'm reading all from the start the Roblox Wiki but I don't have robux and there I don't said to make a team for robux :( GUis I know what they are but... never mind i won't be able to do it
|
|
|
Didn't notice you were NBC. I'm trying to get back into the trading game and I kind of need some robux to do that. It's not the best script ever, but I fixed these up:
script.Parent.Coins.Changed:connect(function()
local convrate = 100
coins = tonumber(script.Parent.Coins.Text)
gems = math.floor(coins/convrate)
script.Parent.Gems.Text = tostring(gems)
end)
script.Parent.TextButton.MouseButton1Click:connect(function()
local player = game.Players.LocalPlayer
if player:findFirstChild("leaderstats"):FindFirstChild("Coins").Value >= 0 and player:findFirstChild("leaderstats"):FindFirstChild("Coins").Value > coins and coins >= 100 then
player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - tonumber(script.Parent.Coins.Text)
player.leaderstats:FindFirstChild("Gems").Value = player.leaderstats.Gems.Value + gems
end
end)
And
game.Players.PlayerAdded:connect(function(player)
local l = Instance.new("IntValue",player)
l.Name = "leaderstats"
local c = Instance.new("IntValue",l)
c.Name = "Coins"
c.Value = 500
local g = Instance.new("IntValue",l)
g.Name = "Gems"
g.Value = 0
end)
You can find this in my models at: http://www.roblox.com/item.aspx?id=377799878
#code while (youStupid) do wait() print("wahts 9 plus ten?????/") end |
|
|
Omg thank you! I will credit you in my game! You're the first person to help me :)! Thank you very much! |
|
|
Hey, sorry for the double post but I tried the code and it worked! But I need to convert 1 Gem for 100 Coins, not 100 Coins for 1 Gem.
I tried replacing the words but it hasn't worked, do you mind helping me out a bit again? I'd be really grateful, cheers. |
|
|
I'll give you a day or so to see if you can figure this out on your own, and hopefully learn some stuff.
What you'll need to do, is switch coins and gems, which you did, and then change the conversation rate.
For example, local f = tonumber(script.Parent.Parent.Gems.Text) if f math.floor(1,1) then local v = f * 100, and then apply that to the leaderboard stats.
If the math.floor() thing doesn't work, I apologize, I don't know how to use it all that well. |
|
|
Oh wow now it works Learn script later is so easy :)! Thanks! |
|