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

LoadString

Returns a string value that was previously saved to the player with /Player/SaveString with the same key. Returns an empty string ("") if the key doesn’t exist, not nil…

Parameters

Name Type Default Description

key

Returns

Return Type Summary

Code Samples


Player:LoadString

The below example would print the value of the previously saved key “TheirName”.

game.Players.PlayerAdded:Connect(function(Player)
    if Player:WaitForDataReady() then
        print(Player:LoadString("TheirName")) 
    end
end)