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

My npcs will always attack each other and stack up?

I need to find a way to whitelist my npcs from attacking each other. the game is so dual and boring becuase they just sit there attacking each other. could it be a problem with the humanoid?

please help.

1 answer

I don't know much about NPC's tho I doubt it is the humanoid, but you can allows play around in it. I think this can be a solution. I think you can make a team and put the NPC in that team. If that is true and you can put NPC in a team I do know players in a same team cannot attack each other. So that should work. Updated MSG Hi I found something on this NPC in team Hope this helps!!

7 comments

0

Let me know if this doesn't work

0

Pathfinding gives you the path and humanoid allows you to use that path it’s up to the op to make it go a different path for the attacking npc’s don’t put them in a team I don’t think you can even do that instead you would want to place them in a folder or tag the model of the npc with the tag editor after that modify the attack function and only allow it to damage

0

Damage* other players not npcs under the folder or has a tag called IsNpc

0

And as for the stacking you can set the npc’s collision group to not collide with players or other npc’s you can find a easy tutorial on the internet

0

OK did you figure it out to get it to work??

0

its extremely easy

0

turn off their collisions to them self (Collision groups)

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