How to change roblox default walking animation

Hi, I am currently trying to create my own game, but I got a problem.

I would like to change the Default Roblox Walking Animation, and replace it by my own animations.
It makes 4 hours that I’m trying to fix it, but I unfortunatly failed; and it’s slowly making me crazy.

My game is using R15 and I own the animations I tried to use.

I tried to:
-Loop and Unloop the animations
-Creating a script who deletes/disable the default script, to create a new one
-Replacing the script using StarterCharacterScript
-Making another animations
Everything failed.

I already looked on youtube and on old DevForum posts, but nothing worked for me.

Well, I’m asking for your help, can anyone help me?

34 Likes

Put this script in ServerScriptService:

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

You need to replace YOURANIMATIONID with your animation id.
Also , you need to make the animation looped and set its priority to “Action”.
I hope this helped! :slight_smile:

72 Likes

Wouldn’t you set the animation priority to movement? Or is movement used for something else?

6 Likes

I think you can set it to Movement too but I just prefer Action. :smile:

4 Likes

How stupid I am !
I never heard of priorities before…
Thanks, You helped me a lot!

6 Likes

I’d set it to Core, as that way you can easily overlay idle, movement, and action animations. Setting it to Action will have it play over the current animation no mater what.

7 Likes

Turns out that it doesn’t matter anyway. The animation script sets the priority to Core for all animations (but sword animations) upon being loaded.

Regardless, Core should still be the priority for your walk animation, since the default walk animation also has its priority set to Core.

6 Likes

Oh, huh. Learn somethin’ new every day. I don’t usually change animations like that; I make my own animation script, so I didn’t know that the Animate script did that.

7 Likes

I needed the same thing so I tried using your script but when I walk there is the run animation so I tried to remove the run animation string and now there is the default walk animation

3 Likes