Issues with a round system

I am trying to make a round system for my game, but I don’t know what is wrong with it. Here’s my script :

local IntermissionTime = game.Workspace.IntermissionTime.Value

local LimitTime = workspace.LimitTime.Value

local Players = game.Players

-----// Code \\----

function FadeOut()

workspace.Swoosh.Volume = 1

workspace.Swoosh:Play()

script.Parent.Frame.BackgroundTransparency = 0.1

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.15

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.2

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.25

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.3

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.35

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.4

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.45

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.5

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.55

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.65

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.7

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.75

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.8

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.85

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.9

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.95

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 1

workspace.Swoosh.Volume = 0

end

function FadeIn()

workspace.Swoosh.Volume = 1

workspace.Swoosh:Play()

script.Parent.Frame.BackgroundTransparency = 0.95

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.9

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.85

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.8

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.75

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.7

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.65

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.6

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.55

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.5

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.45

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.3

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.35

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.2

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.25

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.1

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0.15

wait(0.01)

script.Parent.Frame.BackgroundTransparency = 0

workspace.Swoosh.Volume = 0

end

while true do

wait(1)

script.Parent.Text = "..."

end

if game.Workspace.Intermission.Value==1 then

workspace.IntermissionTime.Value = workspace.IntermissionTime.Value - 1

script.Parent.Text = "Intermission..."

workspace.Sound:Play()

wait(0.4)

workspace.Sound.Volume = 0

end

if game.Workspace.IntermissionTime.Value==0 then

workspace.Intermission.Value = 0

game.Workspace.IntermissionTime.Value = 15

script.Parent.Text = "Intermission Over! Choosing map..."

workspace.Sound:Play()

workspace.Sound.Volume = 1

wait(0.4)

workspace.Sound.Volume = 0

wait(5)

script.Parent.Text = "Map chosen! Teleporting players..."

workspace.Sound:Play()

workspace.Sound.Volume = 1

wait(0.4)

workspace.Sound.Volume = 0

wait(5)

FadeIn()

wait(2)

FadeOut()

script.Parent.Text = "Choosing player for this race..."

workspace.Sound:Play()

workspace.Sound.Volume = 1

wait(0.4)

workspace.Sound.Volume = 0

wait(2)

local p = game.Players:GetChildren()

local randplayer = p[math.random(1, #p)]

script.Parent.Text = "The Player is: ".. randplayer.name
   
workspace.Sound:Play()

workspace.Sound.Volume = 1

wait(0.4)

workspace.Sound.Volume = 0

wait(3)

script.Parent.Text = "The player is being teleported!"

workspace.Sound:Play()

workspace.Sound.Volume = 1

 wait(0.4)

workspace.Sound.Volume = 0

wait(5)

script.Parent.Text = "Game in progress..."

workspace.Sound:Play()

workspace.Sound.Volume = 1

wait(0.4)

workspace.Ingame.Value = 1

workspace.Sound.Volume = 0

end 

In the output it doesn’t seem to find any script errors, can anyone help me?

Have you tried de-bugging to see where the script stops working? It’s likely that a condition isn’t met.
For example:

This might not be met, Intermission.Value might be something else,

Also just for the sake of tidying, Tidy your FadeOut and FadeIn using a for loop.

function FadeIn()
workspace.Swoosh:Play()
for i = 1, 0, -0.05 do
script.Parent.Frame.BackgroundTransparency = i
end
workspace.Swoosh:Stop()
end

function FadeOut()
workspace.Swoosh:Play()
for i = 0, 1, 0.05 do
script.Parent.Frame.BackgroundTransparency = i
end
workspace.Swoosh:Stop()
end

Also, your entire script is running in a localscript, A round script should run on the server, then you have all your effects on the client (the player’s computer). I would suggest learning more lua before you try to make a round system. and delve into remotevents and remotefunctions.