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

Why is the value not increasing? [Solved]

Asked by 4 years ago
Edited by DeceptiveCaster 4 years ago

So I'm making a GUI that when you click it, the number in the GUI will increase by 1

But, the problem is that the number is not increasing at all and it stays at 0

It does print "up" when I click it though

Anything to help?


Extra info:

I'm using a NumberValue

This is also inside a local script

FirstCode = script.Parent.Code1
Code1Num = script.Parent.Code1V

FirstCode.Text = Code1Num.Value

FirstCode.MouseButton1Click:Connect(function()
    print("up")
    Code1Num.Value = Code1Num.Value + 1
end)
0
TextLabel? XxWingKing 96 — 4y
0
It is a TextButton ElectroPlasma10 9 — 4y
0
move line 4 into the function DeceptiveCaster 3761 — 4y
0
Thanks for the fix ElectroPlasma10 9 — 4y

Answer this question