I have a code that specifies the team color, but I don't know if I need to do more to make sure it switches to the correct team. Code:
local randomPlayer = game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())] randomPlayer.TeamColor = BrickColor.new("Really red")
local randomPlayer = (game.Players:GetPlayers())[math.random(1,#(game.Players:GetPlayers()))] randomPlayer.TeamColor = BrickColor.new("Really red")