NPC bugging? tried a lot of stuff

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

Someone help me, please I need this urgently

Thanks forum, no one helped me and the answer was easy,

self.Model.PrimaryPart:SetNetworkOwner(nil)

self.Model.PrimaryPart is just the humanoidrootpart, if anyone is wondering. Add this in your pathfinding, DO NOT add this at the start, it must run everytime where you pathfind

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.