LoadBoolean (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>SoulStealer9875 No edit summary |
>SoulStealer9875 No edit summary |
||
Line 15: | Line 15: | ||
game.Workspace.Brick.CanCollide = p.Value | game.Workspace.Brick.CanCollide = p.Value | ||
end) | end) | ||
</pre> | |||
[[Category:Methods]] | [[Category:Methods]] |
Revision as of 15:46, 9 July 2011
LoadBoolean( String key ) | |
Returns | Bool value |
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. |
In Object: | Player |
game.Players.PlayerAdded:connect(function(newPlayer) newPlayer:WaitForDataReady() p = newPlayer:LoadBoolean("Bool") game.Workspace.Brick.CanCollide = p.Value end)