I’m trying to save a player’s progress in my game every five minutes. Simply using a while loop would stop the other code in the script from running and I’d prefer to have the data save function in the same script as the player’s data table.
What alternatives are there to a while loop that will run a function every 5 minutes but still allow other code to run?