Tap Run to execute
main.luau · output appears here
Press Run to execute
Output streams here as your program runs.
Luau is the gradually typed dialect of Lua 5.1 that Roblox built for its game scripts and open-sourced in 2021 (luau-lang/luau, MIT). It keeps Lua's tables, closures, metatables and coroutines and adds optional type annotations, string interpolation with backticks, continue, generalized iteration over tables, floor division and a faster VM; it drops goto and the io library. CompileBytes runs your code with the official Luau 0.745 command-line runtime on the server, so print() output appears within a fraction of a second and nothing has to be installed.
This page runs the language, not the Roblox engine: there is no game, workspace, Instance or task library here, so paste the pure-Luau parts of a script (tables, string handling, type definitions, algorithms, module code) and keep engine calls out. Add more .luau files from the file explorer and load them with require("./helper"); a helper returns a table like any Lua module. For plain Lua 5.4 use the Lua online compiler at /tools/lua.
main.luau is the entry point. Add helper files from the explorer and import them into your project.
The current compiler runs the source in the editor without standard input.
Run sends your code to a fresh hosted runtime and streams the result into the output panel.
Your draft stays in this browser, and Share creates a separate snapshot link.
The editor uses Monaco, the engine behind VS Code, with language-aware editing tools and familiar keyboard controls.
Type or paste your code into the editor, then click Run (or press Ctrl/Cmd + Enter) to execute it.
Output streams into the console panel, including runtime errors, exit status, and execution time.
Nothing to install and no account to create — code runs in an isolated hosted runtime.
Language-aware autocomplete and IntelliSense suggestions where the editor has a matching language service
Syntax highlighting, with native compiler and runtime errors shown in the console
Bracket matching, auto-indentation, code folding, and a minimap
Multi-cursor editing plus find & replace (Ctrl/Cmd + F)
Full undo/redo history and copy to clipboard
Built on Monaco — the same editor that powers VS Code
Run on demand with Run or Ctrl/Cmd + Enter, or turn on Auto-run in the editor settings to execute after each typing pause
Stop long-running or infinite programs at any time
A real console shows standard output, errors, exit status, and execution time
Pass standard input (stdin) to your program from the Input panel — one value per line
Switch between light and dark themes
Adjust font size and other editor settings
Toggle side-by-side or top/bottom layouts
Enter distraction-free fullscreen mode
Generate a shareable link to your exact code in one click — no login needed
Your work autosaves to your browser, so you can pick up where you left off
Copy the active file to your clipboard
Run code: Ctrl/Cmd + Enter
Find & replace: Ctrl/Cmd + F
Open the full shortcut list from the keyboard icon in the toolbar
Luau is one of 28 linked-project compilers. Run always starts main.luau; selecting a helper tab changes what you edit, not the entry file.
main.luau loads helper.luau with a relative require; the helper returns a module table.
Linked-project languages (28): Node.js, TypeScript, Deno, Python, C, Go, Dart, Swift, Rust, Ruby, PHP, Java, Luau, Kotlin, C++, C#, Nim, Crystal, Haxe, Zig, Scala, D, Verilog, GDScript, RISC-V Assembly, ARM64 Assembly, Bun, Objective-C.
Single-file scratchpads (47): Matplotlib, NumPy, pandas, Haskell, Clojure, Perl, Lua, Tcl, jq, Raku, Elixir, Bash, Zsh, Nushell, R, Assembly (NASM), Julia, Octave, Groovy, PowerShell, Visual Basic .NET, Odin, Pascal, Lisp, Erlang, CoffeeScript, COBOL, BASIC, V, Racket, OCaml, Prolog, AWK, Emacs Lisp, Emojicode, Forth, F#, Fortran, Assembly (NASM64), MIPS Assembly, Solidity, Mojo, Ada, WASM (WAT), Gleam, Shell Script (sh), Scheme. Their extra project files are not submitted to the runtime.
Download project exports every Luau tab and a README in one ZIP archive.