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
continuestatement 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
bit32library can be used instead - The
iolibrary includingio.write load(), useloadstring()instead