I really dont know which accesories you wanna remove or not, I just did read that you mentioned Hair, Face, Hat. And I saw a list you made too in ur replies… So I just copied that. You gotta customize the list for ur needs. And I added a little script that checks all accesories in the character and deletes only the ones that match yout Attachment
list. Be sure to connect the function with your click detector part.
local Attachment = {
"HairAttachment",
"FaceAttachment",
"FaceFrontAttachment",
"HatAttachment",
"WaistAttachment",
"ShoulderAttachment",
"NeckAttachment",
"FrontAttachment",
"BackAttachment",
"WaistBackAttachment",
"BodyBackAttachment",
"LeftShoulderAttachment",
"RightShoulderAttachment"
}
local removeButt = game.Workspace.RemoveAccs.ClickDetector
local function removeAccesories(player)
local char = player.Character
for _, a in pairs(char:GetDescendants()) do -- Get all items in the character
if a:IsA("Accessory") then -- if the item is an accessory then
for _, b in pairs(a.Handle:GetChildren()) do -- get all items in the accessory's Handle
if b:IsA("Attachment") then -- if the item is an Attachment then
local checkAttachment = table.find(Attachment, b.Name) -- compare if the name of the attachment is in the Attachment list
if checkAttachment then -- if the attachment is in the list then destroy the accessory
print(a.Name)
a:Destroy()
end
end
end
end
end
end
removeButt.MouseClick:Connect(removeAccesories)