need help scripting main menu

I’m pretty new to JavaScript and I’m been trying to script my main menu but it hasn’t seem to work im trying to create a
3d menu with 3d text I have play game options and survival and quit on my menu and I play an animation so they on come on screen but I want to play an animation when I click options they fly off screen and the option stuff comes on screen

A suggestion would be for you to have all of your menu contents rendered through a camera using orthographic projection, then when there is input received on the button simply lerp the camera to a new position so that it is now showing everything you need for options menu. That should solve everything that you need in a basic fashion.

Actually an even simpler method would be to use the built in script “Smooth LookAt” and just change the target using an external script. (To an empty or something.)

Are you asking how to procedurally animate or how to import an animation? If it’s the former, it’s the same way you would animate anything – by translation, rotation and scaling (and mesh manipulation but no one likes to do that unless it’s really unavoidable =P). If it’s the latter, then just import the model with the animation into Unity.