I’m working on adding a new feature to my game that is requiring me to work with the PathfindingService. I don't know what to do here. I have many doors in my game, and I want to make it so that my ai can pathfind towards its target. This may require it to go through many doors. I can make the doors open when the ai gets near them, but how would I get it to try going through the doors instead of bugging out because it can't find a path?

1 comment

0

Create a path as usual, but put the doors in ReplicatedStorage while the path is being generated maybe. I don't use PathfindingService, another thing you could do is set the doors collision off (client-sided) so that the pathfinding can predict.

I don't know if it changes whilst moving but I'm going to just try to help.