I don’t need the one present in Unity. I just need a basic script which I can edit later.
Try the Wiki section on camera scripts:
http://wiki.unity3d.com/index.php/Scripts/Controllers#Camera_Controls
And of course there’s the default ‘Character Controller’ asset bundle with it’s TPC.