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

My npcs will always attack each other and stack up?

Asked by 2 years ago

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

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

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!!

0
Let me know if this doesn't work theking66hayday 841 — 2y
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 Puppynniko 1059 — 2y
0
Damage* other players not npcs under the folder or has a tag called IsNpc Puppynniko 1059 — 2y
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 Puppynniko 1059 — 2y
View all comments (3 more)
0
OK did you figure it out to get it to work?? theking66hayday 841 — 2y
0
its extremely easy Puppynniko 1059 — 2y
0
turn off their collisions to them self (Collision groups) Puppynniko 1059 — 2y
Ad

Answer this question