Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make NPCs take damage and die?

Asked by 4 years ago

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)
1
What's script.Parent? IdealistDeveloper 234 — 4y
0
does your npc have a humanoidrootpart? Lightning_Game27 232 — 4y
0
just go into the NPC's Humanoid, then do Humanoid.Health = Humanoid.Health - 10 BreckleShrimp 23 — 4y

Answer this question