I want the script just to remove their hats but keep the hair.
✓ ANSWER ACCEPTED
How do I remove player accessoires but keep their hair?
1 answer
✓ Accepted answer
This can be done with HumanoidDescriptions.
-- access the character and humanoid
local character = workspace:WaitForChild("username")
local humanoid = character:WaitForChild("Humanoid")
-- access the previously existing HumanoidDescription
local HumanoidDescription = humanoid.HumanoidDescription
-- set the value of every non-hair accessory to an empty string
HumanoidDescription.BackAccessory = ""
HumanoidDescription.FaceAccessory = ""
HumanoidDescription.FrontAccessory = ""
HumanoidDescription.HatAccessory = ""
HumanoidDescription.NeckAccessory = ""
HumanoidDescription.ShouldersAccessory = ""
HumanoidDescription.WaistAccessory = ""
-- reapply the humanoid description
humanoid:ApplyDescription(HumanoidDescription)
1 comment
1
It works! Thanks
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
They are all accessories, so you'll have to go find a way to check the ID and see if it's hair or a hat.
How am I suppose to do that? I've never done anything like that before.
I don't think it's possible.