Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to remove Acessory from a player?

Hello, i am developing a customization menu and you can choose your hair,eyes,acessories but i don't have idea about how to remove player currently acessories and hair.

Who can help me? PLZ :D

PS: R15 Version / Sorry... bad english.

1 answer

You could do this:

for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
if v:IsA("Accessory") then
v:Remove()
end
end

4 comments

0

When i use your code, it remove the new player hair and not the old.. sad

0

Try making it where it removes the player's current accessories before adding the new one

0

try adding the function characteradded in a script

0

@Anubizx you need to add it at the very beginning of your script, or you could add it to a characteradded event like ^ said

This discussion is preserved as it was. New answers, comments, and votes are closed.