The name 'player' does not denote a valid type ('not found').

I have this script:

function Start () {

}

function Update () {

}
function OnColliderEnter (Collision: player) {
If(nocturne.collider.tag == “Finish”);
var nocturne = nocturne.collider;
nocturne.audiosource.enabled; {
}; }

Please help me. :slight_smile:

In Javascript the variable name (player) comes before the colon, and the type (Collision) comes after the colon. At least, that’s what the example in the docs suggests.