SaveBoolean (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>MrNicNac No longer admin-only. |
>SoulStealer9875 No edit summary |
||
Line 8: | Line 8: | ||
{{clear floats}} | {{clear floats}} | ||
<pre> | |||
game.Players.PlayerAdded:connect(function(newPlayer) | |||
newPlayer:WaitForDataReady() | |||
newPlayer:SaveBoolean("Bool", game.Workspace.Boolean) | |||
end) | |||
</pre> | |||
[[Category:Methods]] | [[Category:Methods]] | ||
Revision as of 15:47, 9 July 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 |
game.Players.PlayerAdded:connect(function(newPlayer) newPlayer:WaitForDataReady() newPlayer:SaveBoolean("Bool", game.Workspace.Boolean) end)