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

How would i double a intvalue?

Hello, i'm just wondering. Is it possible to double a intvalue.Value?

5 comments

0

intvalue.Value += 5

0

Doesn't that just add 5 to the value?

0

Cant you just do intvalue.Value * 2?

0

Ayyy, that worked! Thanks!

0

int *= 2 also works

1 answer

✓ Accepted answer
int = (int *2)

When doing math, i highly suggest using parenthesis. Order of operations and stuff. Dont do int = int *2 +1, put parenthesis around what you want to do first, in = (int *2) +1, then it adds 1 after its multiplies integer by 2.

1 comment

0

okay.

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