if player lands on object then restart?

so im new to coding and i want to make a game. i just only need to know how to reset my game when i hit a object.
please help

i am using C#

you’ll want to add a trigger collider and reset the level using scenemanger.

void OnTriggerEnter()
{
SceneManager.LoadScene (0);
}