Crazy bug with pathfinding service

I have a script that uses pathfinding services. It has been working properly until today. I spent 8 hours debugging it to no avail. I created a new baseplate and it worked fine. I put my map into the baseplate and it still was working fine. At last I put everything in my workspace into the new baseplate and then pahtfinding service stopped working. Finally I realized that there was a Humanoid parented right under workspace. I don’t know who put it there, probably someone from my collaboration team doing a test on humanoids. Once I removed the humanoid from workspace, everything worked properly again. I have no idea why this occurs. To reproduce the bug, all you have to do is parent a humanoid under workspace. It doesn’t even have to be the humanoid that you are moving, just put a humanoid in workspace, and every pathfinding service call will fail. You might be asking why would I want to parent a humanoid into workspace in the first place? You have a point, nobody would want to do that. But in the end this just adds more to a list of “do’s and don’ts” in Roblox studio that does not make any sense. If you are a Roblox Studio developer, just keep this in mind if you ever encounter a similar issue. Have a nice day.

1 Like