How to make custom R15 walk and run animations work?

Does anyone mind helping out in telling me how to script a walk and run cycle? I already have the animations done, I just want to play them now when a player is at a speed of walking and at a speed of running. Thanks for the help!

1 Like

There’s a really good animation script I use for that… It should be somewhere on devforum… Sorry can’t access studio right now!

You could copy the the Animate local script from the player’s character when you play test the game with your character, then inside the children of the local script, there will be individual animation names, and you should change the AnimationId of your respective animations you’ve created to the AnimationId of your custom animations.

I have already tried that solution and the problem is that either the animation really slows down at low walk speed (8) or does not want to play (the running animation)

You should know that on mobile, mobile players can control their character walkspeed through moving the button slightly, this will trigger the walk animation. If you’re on PC/move the button to its bounds on mobile, it will trigger the run animation. I assume you want it so that whenever the user inputs a key, it will run the running animation. Otherwise you will need them to play the wall animation you just created. By default, you should set the run animationId inside the local script to the walk animation AnimationId of yours.

Didn’t think of looking for something like this, thanks!