Issues whit a avatar editor

hello ive been trying to make a avatar editor and ive ran into a issue, i have a delete gui so i can delete acessories and when a acessory is added it doesnt show up there, adding the acessory is made on server which is weird because it should display there, ive some things like making the acessory on client too

i will leave the function to create the guis on client below, if needed i can show you the server script

local function createCatalog(searchTerm, IsBundles)

	if not searchTerm and not IsBundles then
			if ItemType == "Hat" then
			RecommendedSearchType = Enum.AvatarAssetType.Hat
			elseif ItemType == "Hair" then
			RecommendedSearchType = Enum.AvatarAssetType.HairAccessory
		elseif ItemType == "Face" then
			RecommendedSearchType = Enum.AvatarAssetType.FaceAccessory
		elseif ItemType == "Neck" then
			RecommendedSearchType = Enum.AvatarAssetType.NeckAccessory
		elseif ItemType == "Shoulder" then
			RecommendedSearchType = Enum.AvatarAssetType.ShoulderAccessory
		elseif ItemType == "Back" then
			RecommendedSearchType = Enum.AvatarAssetType.BackAccessory
		elseif ItemType == "Front" then
			RecommendedSearchType = Enum.AvatarAssetType.FrontAccessory
		elseif ItemType == "Waist" then
			RecommendedSearchType = Enum.AvatarAssetType.WaistAccessory
		elseif ItemType == "faces" then
			RecommendedSearchType = Enum.AvatarAssetType.Face
		elseif ItemType == "shirt" then
			RecommendedSearchType = Enum.AvatarAssetType.Shirt
		elseif ItemType == "pants" then
			RecommendedSearchType = Enum.AvatarAssetType.Pants
			
		end
		
		
		local recommended = avatarEditorService:GetRecommendedAssets(RecommendedSearchType)

		for i, v in recommended do
		local gui2 = gui:Clone()
			gui2.Name = v.Item.Name
			gui2.Image = string.format("rbxthumb://type=Asset&id=%d&w=420&h=420",v.Item.AssetId)
			gui2.Parent = PlayerGui.EditorGui.Main.Backgorund.AcessoryList
		gui2.MouseButton1Click:Connect(function()
	
			repStore["Luchs avatar editor"].Events.UpdateAvatarOnAdd:FireServer(v.Item.AssetId, humanoid, humanoidDesc, ItemType)
	
		end)
		end
	elseif searchTerm and not IsBundles then
		
		params.SearchKeyword = searchTerm
		
	elseif not searchTerm and IsBundles then

		local recommended = avatarEditorService:GetRecommendedAssets(Enum.BundleType.Animations)
		for i, v in recommended do
			print(v.Item.Name)
			print(v)
			local gui2 = gui:Clone()
			gui2.Name = v.Item.Name
			gui2.Image = string.format("rbxthumb://type=Asset&id=%d&w=420&h=420",v.Item.AssetId)
			gui2.Parent = PlayerGui.EditorGui.Main.Backgorund.AcessoryList
			gui2.MouseButton1Click:Connect(function()
				repStore["Luchs avatar editor"].Events.UpdateAvatarOnAdd:FireServer(v.Item.AssetId, humanoid, humanoidDesc, ItemType)
			end)
		end
		
	end
end
--delete item function
local function createList()
	
	for i = 1, #humanoidDesc:GetChildren() do

		if humanoidDesc:GetChildren()[i]:IsA("AccessoryDescription") then
			print("created destroy list for an item")
			local info = marketplaceService:GetProductInfo(humanoidDesc:GetChildren()[i].AssetId)
			local Button = repStore["Luchs avatar editor"].AvatarEditorAssets.Guis.ImageButton:Clone()

			Button.Parent = PlayerGui.EditorGui.Main.AcessoryDeleter
			Button.Image = string.format("rbxthumb://type=Asset&id=%d&w=420&h=420",humanoidDesc:GetChildren()[i].AssetId)
			Button.Name = info.Name

			Button.MouseButton1Click:Connect(function()
				
				repStore["Luchs avatar editor"].Events.UpdateAvatarOnDestroy:FireServer(humanoid, humanoidDesc, humanoidDesc:GetChildren()[i])
				humanoidDesc:GetChildren()[i]:Destroy() -- note that this is a fix i made so when a item is deleted it also updates it on the client, ive tried the same thing when adding a cessory but dint work
			end)

		end
		end

	
end

i would be thankful if someone could help