for i,p in pairs(game.Players:GetChildren()) do
if p.TeamColor ~= "White" then
players = {p}
end
end
I'm trying to make a table of all the players in the game that aren't on the White team. I tried doing this, but it only gets the first player indexed rather than all the players.
for i,p in pairs(game.Players:GetChildren()) do
if p.TeamColor ~= "White" then
players = {players + p}
end
end
That breaks the script entirely. Help please?

1 comment
I don't know if this would have anything to do with it, but try doing if p.TeamColor ~= BrickColor.new("White") then