I want one of my NPC's to have 300 max health, but when I play solo he spawns with 100/300 health. Is there a way to fix this or do I have to make a script to heal him every time he spawns?
✓ ANSWER ACCEPTED
How do I make NPC's spawn with more than 100 health?
2 answers
✓ Accepted answer
This script would go inside of the Humanoid of the NPC.
script.Parent.MaxHealth = 300
script.Parent.Health = 300
wait(1)
script:Destroy()
Well, I think there is a easier way to make npcs spawn with more than 100 health: Go to the NPC's Humanoid, Scroll down to Health and MaxHealth, Change MaxHealth to 300, Change Health to 300 It should now spawn with 300/300 health!
1 comment
0
First, I already got my answer and second that doesn't work. That is what I tried it the first place. For some reason It doesn't work in roblox.
This discussion is preserved as it was. New answers, comments, and votes are closed.

8 comments
Err. script.Parent.Health = 300 runs first. So the result would stay same as the explanation for question. Swap MaxHealth with Health
Oh yeah, thanks for finding that. I didn't notice until now.
Line 4 is an error, and will this work for each time he re spawns?
It was missing () after Destroy and yes. It will work each time they respawn.
He seems to spawn with 100/300 health like ever
Nevermind! I mixed up maxhealth and health! Thanks for helping me :D
No problem!
I told you to swap it :/