I’m only asking for script that changes the scene if I press E, How?
ScriptReference - SceneManagement.SceneManager.LoadScene
Put the two together:
void Update () {
if (Input.GetKeyDown(KeyCode.E))
UnityEngine.SceneManagement.SceneManager.LoadScene("xx");
}