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

how do i subtract a numbervalue by 1?

Asked by 6 years ago
Edited 6 years ago

i don't really have any code snippits

0
Do you mean decreasing a variable by 1? Wafflecow321 457 — 6y
0
yup xxbrobroxx02 13 — 6y
0
i mean a number value xxbrobroxx02 13 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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
0
thx xxbrobroxx02 13 — 6y
Ad

Answer this question