How to create a camera follow setup.

I want the camera to look at an object that is moving. I want to have the camera try to get directly behind the object at a distance, and there needs to be a smooth transition in the camera movement.

I have tried all sorts of things like a spring joint and a lerp script, but they don'd seam to work, could anyone help?

Go and download the penelope tutorial, they have a script in there that does exactly what you are asking.

http://unity3d.com/support/resources/tutorials/penelope