I have tried this but i don't think i have done it properly.
Blue = 0 Red = 0
game.Players.PlayerAdded:connect(function(team)
if Blue = 0 then do if Red= 0 then do
Blue = 1
if Blue = 1 then do If Red = 0 then do
and i kept doing that till i had all of it covered but it didn't work so i just deleted the script.
Does anyone have any ideas of how i could fix it?

3 comments
I would like to point out that it is never a good idea to delete nonfunctional code. As for your specific error, I suggest you review some of the basics on the wiki.
I'd have to agree with Perci1. Also, when you write code here for us, I highly suggest you put it in a lua textbox.
i don't know how to put it in a lua text box