SaveBoolean (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens
No edit summary
>JulienDethurens
No edit summary
Line 18: Line 18:
end)
end)
</code>}}
</code>}}
==See Also==
*[[File:Method Icon.png]] [[SaveNumber (Method)|SaveNumber]]
*[[File:Method Icon.png]] [[SaveString (Method)|SaveString]]
*[[File:Method Icon.png]] [[SaveInstance (Method)|SaveInstance]]


[[Category:Methods]]
[[Category:Methods]]

Revision as of 00:01, 13 February 2012

SaveBoolean( string key, bool value )
Returns nil
Description: Saves a boolean value that can be reloaded from any server via LoadBoolean.
Member of: Player


Example

This example will save true as the value of the key 'HasPlayed' everytime a player leaves.

game.Players.PlayerRemoving:connect(function(player) if player.DataReady then -- To make sure the data is ready. player:SaveBoolean('HasPlayed', true) -- Save the boolean. end end)


See Also