I only want to remove certain accessory types, such as hairs, and hats, leaving glasses, waist and shoulder accessories. What could I add to the script, so it will only target the type of accessory I want to remove?
function remove()
local p = game.Players.LocalPlayer
local c = p.Character
wait(1)
for i,v in pairs(c:GetChildren()) do
if v:IsA("Accessory") then
v:remove()
end
end
end
script.Parent.MouseButton1Down:connect(remove)
I assume I'd have to find the attachment part of the accessory, and target only that. But I'm not sure how I could seek out the attachments for each and every accessory part on ROBLOX.
The script is a local script inside of a ScreenGUI.

2 comments
This works fantastically, thank you very much!
If you need help to find the name of the attachment for other hat types to remove, just ask