Help moving an object towards one it is looking at.

I have an object looking towards and object. I thought this would in turn change the z-axis to point towards that object so incrementing the z-axis would move the moving object towards the target. Needless to say it doesn’t work that way. Could anyone help me move an object towards a target it is looking at?
Thank you for all your help.

If the object is looking at the target, then you should just be able to do:

transform.Translate(Vector3.forward * speed * Time.deltaTime, Space.local);