animation script

can anyone make me a simple script that will activate a specific animation whenever i press a button that was assign for it?

what function will i use? where will i place the script?

please just a simple code and i will do the rest

Here is some info to get the basics:

http://unity3d.com/support/documentation/Manual/Animation.html

And

http://unity3d.com/support/documentation/Manual/Character-Animation.html

And

http://unity3d.com/support/documentation/ScriptReference/Animation.Play.html

And try some of the tutorials like Lerpz:

http://unity3d.com/support/resources/tutorials/3d-platform-game

Just asking someone to "write my code" is not what Answers is about. At least show that you've made an effort to learn the very fundamentals of Unity and game programming. Then people will be more than willing to help.