this is my script:

--// Tables //-- Winners = {}

--// Modules //-- Settings = require(script.Settings)

--// Game Variables //-- Intermission = Settings.Intermission GameTime = Settings.GameTime

--// Functions //-- function ChangeText(Text) local Players = game.Players:GetPlayers() for i = 1, #Players do Players[i].PlayerGui.Main.Time.Text = Text end end

function GetMap() local Maps = game.ReplicatedStorage.Maps:GetChildren() local PickMap = math.random(1, #Maps) local SelectedMap = Maps[PickMap]:Clone() SelectedMap.Name = 'Map' SelectedMap.Parent = game.Workspace end

function RemoveMap() if game.Workspace:FindFirstChild('Map') then game.Workspace.Map:remove() end end

--// Round //-- while true do repeat wait(1) until game.Players.NumPlayers >= 2 for i = Intermission, 0, -1 do ChangeText('Intermission ' ..i) wait(1)

local Players = game.Players:GetPlayers()
for i = 1, #Players do
	Players[i].Playing.Value = true
end

ChangeText('Round starting...')
wait(2)
GetMap()
wait(1)

local Players = game.Players:GetPlayers()
for i = 1, #Players do
	if Players[i].Playing.Value == true and Players[i].isAFK.Value == false then
		local Spawn = game.Workspace.Map.Spawns.Spawn
		Players[i].Character.UpperTorso.CFrame = CFrame.new(Spawn.Position)

		local Sword = game.ReplicatedStorage.Sword
		Sword:Clone().Parent = Players[i].Backpack
		
		Spawn:remove()
		Players[i].Character.Humanoid.WalkSpeed = 0
	end
end

for i = 5, 0, -1 do
	ChangeText('The round will start in:  ' ..i)
	wait(1)
end	

local Players = game.Players:GetPlayers()
for i = 1, #Players do
	if Players[i].Playing.Value == true then
		Players[i].Character.Humanoid.WalkSpeed = 16
	end
end

ChangeText('Shall the best player win!')

for i = GameTime, 0, -1 do
	ChangeText('The round will end in: ' ..i)
	wait(1)
end

local Players = game.Players:GetPlayers()
for i = 1, #Players do
	if Players[i].Playing.Value == true then
		table.insert(Winners, Players[i].Name)
		Players[i].leaderstats.Money.Value = Players[i].leaderstats.Money.Value + 5
		Players[i].leaderstats.Wins.Value = Players[i].leaderstats.Wins.Value + 1
		Players[i].Character.Humanoid.Health = 0
		Players[i].Playing.Value = false
		
		Players[i].PlayerGui.Main.MoneyShower.TextLabel.Visible = true
	end
end

RemoveMap()
ChangeText('The round ended!')
wait(4)	

end

end