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

When i attack the NPC why humanoid health is not reduce?

Asked by 6 years ago

Did you guy have the proble like me like when you attack the NPC and the humanoid heatlh is didn't reduce so how can i fix this? Please guy help me.

0
Post the script, we can't do anything without it. theCJarmy7 1293 — 6y
0
scr0pt plz; u hurt my feelingz by not giving scr0pt ;-; TheeDeathCaster 2368 — 6y
0
Give us the script? ;-; wilsonsilva007 373 — 6y
0
yeah man i have this error to its so dumb Ind1v1duals 43 — 6y

1 answer

Log in to vote
0
Answered by
Jxemes 75
6 years ago

Your answer isn't constructive. But I'll try my best to find out what's wrong with it.

Make sure you use Humanoid:TakeDamage(). Sometimes, subtracting or changing the values of the health directly might not work.

You need to find out if the NPC is getting hit by the item. If you have an onTouched function with proper code, it should work.

If you may post your script, then I can help you way more, but this is all I can help you for.

0
thanks beamzeedna -1 — 6y
Ad

Answer this question