On trigger this will kill you
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Kill : MonoBehaviour
{ // Start is called before the first frame update
void OnTriggerEnter(Collider other)
{
if (GetComponent<Collider>().gameObject.tag == "LeftHand Controller")
{
SceneManager.LoadScene("0");
}
if (GetComponent<Collider>().gameObject.tag == "RightHand Controller")
{
SceneManager.LoadScene("0");
}
SceneManager.LoadScene("0");
}
}