How to save all progress after closing the game

I have several global variables that I would like to save when one closes the game but I do not know very well how to save them all, to read a storage they have to be scene variables instead of global variables and I do not know very well how to make the scene variables have the same value as the global ones, could anyone help me?

Look here basic save&load example GDevelop 5