Expecting ":", but found "=" - HELP PLEASE

Hey, this is the line where it gives error:
Time.timeScale = 0;

Full Script:

var paused : boolean = false; var
myCheck : boolean = false;

function Update () {
if(Input.GetButtonDown( “Pause” )) {
(!paused); {
Time.timeScale = 0;
paused = true;
}else{
Time.timeScale = 1;
paused = false;
}
function OnGUI() {
if( paused ) {
if(GUI.Button (Rect ( 10, 50, 100, 30), “Resume” ))

Time.timeScale = 1.0f; paused =
false; }
if(GUI.Button (Rect ( 10, 90, 100, 30), “Options” )) { }
if(GUI.Button (Rect ( 10, 130, 100, 30), “Quit” )) { } }

PS: I’m new to Unity so sorry if it’s easy but I can’t =)
Thank you! Hope you can answer this.

I think that you just messed up a few curly braces. Try this and let me know if it works

var paused : boolean = false; 
var myCheck : boolean = false;

function Update () 
{ 
	if(Input.GetButtonDown( "Pause" )) 
	{ 
		paused = !paused; 
		if (paused)
		{ 
			Time.timeScale = 0; 
			paused = true; 
		}
		else
		{
			Time.timeScale = 1; 
			paused = false; 
		} 
	}
}

function OnGUI() 
{ 
	if( paused ) 
	{ 
		if(GUI.Button (Rect ( 10, 50, 100, 30), "Resume" ))
		{
			Time.timeScale = 1.0f; 
			paused = false; 
		}
	}
	if(GUI.Button (Rect ( 10, 90, 100, 30), "Options" )) 
	{ 
	} 
	if(GUI.Button (Rect ( 10, 130, 100, 30), "Quit" )) 
	{ 
	} 
}