What i mean is how can i get a script that makes it so there can only be one player on a team. I have three teams.
- Smashers
- Crushers
- Destroyers
What i mean is how can i get a script that makes it so there can only be one player on a team. I have three teams.
Use a PlayerAdded connection on the team and check if there is more than one person by using GetPlayers() on the team. Example:
local Team=game:GetService'Teams'.TeamName
Team.PlayerAdded:Connect(function(Player)
if #Team:GetPlayers()>1 then
Player.Team=nil
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
On top of that check which team doesn't have a player in it and put that player in it and of course don't forget limiting your max players per server to 3 players only
Si i did that already.