Having trouble with making a 'bunny animation'

I am making movement buttons (forward, left, right) for a cube that will jump from one platform to another.

When you click the button it will play an animation (for example pressing forward-plays a forward animation)
The first problem I encountered was that the block went back to its original position:

-I solved that by doing: AdjustSpeed(0) but when you click the button again it should jump forward, but instead of doing that the animation just starts over. I have tried making an idle animation that was supposed to ā€˜separateā€™ them and then run the next movement animation but that didnā€™t work either and Iā€™m not sure how I could to solve this. Any idea on how I could make this work?

Thanks in advance

This is what i want to actually make:

1 Like

Animations usually donā€™t move the character. You have to either teleport the character after the animation finishes playing or make the animation only a vertical hop (Y axis) and then ā€œanimateā€ the character moving in a script (e.g. with TweenService).

You might be able to animate the HumanoidRootPart, but Iā€™m honestly not sure as Iā€™ve never tried it.

2 Likes

Iā€™d make it so the animation will let you only jump once, and have it set as an action - try doing this and see if you have different results.

Not sure how that would solve the problem, the animation can only be played once as mentioned.

Is the animation an action (Enum.AnimationPriority.Action)?

Yeah not sure as animations uses keyframes that has a set position value assigned to it; meaning it does not increment. So i think Iā€™d need to use CFrame of some sort as it dosenā€™t have a set value

Yes, but it did not make a difference.

So what i will need to do is use CFrame as it increments which animations and tweening does not, they use set positions meaning updating the models positionā€™s wonā€™t do anything as they will still follow the keyframes.

I presume that you canā€™t make it an animation after all - try using CFrames instead.

1 Like

Wait, whatā€™s wrong with making a vertical hop and then tweening the character forward?