Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to detect empty teams?

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.

1 answer

✓ Accepted answer

Simply do this:

local team = game.Teams.TeamName

if #team:GetPlayers() < 1 then
	--Do stuff
end

1 comment

0

Couldn't find anything like this, thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.