if ( players and getTeamName ( players ) == "Team1" ) then
You can try it
but '''if player is in colshape but not in team "team1", he wont be counted as a number of players inside the colshape.''
idk if its possible, only if you create a table and insert just the players that are in team inside table and then get the players.