local function Z()local Z=0 local e=""for t,U in pairs(mapVotes)do if U>Z then Z=U e=t end end print("\084\104\101 \119\105\110\110\105\110\103 \109\097\112 \105\115\058 "..e)game.ReplicatedStorage.VotingEnded:FireServer(e)end
-- After the voting period, determine the map with the highest count
local function determineWinningMap()
	local highestVotes = 0
	local winningMap = ""

	for map, votes in pairs(mapVotes) do
		if votes > highestVotes then
			highestVotes = votes
			winningMap = map
		end
	end

	-- Load the game with the winning map
	print("The winning map is: " .. winningMap)
	game.ReplicatedStorage.VotingEnded:FireServer(winningMap)
	-- Load the winning map using your game's specific logic
end
