I put a then so when the players amount is less than two the game wont start but it doesnt work can somebody look at it?
01 | while true do |
02 | if game.Players.NumPlayers > 1 then |
03 | h.Text = "Intermission" |
04 | wait( 1 ) |
05 | h.Text = "The game will start soon.." |
06 | wait( 1 ) |
07 | for i = 3 , 1 , - 1 do |
08 | h.Text = "Time left: " .. i |
09 | wait( 1 ) |
10 | end |
11 | h.Text = "Game ended!" |
12 | wait( 3 ) |
13 | if RedVal > BlueVal then |
14 | h.Text = "The winner is TeamRed" |
15 | aa:Play() |
You need to remove 2 'end's from above the else, and put one more below and you should be fine.
01 | while true do |
02 | if game.Players.NumPlayers > 1 then |
03 | h.Text = "Intermission" |
04 | wait( 1 ) |
05 | h.Text = "The game will start soon.." |
06 | wait( 1 ) |
07 | for i = 3 , 1 , - 1 do |
08 | h.Text = "Time left: " .. i |
09 | wait( 1 ) |
10 | end |
11 | h.Text = "Game ended!" |
12 | wait( 3 ) |
13 | if RedVal > BlueVal then |
14 | h.Text = "The winner is TeamRed" |
15 | aa:Play() |
els has to be before one of the ends. It has to be in the script