I'm not asking for any scripts
I was wondering how people make massive RPG games with NPCs that aggro on to the player and other humanoids
Some scripts I've seen it checks the entire workspace for Humanoids but this gets very laggy when you have big maps. I have tried using Region3 but then the problem occurs that you need to clear a space or it needlessly checks the surrounding props.
My current tactic is putting all the NPCs in a folder so I can loop through it and only get NPCs which removes the problem of looking through the entire workspace however when I look at the NPCs such as the drooling zombie NPC roblox supplies I get really confused by the use of modules and the point of them.
I just want to know anyone elses ways of making not laggy enemy NPCs or you have links of making better ai

2 comments
Do you want clarifications on modules or what?
It would be helpful for me to understand how it works