# How to exclude a team from team balancing?

**URL:** <https://forums.unrealengine.com/t/how-to-exclude-a-team-from-team-balancing/1958870>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [August 2, 2024, 2:11am UTC](https://forums.unrealengine.com/t/how-to-exclude-a-team-from-team-balancing/1958870 "2024-08-02T02:11:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luistreak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Luistreak](https://forums.unrealengine.com/u/Luistreak)\
**Post date:** [August 2, 2024, 2:11am UTC](https://forums.unrealengine.com/t/how-to-exclude-a-team-from-team-balancing/1958870/1 "2024-08-02T02:11:37Z")

</div>

I have a map with 5 teams, where the first team is used to place the players so they can select the teams.

I wanted to use a script to balance teams, and found [Team Multiplayer Balancing | Unreal Editor for Fortnite Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/uefn/team-multiplayer-balance-in-verse). However, this takes every single team into account.

```auto
        FindSmallestTeam(CurrentTeamSize : int) : ?team =
            var SmallestTeam : ?team = false
            var TeamSize : int = CurrentTeamSize
 
            for(Team : Teams, CandidateTeamSize := GetPlayspace().GetTeamCollection().GetAgents[Team].Length, TeamSize > CandidateTeamSize):
                set SmallestTeam = option{Team}
                set TeamSize = CandidateTeamSize
                Print("Found a team with less players: {CandidateTeamSize}")
            return SmallestTeam 

```

How can I make this function ignore team 0, so that players are only redirected to other teams (1,2,3,4)?
