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?
while true do
if game.Players.NumPlayers > 1 then
h.Text = "Intermission"
wait(1)
h.Text = "The game will start soon.."
wait(1)
for i = 3, 1, -1 do
h.Text = "Time left: " .. i
wait(1)
end
h.Text = "Game ended!"
wait(3)
if RedVal > BlueVal then
h.Text = "The winner is TeamRed"
aa:Play()
wait(1)
h.Text = ""
end
if BlueVal > RedVal then
h.Text = "The winner is TeamBlue"
aa:Play()
wait(1)
h.Text = ""
end
if BlueVal == RedVal then
wait(1)
h.Text = "Tie! everybody wins!"
aa:Play()
wait(1)
end
end
end
else
h.Text = "No enought players!"
wait(1)
end

2 comments
Your "else" is outside of one of your "if" statments
else is outside of the if loop you need it inside of the while true do loop and before the if statement is ended