I am relatively new to coding and was wondering how to add certain variables I have created to the save/load script.
I have not played around with io.write or io.open yet. So I figured it would be best to ask first before trying.
My reasoning behind this is save/load does not save custom variables, so it will not save a timer.. If the player were to save and then load, the timer would be the same as when the player went to load, not when they saved.. If the player were to leave the game and start with a fresh start, the timer would reset, along with any other custom variables.
So the Save/Load that we have now is okay. But it does not completely work for the project i am working on. If I could add my own to save and then load, I think this would fix my problem.
EDIT: I know it can be done. I'm just not sure how to do it. Where to add it. I understand io.open, opens a file and io.write im assuming writes the info in a file that will be opened once the player loads with io.open.