Skip to content
BENIBIX Learn

Lua vs Luau

People think Luau is just another name for Lua, and it is not. Luau is based on Lua 5.1, and much simple Lua code runs in it unchanged. But Luau is made for Roblox games. It adds types you can choose to use, and it shuts off parts of Lua that would be unsafe in a game, such as reading files. A Lua script for another app may not run in Roblox.

Development🔤 Languages

Lua

A small, fast script language made to live inside games and apps.

Lua is a small, fast scripting language made to be put inside other programs. A game or app is written in a big language like C. It then lets Lua scripts control parts of it, like how a level plays. Lua was made at a university in Brazil, called PUC-Rio. It is a leading scripting language in games.

Example
A game lets players write Lua scripts for their own levels. The game engine itself stays in C++.
Why it matters
It lets people change a program without rebuilding it. Many games and tools use it for mods and settings.
Full entry
Development🎮 Game Development

Luau

The language Roblox games are scripted in. It grew out of Lua.

Luau is the language used to script games in Roblox Studio. It grew out of Lua 5.1, a small and simple language. Luau adds types you can use if you want them, which help catch mistakes. It is built to be small, fast and safe. Scripts react to events, like a player touching a part.

Example
Emma writes a Luau script for a lava block. A player who touches it goes back to the start.
Why it matters
Every Roblox game runs on it. It is a gentle first language with real results.
Full entry

In one line

Lua
A small, fast script language made to live inside games and apps.
Luau
The language Roblox games are scripted in. It grew out of Lua.