If NPC can't reach the point its trying to get too; is there a way to make it move to the closet point it can reach?

  1. I’m trying to get a NPC to get to a certain point using PathfindingService while destroying a bunch of obstacles on the way with guns and stuff.

  2. Until all the obstacles have been destroyed the NPC won’t continue on a path making it stay in the exact same position so if the obstacle is out of its view it would continously shoot at a wall.

  1. I tried out Enum.PathStatus.ClosestNoPath but it turns out that is Deprecated.

just use your move method to move it to wherever you want your point, and fire a ray every few seconds to fire at obstacles (additionally I assume there is some sort of pathfinding parameter where you can plug in instances to ignore)