When I Enter Trigger Scene Does not Chnage

#pragma strict
import UnityEngine.SceneManagement;

function OnTriggerEnter () {
SceneManager.LoadScene(1);
}

function Update () {

}

If the scene does not change, what happens? You have to remember to add your scene in the build settings. Put a debug message in your script to make sure it’s firing

Debug.Log("Triggerd");