I am trying to make an auto team script that teams a player on a team if they are the group and if they are not they get teamed to the other team.
My attempt at the script:
game.Players.PlayerAdded:connect(function(player)
if player:GroupId = 7094704
player.Team = "Irish Defence Forces"
else
player.TeamColor = "Enemies"
end)
