BCE0044: expecting ), found '{'.

function OnTriggerEnter(other : Collider) {
if (Input.GetKey(KeyCode.esc)
{
Application.LoadLevel (3);
}

I’m kinda new to coding I made this from scratch I dont really see the error… can someone help?

You have unbalanced () parens.

This line:

if (Input.GetKey(KeyCode.esc)

Should be:

if (Input.GetKey(KeyCode.esc))

You’ll find it easier to spot errors if you learn to indent blocks of code that are contained within brackets - you’re currently missing a closing } at the end of the function, and a closing ) on line 2. Also KeyCode.Escape, not esc. Try this instead:

function OnTriggerEnter(other : Collider) {
    if (Input.GetKey(KeyCode.Escape)
    {
        Application.LoadLevel (3);
    }
}