Scaling script issue

I keep getting the crappy old “;” error and the Invalid token ‘;’ in class, struct, or interface member declaration (CS1519) (Assembly-CSharp), the script looks okay to me but I am trying to figure out why it is not working.

I am using a script the scales the GUI based on the resolution of the screen.

using UnityEngine;
using System.Collections;

public class GameOver : MonoBehaviour {
	private var originalWidth = 1920.0;  // define here the original resolution
	private var originalHeight = 1080.0; // you used to create the GUI contents
	private var scale: Vector3;       **<ERROR HAPPENS HERE, ; ERROR** 
	public GUISkin myGUISkin;
	public Texture gameOverTexture;
	private bool gameOver = true;

	void  Start (){
		Time.timeScale = 0.0f;

	void  Update (){
		if ( PlayerLives.lives <= 0)
			Time.timeScale = 0.0f;
			gameOver = true;
		} else {
			gameOver = false;
			Time.timeScale = 1.0f;
	void OnGUI()
		scale.x = Screen.width/originalWidth; // calculate hor scale
		scale.y = Screen.height/originalHeight; // calculate vert scale
		scale.z = 1;
		var svMat = GUI.matrix; // save current matrix
		// substitute matrix - only scale is altered from standard
		GUI.matrix = Matrix4x4.TRS(, Quaternion.identity, scale);  
				if (gameOver) {
						GUI.DrawTexture (new Rect (0, 0, Screen.width, Screen.height), gameOverTexture);
		GUI.matrix = svMat; // Responsive GUI, restores original matrix

I put a bold where exactly I am getting the error

I get the ; error and the Invalid token ‘;’ in class, struct, or interface member declaration.

You’re trying to use .js syntax in a .cs script. Use:
public Vector3 scale;

In addition to the error identified by @AlwaysSunny, I suggest you avoid ‘var’ when using C#. In the case of lines 6 and 7, its use hides the problem you would have ‘down stream’ when it originaloWidth and originalHeight doubles instead of floats:

 private float originalWidth  = 1920.0f;  // define here the original resolution
 private float originalHeight = 1080.0f;