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

Why does'nt this save player data?

game.Players.PlayerAdded:connect(function(Player)

Player:WaitForDataReady()

local StarterPack = Player:LoadInstance("Dirt") 

Player:SaveInstance("Dirt", game.StarterPack)

Player:SaveInstance("Rock", game.StarterPack)

wait (30)

end)

I'm trying to save the tool called dirt and rock so that when the player picks it up it remains with them when they log in again.

1 comment

0

Are there any errors?

1 answer

✓ Accepted answer

Regardless of how the script works, I think you should probably be using data stores instead of persistence. Check this wiki article to see how data stores work.

1 comment

0

DataStores cannot save instances. So, if an instance was absolutely needed to be saved, then DataStores would not work. However, I do agree that DataStores should be used instead wherever possible.

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