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

Is there a faster way to add variables?

Sorry if this is a stupid question, couldn't find anything about it on google or roblox wiki

Just want to know if there is a faster way of doing this

local variable = 1 
variable = variable + 1

i know in java you can just do this

int x = 0; 
x++; 

//or you can do this

x+=10

1 answer

✓ Accepted answer

No. The only way I know is the first. And in Lua the note is -- and not //

--Note

//Note

2 comments

0

That's sucks to hear, yeah I know comments for Lua is --, but second bit of code is in Java so I used //

0

Ok

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