Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Math and GUIs?

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

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

1 comment

0

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

This discussion is preserved as it was. New answers, comments, and votes are closed.