On the topic of changing a variable with a Gui Button?
So, I'm working on a GUI button, I want the button to Increase a numberValue Variable by 100,
I wrote the following code in a local script:
01 | maxhp = script.Parent.Parent.Parent.Stats.HPTEXT.maxhp.Value |
02 | maxmp = script.Parent.Parent.Parent.Stats.MPTEXT.maxmp.Value |
10 | script.Parent.MouseButton 1 Click:connect(onClicked) |
The problem is, the variable doesn't increase, any help?
EDIT: On a side note, I don't even get the feedback in the output tad stating "Clicked!"
EDIT 2: FIXED! Thanks for the help!