My NPCs are R15 and don't take damage. Any suggestions?

Here's my script I gathered

script.Parent.Touched:connect(function(kill)
	pcall(function()
		kill.Parent['Humanoid']:TakeDamage(10)
	end)
end)

3 comments

1

What's script.Parent?

0

does your npc have a humanoidrootpart?

0

just go into the NPC's Humanoid, then do Humanoid.Health = Humanoid.Health - 10