Here is the script:
script.Parent.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
humanoid.Health = 0
end
end)
Once I play the game, no errors occur in the output, but it does not kill the player! I think it has something to do with 'FindFirstChild'.

4 comments
Is it in a LocalScript or a ServerScript?
ServerScript
Is the script inside the Part?
yes