Pathfinding giving up

robloxapp-20220825-0615582.wmv (1.4 MB)

The Pathfinding does not face any problems under a minute. But after that they will start showing problems like in this video.

As you can see the pathfinder starts giving up later in the video.
(Also btw they return to pathfinding after a while.)

I will be back online tomorrow.

1 Like

You probably didn’t run the pathfinding script through a pcall.
Sometimes when using pathfinding, no path can be found. If you don’t run this through a pcall, the whole script breaks, thus ending up in your zombie “breaking”.

You didn’t give any code either, so if that isn’t the problem, then I would highly recommend you post the code here.

1 Like

Pathfinding does not throw errors, it sets Path.Status to anything other than Enum.PathStatus.Success if it couldn’t find a path.

1 Like

Then again, I would advise you to send in code. There’s so much we can do with just a small video of the bug being showcased.

1 Like

Nevermind. I know how to fix it now. Thank you.