I am attempting to find a player in my game who has the highest leaderstats value, known as 'eggsFound'
_G.eggHunters = {}
for i,v in pairs(game.Players:GetPlayers()) do
if v ~= nil then
table.insert(_G.eggHunters, v.Name)
end
end
for _, v in pairs(_G.eggHunters) do
end
This is all I have right now, I'm unsure of what else I can try to find the person with the highest leaderstats value known as 'eggsFound', any help would be appreciated! Thanks!

1 comment
https://scriptinghelpers.org/questions/37917/how-to-find-the-player-with-the-highest-score-the-second-highest-score-and-so-on