Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I Load and Save strings in Data Persistence?

Im trying to save people's nicknames in a game i am developing. Please help.

1 answer

✓ Accepted answer

Data Persistence can easily be called from the Player itself (Unlike Data Store where you have to call the service). Also remember that you should make a habit of using :WaitForDataReady(). This is very important to keep errors out of your script. Here are some examples:

game.Players.bbissell:WaitForDataReady() --Waits for the Data Persistence Service to be available.
game.Players.bbissell:SaveString("Nickname", "myNickname") --Saves the string to that player
print(game.Players.bbissell:LoadString("Nickname")) --Prints the saved string for that player

There is much more you can do with the Data Persistence service. Read up on it here.

1 comment

0

Thanks! :D

This discussion is preserved as it was. New answers, comments, and votes are closed.