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?
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.
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
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.