I have this script which gives a countdown to the next round, but after it hits 1 it goess back to 9. How can I get it to stop and pick a random map once the clock hits 0??
--------------------------------------------------------------------------------------------
if game.Workspace.MainText.Value == "MorePlayers" then
script.Parent.Text = "You need 2 players to begin the game"
script.Parent.Parent.Visible = true
elseif game.Workspace.MainText.Value == "GameBegin" then
script.Parent.Text = "Next round begins in:"
script.Parent.Parent.Visible = true
--------------------------------------------------------------------------------------------
for i = 10,1, -1 do
script.Parent.Parent.Timer.Text = i
wait(1)
end
end
--------------------------------------------------------------------------------------------
game.Workspace.GameBegin.Value = "Begin"
--------------------------------------------------------------------------------------------

11 comments
This script does not repeat. It only counts down once.
hmmm, it repeated for me??
There must be something else within the script causing the repetition :]
-------------------------------------------------------------------------------------------- while true do if game.Workspace.MainText.Value == "MorePlayers" then script.Parent.Text = "You need 2 players to begin the game" script.Parent.Parent.Visible = true elseif game.Workspace.MainText.Value == "GameBegin" then script.Parent.Text = "Next round begins in:" script.Parent.Parent.Visible
Remove the infinite while loop. That's why it repeats...............
^
so what do i get rid of??
Ok I got it, but after the countdown the map dosent load
Can you please update your post with the full script.
Updated and it dosent repeat anymore, I just need it to then after the countdown pick a random map from the serverstorage
0 player