name = "Humanoid" function OnTouched(hit) i = 0 Humanoid = hit.Parent:FindfirstChild("Humanoid") if Humanoid then hit.Parent:FindFirstChild("Humanod").Health = i end end
You spelled Humanoid wrong after the if statement ('Humanod'):
function onTouched(hit) local i = 0 local humanoid = hit.Parent:FindFirstChild("Humanoid") if humanoid then humanoid.Health = 0 end end script.Parent.Touched:connect(onTouched)