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

PLS HELP!! How can I remove all my accessories when I spawn ?

Asked by
xPeyser 15
3 years ago

Hello!

How can I remove my accesories when i load into the game permanently ? So I would remain empty; just with my body parts.

Thanks in advance.

0
Use GetDescendants and loop through the player. Really simple. JailBreaker_13 350 — 3y
0
You should not loop through the player with GetDescendants. That would not work-- check my answer below. ShadyShock 77 — 3y

2 answers

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

Please upvote and mark this as the answer. Put the code into a Script in ServerScriptService.

game.Players.PlayerAdded:Connect(function(player)
player.CharacterAppearanceLoaded:Wait()
for i, v in pairs(player.Character:GetChildren()) do
if v:IsA("Accessory") then
v:Destroy()
end
end
end)
Ad
Log in to vote
1
Answered by
xPeyser 15
3 years ago

Thanks !!

1
I can't upvote since this acc is new. xPeyser 15 — 3y

Answer this question