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

Accessories are not loaded with CharacterAdded?

Asked by
Macbane 46
5 years ago
Edited 5 years ago
local ignoreAll = {"a"}
game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
        print("s")
        for i, v in pairs(character:GetChildren())do
            print(v)
            print(v.ClassName)
            if v:IsA("Accessory")then
            table.insert(ignoreAll,v)
            end
        end
        for i,v in pairs(ignoreAll)do
        print(v)
        end
    end)

end)

What's the best way for me to wait for the accessories to load?

0
Oh rip, okay then good luck with it. superalp1111 662 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Using a ChildAdded event would be better for you. Let's say you found Char with Character Event, then...

Char.ChildAdded:Connect(function(Child)
    if Child:IsA("Accessory") then
        --Do your stuff
    end
end
Ad

Answer this question