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

how do i subtract a numbervalue by 1?

i don't really have any code snippits

3 comments

0

Do you mean decreasing a variable by 1?

0

yup

0

i mean a number value

1 answer

✓ Accepted answer

Just get a variable or path to the numbervalue, do .value, and minus 1 like you would a normal variable

Example:

numberValue = game.ReplicatedStorage.NumberValue

numberValue.Value = numberValue.Value - 1

1 comment

0

thx

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