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

Player:SaveString

Player:SaveString

Oct 01 2018, 2:04 AM PST

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)