Code is running poorly

Region3 with math.huge is not needed as it will detect unneeded parts like the enviroment, tools, accessories potentially. Hence I suspect this is the main source of lag if ran a lot of times.

If you only need to find the player characters in a zone, consider more performant methods like zone +, or only looping through players:GetPlayers() for their humanoid root part and checking if they are in the zone and such.

also @Zenqpa it’s in the lua pil manual for >=

1 Like