-- Define player and character references
local player = game.Players.LocalPlayer
local character = player.Character

-- Return if character does not exist
if not character then return end

-- Find Humanoid or AnimationController and stop all animations
local humanoidOrAnimController = character:FindFirstChildOfClass("Humanoid") or character:FindFirstChildOfClass("AnimationController")
if humanoidOrAnimController then
    for _, animTrack in ipairs(humanoidOrAnimController:GetPlayingAnimationTracks()) do
        animTrack:Stop()
    end
end

-- Modify animation IDs if Animate object exists
local animate = character:FindFirstChild("Animate")
if animate then
    local animations = {
        fall = "616157476",
        walk = "3489174223",
        run = "3489173414",
        idle1 = "3489171152",
        idle2 = "3489171152"
    }

    if animate:FindFirstChild("fall") then
        animate.fall.FallAnim.AnimationId = "http://[Log in to view URL]" .. animations.fall
    end
    if animate:FindFirstChild("walk") then
        animate.walk.WalkAnim.AnimationId = "http://[Log in to view URL]" .. animations.walk
    end
    if animate:FindFirstChild("run") then
        animate.run.RunAnim.AnimationId = "http://[Log in to view URL]" .. animations.run
    end
    if animate:FindFirstChild("idle") then
        animate.idle.Animation1.AnimationId = "http://[Log in to view URL]" .. animations.idle1
        animate.idle.Animation2.AnimationId = "http://[Log in to view URL]" .. animations.idle2
    end
end

Embed on website

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