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