Lesson 5 / 12 · 8 min · Beginner
Functions
- ✓ define
- ✓ call
- ✓ reuse
1. Understand
A short beginner explanation of Functions.
Why do Roblox developers care?
Roblox creators use functions in real games every day.
Show deeper explanation
Technical: Technical notes for Functions — expand when ready.
Roblox: In Roblox Studio, functions shows up in scripts, Parts, and game systems.
2. See
IDEA↓Functions↓GAME BEHAVIOR
3. Try · Run
Browser Luau
Browser Luau
Try it yourself
Output
Interactive runner unavailable.
Try in Roblox Studio
Your turn: Change one value, Run, and watch Output.
4. Predict
local function greet()
print("Hello!")
end
greet()
What will happen when you Run?
5. Break · Fix
Common beginner mistake
Check spelling and Output before rewriting everything.
6. Build · Challenge
Roblox Studio — In Roblox Studio, functions shows up in scripts, Parts, and game systems.
Checkpoint: You can explain and try functions.