local plrs = game:GetService(“Players”)
local starterCharacter = workspace.StarterCharacter
plrs.PlayerAdded:Connect(function(player:Player)
player.CharacterAdded:Connect(function(character:Model)
local userID = player.UserId
local hum = character:WaitForChild(“Humanoid”)
local includeRigidAccessories = true
local shum = starterCharacter:WaitForChild(“Humanoid”)
for _ , v in pairs(plrs:GetHumanoidDescriptionFromUserIdAsync(userID):GetChildren()) do
if v:IsA(“Accessory”) then
v:Clone()
elseif v:Clone() then
shum:ApplyDescriptionAsync(plrs:GetHumanoidDescriptionFromUserIdAsync(userID))
player.Character = starterCharacter
end
end
for _ , accessory in pairs(character:GetChildren()) do
if accessory:IsA("Accessory") then
print(accessory)
end
end
end)
end)
–the code that im showing is the code that i have to print the names of the accessories but i just dont know how to destroy all of them but the hair–