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

Is there a faster way to add variables?

Asked by 4 years ago

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

Log in to vote
1
Answered by
WoTrox 345 Moderation Voter
4 years ago

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

--Note

//Note
0
That's sucks to hear, yeah I know comments for Lua is --, but second bit of code is in Java so I used // NovaMagic 73 — 4y
0
Ok WoTrox 345 — 4y
Ad

Answer this question