Interactive Studio lamp
Use a real Roblox Studio Part, PointLight, and ProximityPrompt. A server Script changes the light when a player activates the prompt. This requires Studio; it does not run here.
Requires Roblox Studio · self-checkedLoading project… · Milestone 1 of 1
Draft preview. This project needs technical review before credited assessment.
Build and test the lamp
In Explorer create Workspace/LearningLamp (Part), with Anchored true, Position (0, 4, 0), and Size (2, 2, 2). Add a PointLight named PointLight (Brightness 2, Range 12, Enabled false) and a ProximityPrompt named ProximityPrompt (ActionText Toggle lamp, MaxActivationDistance 10) inside the Part. Create ServerScriptService/LampController as a Script with RunContext Server. Paste the complete code. Open Output. Use Test (F5), approach the Part, and activate the prompt twice. No imported assets are needed.
Acceptance criteria
- Explorer: Workspace/LearningLamp/{PointLight, ProximityPrompt}; ServerScriptService/LampController (Script, RunContext Server).
- First activation enables the light and prints Lamp enabled true; the next disables it and prints false.
- Common mistakes: mismatched object names make WaitForChild wait; wrong Script location or LocalScript changes where it runs; Run (F8) has no avatar to use the prompt.
Project milestones
- Available to preview
Optional extension
Change ActionText to describe the next toggle state after each activation.
Project notes and references
Draft preview: actual engine execution and human teaching review have not been performed.
A website checkbox is a self-check, not independently verified Studio execution.
Output
Your output will appear here.
Sharing is an explicit choice in your portfolio editor. Label exported work “Learning project”; existing publication rules apply.