Luau is a small, fast scripting language derived from Lua 5.1 with optional type annotations and inference. It is designed to embed in applications and ships with REPL and analysis CLI tools.
Overview
Luau is a gradually typed scripting language derived from Lua 5.1, aimed at embeddable use with improved safety and performance. It stays largely compatible with Lua 5.1 while adding type annotations, a type inference system, and a rewritten interpreter and garbage collector.
Game studios and application teams use Luau inside hosts such as Roblox, and the project publishes binaries, documentation, and RFC-driven language evolution. Hosts integrate Luau.Compiler and Luau.VM, compile source to bytecode, and load it into isolated script environments with sandboxing helpers.
Command-line tools include luau for a sandboxed REPL and file execution and luau-analyze for batch type checking and linting with .luaurc configuration. Community tools such as luau-lsp add editor language-server support.
Prebuilt binaries are available on releases, and CMake or make builds work on common desktop and server platforms.
Key features
- Lua 5.1 compatible embeddable language runtime
- Gradual typing with luau-analyze checker
- Dedicated bytecode compiler and optimized VM
- Sandboxed REPL and script environments
- C API largely aligned with Lua 5.1 hosts
- Optional JIT on x64 and arm64 per documentation
Use cases
- Embed scripting in games or desktop applications
- Run Luau sources in a local REPL or CI checks
- Type-check Luau codebases before shipping mods or tools