Change Scene With Collider Not working

I am trying to make it so that when the “Player” collides with the gameobject it switches scenes however when I try nothing happens. Code in c#:

using UnityEngine.SceneManagement;
using System.Collections;
using UnityEngine;

public class opendoor : MonoBehaviour {
void OnTriggerEnter (Collider other) {
if (other.gameObject.tag == “Player”) {
SceneManager.LoadScene (“Indoors”);
}

	else {
	
	}
		
}

}

Is your gameobject set as trigger? You can do it by checking Is Trigger in collider component options. If you don’t want to do that, you need to use OnCollisionEnter instead.

Also, if I remember correctly, these functions require a rigidbody attached to one of the objects, so make sure you’ve got one.

both objects “Player” and the gameobject have rigidbodys and the istrigger option is turned on, still nothing. I tried using OnCollisionEnter and that didn’t work either