of     1   

200AB
#68498399Tuesday, May 22, 2012 11:19 PM GMT

Link: http://www.roblox.com/Item.aspx?id=81501686 I made this so access to DataPersistence functions from a LocalScript is possible, it uses two scripts, DataHandler_Server and DataHandler_Client. DataHandler_Client is the LocalScript that provides other LocalScripts access to DP by making a Data object under each player, and in that object there are two other objects named Load and Save, inside both of those there are the 4 types supported by DataPersistence, Instance, String, Number, and Bool. DataHandler_Client has 3 important functions, shared.LocalData.Load, shared.LocalData.Save, and shared.LocalData.Ready. shared.LocalData.Load is used to load data, it creates a value under player.Data.Load that DataHandler_Server then uses to load data from the player. shared.LocalData.Save is used to save data, it creates a value under player.Data.Save that DataHandler_Server then uses to save data to the player. shared.LocalData.Ready is used to get the players DataReady value. More information is provided inside the scripts, read them, I provide the arguments for each function in there.

    of     1