Because Luau is based on Lua 5.1, most tips from the Lua page also apply to Luau.
Additional features compared to Lua
- Compound assignment operators:
+=, ..=, //=, ...
- String interpolation:
`{x}`
- Loops support the
continue statement
string.split() exists
- Iteration over tables is possible without
pairs/ipairs: for k, v in {...} do ... end
Missing features compared to Lua
- Bitwise operators don't exist, the
bit32 library can be used instead
- The
io library including io.write
load(), use loadstring() instead