How to make a killbrick in Roblox Studio

Опубликовано: 09 Июль 2026
на канале: Pickle Mafia
484
16

How to create a block that kills you in Roblox (easy tutorial)

Script:
function onTouch(part)
local humanoid = part.Parent:FindFirstChild("Humanoid")
if (humanoid ~= nil) then -- if a humanoid exists, then
humanoid.Health = 0 -- damage the humanoid
end
end

script.Parent.Touched:connect(onTouch)

Join the discord-
  / discord  

Follow me on twitter-
  / toomuchgaming14  

Thanks for watching :)