When do you load in NPCS

Most games that contain many NPCS use techniques that prevent unneeded memory consumption. For me, I wanted to load in close to player NPCS and load them out when the player is far. However, is it possible to do this server-side? What’s the best way? I don’t want exploiters to bypass NPCs but I also want a way to save memory and remove unnecessary NPCs when they are not used.

The NPCs are not server sided NPCs that interact with all players but they are set unless the local player interacts with them. Filtering Enabled to replicate each client with their own version of the NPC

You could use distance checks, raycasts, or Region3 to detect when a player is near where an NPC should be - and make sure it’s in the workspace when they meet those requirements.

1 Like