Hello. How do you delete accessories on the local player in a local script? Is it something like:
1 | game.Players.LocalPlayer.CharacterAdded:Connect( function () |
2 | local plr = game.Players.LocalPlayer.Character |
3 | if plr.Accessory then --Not sure what to do at this part and after, I don't even think this is how you put it. |
4 | Accessory:Destroy() |
5 | --??? ... That can't be right... |
6 | end |
7 | end |
I'm sure thats not how you do it. But any help from you is appreciated, thanks.
This is my way of doing it. If it doesn't work then I made an error on my end
1 | game.Players.LocalPlayer.CharacterAdded:Connect( function () |
2 | local plr = game.Players.LocalPlayer.Character |
3 | for i, v in ipairs (plr.Character:GetChildren) do |
4 | if v:IsA( "Accessory" ) then |
5 | v:Destroy() |
6 | end |
7 | end |
8 | end |
Cheers! Zander.
Have you tested it? Because this looks like it should work