Accessories setting script not working on r6 but in r15

Hey, Can anyone tell me why this script only works on the avatars that are r15 and not r6? -server script service-

local RunService = game:GetService(“RunService”)
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
RunService.Stepped:wait()
for i,v in pairs (char:GetChildren()) do
if v:IsA(“Accessory”) then
print(“Working”)
v.Handle.CanQuery = false
end
end
end)
end)

Replace plr.CharacterAdded with plr.CharacterAppearanceLoaded since CharacterAdded detects when character model has been added and CharacterAppearanceLoaded only when character has fully loaded. When you use CharAdded it doesnt finds accessories because they dont get loaded. Hope i helped. @maximd7

1 Like

Thanks! That helped a lot for my project.