-- THIS SCRIPT STAYS UNDISABLED

local Players = game:GetService("Players")
local LobbySpawn =  workspace.Lobby.Spawn.CFrame -- Your Spawn Location CFrame
local VotingREFolder = game.ReplicatedStorage.VotingRE
local Winners = {}
	VotingREFolder.Transition:FireAllClients()

	for _,  player in pairs (Players:GetPlayers()) do  
	if player.InGame.Value == true then
			player.leaderstats.Wins.Value += 1
			player.Character.HumanoidRootPart.CFrame = LobbySpawn
			table.insert(Winners, player.Name)
			print(Winners)
			player.InGame.Value = false
	else
		print("No Players!")
		end
	end	

	for _, child in pairs(workspace:GetChildren()) do
		if child:IsA("Model") and child:FindFirstChild("SpawnPoints") then
			child:Destroy()
		end
	end

	VotingREFolder.RoundFinished:FireAllClients(Winners)

	wait(3) -- Transition wait
	wait(18) -- Winners Announce Wait


	Winners = {}

script.Parent.PlayerCount:Destroy()

script.Parent.Disabled = false
script.Disabled = true



