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)
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
What's script.Parent?
does your npc have a humanoidrootpart?
just go into the NPC's Humanoid, then do Humanoid.Health = Humanoid.Health - 10