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.
✓ ANSWER ACCEPTED
How to detect empty teams?
1 answer
✓ Accepted answer
Simply do this:
local team = game.Teams.TeamName
if #team:GetPlayers() < 1 then
--Do stuff
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Couldn't find anything like this, thanks!