How do I use catalog animations on the client

I’m attempting to create and load an animation from the catalog onto the client because I found a method the other day using insertservice but that is only for the server. I get this error when normally trying to load catalog animations.

Failed to load animation - sanitized ID: rbxassetid://4689362868 (x3)

Here’s a similar problem I had a while back, it uses pretty much the same solution. In simple terms you must import the animation using this code in the console:
game:GetObjects("rbxassetid://animidhere")[1].Parent = workspace

Not sure if this will 100% work though as I haven’t done this sort of thing in a while

4689362868 is the animation’s catalog ID. 10714360343 is the animation’s asset ID. You need the latter.

--server script
local insertService = game:GetService("InsertService")
local animationId = 4689362868

local success, result = pcall(function()
    return insertService:LoadAsset(animationId)
end)

if success then
    local animation = result:FindFirstChildOfClass("Animation")
    if animation then
        print(animation.AnimationId) --asset url followed by 10714360343
    end
else
    warn(result)
end
2 Likes