Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted Post deleted
2 Likes
When you’re assigning teams check if the current team has the max amount of players it can hold. To get how many players are assigned to a specific team you use the Team::GetPlayers
method.
Here is the documentation for it. Team | Documentation - Roblox Creator Hub
In lua there are comparance operators (<
and >
). I suggest using them in this case.
Here is some pseudo code:
if amountOfPlayers < teamLimit then
--// this means the amount of players on the team is less than the team limit so now set the player on this team and do whatever else you were planning to do.
player.Team = team
end
1 Like
Thanks for the help but i already got it.
Thanks