Moving Platform
Roblox Studio
Your mission: Move a platform back and forth with a loop.
⏱ 15–25 min · Skills: Studio · events · loops
Step 1 — Understand
1 min
Do this
- Look at the finished Moving Platform idea.
- Read your mission.
Why? Seeing the goal first makes Studio steps clearer.
Check: I know what success looks like.
Step 2 — Build in Explorer
2 min
Do this
- Open Explorer.
- Create the Parts named in the instructions.
- Turn Anchored on when needed.
Why? Without Anchored, Parts can fall when you press Play.
Check: Part → Script
Step 3 — Add the Script
3 min
Do this
- Insert a Script in the correct place.
- Paste the starter code.
- Read each line once.
Why? script.Parent tells the Script which object to control.
local platform = script.Parent
local start = platform.Position
while true do
for i = 1, 40 do
platform.Position = start + Vector3.new(i * 0.5, 0, 0)
task.wait(0.03)
end
for i = 40, 1, -1 do
platform.Position = start + Vector3.new(i * 0.5, 0, 0)
task.wait(0.03)
end
end
Click a line below to highlight the concept (simulation).
Select a line to see what it does.
Place this Script where the project steps say. Use Explorer + Properties. This page is not Roblox Studio.
Press Play in Studio, open Output, and verify the mission behavior.
Step 4 — Test
2 min
Do this
- Press Play.
- Open Output.
- Verify the behavior.
Why? Output shows prints and errors immediately.
Step 5 — Modify
2 min
Do this
- Change one number or message.
- Playtest again.
Why? Small changes prove you understand the code.
Step 6 — Challenge
3 min
Do this
- Complete Challenge 1.
- Try the Creator challenge if ready.
Why? Challenges move you from copying to creating.
Challenges
EASY — Tweak values
Change timing or amounts.
CREATOR — Polish
Add a print when it activates.
BOSS — Combine
Combine with a prior project idea.
You built a Roblox mechanic
- ✓ Build