#why does tool animation won't load? (client script)

1 messages · Page 1 of 1 (latest)

celest stream
#
local ToolIsEquippedAnim = script:FindFirstChild("ToolIsEquippedAnim")

local player = game.Players.LocalPlayer

item.Equipped:Connect(function()
    local humanoid = item.Parent:FindFirstChild("Humanoid")
    if humanoid then
        local animator = humanoid:FindFirstChild("Animator")
        if animator then
            local animationTrack = animator:LoadAnimation(ToolIsEquippedAnim)
            animationTrack:Play()
        end
    end
end)```
kindred finch
#

Try setting the Animation Priority of your EquippedAnim to Action

weak yew
#

Pretty sure the humanoid variable is wrong, item.Parent for the tool would be backpack, since the tools stay there, add another .Parent there maybe (script.Parent.Parent:FindFirstChild("Humanoid") )

kindred finch
weak yew