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

Animate visible lamp feedback

v2 · Activity 1 of 0 · tweens · feedback · 28 min Requires Roblox Studio

Chapter outline
Loading draft…
Mini-mission

TweenService:Create receives an Instance, TweenInfo timing, and a table of target property values. The returned Tween must be played.

TweenInfo includes a duration and easing choices. Keep the transition short and restrained; this lab uses no sound.

Your task

Tween WorkshopLamp from a neutral gray to orange over 0.4 seconds and print Lamp ready when the transition completes.

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

InputExpected
Syntax in this activity

New syntax: tweens, feedback

Earlier ideas used here
  • vector3
  • cframe
  • position
Self-check rubric
  • The transition lasts approximately 0.4 seconds.
  • The final Color equals the intended orange.
  • The text result accompanies the visual state.

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/WorkshopLamp (anchored Part)
ServerScriptService/LampFeedback (Script, RunContext=Server)
  1. Create WorkshopLamp as an anchored Part.
  2. Put LampFeedback in ServerScriptService.
ServerScriptService/LampFeedback.server.luau

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

local TweenService = game:GetService("TweenService")
local lamp = game:GetService("Workspace"):WaitForChild("WorkshopLamp")
lamp.Color = Color3.fromRGB(100, 100, 100)
local tween = TweenService:Create(lamp, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { Color = Color3.fromRGB(234, 120, 40) })
tween.Completed:Connect(function(state)
    if state == Enum.PlaybackState.Completed then print("Lamp ready") end
end)
tween:Play()

Expected output

  • The lamp transitions from gray to orange once.
  • Output prints Lamp ready after a completed transition.

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

If there is no transition, verify :Play() is called.

Do not run competing tweens on the same property unintentionally; cancel or replace the old transition deliberately.

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

Tween WorkshopLamp from a neutral gray to orange over 0.4 seconds and print Lamp ready when the transition completes.

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