**hello everyone **
I would like to know how to make a script that detects if a team is empty or not (team name: Site Director) thanks for helping!
team name :
Site Director
if #game:GetService("Teams"):FindFirstChild("Site Director"):GetPlayers() == 0 then print("EMPTY") else print("NOT EMPTY") end
or you can wrap it in a function and call it whenever ya want :)
You can check the length of Team:GetPlayers() and compare it to 0
local function IsTeamEmpty(team) return #team:GetPlayers() == 0 end local isEmpty = IsTeamEmpty(game:GetService("Teams"):FindFirstChild("Site Director")) print(isEmpty)