Told to add ; to a } ???

I check the console when i try to start my game and it wont start the game unless i add a semicolon to a closing tag ( } ). So i do this even though it doesnt make sense. Then it tells me to remove it. Im not sure what to do :frowning:

Here is my “faulty code”:

	function(OnMouseOver) {
		if(Input.GetMouseDown(0)) {
		Application.LoadLevel("Level 1");
		renderer.material.color = Color.red;
	}
}

ANY HELP IS APPRECIATED!!!
Thanks.

You are getting the error because this is not how you declare a function. The first line should be:

function OnMouseOver() {