PathfindingService (nav_mesh) supposedly goes to wrong way after reaching the end and forcing it to go to start again

Recently I was making a test pathfinding NPC. I was making a two-corner pathways using the default Roblox NPC-Pathfinder.
So I made 2 goals for this NPC-pathfinder.

One is start.
Two is end.

I also wanted to repeat this proccess by making the scripts wait in 5 seconds.
On the way to the end It goes perfectly fine, which nav_mesh succesfully generated without falling to any ground.

On the way to the start It kind of goes perfectly, but stops and breaks immediately and can’t move in any directions.

I know, Roblox pathfinding sucks and I don’t know what to do with the NPC.

NPC is walking with 60 speed limit. Going higher will break nav_mesh
Going slower makes it delayed even more.

I also placed walls to not break itself on pathfinding and going on the wrong way. Somehow it doesn’t work and just breaks immediately.

And yes, I am making a nextbot game.
Here’s some proof:

https://gyazo.com/87a7cac02a96d9f4ffa15110df4f4edb

https://gyazo.com/29ea83f221314872825dda4d1e93bffd

I have no idea how to fix this issue. Maybe it’s roblox’s problem.

1 Like