SaveNumber (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Telamon
Data loading doesn't work in LocalScripts - Thus your example would never work.
>Telamon
Data loading doesn't work in LocalScripts - Thus your example would never work.
(No difference)

Revision as of 00:50, 17 February 2011

Roblox Preliminary:This item is Roblox Preliminary. It is currently locked while the developers test it, but may be released later.
SaveNumber( String key, Number value )
Returns nil
Description: Saves a number value that can be reloaded from any server via LoadNumber
In Object: Player
Example
In one server...
game.Players.Telamon:SaveNumber( testNumber, 24 )
In another server...
print( game.Players.Telamon:LoadNumber( testNumber ) ) --> 24