Issue with Pathfinding for multiple NPCs

I’m trying to make NPCs not walk into each other while chasing a player. Pathfinding does not currently consider models with humanoids during computation. So I tried using modifiers, giving NPCs their own unique region. But they are still affected by it even if I set it to 0 Cost or less than the floor’s material.

1 Like

i unfortunately don’t believe you can do this, mainly because the path is not updated every frame, it is only computed once.

1 Like

The path does get updated, and the enemies can detect if there are enemies in front of them, but because of the reasons above, I could not make what I wanted.

1 Like

alright here’s a hacky solution which may or may not work.
first make a collisiongroup for your npcs and another one for fakenpcs.
then add an invisible part to the workspace that is the size of the character, and update it’s cframe ever frame.
idk if this will work but give it a shot

1 Like

Essentially what I tried, but slightly different. Probably going to either wait for the pathfinding feature to be added or sort of make them avoid each other by using varied paths (which doesn’t prevent collisions but at least they don’t just merge into one).

1 Like

nvm, my bad
//////////////////////