I just discovered a feature of Lua I've never seen mentioned.
#1
[lua]
a,b,c,d,e = 1,2,3,4,5; print(a); print(b); print©; print(d); print(e)
[/lua]

Output:
1
2
3
4
5
Reply
#2
Cool. Even I have no Idea what that means.
[Image: finn_flag.gif]
Reply
#3
You can set multiple variables at once.
Instead of having to go
[lua]
a = 1
b = "stringy"
c = {a, b}
[/lua]

you can go
[lua]
a,b,c = 1,"stringy",{a,b}
[/lua]

Major script size reducer.
Reply
#4
That was documented in the ROBLOX wiki somewhere....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)