I’ve made this NPC using OOP, and it works fine usually.
I have two systems in one. The green parts are when the NPC raycasts to the end position to check if anything is blocking, if not then it walks straight there. This system is not fully done, as I need to check from both the bottom of the npc and the top incase anything is blocking it. But thats not the point here.
The other system is roblox’s pathfinding. It works fine for the first 2 minutes, before it slows starts to bug out and this happens:
you might wanna skip.
Ive spent so many hours just trying to fix this. Please someone help me out, I can’t be the only one