local part = script.Parent
part.ClickDetector.MouseClick:Connect(function(click) click.Parent.Humanoid.Health = 0 end)
click = the player so you would say...
local part = script.Parent part.ClickDetector.MouseClick:Connect(function(click) click.Character.Humanoid.Health = 0 end)