🧠 Luau 101: Getting Started with Roblox Scripting
Welcome to the first post in our Luau Scripting Series! Whether you’re a beginner or just getting started with Roblox development, this post will help you understand what Luau is, why it matters, and how to write your first script.
💡 What is Luau?
Luau (pronounced “loo-ow”) is a programming language created by Roblox, based on Lua. It’s used to build all the logic behind Roblox games — from character movement to game rules and interactions.
While it’s similar to Lua, Luau has been extended by Roblox to support:
- Type annotations for better code checking
- Improved performance
- Custom APIs for Roblox games
Think of Luau as Lua’s game-dev-optimized cousin, tailored for Roblox!
🛠️ Setting Up: Roblox Studio
Before writing code, make sure you have Roblox Studio installed:
- Go to create.roblox.com
- Sign in and download Roblox Studio
- Open a new Baseplate project
- In the Explorer panel, right-click →
Insert Object
→ Script
This creates a Script inside Workspace.
👋 Your First Luau Script: Hello World
Inside the Script, paste this:
print("Hello, Roblox world!")
Click the Play button at the top. You’ll see the message appear in the Output panel.
✅ Congrats — you’ve just run your first Luau script!
🧱 How Luau Works in Roblox
Every object in Roblox (like parts, players, GUIs) can have scripts attached.
There are 3 main types of scripts:
- Script: runs on the server
- LocalScript: runs on the client (like the player’s computer)
- ModuleScript: reusable code you can include in other scripts
For now, we’ll mostly use Script
.
📌 Summary
- Luau is Roblox’s custom language for scripting games.
- You need Roblox Studio to start scripting.
- Your first script can be as simple as printing a message.
🧪 Try It Yourself
Can you make your script print:
- Your name?
- A second message below it?
print("Hello, I'm Mostafa!")
print("Welcome to my Luau series!")
➡️ Coming Up Next…
In the next post, we’ll explore variables and data types in Luau, so you can start storing and using information in your games!