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)
Try this:
game.Players.PlayerAdded:Connect(function(p) p.CharacterAdded:Connect(function(char) wait(1) --wait for accessories to load (if any) local humanoid = char:WaitForChild("Humanoid") if p.leaderstats["Time Played"].Value >= 100 then humanoid:RemoceAccessories() end end) end)