Roblox round system script (intermission and round timer)

Lobby → intermission → map → round timer → winner → lobby, forever. One server script runs the whole cycle, and a status text shows every player what is happening.

ScriptUpdated November 16, 2026

Where to put it

Script — ServerScriptService > Rounds (Script). It runs on the server, so players can't change what it does.

  1. Build a lobby with a SpawnLocation in it. Players respawn here when they die, so they leave the round automatically.
  2. Add a Part named LobbySpawn in the lobby (anchored, CanCollide off, Transparency 1). Survivors are sent back to it after each round.
  3. Build the map somewhere else in Workspace as a Model named Map. Inside it, make a Folder named Spawns with a few anchored, invisible Parts where players start. Don't put SpawnLocations in the map.
  4. Insert a Script into ServerScriptService and paste the code. For a solo test, set MIN_PLAYERS to 1.

The script

ServerScriptService > Rounds (Script)
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local MIN_PLAYERS = 2
local INTERMISSION = 15 -- seconds
local ROUND_TIME = 120 -- seconds
local lobbySpawn = workspace:WaitForChild("LobbySpawn")
local mapSpawns = workspace:WaitForChild("Map"):WaitForChild("Spawns")

-- Every client can read this to show "Intermission: 12" and so on.
local status = Instance.new("StringValue")
status.Name = "Status"
status.Parent = ReplicatedStorage

Players.PlayerAdded:Connect(function(player)
	local leaderstats = Instance.new("Folder")
	leaderstats.Name = "leaderstats"
	leaderstats.Parent = player
	local wins = Instance.new("IntValue")
	wins.Name = "Wins"
	wins.Parent = leaderstats
end)

local function teleport(player, part)
	local character = player.Character
	if character and character:FindFirstChild("HumanoidRootPart") then
		character:PivotTo(part.CFrame + Vector3.new(0, 3, 0))
	end
end

local function count(set)
	local n = 0
	for _ in set do
		n += 1
	end
	return n
end

while true do
	-- 1. Wait until enough players are in the server.
	while #Players:GetPlayers() < MIN_PLAYERS do
		status.Value = "Waiting for players (" .. #Players:GetPlayers() .. "/" .. MIN_PLAYERS .. ")"
		task.wait(1)
	end

	-- 2. Intermission countdown.
	for seconds = INTERMISSION, 1, -1 do
		status.Value = "Intermission: " .. seconds
		task.wait(1)
	end

	-- 3. Send everyone who is alive to the map.
	local alive = {}
	local connections = {}
	local spawns = mapSpawns:GetChildren()
	for i, player in Players:GetPlayers() do
		local character = player.Character
		local humanoid = character and character:FindFirstChildOfClass("Humanoid")
		if humanoid and humanoid.Health > 0 then
			alive[player] = true
			teleport(player, spawns[(i - 1) % #spawns + 1])
			table.insert(connections, humanoid.Died:Connect(function()
				alive[player] = nil
			end))
		end
	end
	table.insert(connections, Players.PlayerRemoving:Connect(function(player)
		alive[player] = nil
	end))
	local startedWith = count(alive)

	-- 4. Round timer: ends when time runs out or one player is left.
	local timeLeft = ROUND_TIME
	while timeLeft > 0 do
		local left = count(alive)
		if left == 0 or (startedWith > 1 and left <= 1) then
			break
		end
		status.Value = "Round: " .. timeLeft .. "s · " .. left .. " left"
		task.wait(1)
		timeLeft -= 1
	end

	for _, connection in connections do
		connection:Disconnect()
	end

	-- 5. Results.
	local survivors = {}
	for player in alive do
		table.insert(survivors, player)
	end
	if #survivors == 1 and startedWith > 1 then
		local winner = survivors[1]
		winner.leaderstats.Wins.Value += 1
		status.Value = winner.DisplayName .. " wins!"
	elseif #survivors == 0 then
		status.Value = "Nobody survived!"
	else
		status.Value = "Time's up! " .. #survivors .. " survived"
	end

	-- 6. Survivors go back to the lobby. The dead already respawned there.
	for _, player in survivors do
		teleport(player, lobbySpawn)
	end
	task.wait(5)
end

How it works

  • The whole game cycle is one while true do loop on the server, so every player sees the same round at the same time and nobody can skip it.
  • The Status StringValue in ReplicatedStorage is the only thing clients need: any LocalScript can show its text, and it updates by itself when the server changes it.
  • Players in the round are kept in the alive table. Dying (Humanoid.Died) or leaving the game removes them; the round ends when one player is left, or when nobody is left in a solo test.
  • The map has no SpawnLocations, so a player who dies respawns in the lobby and is out of the round without any extra code.
  • PivotTo moves the whole character at once. Setting only the HumanoidRootPart's position can leave accessories or the character behind.

Variations

Show the status on every screen

Add a ScreenGui to StarterGui with a TextLabel at the top, and put this LocalScript inside the label.

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local label = script.Parent
local status = ReplicatedStorage:WaitForChild("Status")

label.Text = status.Value
status.Changed:Connect(function(text)
	label.Text = text
end)

A random map every round

Keep several map Models (each with its own Spawns folder) in ServerStorage → Maps. Clone a random one at the start of the round and destroy it at the end. Remove the Map model from Workspace, the mapSpawns line at the top and the old local spawns = … line in step 3.

local ServerStorage = game:GetService("ServerStorage")
local maps = ServerStorage:WaitForChild("Maps")

-- At the start of step 3:
local choices = maps:GetChildren()
local map = choices[math.random(#choices)]:Clone()
map.Parent = workspace
local spawns = map:WaitForChild("Spawns"):GetChildren()
status.Value = "Map: " .. map.Name
task.wait(2)

-- At the end of step 6, after teleporting survivors:
map:Destroy()

Rewards for taking part

Give coins to everyone who survives, not only the winner, so new players have a reason to stay. Add the coins in step 5 for every player in survivors, on the server. Save them with a data store.

Common mistakes

  • Running the round loop in a LocalScript: every player gets their own timer and the rounds never line up.
  • A SpawnLocation inside the map: dead players respawn in the arena and are still in the game.
  • Not removing players who leave: the round waits for someone who is gone, and leaderstats errors on a removed player.
  • Forgetting to disconnect the Died connections each round: they pile up and old rounds keep changing the new one.
  • Testing alone with MIN_PLAYERS = 2: the status stays on “Waiting for players” forever. Use 1 for solo tests or Test → Clients and Servers.

FAQ

How do I make a round system in Roblox Studio?

Use one server Script with a loop: wait for players, count down an intermission, teleport players to the map, run a round timer, pick the winner and send everyone back to the lobby. The script on this page does all of it.

How do I make an intermission in Roblox?

Count down in a loop on the server and write the seconds to a StringValue in ReplicatedStorage. A LocalScript in a TextLabel shows that value to every player.

How do I teleport all players to a map when the round starts?

Loop over Players:GetPlayers() on the server and call character:PivotTo() with the CFrame of a spawn part in the map, a little above it so players don't get stuck in the floor.

Why does my round never start?

Usually MIN_PLAYERS is higher than the number of players in your test. Set it to 1 for solo testing, or start a test with Test → Clients and Servers and 2 players.

Keep reading