SaveNumber (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Nickardson
Added information about how SaveNumber handles 0, reducing DataCost.
>Nickardson
Added information about how SaveNumber handles 0, reducing DataCost.
(No difference)

Revision as of 21:23, 8 July 2011

SaveNumber( String key, Number value )
Returns nil
Description: Saves a number value that can be reloaded from any server via LoadNumber. The DataCost taken up by a saved number can be removed by saving 0 as the value.
In Object: Player
Example
In one server...
game.Players.Telamon:SaveNumber("testNumber", 24 )
In another server...
print( game.Players.Telamon:LoadNumber("testNumber") ) --> 24