function PlayerManager.getWinnerNames()if#activePlayers>=1 then local P=-1 local T={}for N,p in pairs(activePlayers)do local b=(leaderboardManager:getStat(p,"\080\111\105\110\116\115")).Value if b then if b>P then T={p.Name}elseif b==P then table.insert(T,p.Name)end end end return T else return{}end end
-- Returns the names of the winner(s) according to most points scored
function PlayerManager.getWinnerNames()
	if #activePlayers >= 1 then
		local topScore = -1
		local winnerNames = {}

		for i, player in pairs(activePlayers) do
			local playerScore = leaderboardManager:getStat(player, "Points").Value
			if playerScore then
				if playerScore > topScore then
					winnerNames = { player.Name }
				elseif playerScore == topScore then
					table.insert(winnerNames, player.Name)
				end
			end
		end

		return winnerNames
	else
		return {}
	end
end
