How to kick the ball towards mouse postion?

Hello,

I want to write a script that forces a ball to move to the point where the mouse cursor is located.

What exactly should I write?

I found this question but didn’t help: HERE

Thanks.

Could you elaborate in which way it doesnt help?
Having a glance at that answers topic, the script seems to do what you want, doesnt it?

Actually It didn’t work. I attached the script written in that page to my ball, but in runtime I click the mouse to location I want and NOTHING happens.

If that script doesn’t work, is there another one that can do the job ?