For some reason, the GUI is turned on at the end of the while true do loop (which is what needs to happen). However, the results gui doesn't get turned off when the loop restarts.
Here is the code:
while true do
game.StarterGui.Results.Enabled = false -- turns off the results gui
for i = 1,10 do
GameStatus.Value = "Intermisson "..10-i
wait(1)
end
---- my game's main code is here ----
game.StarterGui.Results.Enabled = true --- turns on the results gui
for i = 1,#players do
if players[i].Character ~= nil then
players[i]:LoadCharacter()
end
end
wait(3)
map:Destroy()
end
