For some reason, after some time playing my game, the NPCs start to lag. They are supposed to follow the player, however they start to lag and move super slowly, and sometimes just stop. There isn’t an FPS drop, and the player can move just fine. The lag starts after I clone an object. I have a lot of .Touched events in game but it’s weird that it only would happen after I clone the object. This object is just another dummy, and the player starts with two dummies so adding another one shouldn’t be a big deal
Have you checked the MicroProfiler to see what is going on in the game to see if there is high CPU utilisation. It can also help identify if any scripts are causing lag.
1 Like
Is the NPC literally lagging or is it just stuttering, if so all you have to do is set network ownership