Kill Brick
Roblox Studio
Your mission: When a player touches the red brick, they reset.
⏱ 15–20 min · Skills: Touched · Humanoid · events
Step 1 — Understand
1 min
Do this
- Look at the finished kill brick 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: Workspace → KillBrick → 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 brick = script.Parent
brick.Touched:Connect(function(hit)
local character = hit.Parent
local humanoid = character and character:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid.Health = 0
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 — Print name
Print character.Name on touch.
CREATOR — Debounce
1 second cooldown.
BOSS — Players only
Only affect real players.
You built a Roblox mechanic
- ✓ Events
- ✓ Humanoid
- ✓ Touched