For i,v function

Hello guys, I’m making an Outfit Customization, and I need to take that when I select a new Accessory it looks for all the “stock Roblox Accessories” and delete them; I can access to the name of the stock accessories and I tried to make that when the name of Roblox Stock Accessoris (v) = stock accessories inside the folder (search), the script delete them, but it didn’t run I the game doesn’t output any error, so I want to know how to change it and maybe how can I make it

for i,v in ipairs(x.Character:GetDescendants()) do
				for i,search in ipairs(x.PlayerGui.CharacterCustomization.Menu.StockRobloxItems:GetDescendants()) do
					if v.Name == search.Name then
						v:Destroy()
					end
				end
			end

Try printing v and search at each step to see if its actually checking every item. I don’t think you need two loops though, since you could do this:

local stockItems = x.PlayerGui.CharacterCustomization.Menu.StockRobloxItems

if stockItems[v.Name] ~= nil then
    v:Destroy()
end