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

How to make NPCs take damage from weapons?

Asked by 4 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

I don't really know if this is something with the Humanoid or something with what I need to put in scripts. Any suggestions on how to fix this? Thank you!

1
humanoid.Health= humanoid.Health - damage, this works for players and NPCs since they both have humanoids jediplocoon 877 — 4y
1
also humanoid:TakeDamage(value) Leamir 3138 — 4y
0
Also do the NPC's contain Humanoid? If not, they won't take damage. SilentsReplacement 468 — 4y
0
Also if you're using a Humanoid with a different name then I'd use *FindFirstChildOfClass("Humanoid"):TakeDamage(val)* when obtaining the npc's humanoid (assuming it has one) FlabbyBoiii 81 — 4y

Answer this question