How would you go and create a NPC system for a PVE oriented game?

What I’m doing right now is I set zones on server (At edit time) where NPCs should spawn and then at Run Time server create folders for each NPCs that spawned in these zones and set an attribute called “Position” inside the folder, to calculate the position I use PointToWorldSpace to always position the NPC in the area bounds.

Now my issue is that to move the NPC, I simply listen on client for attribute change and if the attribute is Position, then I change the position using Humanoid:MoveTo, but each players have different network lag, which will eventually just create delay and every players will never see the NPCs at the same position. Should I just do NPCs on server?

i dont really see a reason why it should be done on the client as it brings a ton of complications with server-client replication

but if you really want it on the client you could set the networkownership to that player and just move the npc on the client

that’s true, server-sided will just make one single script run instead of 10 different players having accessible localscripts