Draft preview · this lesson is still being technically validated. Browser experiments and reference material remain available; trusted completion is enabled after publication.

← Back to journey

Create and configure a real lamp

v2 · Activity 1 of 0 · instances · properties · services · 28 min Requires Roblox Studio

Chapter outline
Loading draft…
Mini-mission

Instance.new("Part") creates a Part. Configure its visible properties before parenting it into Workspace so it appears with the intended state.

Vector3 describes a three-component size or position. Color3 describes color. They are Roblox engine data types, not ordinary Luau tables.

Your task

Build GeneratedLamp at 0,4,0 with size 2,6,2, anchored and orange. Print its full path after parenting.

Interface: Complete the documented Studio hierarchy and self-check the behavior outside the browser.

InputExpected
Syntax in this activity

New syntax: instances, properties, services

Earlier ideas used here
  • data-model
  • explorer
Self-check rubric
  • GeneratedLamp has the required size, position, color and anchored state.
  • Stop removes the runtime-created lamp; Play creates one fresh lamp.

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.

Build this hierarchy

Workspace (GeneratedLamp appears during Play)
ServerScriptService
  BuildLamp (Script, RunContext=Server)
  1. Create a Baseplate and the BuildLamp Script.
  2. Remove any saved object already named GeneratedLamp to keep the check unambiguous.
ServerScriptService/BuildLamp.server.luau

Main guided reference implementation; use the hierarchy’s stated Script or ModuleScript type.

local Workspace = game:GetService("Workspace")
local lamp = Instance.new("Part")
lamp.Name = "GeneratedLamp"
lamp.Anchored = true
lamp.Size = Vector3.new(2, 6, 2)
lamp.Position = Vector3.new(0, 4, 0)
lamp.Color = Color3.fromRGB(234, 120, 40)
lamp.Parent = Workspace
print(lamp:GetFullName())

Expected output

  • A tall anchored orange Part appears at 0,4,0.
  • Output prints Workspace.GeneratedLamp.

Studio assessment checklist

Multiplayer tests

  1. Run a local server and at least one client; compare server and client context where the activity uses both.
Troubleshooting and production considerations

A falling lamp needs Anchored=true.

If two lamps appear, look for duplicate scripts rather than adding another delay.

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.

Your goal

Build GeneratedLamp at 0,4,0 with size 2,6,2, anchored and orange. Print its full path after parenting.

Reset starter

Replace this code with the starter? Download your draft to keep a copy.

Code

Studio source file
Luau keyword highlighting · Ctrl/⌘ + Enter: Run · Esc: leave editor

Edit and run these files in Roblox Studio. This browser has no Roblox services, physics, or replication.

Your output will appear here.

Ready