So I'm making a class system but I wan't it to give the players some time after going through 2 classes but i don't know how i can make it stop for that amount of time with this script i have

local repstorage = game:GetService("ReplicatedStorage")
local GuiAppearRemote = repstorage:WaitForChild("GuiAppearOnFinish")
local Time = 10
local TimeInClass = 15
local Disabled = false
local Count = repstorage:WaitForChild("CountTime")
local InClass = ReplicatedStorage:WaitForChild("InClass")
local ClassLimit = 2

InClass.Changed:Connect(function()
	if InClass.Value == true then
		GuiAppearRemote:FireAllClients()
	end
end)

local StartCount = function()
	while Disabled ~= true do
		wait()
		for intermission = Time, 1, -1 do
			InClass.Value = false
                        wait(1)
			Count.Value = intermission
			print(Count.Value)
		end
		
		for i = TimeInClass, 1, -1 do
			InClass.Value = true
			wait(1)
			print("Class time "..i)
		end
	end
end

spawn(StartCount)