PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

SaveBoolean

Used to save a boolean value that can be loaded again at a later time using Player/LoadBoolean.

Parameters

Name Type Default Description

key

Returns

Return Type Summary

Code Samples


Player:SaveBoolean

The below example would save a boolean to the player with a key of “HasPlayed” and a value of true.

game.Players.PlayerAdded:Connect(function(Player)
    if Player:WaitForDataReady() then
        Player:SaveBoolean("HasPlayed", true) 
    end
end)