function hit (h)
if h.Parent:findFirstChild("Humanoid") then if h.Parent.Humanoid.Health ~= 0 then h.Parent.Humanoid.Health = 0 end end end game.Workspace.Part.Touched:connect(hit)
This is suppose to kill anyone that touches the parent of this script.
Please help.
Thanks.
Hmm...everything looks perfectly fine. Make sure you don't have more than 1 object named "Part" in the workspace or else you could just be touching the wrong one. Also, make sure that the last line properly connects the function to the object. Hope this helps. Leave a comment if you still have a problem with this.