Hi, so I made a simple intermission countdown as a textbox, but I want for it to randomly assign teams after teh countdown and then kill everyone so they spawn at the spawnpoint, here is my code for the countdown which changes teh status of something which ten updates the text to say the status of it:
local status = game.ReplicatedStorage:WaitForChild("Status")
wait (5)
status.Value = "Intermission - 60"
Wait(1)
status.Value = "Intermission - 59"
Wait(1)
status.Value = "Intermission - 58"
Wait(1)
status.Value = "Intermission - 57"
Wait(1)
status.Value = "Intermission - 56"
Wait(1)
status.Value = "Intermission - 55"
Wait(1)
status.Value = "Intermission - 54"
Wait(1)
status.Value = "Intermission - 53"
Wait(1)
status.Value = "Intermission - 52"
Wait(1)
status.Value = "Intermission - 51"
Wait(1)
status.Value = "Intermission - 50"
Wait(1)
status.Value = "Intermission - 49"
Wait(1)
status.Value = "Intermission - 48"
Wait(1)
status.Value = "Intermission - 47"
Wait(1)
status.Value = "Intermission - 46"
Wait(1)
status.Value = "Intermission - 45"
Wait(1)
status.Value = "Intermission - 44"
Wait(1)
status.Value = "Intermission - 43"
Wait(1)
status.Value = "Intermission - 42"
Wait(1)
status.Value = "Intermission - 41"
Wait(1)
status.Value = "Intermission - 40"
Wait(1)
status.Value = "Intermission - 39"
Wait(1)
status.Value = "Intermission - 38"
Wait(1)
status.Value = "Intermission - 37"
Wait(1)
status.Value = "Intermission - 36"
Wait(1)
status.Value = "Intermission - 35"
Wait(1)
status.Value = "Intermission - 34"
Wait(1)
status.Value = "Intermission - 33"
Wait(1)
status.Value = "Intermission - 32"
Wait(1)
status.Value = "Intermission - 31"
Wait(1)
status.Value = "Intermission - 30"
Wait(1)
status.Value = "Intermission - 29"
Wait(1)
status.Value = "Intermission - 28"
Wait(1)
status.Value = "Intermission - 27"
Wait(1)
status.Value = "Intermission - 26"
Wait(1)
status.Value = "Intermission - 25"
Wait(1)
status.Value = "Intermission - 24"
Wait(1)
status.Value = "Intermission - 23"
Wait(1)
status.Value = "Intermission - 22"
Wait(1)
status.Value = "Intermission - 21"
Wait(1)
status.Value = "Intermission - 20"
Wait(1)
status.Value = "Intermission - 19"
Wait(1)
status.Value = "Intermission - 18"
Wait(1)
status.Value = "Intermission - 17"
Wait(1)
status.Value = "Intermission - 16"
Wait(1)
status.Value = "Intermission - 15"
Wait(1)
status.Value = "Intermission - 14"
Wait(1)
status.Value = "Intermission - 13"
Wait(1)
status.Value = "Intermission - 12"
Wait(1)
status.Value = "Intermission - 11"
Wait(1)
status.Value = "Intermission - 10"
Wait(1)
status.Value = "Intermission - 8"
Wait(1)
status.Value = "Intermission - 7"
Wait(1)
status.Value = "Intermission - 6"
Wait(1)
status.Value = "Intermission - 5"
Wait(1)
status.Value = "Intermission - 4"
Wait(1)
status.Value = "Intermission - 3"
Wait(1)
status.Value = "Intermission - 2"
Wait(1)
status.Value = "Intermission - 1"
Wait(2)
status.Value = "Round starting, get ready!"
wait(1)
I want it after this to randomly and evenly assign teams and then start the game so they are moved off of the lobby team.

3 comments
Alr, Ill try that thanks
For the shorter countdown code the countdown no longer works?
Did you copy and paste it as is? You're also supposed to define status before it.