Hello, want I want to do is find the Largest group of players that in a radius. What I mean is looping through the players and getting all the players in a set radius from that player and which ever player has the largest amount of people in that radius from them then that is the largest group of players.
The problem is I do not even know where to start with this, I have done getting the closest player to the localplayer but not the largest group of players overall. This added with the fact that I am not expirenced with maths is the reason I am finding this particalarly difficult. as I would probably need to use complex equations because it’s a radius.
local radius = 30
function getlargestgroupofplayers(radius)
--what to but here
end