Roblox Kill Brick Script (Single Part & CollectionService Tag)
Instead of copying 100 scripts into 100 lava bricks, tag any part 'KillBrick' and let one clean server script handle all of them.
-- Script in ServerScriptService
local CollectionService = game:GetService("CollectionService")
local function attachKill(part: BasePart)
part.Touched:Connect(function(hit)
local model = hit.Parent
local humanoid = model and model:FindFirstChildOfClass("Humanoid")
if humanoid and humanoid.Health > 0 then
humanoid.Health = 0
end
end)
end
for _, inst in ipairs(CollectionService:GetTagged("KillBrick")) do
if inst:IsA("BasePart") then
attachKill(inst)
end
end
CollectionService:GetInstanceAddedSignal("KillBrick"):Connect(function(inst)
if inst:IsA("BasePart") then
attachKill(inst)
end
end)How to install in Studio
- Insert a Script named KillBricks inside ServerScriptService and paste the code.
- Select any lava or hazard Part in Workspace.
- In the Properties panel under Tags, add the tag KillBrick.
Tips & customization
- Duplicate tagged parts freely — new copies automatically inherit the KillBrick tag.
- Check model:GetAttribute('Invincible') before setting Health = 0 if your game has spawn shields.
Common questions.
Why use CollectionService instead of putting a script inside every kill brick?
One script in ServerScriptService uses less memory and lets you edit kill behavior in one place instead of 100 separate scripts.
More free Luau scripts.
Shift-to-Sprint Script
Hold Left Shift to sprint smoothly with a subtle camera FieldOfView boost and clean speed reset on release.
Double Jump Script
Lets players jump a second time mid-air using Roblox's JumpRequest event (works on PC, mobile, and controller).
Round System Script
A clean server loop that runs Intermission -> Active Round -> Winner announcement and updates a shared Status StringValue for your HUD.
Pet Follow Script
Makes equipped pets glide smoothly behind the player's shoulder with a lively sine-wave hover and zero physics jitter.
Skip manual wiring.
Let Revix code & playtest it.
Start building freeFree to start. No card needed.

