Hello! I made a data-saving system for my game, and it’s working perfect; it saves players’ inventory, points, etc., but I want to do more.
like this:
If the player leaves the game with saved data, it will countdown with os.time(). I also added loading data with the clicking button system, so if you click that the countdown will be paused. If the player is not going to load their data or is not going to join the game, and if the countdown ends, the player’s data will be deleted so I want to do a temporary data system with this countdown system. But i don’t know how can i do this i never used “os.time(), os.clock(), os.date()” before.
Button Load Data system: