โ† Back to all scripts

Kill Brick

A part that kills any player who touches it. Perfect for lava, voids, and traps.

Parts & DoorsBeginnerScript inside Part
kill-brick.lua
-- Kill Brick
-- Place a Script inside the Part

local part = script.Parent

part.Touched:Connect(function(hit)
    local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
    if humanoid and humanoid.Health > 0 then
        humanoid.Health = 0
    end
end)
Related scripts in Parts & Doors
Proximity Prompt DoorIntermediate โ†’Tycoon Conveyor BeltBeginner โ†’
Something broken or not working?
๐Ÿ”ง Try the AI Script Fixer โ†’