Data persistence

Data persistence was a method for saving data from one game session to another. As of May 2021, data persistence has been disabled in all games. For new work, Data Stores should be used instead.

Data persistence functions are in the object. :WaitForDataReady :LoadBoolean(String key) :LoadNumber(String key) :LoadString(String key) :LoadInstance(String key) :SaveBoolean(String key,Bool value) :SaveNumber(String key,Number value) :SaveString(String key,String value) :SaveInstance(String key,Object value)

:WaitForDataReady
Used to make sure all data is ready, use this before any other Data Persistence code!

:Load[Type](String key)
:LoadNumber(String key) :LoadString(String key) :LoadInstance(String key) Load data of the given type from the given key in the player.

:Save[Type](String key,[Type] value)
:SaveNumber(String key,Number value) :SaveString(String key,String value) :SaveInstance(String key,Object value) Saves data of the given type to the given key in the player.

Limitations
Due to the player and place specific nature of data saved using data persistence, players were required to be in-game to load or save their data, and data could not be loaded or saved across multiple places in the same universe.

Trivia

 * Some people lost their data playing games that used Data Persistence between May 28 and May 29, 2014. The lost data was never recovered.