You can do this with creating a layer above everything. In layer properties disabling Transparent.
On Player health <_ 0 | set 'GameOverLayer' visible
Else | set 'GameOverLayer' invisible
First way, is with using System -> Save:
On start of layout (or whenever your game begins) | System -> Save
On Object clicked restart button | System -> Load the save
Second way is with using System -> Restart Layout:
On Object clicked restart button | System -> Restart layout