Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to remove Acessory from a player?

Asked by
Anubizx 76
7 years ago

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

Log in to vote
0
Answered by
Nikkulaos 229 Moderation Voter
7 years ago
Edited 7 years ago

You could do this:

for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
if v:IsA("Accessory") then
v:Remove()
end
end
0
When i use your code, it remove the new player hair and not the old.. sad Anubizx 76 — 7y
0
Try making it where it removes the player's current accessories before adding the new one im_Draco 3 — 7y
0
try adding the function characteradded in a script frederikhome 44 — 7y
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 Nikkulaos 229 — 7y
Ad

Answer this question