Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make custom walk animation loop?

Asked by
zGavinz 11
2 years ago
Edited 2 years ago

I am trying to have custom walking animations for my game. The problem is that the animation only fires once while walking, then the player just stands still while walking.

game.Players.PlayerAdded:Connect(function(plr)
    plr.CharacterAdded:Connect(function(char)
        char.Animate.walk.WalkAnim.AnimationId = "rbxassetid://7215280276"
        char.Animate.run.RunAnim.AnimationId = "rbxassetid://7215280276"
    end)
end)

The script is located in ServerScriptService.

Does anyone know how to make the animation loop like the normal animation?

1 answer

Log in to vote
0
Answered by
zGavinz 11
2 years ago

Nevermind, found the solution myself. I had to edit the Animate script and make the AnimationTrack loop.

        -- load it to the humanoid; get AnimationTrack
        currentAnimTrack = humanoid:LoadAnimation(anim)
        currentAnimTrack.Looped = true -- add this
        currentAnimTrack.Priority = Enum.AnimationPriority.Core
Ad

Answer this question