Drag object

Hi i wan to make a script and atach it to a game objectand that script let me to drag that game object.

Look in the Scripting Reference for Input, Raycast, Transform