I'm having trouble adding an amount to my numbervalue if another numbervalue == 1.
v = script.Parent
function onclick()
if script.Parent.Parent.Parent.Parent.StarterGui.ScreenGui.ALL1.Correct.Value == 1 then
v.Value = (v.Value + 20)
print ("Added 20!")
end
end
script.Parent.Parent.Parent.Parent.StarterGui.ScreenGui.SUBMIT.TextButton.MouseButton1Click(onclick)

2 comments
There was no errors I could find in F9
https://scriptinghelpers.org/blog/common-mistakes#PlayerGui