Save and load a game

okay so im trying to save and load my game and there has to be a easier way instead of having to set all the variables? i noticed this setting on a variable. i havent been able to find much info about this. does anyone know what this do or got any ideas on a easier way to save and load a game