Disabling my clothing remover for one team

local Players = game.Players
local IgnoreTeams = {game.Teams.Grey}
local function CleanPlayer(player)

	for _,team in pairs(IgnoreTeams) do
		if player.Team == team then 
			return 
		end
	end

	local character = player.Character

	if character then
		for _,characterInstance in ipairs(character:GetChildren()) do
			if characterInstance:IsA("Shirt") or characterInstance:IsA("Pants") then
				characterInstance:Destroy()
			end
		end
	end
end

local function CleanPlayers()
	for _,player in ipairs(Players:GetPlayers()) do
		CleanPlayer(player)
	end
end

Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function()
		Player.CharacterAppearanceLoaded:Wait()
		CleanPlayer(Player)
	end)
end)

Thank you so much! I realize what it is and you made my day better!

Mark a comment as solution so that people know the problem is solved

I did mark your comment as the solution. Thank you tho!