Draft preview · this lesson is still being technically validated. Browser experiments and reference material remain available; trusted completion is enabled after publication.
v2 · Activity 2 of 5 · data-model · explorer · 28 min Requires Roblox Studio
Explorer shows the hierarchy of services and Instances. Workspace holds the visible world; ServerScriptService holds the server code in this lab. Names must match the path your code reads.
A service is a top-level engine facility. game:GetService("Workspace") gets Workspace deliberately. WaitForChild waits for the named child; a timeout lets this lab explain a missing setup instead of waiting indefinitely.
Build the hierarchy below. Inspect WorkshopLamp from the server and print its class and anchored state. Diagnose a missing lamp rather than indexing nil.
Interface: Complete the documented Studio hierarchy and self-check the behavior outside the browser.
| Input | Expected |
|---|
local Workspace = game:GetService("Workspace")
local floor = Workspace:FindFirstChild("Baseplate")
if floor then print(floor.Name) endFindFirstChild immediately returns a child or nil. It is useful for an optional object; this exercise requires a specific workshop object.
New syntax: data-model, explorer
Your explanation is a self-check. Exact wording is not automatically graded.
Self-checked Studio exercise. A saved checklist records your own review; no uploaded place file or screenshot is executed here.
Workspace WorkshopLamp (Part, Anchored=true) ServerScriptService InspectLamp (Script, RunContext=Server)
Main guided reference implementation; use the hierarchy’s stated Script or ModuleScript type.
local Workspace = game:GetService("Workspace")
local lamp = Workspace:WaitForChild("WorkshopLamp", 5)
assert(lamp and lamp:IsA("BasePart"), "Create a Part named WorkshopLamp in Workspace")
print(lamp.ClassName)
print(lamp.Anchored)If nothing prints, verify Script.Enabled and RunContext Server.
workshoplamp does not match WorkshopLamp. Stop before changing the saved hierarchy.
This is a bounded learning lab. It has not been executed in an approved Roblox Studio environment by this website.
A checked checklist records your own review, not automated project competence or a community verification.
Explorer shows the hierarchy of services and Instances. Workspace holds the visible world; ServerScriptService holds the server code in this lab. Names must match the path your code reads.
A service is a top-level engine facility. game:GetService("Workspace") gets Workspace deliberately. WaitForChild waits for the named child; a timeout lets this lab explain a missing setup instead of waiting indefinitely.
Create the objects before Play. Edits to the running session are temporary; Stop returns to the saved edit state. This lesson needs Studio because the browser has no Workspace or Instances.
Replace this code with the starter? Download your draft to keep a copy.
Edit and run these files in Roblox Studio. This browser has no Roblox services, physics, or replication.
Your output will appear here.
Sign in with RoCreators to save private progress across devices. Community verification is separate.