How to save the game on PC and mobile

You set your stuff to variables for example global structure
Like you make structure called Save and add child to it make it number variable and call it PlayerHP
Now you call it by GlobalVariable(Save.PlayerHP)
But if you add another child lets say PlayerAmmo
You call it by GlobalVariable(Save.PlayerAmmo)

Now instead of saving both variables separately you do it only for structure variable which in this case is Save
So you go with