your script works! However, in your “PlayerLives” Blockly tab in Scene 1 you run a while loop without pausing in-between the steps. This means that when you start Scene1 you switch to Scene 2 very quickly and before the property could be saved in the space.
Try adding a pause block as shown below in your “PlayerLives” coding tab in Scene 1.
Hope this helps!