Script stuck as "Choosing game..." How do I fix it?
I made a mini game script and it keeps getting stuck at "Choosing game..." does anyone know what the problem is in my script?
Script:
minigames = game.ReplicatedStorage.Minigames:GetChildren()
timer = game.StarterGui.IntermissionAndRound.Frame.TimerDisplay
while true do
01 | if game.Players.NumPlayers > 1 then |
02 | timer.Text = "Choosing game..." |
04 | rangame = math.random( 1 , minigames) |
05 | gamechosen = minigames [ rangame ] |
06 | timer.Text = gamechosen.Name |
08 | gamechosenclone = gamechosen:Clone() |
09 | gamechosenclone.Parent = game.Workspace |
13 | timer.Text = "Time left:" .. i |
16 | timer.Text = "Round finished!" |
18 | gamechosenclone:Destroy() |
21 | timer.Text = "There needs to be at least 2 people to start" |
end