# Help me assign players to different teams

**URL:** <https://forums.unrealengine.com/t/help-me-assign-players-to-different-teams/1781997>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, editor, fortnite\
**Created:** [April 1, 2024, 3:19pm UTC](https://forums.unrealengine.com/t/help-me-assign-players-to-different-teams/1781997 "2024-04-01T15:19:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![K1ngqGrove](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@K1ngqGrove](https://forums.unrealengine.com/u/K1ngqGrove)\
**Post date:** [April 1, 2024, 3:19pm UTC](https://forums.unrealengine.com/t/help-me-assign-players-to-different-teams/1781997/1 "2024-04-01T15:19:59Z")

</div>

so im making a 2v2 map and i have a team selector but if the players dont choose their teams manually, the code will just put all players in team 1

```auto

    OnTeamSelectionEnd(MaybeAgent:?agent):void=
        for(Player: GetPlayspace().GetPlayers()):
           if(Team1.Count()<2): 
                if(not Team1.FindOnTeam[Player]):
                    if(Agent:= agent[Player]):
                        Team1.TeamSelector.ChangeTeam(Agent)
            else if(Team2.Count()<2):
                if(not Team2.FindOnTeam[Player]):
                    if(Agent:= agent[Player]):
                        Team2.TeamSelector.ChangeTeam(Agent)

            Loadout.LoadoutTimer.Start()
            LoadoutSelectSpawners.Teleport(Player)
          

```

---

<div class="post-metadata">

**Author:** ![Hardcawcanary](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hardcawcanary/32/906569_2.png) [@Hardcawcanary](https://forums.unrealengine.com/u/Hardcawcanary)\
**Post date:** [April 1, 2024, 4:13pm UTC](https://forums.unrealengine.com/t/help-me-assign-players-to-different-teams/1781997/2 "2024-04-01T16:13:36Z")

</div>

Are you using 2 team selectors 1 for each team ?.

---

<div class="post-metadata">

**Author:** ![K1ngqGrove](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@K1ngqGrove](https://forums.unrealengine.com/u/K1ngqGrove)\
**Post date:** [April 1, 2024, 8:24pm UTC](https://forums.unrealengine.com/t/help-me-assign-players-to-different-teams/1781997/3 "2024-04-01T20:24:28Z")

</div>

no, each team has a different team selector
