I'm trying to make a game kind of like cookie clicker, but I can't figure out how to make it when you click the ImgButton, it changes the text of the TextLabel to +1. So every time you click it, it ads one.
COMMUNITY QUESTION
Math and GUIs?
1 answer
my guess is to; make a gui, imgbutton inside and txtlabel and Value
vlue = script.Parent.Parent.Value.Value --first Value is the name, second Value is the property
txt = script.Parent.Parent.TextLabel
txt.Text = vlue
function Add()
vlue = vlue + 1
script.Parent.MouseButton1Click:connect(Add)
Hope I helped! :D
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
dude whoever did that! wt the hell u think ur doin??? it something like that!