How to add persistence (in respawn and between sessions) in this code?

Great idea! But I tried all day to implement this and I couldn’t do it =(

Can you help me please?