how to work with GUI's

Hi, I want have a GUI score in my game but it keeps giving errors here’s my code:

void OnGUI(){

		GUI.Label (Rect (10, 10, 100, 20), "Score: "+ score.ToString);

Whenever you post a question about an error you should always post the full error message you received.

In this particular case however, its is exceedingly, painfully obvious that you are missing a closing brace on the method as well as the entire class that needs to surround it in C#.

Some places to start to learn how to write a script:

http://catlikecoding.com/unity/tutorials/clock/

C# requires the new key word in front of rect. Also missing a }