Hello, I made a module that has a built-in feature that solves this issue
here’s a small code snippet that does what you are asking for
if CONFIGURATION.SanitizeAccessories then
for _, accessory: Accessory in humanoid:GetAccessories() do
for _, descendant: Instance in accessory:GetDescendants() do
if BLACKLIST[descendant.ClassName] then
descendant:Destroy()
end
end
end
end
I also ran into the same issue as you described however I have made a solution for that too