How to save everything in a game?

Hi, i’ve been trying to search for a solution to save EVERYTHING in the game, like the whole explorer. i want it to save when you leave and if you press a button on the main menu it loads that safe file. How would i go about doing this? i dont know much about datastores and if this is even possible, but i’d like to know if anyone has a way to do this

You should learn about serialization and datastores.
I recommend creating a table of every thing in your game and serializing the items to save into a datastore.