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

NPCs don't die when HP at 0, just kind of stand there?

Asked by 6 years ago

Probably a newbie-sounding question, but whenever my NPCs HP hit 0, rather than dying, they just kind of... Stand there.

I haven't tested .Died with it yet, but is there a way to get them to die in a similar way to the Player's death? (i.e falling apart)

0
Turn off FilteringEnabled under Wokspace properties if it's on hellmatic 1523 — 6y
0
... That sounds like a terrible idea. Why would I do that? FilteringEnabled makes it harder to exploit :V OrcaTheFish 95 — 6y
0
FE has nothing to do with it User#20388 0 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

I believe that the problem is that your NPC is anchored, if you import an NPC using a plugin or free model this happends pretty often, unanchor every part (HumanoidRootPart too)

0
Sadly, all of the parts are already unanchored. I even tried setting the NPCs max HP to 0, and they didn't die. OrcaTheFish 95 — 6y
0
That's actually normal that they don't die, roblox doesn't count 0/0 as dead it only counts as a dead when maxhealth is higher than 0 and health is 0 (still set as best answer if this works :)) User#20388 0 — 6y
Ad

Answer this question