Animate script that uses the user's walk instead of run animation

Wordy title, but it gets the point across.
I was tired of my walk animation never being used unless I was on a mobile device or using controller, so I decided to modify the default animate script to use the Walk animation when walking, instead of the run animation.

The default ‘runspeed’ and ‘walkspeed’ used to trigger and tween the animations can be configured via a NumberValue inside the script. By default I have the RunSpeed set to 24, but you can easily change it to match your game’s run tool/gui/key.

Just parent the script to StarterCharacterScripts and configure the Walkspeed/Runspeed to your liking and you’re good to go.

47 Likes

I know that SnakeWorl’s The Streets 2 has an implementation of movement animations like this. I honestly thought it was a waste to only use those animations on mobile or controllers - if you apply it properly, the Run animation on R15 actually works very well for sprinting but not so much for walking or all movement paces.

Nice little trinket you got here.

1 Like

Thanks! It’s not the most complicated piece of code in the world, but it does its job. Hoping it can get some use out here, or at least inspire someone to make something like it for themselves.

1 Like

Thank you so much for this! It definitely makes walking looks better for my game! :smile:

1 Like

Thankw, and great job making this! :+1:

Thank you for providing this :+1: ! However why some of the animations are gone? There should be “toolnone”, “toolslash”, “toollunge” etc. in the Animate script inside the character.

Normally:

After using the script:
image

I’m pretty sure those animations are hardcoded onto the Animate script and the descendant values are merely used to apply modifications to the internal table of animations (that includes AnimationIds and weighting). The absence of those values shouldn’t have an impact on your work. Correct me if I’m wrong.

There are animation inside the values, I wish to change the animations that were gone, like Sit, toolnone etc.

Re-read my post.

In your use case, you can probably add the missing values yourself. The Animate script should then use those as the animations instead of the ones hardcoded in the script.

I’ve never really forked or checked through the Animate script. Though, again, the absence of these values should not affect you. If you wish to modify the animations used, change the ids in the script or add ValueObjects with Animation descendants.

After trying to fork the Animate script, I was very lucky to find this. Thank you!

Hello there. Sorry for the 2 year old bump, but it seems like the script doesn’t work with the new Roblox emotes (it won’t play them). Any plans to fix that?

1 Like

you might can copy paste the roblox emotes ID , from the original ones, to the this script, it works, atleast it should have been, there should have been a place to put them

Im trying to update this script with the new movement update: Strafing!
yeah they added strafing to studio, so im fixing the script that will make this work

1 Like