Hello my script in removing accessories in a character doesn't work. The error doesn't pop-up in the output.
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) repeat wait()until character character.Humanoid:RemoveAccessories() end) end)
I personally do it this way, not sure if there's any other way.
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:connect(function(char) for _,v in pairs(char:GetChildren()) do if v.ClassName == 'Accessory' then v:Destroy() end end end) end)