🎮Luau
Also known as Luau Language, Roblox Lua
The language Roblox games are scripted in. It grew out of Lua.
Think of it like
Think of it like a kids' bike with gears added. It is easy to ride, and it can go fast.
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.
Definition
Example code
lua
part.Touched:Connect(function(hit)
print(hit.Name)
end)Common mistake
Key takeaways
- 1Grew out of Lua. It started from Lua 5.1.
- 2Types if you want. Add types to catch mistakes early.
- 3Events. Scripts react when something happens.