Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How To Make A Script That Bandits Will Not Attack Other Bandits ?

How to make bandits can't do damage to other bandits script? when you copy like 2 bandits and when you play the bandits will attack each other how to prevent that from happining ? Please send me a script. thanks

3 comments

0

try naming the bandit humanoids something else

0

Check the parent of the humanoid first and if it is a bandit don't attack

0

No Working Still doing damage to each other and some explain to me in more detailes please?

1 answer

This is because of the Humanoid inside of the Bandits. The bandits you are using are constantly searching for Humanoids nearby to attack as most of the time they think it is possibly a player.

I would imagine you would need to remove the Humanoids from them and program Health yourself, or you might need to program them to attack anything under the "Players" file.

I can't say for sure, but try these.

This discussion is preserved as it was. New answers, comments, and votes are closed.