SaveNumber (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator
SaveNumber
>ArceusInator
example
Line 11: Line 11:


[[Category:Methods]]
[[Category:Methods]]
{{Example|In one server...<pre>
game.Players.LocalPlayer:SaveNumber( testNumber, 24 )
</pre>
In another server...<pre>
print( game.Players.LocalPlayer:LoadNumber( testNumber ) ) --> 24/pre>}}

Revision as of 16:24, 16 January 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.LocalPlayer:SaveNumber( testNumber, 24 )
In another server...
print( game.Players.LocalPlayer:LoadNumber( testNumber ) ) --> 24/pre>