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

How to constantly add +1 to a value?

How would I make a value get +1 every second? I tried this it doesnt work... This is my first try with using math in roblox

while true do
	wait(1)
	script.Parent.Value = script.Parent.Value.Value+1
end

1 answer

✓ Accepted answer

+= will increment value by the number.

while true do
    wait(1)
    script.Parent.Value += 1
end

1 comment

0

Thanks!

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