-- https://developer.roblox.com/en-us/api-reference/class/DataStoreService




while true do
	local data = {}
	local tmp = game.Workspace.Servers:GetChildren()
	if tmp then -- получен список список серверов/объектов
		for a,b in pairs(tmp) do
			local server_code = b.Name
			local temp = b:GetChildren()
			local player_num = #temp
			local server_name= b.name.Value
			
			warn("------------------------")
			warn(server_code,player_num,server_name)
			if player_num < max_players then
				table.insert(data,{server_code,player_num,server_name})--Put new data in new table
			end
		end
		table.sort(data,function(a,b)
			return a[2] > b[2]
		end)
	end
	