Unexpected token: collider on simple ladder script

hi guys i get and error saying: Assets/scripts/ladder.js(27,34): BCE0043: Unexpected token: Collider. my script is

var Player : GameObject;
var CanClimb : boolean = false;


function Update () {

if(Input.GetKey(KeyCode.W)){ if(CanClimb == true) } else Debug.Log("Player can't climb"); } if(!Input.GetKey(KeyCode.W)){ if(CanClimb == true) } else Debug.Log() 




}



function  (OnTriggerEnter (other : Collider) {;

if(other.gameObject.tag == "Player"){
CanClimb = true; 
}



}


function OnTriggerExit;{ (other ;Collider) )

if(other.gameObject.tag == "Player"){
CanClimb = false;
}




}
}

You’ve got random semi-colons all over the place; it’s the semi-colon between ‘other’ and ‘Collider’ on the line referenced (27) which is your problem. It should be a colon, not a semi-colon. The part of the error message “(27, 34)” means line 27, 34, and points precisely to your problem.

thanks again.