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

How do I make my weapons kill NPCS? [closed]

Asked by
Storylife -10
7 years ago

currently my guns can kill other players, however they can not damage my zombie NPCs

0
Remove the check which validates if the hit .parent i a player ... User#5423 17 — 7y

Closed as Non-Descriptive by Goulstem

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 7 years ago

Weapons damage an item inside players called a 'Humanoid' (I'm pretty sure you already know this). Most likely, the Humanoid in the zombies is named something else, so the script in the gun can't find it and regards to the zombie as an ordinary part. So make sure that the Humanoid inside the zombies is named "Humanoid".

I had this problem too, and this fixed it.

Accept if this helped

Ad