Making an object kill my player

I’m using the default rolling game template and i want to know how to make it so if I hit a cube my player respawns or the scene restarts.

A simple way is to add a trigger to the object that you want the ball to die to, then cast to the character and if it overlaps it will open the level again