local plr = game.Players.LocalPlayer

-- Store default animation IDs
local DefaultAnims = {
    idle = {
        "507766666",
        "507766951"
    },
    walk = "507777826",
    run = "507767714",
    jump = "507765000",
    climb = "507765644",
    fall = "507767968"
}

local function StopAnim()
    for _, v in pairs(plr.Character.Humanoid:GetPlayingAnimationTracks()) do
        v:Stop()
    end
end

local function ApplyAnimations()
    local success = pcall(function()
        local Animate = plr.Character.Animate
        Animate.Disabled = true
        StopAnim()
        
        -- Try to set custom animations
        Animate.idle.Animation1.AnimationId = "http://[Log in to view URL]"
        Animate.idle.Animation2.AnimationId = "http://[Log in to view URL]"
        Animate.walk.WalkAnim.AnimationId = "http://[Log in to view URL]"
        Animate.run.RunAnim.AnimationId = "http://[Log in to view URL]"
        Animate.jump.JumpAnim.AnimationId = "http://[Log in to view URL]"
        Animate.climb.ClimbAnim.AnimationId = "http://[Log in to view URL]"
        Animate.fall.FallAnim.AnimationId = "http://[Log in to view URL]"
        
        plr.Character.Humanoid:ChangeState(3)
        Animate.Disabled = false
    end)
    
    if not success then
        -- Revert to default animations
        local Animate = plr.Character.Animate
        Animate.Disabled = true
        StopAnim()
        
        Animate.idle.Animation1.AnimationId = "http://[Log in to view URL]" .. DefaultAnims.idle[1]
        Animate.idle.Animation2.AnimationId = "http://[Log in to view URL]" .. DefaultAnims.idle[2]
        Animate.walk.WalkAnim.AnimationId = "http://[Log in to view URL]" .. DefaultAnims.walk
        Animate.run.RunAnim.AnimationId = "http://[Log in to view URL]" .. DefaultAnims.run
        Animate.jump.JumpAnim.AnimationId = "http://[Log in to view URL]" .. DefaultAnims.jump
        Animate.climb.ClimbAnim.AnimationId = "http://[Log in to view URL]" .. DefaultAnims.climb
        Animate.fall.FallAnim.AnimationId = "http://[Log in to view URL]" .. DefaultAnims.fall
        
        Animate.Disabled = false
    end
end

local function InitializeAnimations()
    if not plr.Character then
        plr.CharacterAdded:Wait()
    end
    ApplyAnimations()
end

InitializeAnimations()

plr.CharacterAdded:Connect(function()
    task.wait(5)
    ApplyAnimations()
end)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: