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
endscript.Parent.Touched:Connect(onTouched)
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
endscript.Parent.Touched:Connect(onTouched)
Thanks a lot! I may do a obby game soon so it can help me a lot! Thanks!
No problem!!! (20) charre