whats wrong with thsi code parsing error?

says parsing error on teh last line i added a } and got an unexpected } error

using UnityEngine;
using System.Collections;

public class myGUI : MonoBehaviour {
public Texture backgroundTexture;
// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {
	
}
void OnGUI(){
	GUI.DrawTexture (new Rect (0, 0, Screen.width, Screen.height), backgroundTexture);

	if (GUI.Button (new Rect (100, 200, 100, 50), "Play Game")) {
		Application.LoadLevel("level1")

I can’t see the complete script but I guess you missed 2 close curly braces, one for the function and another one for the class.

Make sure that you close all your ‘{’ with a ‘}’ like the other users have suggested:

using UnityEngine;
using System.Collections;

public class myGUI : MonoBehaviour
{
	public Texture backgroundTexture;

	// Use this for initialization 
	void Start()
	{

	}

	// Update is called once per frame
	void Update()
	{

	}

	void OnGUI()
	{
		GUI.DrawTexture(new Rect(0, 0, Screen.width, Screen.height), backgroundTexture);

		if (GUI.Button(new Rect(100, 200, 100, 50), "Play Game"))
		{
			Application.LoadLevel("level1"); // <- You need the ';' to close the method...
		} // <- Closing the if...
	} // <- Closing the OnGUI method...
} // <- Closing the class...