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

SaveString

The SaveString function was once used by an ancient data persistence method to save a string value that can be loaded again at a later time using /Player/LoadString.

Parameters

Name Type Default Description

key

Returns

Return Type Summary

Code Samples


Player:SaveString

The below example would save a string to the player with a key of “TheirName” and a value of their current name. If you printed it, it would print their name.

game.Players.PlayerAdded:Connect(function(Player)
    if Player:WaitForDataReady() then
        Player:SaveString("TheirName", Player.Name) 
    end
end)