Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a donate button?

Asked by 10 years ago

I'm finished the frames and stuff, but I just need the button that gives the money. The script I use:

script.Parent.MouseButton1Click:connect(function(click)
amnt = script.Parent.Parent
plr = script.Parent.Parent.Pler.Text
pler2 = game.Players[plr]
pler2.leaderstats.Gold.Value = amnt.Amnt + Text -- That textbox has the ammount that the plr's giving
end)

Answer this question