Console doesn’t show any errors for me and I made sure that the trigger zone worked.
The script is supposed to be moving the door object upwards but nothing happens.
using UnityEngine;
public class Door_Opening : MonoBehaviour
{
public GameObject Door;
public GameObject Player;
void Ontriggerenter(Collider other)
{
if (other.gameObject == Player)
{
Door.gameObject.transform.position += new Vector3 (0, 5, 0);
}
}
}