.LUAU

LUAU-bestand

Luau Script
Stel een vraag
SNEL ANTWOORD

Een .luau-bestand is een broncodebestand in platte tekst geschreven in Luau, de scripttaal die Roblox heeft afgeleid van Lua 5.1 met een toegevoegd geleidelijk typesysteem. Het bevat de code die Roblox-games en andere op Luau gebaseerde software aanstuurt. Open of bewerk het in Roblox Studio, in Visual Studio Code of in een willekeurige teksteditor, en voer het uit met de gratis luau command-line tool.

Ontwikkelaar: Roblox Corporation Categorie: Ontwikkelaarsbestanden Open standaard MIME: text/x-lua
OPENT OP Windows macOS Linux Web
Gerelateerd: .DO · .MD · .HEX · .XSD

Op deze pagina

19k+ extensies geïndexeerd
Laatst beoordeeld op Sep 11, 2026

Niet zeker wat uw bestand is?

Sleep een bestand naar onze identificatietool - we lezen alleen de eerste bytes om het formaat te benoemen.

Identificeer een bestand

Wat is het LUAU-bestandsformaat?

Een .luau-bestand bevat broncode geschreven in Luau, de scripttaal die Roblox heeft afgeleid van .lua (Lua 5.1). Roblox Corporation leverde Luau voor het eerst aan ontwikkelaars in 2019 en gaf het in 2021 vrij als open source onder de MIT-licentie. Het bestand is platte UTF-8-tekst, dus elke editor kan het lezen.

Luau behoudt compatibiliteit met Lua 5.1 terwijl het een geleidelijk typesysteem, type-inferentie, string-interpolatie en sandboxing toevoegt. Binnen Roblox Studio wordt elke Script, LocalScript en ModuleScript op schijf opgeslagen als een .luau-bestand. De aparte extensie zorgt ervoor dat editors en linters Luau-syntaxis herkennen in plaats van het als gewone Lua te behandelen. Buiten Roblox om integreren studio's zoals Remedy en Digital Extremes Luau in hun eigen game-engines, dus u kunt ook buiten de Roblox-wereld .luau-bestanden tegenkomen.

Beveiliging & veiligheid

RISICO: 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.

Formaatdetails

in een notendop
VOLLEDIGE NAAMLuau Scriptook bekend als Luau source file, Roblox Luau script
ONTWIKKELAARRoblox Corporationsinds 2019
MIME-TYPEtext/x-lua
TYPEPlain-text source code
STANDAARDOpen · royaltyvrij
GERELATEERD.do.md.hex.xsd

Programma's die LUAU-bestanden openen

Windows4 apps
Sublime Text Betaald Open the file for editing and add a Luau or Lua syntax package for highlighting.
ROBLOX Studio Gratis 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 Gratis 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 Gratis Open a place and edit its script objects, which Studio stores on disk as .luau files.
Visual Studio Code Gratis 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 Gratis 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 Gratis Manage projects whose scripts are saved as .luau; edit them in the browser-linked Studio environment.

Technische details

diepe specificaties
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.
Uitgebracht2019
Laatste versieN/A (rolling releases; no versioned file format)
Open standaardJa · royaltyvrij
Specificatieluau.org

LUAU conversies

Community V&A

gevraagd door gebruikers
Stel een korte vraag
Krijg hulp van mensen die met LUAU-bestanden werken. Wees specifiek - vermeld uw systeem en softwareversie.
Geen account nodig · antwoorden meestal binnen een dag

Nog geen vragen - wees de eerste om iets te vragen over LUAU-bestanden.

Veelgestelde vragen

Wat is een .luau-bestand?
Het is een broncodebestand in platte tekst geschreven in Luau, de scripttaal die Roblox heeft afgeleid van Lua 5.1. Het bevat de code die Roblox-games of andere software die Luau integreert, uitvoert.
Hoe open ik een .luau-bestand?
Open het in Roblox Studio om het te bewerken als een game-script, of in Visual Studio Code of een willekeurige teksteditor om de broncode te bekijken en te bewerken. Voer het uit vanuit een terminal met de gratis luau command-line tool.
Wat is het verschil tussen .luau en .lua?
Beide bevatten broncode uit de Lua-familie. .luau markeert bestanden die zijn geschreven voor het Luau-dialect van Roblox, dat type-annotaties en andere functies toevoegt. Roblox Studio slaat zijn scripts op als .luau, terwijl .lua wordt gebruikt door standaard Lua en oudere Roblox-exports.
Kan ik een .luau-bestand buiten Roblox uitvoeren?
Ja. Download de open-source luau-binaries van de GitHub-releases van het project en voer luau uwbestand.luau uit. Scripts die Roblox-specifieke API's aanroepen, werken niet buiten de Roblox-engine.
Is een .luau-bestand veilig om te openen?
Het openen in een teksteditor is veilig omdat het slechts tekst is. Het uitvoeren ervan is slechts zo veilig als de code zelf, dus controleer scripts van onbekende bronnen voordat u ze uitvoert, vooral als ze geobfusceerd zijn.
Waarom is Roblox overgestapt van .lua naar .luau?
De aparte extensie stelt editors, linters en syntaxis-accentueerders in staat om zich te richten op de specifieke syntaxis van Luau in plaats van het als gewone Lua te behandelen, en het maakt het dialect van het bestand in één oogopslag duidelijk.

Referenties

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

Blijf ontdekken

door de database

Populaire extensies deze week

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

Gerelateerde extensies

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

Gratis bestandstools

Een bestandsidentificatie en afbeeldingsconverter in de browser - alles draait op uw eigen apparaat.

Open de gereedschapskist

Blader door bestandsextensies A-Z