Smooth Moving Transform Problem

I'm trying to smoothly move a transform from one location to another when a button is pressed. this code is in update function. when pressed it snaps to the target location instead of traveling there slowly and smoothly, any help?

if (Input.GetButton ("StartOver")) 
{
//go back to start;
    transform.parent = null;
    transform.position = Vector3.Lerp (transform.position, target.position, Time.deltaTime * 5.0);
}

Your code should work fine for making it move smoothly. If you want it to be slower, you can decrese the value of the third argument, for example to Time.deltaTime * 1.0.

Alternatively, you can use Vector3.MoveTowards instead of Vector3.Lerp if you want the object to move with a constant speed.