Purpose is to get one person from the Red Team and the Blue Team. It picks the people, but sometimes it'll pick two people on the same team, leaving the other team without a captain.
function PickCaptains()
local Players = game.Players:GetPlayers()
for i, v in pairs(Players) do
if v.TeamColor == RedTeam.TeamColor then
local RedLeader = Players[math.random(1,#Players)]
end
if v.TeamColor == BlueTeam.TeamColor then
local BlueLeader = Players[math.random(1,#Players)]
end
end
end
