function onTouched(part) local h = part.Parent:findFirstChild("Humanoid") if h~=nil then h.Health = 0 end end script.Parent.Touched:connect(onTouched)
function onTouched(part) local h = part.Parent:findFirstChild("Humanoid") end end script.Parent.Touched:connect(onTouched)
function onTouched(part) local h = part.Parent:findFirstChild("Humanoid") if h~=nil then h.Health = 0 end

1 comment
Please use code blocks when you're typing a script.