How to learn Roblox scripting (Luau)
Updated November 24, 2026
How to use it
- Install Roblox Studio. Code is written in Studio, which is free. See our guide to making a game if you have not done it yet.
- Do the basic tutorials. The Creator Hub offers basic scripting tutorials: deadly lava, a disappearing trap, score points. They are short and very concrete.
- Move on to intermediate tutorials. Next come topics like a health pickup or saving player data.
- Read the language reference. The Luau page of the documentation describes types (numbers, text, tables), functions and control structures: come back to it when you get stuck.
- Tweak a small project of your own. Take your own mini-game and add one feature at a time. You remember by tinkering.
What is Luau?
According to the official documentation, Luau is “a fast, small, safe, gradually typed scripting language” derived from Lua 5.1. It is the language used in Roblox Studio to write how a game behaves: scores, doors, shops, enemies.
A progression that works
Do not try to read everything. Here is a simple order:
- Variables and text: store a score, display a message.
- Conditions: “if the player touches the lava, then…”.
- Functions: group actions so you can reuse them.
- Tables: keep lists of items or players.
- Events: react when a player arrives, touches or clicks.
Free official resources
As of Nov 23, 2026, the Creator Hub offers in particular: the “Create your first game” tutorial, use-case tutorials (UI gauges, hinged doors, camera, input detection) and a “Gameplay scripting” path for organizing the logic of a bigger project. The Luau page also lists data types, control structures and script editor help (autocomplete, type checking).
Good habits
- Test after every small change.
- Read error messages: they give the line number.
- Do not paste code you do not know into your game: a script you do not understand can contain unwanted things.
- Set tiny goals: “make a coin counter” rather than “make a game like X”.
And then?
When your small game works, you can publish it. For the big picture, first read how to make a Roblox game. Mostly want inspiration from existing games? See our best Roblox games.
Official sources: the Luau language and the tutorials.
Frequently asked questions
What language does Roblox use?
Roblox uses Luau, a scripting language derived from Lua 5.1, according to the official documentation.
Do I need to speak English to learn Luau?
The official Creator Hub documentation is mostly in English, and the concepts are the same everywhere. Knowing basic English helps a lot.
Where do I start to code on Roblox?
With the basic scripting tutorials in the Creator Hub (deadly lava, score points), then the intermediate tutorials.
Is it free to learn to code on Roblox?
Yes: Roblox Studio and the official documentation are free.
More guides
- How to make a Roblox game from scratchHow to make a Roblox game: install Roblox Studio (free), follow the official tutorial, then test and publish your first game, step by step.
- How to publish a Roblox game and make it publicHow to publish a Roblox game from Studio, make it public, set who can play and answer the maturity questionnaire. Current steps and limits.
- How to make a Roblox game passHow to make a game pass on Roblox: steps in the Creator Hub, icon size, pricing, the creator's share and selling in-game.
- How to promote your Roblox gameHow to promote your Roblox game: official Ads Manager (requirements, budget, age), thumbnails, YouTube and regular updates.
- How to make and sell Roblox clothes or UGC itemsHow to make and sell Roblox clothes: requirements (verification, subscription), the 80 Robux fee, upload steps and the creator's current share.