Failed to load animation with sanitized ID rbxassetid://000000000: AnimationClip loaded is not valid

Could someone help with my animation error?
Failed to load animation with sanitized ID rbxassetid://18774757356: AnimationClip loaded is not valid. (x2)

Here’s my module

local manager = {}

_G.animations = {}
_G.humanoid = nil

manager.set_humanoid = function(humanoid: Humanoid)
    _G.humanoid = humanoid
end

manager.clear_animations = function()
    table.clear(_G.animations)
end

manager.add_animation = function(key: number, animation: Animation)
    if _G.humanoid then
        local humanoid: Humanoid = _G.humanoid
        local track = humanoid:FindFirstChildWhichIsA('Animator'):LoadAnimation(animation)
        _G.animations[key] = track
    end
end

manager.play_animation = function(key: number)
    for _, track: AnimationTrack in _G.animations do
        track:Stop()
    end
    _G.animations[key]:Play()
end

manager.stop_all_animations = function()
    for _, track: AnimationTrack in _G.animations do
        track:Stop()
    end
end

return manager

Here’s my local script

task.wait(1)

animationHandler.set_humanoid(character:FindFirstChildWhichIsA('Humanoid'))

animationHandler.add_animation(gameEnums.animationType.idle, replicatedStorage.Animations:WaitForChild('Idle'))
animationHandler.add_animation(gameEnums.animationType.hit, replicatedStorage.Animations:WaitForChild('WallHit'))
2 Likes

the exact same problem has been happening to me all day, probably a roblox issue

:wave: I found the problem. I wasn’t uploading an actual animation. I downloaded an animation from the Marketplace using game:GetObjects("rbxassetid://000000") & uploaded the bundle, instead of the actual Keyframe sequence. :grimacing:

I suggest you double check you’re uploading a Keyframe sequence, and that you’re uploading the animation under the creator of the game. :+1:

I dont use animations from the marketplace i upload them and then it shows this error when trying to load a track.

Some photos:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.