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

Math and GUIs?

Asked by 10 years ago

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.

1 answer

Log in to vote
-2
Answered by
KAAK82 16
10 years ago

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

0
dude whoever did that! wt the hell u think ur doin??? it something like that! KAAK82 16 — 10y
Ad

Answer this question