Module 1 · Your first Luau scripts
Finding your way around Roblox Studio
Use Explorer, Properties, Script Editor, Output, and Play testing without losing track of your work.
What you will learn
- Locate five core Studio panels
- Use Explorer to select an object and Properties to inspect it
- Run and stop a Play test
- Explorer
- The hierarchical list of objects in the open place.
- Play test
- A temporary simulation of the game inside Studio.
Loading saved progress…
Understand
Read the idea and follow a worked example.
Why this matters
Knowing where Studio shows objects, code, and messages lets you diagnose Coin Quest instead of guessing what happened.
The mental model
Explorer answers what exists and where it lives. Properties answers what the selected object is like. Script Editor holds code, while Output reports messages and errors.
Play starts a temporary simulation. Stop returns you to edit mode; changes made only during Play normally do not become edits to the place.
New words and symbols
--!strict asks Studio to check your code for type mistakes. It is an instruction for the editor and produces no Output message.
print(...) calls the built-in print function. Put the values to show inside its parentheses; separate multiple values with commas. Read the result in Studio's Output panel.
. is read as “dot”: it accesses a named property or table field.
A tiny example
--!strictprint(workspace.Name)Line by line
- 1
Strict analysis is enabled for this complete script.
- 3
workspace refers to the Workspace service; Name is a property read with a dot.
Read the code aloud
Read one statement at a time: name the value being read, what the operation does, and where its result goes. Keep identifiers exactly as written so you can find them again in the code.
Pause at calls, conditions, and loops. Explain when the body runs before moving to the next statement; use the line notes above when a symbol is unfamiliar.
Execution trace
Begin at the first executable statement. Comments and blank lines do not run; a branch chooses which block runs, and a loop may revisit its body.
Line 1: Strict analysis is enabled for this complete script.
Line 3: workspace refers to the Workspace service; Name is a property read with a dot.
State before and after
Before running, identify the starting values and any existing Studio objects this example needs. List what you expect to change.
After your practice change, check this result: You can trace the selected object in Explorer to its property and its printed value in Output.
Reading or printing a value leaves it unchanged. Look for assignments, calls that change state, and property updates to explain each change you observe.
Predict before running
If the Workspace object is still named Workspace, what appears in Output?
Try it
Mark each step after you have tried it.
Common mistake
If you edit objects while Play is running, you may be editing the temporary simulation. Check the Play controls and stop before making place changes you intend to keep.
Checkpoint
Submit once you have considered every question. Retries are unlimited.
Recap
- Explorer shows object hierarchy.
- Properties shows the selected object's data.
- Script Editor, Output, and Play work together when testing code.
Next: Next, you will preview the three script classes and why their locations matter.
Studio Companion
Not connected
Connect once. Compatible challenges will prepare automatically as you reach them.