I can not think of a way to get the two players in the game and sort them into either one of the two teams. How can I get the two players and parse them into the sortPlayers() function?
local Teams = game.Teams
-- Sort players
local function sortPlayers(playerOne, playerTwo)
local intNumber = math.random(0, 2)
if intNumber == 1 then
playerOne.Team = Teams.Attacker
playerTwo.Team = Teams.Defender
else
playerOne.Team = Teams.Defender
playerTwo.Team = Teams.Attacker
end
end