.LUAU

LUAU File

Luau Script
Ask a question
QUICK ANSWER

A .luau file is a plain-text source code file written in Luau, the scripting language Roblox derived from Lua 5.1 with an added gradual type system. It holds the code that drives Roblox games and other Luau-based software. Open or edit it in Roblox Studio, in Visual Studio Code, or in any text editor, and run it with the free luau command-line tool.

Developer: Roblox Corporation Category: Developer Files Open standard MIME: text/x-lua
OPENS ON Windows macOS Linux Web
Related: .DO · .MD · .HEX · .XSD

On this page

19k+ extensions indexed
Last reviewed Sep 11, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the LUAU file format?

A .luau file holds source code written in Luau, the scripting language Roblox derived from .lua (Lua 5.1). Roblox Corporation first shipped Luau to developers in 2019 and released it as open source under the MIT License in 2021. The file is plain UTF-8 text, so any editor can read it.

Luau keeps Lua 5.1 compatibility while adding a gradual type system, type inference, string interpolation, and sandboxing. Inside Roblox Studio, every Script, LocalScript, and ModuleScript is saved to disk as a .luau file. The separate extension lets editors and linters recognize Luau syntax instead of treating it as ordinary Lua. Beyond Roblox, studios such as Remedy and Digital Extremes embed Luau in their own game engines, so you may meet .luau files outside the Roblox world too.

Security & safety

RISK: MEDIUM

A .luau file is plain-text source code and cannot run on its own; it only executes inside Roblox, the luau runtime, or another host that embeds Luau. Like any script, code from an untrusted source can perform unwanted actions when run, and the Roblox community has seen malicious model scripts (backdoors) shipped inside shared assets. Read the source before running it, and be cautious with obfuscated or copy-pasted scripts.

Format details

in a nutshell
FULL NAMELuau Scriptaka Luau source file, Roblox Luau script
DEVELOPERRoblox Corporationsince 2019
MIME TYPEtext/x-lua
TYPEPlain-text source code
STANDARDOpen · royalty-free

Programs that open LUAU files

Windows4 apps
Sublime Text Paid Open the file for editing and add a Luau or Lua syntax package for highlighting.
ROBLOX Studio Free Open a place or model and edit its Script, LocalScript, and ModuleScript objects; Studio reads and writes them as .luau on disk.
Visual Studio Code Free Open the .luau file directly; install the Luau Language Server extension for syntax highlighting, type checking, and autocomplete.
luau (CLI) Open-source Run luau script.luau in a terminal to execute the file, or luau-analyze script.luau to type-check and lint it.
macOS3 apps
ROBLOX Studio Free Open a place and edit its script objects, which Studio stores on disk as .luau files.
Visual Studio Code Free Open and edit the .luau file; add the Luau Language Server extension for full language support.
luau (CLI) Open-source Execute the file with luau script.luau or analyze it with luau-analyze script.luau from Terminal.
Linux3 apps
Visual Studio Code Free Open the .luau file and install the Luau Language Server extension for highlighting and diagnostics.
luau (CLI) Open-source Build or download the binaries, then run luau script.luau to execute or luau-analyze script.luau to check the file.
Neovim Open-source Edit the file and attach the Luau language server through nvim-lspconfig for type checking.
Web1 app
Roblox Creator Hub Free Manage projects whose scripts are saved as .luau; edit them in the browser-linked Studio environment.

Technical details

deep spec
EncodingUTF-8 plain text (ASCII-compatible)
Byte orderN/A (text, no multibyte header)
ContainerNone; flat source file
Typical sizeA few hundred bytes to tens of kilobytes
StructureHuman-readable Luau source code. May start with an optional mode directive comment (--!strict, --!nonstrict, or --!nocheck), followed by statements, function and type definitions. Type annotations on variables, parameters and return values are optional.
IntegrityNone built in
PlatformsWindows, macOS, Linux, Web (Roblox platform)
Language Derived FromLua 5.1
Type SystemGradual, structural type inference (opt-in annotations)
RuntimeC++ Luau VM with rewritten interpreter, incremental garbage collector, and native x64/ARM64 code generation
Line TerminatorLF or CRLF
NotesLuau is backward compatible with Lua 5.1 source, so many .luau files also run under a plain Lua 5.1 interpreter unless they use Luau-only syntax such as type annotations, string interpolation, or the continue keyword.
Released2019
Latest versionN/A (rolling releases; no versioned file format)
Open standardYes · royalty-free
Specificationluau.org

LUAU conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with LUAU files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about LUAU files.

Frequently asked questions

What is a .luau file?
It is a plain-text source code file written in Luau, the scripting language Roblox derived from Lua 5.1. It holds the code that runs Roblox games or other software that embeds Luau.
How do I open a .luau file?
Open it in Roblox Studio to edit it as a game script, or in Visual Studio Code or any text editor to view and edit the source. Run it from a terminal with the free luau command-line tool.
What is the difference between .luau and .lua?
Both hold Lua-family source code. .luau marks files written for Roblox's Luau dialect, which adds type annotations and other features. Roblox Studio saves its scripts as .luau, while .lua is used by standard Lua and older Roblox exports.
Can I run a .luau file outside Roblox?
Yes. Download the open-source luau binaries from the project's GitHub releases and run luau yourfile.luau. Scripts that call Roblox-specific APIs will not work outside the Roblox engine.
Is a .luau file safe to open?
Opening it in a text editor is safe because it is just text. Running it is only as safe as the code inside, so review scripts from unknown sources before executing them, especially obfuscated ones.
Why did Roblox switch from .lua to .luau?
The separate extension lets editors, linters, and syntax highlighters target Luau's specific syntax instead of treating it as plain Lua, and it makes the file's dialect clear at a glance.

References

1Luau (programming language) - Wikipediaen.wikipedia.org
2Luau official documentation (getting started)luau.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.JPGJPEG Image
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.RPMSGRestricted Permission Message
7.PARTPartial Download File
8.BINCD/DVD Disc Image (BIN/CUE)
9.DBSQLite Database File
10.JSONJavaScript Object Notation file

Related extensions

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z