SaveBoolean (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator
example
>MrNicNac
No longer admin-only.
Line 1: Line 1:
{{AdminOnly}}
<onlyinclude>{{AdminOnlyMethod
<onlyinclude>{{AdminOnlyMethod
|name                = SaveBoolean
|name                = SaveBoolean

Revision as of 11:17, 16 April 2011

SaveBoolean( String key, Bool value )
Returns nil
Description: Saves a boolean value that can be reloaded from any server via LoadBoolean
In Object: Player
Example
In one server...
game.Players.LocalPlayer:SaveBoolean( testBoolean, true )
In another server...
print( game.Players.LocalPlayer:LoadBoolean( testBoolean ) ) --> true