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

Shorter way of adding to a variable?

Quick one here.

Usually the way I add to a variable is:

Value = Value + 1

but I remember reading that another way to do it would be:

Value + 1

Which looks way better in my opinion. Though it doesn't work, is there something minute I'm missing or am I getting my languages mixed up?

Ive already tried searching it up but I haven't found anything related.

1 answer

✓ Accepted answer

You are Programming in LUA, I believe that the only that to add Anything to a Variable it the way

Value = Value + 1

I don't believe that there is any other way to do that.

2 comments

0

Then I must have gotten Batch mixed up with LUA, thanks.

0

-1 for spelling Lua as an acronym

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