This item is deprecated, as it may have been used for a now obsolete data persistence method. Please save and load player data using
DataStoreService for new work.
This 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
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)