It says to instead use “SceneManager.LoadScene” , but when I do it gives me an error. When I look for potential fixes it give me an error with those fixes.
Add this line at the top: using UnityEngine.SceneManagement;
and don’t forget to insert a parameter SceneManager.LoadScene (0);