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

How do you get a number value's starting value after changing it's value?

Whats the best way to get back a number value's starting number after changing the number value?

1 answer

✓ Accepted answer

When you set a value, the previous value is lost.

If you don't want to lose the previous value, you should save it somewhere (probably a variable).

E.g.

local previous = value.Value
value.Value = 5
-- Change it temporarily to 5
wait(5)
value.Value = previous
-- Restore it to how it was

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