How to make player dive sideways?

When the player presses a mouse button, I want the player to dive sideways. How is this possible? ( I know how to detect a mouse button click, but I am unsure about the diving part)

You would need to have a diving animation with the priority being action. Then simply animate it to dive sideways.

1 Like

oh. thank you! I thought it would just make the player tp back to the original spot. Thank you so much!

1 Like

Oh, 1 problem. When the animation is finished, the player gets tped back to the original spot.

Oof. Iā€™m not sure, maybe when the player gets tped you can try teleporting the player to the spot they were supposed to be in?