Level Restart

Hey im making this platform game for me and my friends and i dont know how to restart the level when i hit the block. If you can give me the code that will be great thanks

If you only have a single scene included in your builds, then you can just use:

SceneManagement.SceneManager.LoadScene(0);

And that will work. If you have multiple scenes, you might use the scene name instead:

SceneManagement.SceneManager.LoadScene("NameOfSceneHere");

Good luck!

SceneManagement.SceneManager.LoadScene(SceneManagement.SceneManager.GetActiveScene().buildIndex);