How to make a Round System

Hello!

I want to make a round system where the Intermission takes 120 seconds to start and when the intermission is over, the game starts and the game time will be 240 seconds, I want the time in lighting to smoothly transition from day to night and clone a monster from serverstorage to workspace, after the game is over, I want the monster to delete out of workspace and the time back to day, then the players get 1 Survival, and then it repeats!

I also wanted to make a gui that displays the timer!
I have tried to script this but I have no idea how I would organize it and how this would work, most tutorials show this but it also show map rotations, I only want this to occur in one map!

I tried using this script but the timer wouldn’t work!

local roundLength = 240
local intermissionLength = 120
local RoundStarted = game.ReplicatedStorage.RoundStarted
local Status = game.ReplicatedStorage.Status

local function roundTimer()
	while wait() do
		for i = intermissionLength, 1, -1 do
			RoundStarted.Value = false
			wait(1)
			Status.Value = "Intermission ("..i..")"
		end
		for i = roundLength, 1, -1 do
			RoundStarted.Value = true
			wait(1)
			Status.Value = "Survive ("..i..")"
		end
	end
end

spawn(roundTimer)

I also have tried changing the time with a server script multiple times but it wouldn’t work either!
How can I achieve this?

local Intermission = false
local RuondRunning = false
local tweenService = game.GetService["TweenService"]
local tween = tweenService:Create(game.Lighting, TweenInfo.new(10), {ClockTime = 0, Brightness = 0} )

function runRound()

Intermission = true

for i = 1,intermissionLength do
    wait(1)
end

Intermission = false

tween:Play()

RoundRunning = true

for i = 1,roundLength do
    wait(1)
end

RoundRunning = false
end

This should help you on your way!

1 Like