How to make a kill block in RS

Had to type it out of course! Put this script under the part in a regular script.

function onTouched(h)
local h = h.Parent:FindFirstChild(“Humanoid”)
if h ~= nil then
h.Health = 0
end
end

script.Parent.Touched:Connect(onTouched)

1 Like

Thanks a lot! I may do a obby game soon so it can help me a lot! Thanks!

No problem!!! (20) charre