|
| 25 Nov 2017 04:25 PM |
| I want to have imits to a team say like the blue team can only have 2 players and no oone else can get in becuase 2 is the limit. Plz help i have been searching for ages and i need help on this |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 25 Nov 2017 04:27 PM |
| This all depends on how you add them to the teams in the first place. |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2017 04:28 PM |
| I am doing it with a GUI so when they clikc it they switch teams and that works perfectly i just want to set a limit |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 25 Nov 2017 04:30 PM |
if #game.Teams.TargetTeam:GetPlayers() >=2 then print("team is full") else player.Team = game.Teams.TargetTeam end |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2017 04:32 PM |
| How do i put which team i want to limit? |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 25 Nov 2017 04:35 PM |
| When they click the GUI you need to somehow get the team from that and edit my script accordingly. |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2017 04:37 PM |
| that sorta makes sense but couldnt it limit by the colours??? |
|
|
| Report Abuse |
|
|