LoadBoolean (Method)

From Legacy Roblox Wiki
Revision as of 03:07, 27 April 2023 by Realjame (talk | contribs) (Text replacement - "</code>" to "</SyntaxHighlight>")
Jump to navigationJump to search
LoadBoolean( string key )
Returns bool
Description: Returns a boolean value that was previously saved to the player via SaveBoolean with the same key. Returns false if the key doesn't exist, not nil.
Member of: Player


Example

This code would print the boolean value saved to the "Bool" key of every player that enters.

game.Players.PlayerAdded:connect(function(player) player:WaitForDataReady() print(player:LoadBoolean("Bool")) end) </SyntaxHighlight>

See Also