Tap to move object error

Hello.
I am trying to make a game on android.
I want to move my object to the tap position and i want there to be a smooth transition from my object to the tap position.
I have the following code but the move it’s made instantly with no smoothing, even with Vector3.Lerp. Can someone help me?

public class MoveToTap : MonoBehaviour {

    public float speed;
    Vector3 target;
 
    void Update () 
{    
        if(Input.touchCount > 0  Input.GetTouch(0).phase == TouchPhase.Began) {    

            RaycastHit hit;
            Ray ray = Camera.main.ScreenPointToRay(Input.GetTouch(0).position);

            if(Physics.Raycast(ray,out hit)) {

                if(hit.collider != null) {    
                    target = hit.point;
                }
            }
        }
        transform.position = Vector3.Lerp(transform.position, target, Time.deltaTime * speed);        
    }
}
}

Please read this:
http://forum.unity3d.com/threads/143875-Using-code-tags-properly

Then I might be able to see whats wrong

Also, what values are you using for the speed variable and what kind of scale is your scene?

The lerp function your using should gradually take your object to the point that you are tapped onto?

I got it to work. Thanks anyway.

Good, what did you do to fix it.

I dont think the way I did it would have helped because I added a velocity in the direction of the tap point.

The corect code is in my post. I edited it