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.

2 comments
Please edit your post to 1) use the Lua code formatting functionality. 2) Make your title mean something specific to the question. 3) Provide what output and debugging you have done.
Ok, I will in future