I don’t have a script because everything I tried failed so do you guys have an answer?
i am trying to make a script that makes a player take damage and eventually switch the scene when the enemy gets to close
first in need a health script
I used this guy’s video it’s a really great over-all first-person script:
add a script on enemy with on collision and load scene and a triggered box collider on the enemy
SceneManager.LoadScene(“scene name or number in build index”);
Also must have this in the top where it says using UnityEngine;