this script is supposed to fetch the player and then get all of the accessories in the player and delete them. The script is a regular script in SSS.
game.Players.PlayerAdded:Connect(function(p)
p.CharacterAdded:Connect(function(char)
if p.leaderstats["Time Played"].Value >= 100 then
local children = char:GetChildren()
for i = 1, #children do
if (children[i].className == "Accessory") then
children[i]:Remove()
end
end
end
end)
end)

1 comment
Pls use https://developer.roblox.com/api-reference/function/Humanoid/RemoveAccessories