I'm trying to reset parts to default when a team is empty, but don't know how to detect empty teams. I couldn't find any topics on this anywhere, so I figured I'd ask.
Simply do this:
1 | local team = game.Teams.TeamName |
2 |
3 | if #team:GetPlayers() < 1 then |
4 | --Do stuff |
5 | end |