What should I add to hide only certain teams here?

local Teams = game:GetService("Teams")
	RecordedTeams = {}
	 
	for _,Team in pairs(Teams:GetChildren()) do
	    RecordedTeams[Team.Name] = Team
	    Team.Parent = nil
	end

local function SetTeam(Player,TeamName)
	    if RecordedTeams[TeamName] then
	        RecordedTeams[TeamName].Parent = Teams
	        Player.Team = RecordedTeams[TeamName]
	    end
	end

	for _,Team in pairs(RecordedTeams) do
	    Team.PlayerRemoved:Connect(function()
	        if #Team:GetPlayers() <= 0 then --if the player leaving was the last player in the team
	            Team.Parent = nil
	        end
	    end)
	end

2 comments

0

Can You Tell Me What Line Where You Make The Certain Teams Hidden?

0

I'm trying to hide the yellow team