local Q=game:GetService("\080\108\097\121\101\114\115")local B=workspace.Lobby.Spawn.CFrame local Z=game.ReplicatedStorage.VotingRE local X={}Z.Transition:FireAllClients()for Q,Z in pairs(Q:GetPlayers())do if Z.InGame.Value==true then Z.leaderstats.Wins.Value+=1 Z.Character.HumanoidRootPart.CFrame=B table.insert(X,Z.Name)print(X)Z.InGame.Value=false else print("\078\111 \080\108\097\121\101\114\115\033")end end for Q,B in pairs(workspace:GetChildren())do if B:IsA("\077\111\100\101\108")and B:FindFirstChild("\083\112\097\119\110\080\111\105\110\116\115")then B:Destroy()end end Z.RoundFinished:FireAllClients(X)wait(3)wait(18)X={}script.Parent.PlayerCount:Destroy()script.Parent.Disabled=false script.Disabled=true
-- 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
