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

NPC Humanoid won't take damage?

Asked by 4 years ago

I made a Giant. Its script is good already. It moves in animation, chase people, and drop coin when killed. well supposedly drop coin.

The problem is that it won't take damage or die. I keep shooting it with rocket launcher but it just destroy its body parts except torso and head.

It still chase people around even without arms or legs.

Now, how do I fix that? I put the max health and health to 10 just to test it. It really is invincible. In a normal size, it get destroyed fine. But for some reason, giant won't take damage.

What am I missing?

0
Do you have code to show? DeceptiveCaster 3761 — 4y
0
We need code. DevMonty 12 — 4y
0
I would like to help you if you would show code... 2ndwann 131 — 4y
0
There is no code to fix. I simply copied my enlarged body and put on a chase script. I just need it to take damage when being hit and not lose limbs. in a small regular size, it works fine, Asher0606 36 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

Your rocket launcher needs to have a larger blast radius and pressure to blow up a giant. It kills the smaller version because the explosives radius covers the humanoid. Also note that a forcefield will prevent a humanoid from taking damage or joints breaking via explosives.

Ad
Log in to vote
0
Answered by 4 years ago

I got it working. I need a special weapon that actually damage an NPC.

Answer this question