Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why do my animations cancel when I walk?

So I am trying to create a crouch button with custom animations.

When the player hits LeftControl the idle crouch animation should play, when they begin to move the walking crouch animation should then play, and if they stop moving around the idle one will play again.

Though what actually happens when I hit LeftControl is, the player goes into the idle crouch animation, but when I go to move forward they just stand up and start running.

Hope this makes sense, I've probably done something stupid somewhere.

1 answer

✓ Accepted answer

You gotta change the animation priority. Right now, the walking animation is prioritized over your crouch animation. Go to the animation editor and set the crouch animation to action, which is the highest priority.

https://gyazo.com/fcc0f5a63c64b9f63f5e2b8b63f2bfed

2 comments

0

It's also possible when loading animation ;) CrouchWalkAnim.Priority = Enum.AnimationPriority.Action, summ like this

0

Knew I'd be doing something stupid. Thanks! :)

This discussion is preserved as it was. New answers, comments, and votes are closed.