What is Luau ?
Luau is the scripting language creators use in Roblox Studio. It is a fast, small, safe, gradually typed embeddable scripting language derived from Lua 5.1.
Support in Studio ?
The Script Editor in Studio supports Luau with autocompletion, syntax highlighting, static linting, type cheking, and script analysis. It also shows documentation and function signatures for members of the Roblox Engine API.
Luau includes the following data types:
- nil represents non-existence or nothingness.
- Boolean, or
bool
, have a value of eitherfalse
ortrue
. - Numbers, or
double
, repesent double-precision (64-bit) floating-point numbers. - Strings, are sequences of characters, such as letters, numbers, and symbols.
- Tables, are
arrays
ordictionaries
of any value exceptnil
. - Enums, are fixed lists of items.