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

How would I go about making an invincible npc?

Asked by 7 years ago

I have npcs that I do not want people to just kill when they aren't monsters

0
Setting a Humanoid's health to math.huge, or removing the Humanoid all together if you don't plan on animating it or fighting should work just fine. ScriptGuider 5640 — 7y

2 answers

Log in to vote
1
Answered by
3dsonicdx 163
7 years ago

Multiple ways you can do this.

Change the humanoid's name to something the player cannot damage(anything BUT Humanoid usually).

Remove Humanoid(though that gets rid of their nametag/hp bar.)

Change HP and MaxHP to 0(This will make them virtually invincible as long as nothing is checking for 0 or lower hp.)

Ad
Log in to vote
0
Answered by 7 years ago

Change 'MaxHealth' in the Humanoid Properties to 0.

Here's a example.

Answer this question