I’ve been trying to put a script together that has a timer that counts down and displays it with a GUIText, so far i have.
var myTimer : float = 60.0;
function Update ()
{
{
GUIText.text = "Time Remaining"+myTimer;
}
if(myTimer > 0)
{
myTimer -= Time.deltaTime;
}
if(myTimer <= 0)
{
Debug.Log("GAME OVER");
}
}
I keep getting this error BCE0044: expecting :, found ‘=’.
Any help?
var myTimer : float = 60.0;
function Update ()
{
//Uneeded brackets.
GUIText.text = "Time Remaining"+myTimer;
if(myTimer >= 0)//Forgot equal sign
{
myTimer -= Time.deltaTime;
}
if(myTimer <= 0)
{
Debug.Log("GAME OVER");
}
}
Should work. 
Thank you very much, works perfectly 
Hit another wall already.
var myTimer : float = 60.0;
function Update ()
{
//Uneeded brackets.
guiText.text = "Time Remaining"+myTimer;
if(myTimer >= 0)//Forgot equal sign
{
myTimer -= Time.deltaTime;
}
if(myTimer <= 0)
{
guiText.text = ("GAME OVER");
yield WaitForSeconds(2);
{
Application.LoadLevel ("Level1");
}
}
}
and i keep getting BCE0044: expecting :, found ‘;’.
it seems to be referring to the Application.LoadLevel part of the script.
Is the space between LoadLevel and ( valid?
I’ve had it set up both with and without the space and it didn’t appear to change anything.
have you tried using the number instead of the name?
Have you added the level to your build?
Have you tried commenting out the waitforseconds to ensure that isn’t an issue?
I’ve tried all the suggestions you’ve given but nothing seems to help. Thanks for trying 
I managed to get it working thanks to Kweiko
var myTimer : float = 60.0;
function Update (){
//Uneeded brackets.
guiText.text = "Time Remaining : "+myTimer;
if(myTimer >= 0){//Forgot equal sign
myTimer -= Time.deltaTime;
}
if(myTimer <= 0){
loadMyLevel();
}
}
function loadMyLevel(){
guiText.text = ("GAME OVER");
yield WaitForSeconds(2);
Application.LoadLevel("Level1");
}