I have been looking for a week now and I can not find ANY script that works in unity. Even the ones copied DIRECTLY off this website will have at least 6 compiling errors. I have no idea how to code with unity so I can not just simply track down the problems with these 15 lines of code. Either unity changes how you need to code too often that anything could get done on it, or no one knows how to code with unity. Please prove me wrong.
Have you gone to Learn and followed the starting tutorials? I would suggest roll-a-ball as a place to start.
If you are having trouble with compiler errors, then please make a post with the code, the error and any additional information that might help us help you.
If you post code, please use code tags so the code will be formatted is readable manner.
To copy a compiler error, select the error in the console and copy the text that appears in the lower box. You will need to copy one error at a time.
yeah the Learn section has great tutorials for starting to learn programming within Unity.
Although I tend to suggest a slightly less direct approach to learning coding. I suggest going to Codecademy and do the first couple learning modules there (it only takes a couple nights). What you learn won’t be Unity specific, but then the basics of programming aren’t Unity specific, and the lessons there are both really good and free.
Do every tutorial here - http://unity3d.com/learn/tutorials/topics/scripting
Go slow and make sure you master all those concepts or you’re going to be in a world of hurt. JUST DO IT.