Issue with mouse position

Hello! Basically i want a certain gameobject to move at the same time with the mouse, and to do that im trying to move it in the position of the mouse, which sounds simple enough but for some reason gives me a lot of trouble.

Here’s a video that can hopefully explain the issue better than i did: Imgur: The magic of the Internet

Any help is appriciated

Paste your code. Shows us what you tried already. Don’t forget to use code tags: