ball moving to direction of click

Hey everyone I’m looking for a script which can make a ball jump to the direction of a mouse click. So if i click on left of the ball it would jump up to the right , if i click center of ball it would jump up and so on…
Thank you.

Hi, welcome to the forum!

Can you give a bit more detail about what you are doing? Should the ball jump instantly to the clicked position or move gradually or just be pushed in that direction? Is the ball on a flat surface, obstacle course, floating in space… ?

The ball should jump instantly when click on the ball ONLY and it should move to the direction of click. It’s on a flat surface plane(2D).