Lesson 7 / 12 · 8 min · Beginner
Conditions
- ✓ if/else
- ✓ compare
- ✓ branch
1. Understand
A short beginner explanation of Conditions.
Why do Roblox developers care?
Roblox creators use conditions in real games every day.
Show deeper explanation
Technical: Technical notes for Conditions — expand when ready.
Roblox: In Roblox Studio, conditions shows up in scripts, Parts, and game systems.
2. See
IDEA↓Conditions↓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 coins = 100
if coins >= 50 then
print("Door opened!")
else
print("Not enough coins!")
end
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, conditions shows up in scripts, Parts, and game systems.
Checkpoint: You can explain and try conditions.