Make cube fall off when not on a plane and after 5secs of falling it resets the scene

I need the cube to respawn when falling off but need the cube to fall off the plane. I want the same thing with obstacles. When the cube touches it, the cube respawns and scene resets. Also need cube to go to next seen at a certain part. Hopefully I can get this done