Death screen and select spawn

I am coming to the Developer forum to ask how to make a death screen. What I am trying to achieve is that when you are dead, it lets you wait for 10–20 seconds until a respawn button appears. I know that is basic, and I want to know how to make it so that when someone builds a bed, there will be an option to spawn in the bed underneath the spawn button, which would spawn them in the original spawnpoint.

I do not do guis and scripting since I have no idea how do they work, so I might need some help from you guys. Thank you.


This should make you get started: