Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to Save/Data Persistence?

Asked by 10 years ago

How would I make a saving script. I want the IntValue in a text box to save.

1 answer

Log in to vote
0
Answered by 10 years ago

You would use SaveNumber, it can not be used in a local script

game.Players.PlayerAdded:connect(function(player)
    player:SaveNumber('Stringhereforkey',thenumberhere)
end)

for loadnumber it would be just the same but without the number and you have to have it set the loaded number to the IntValues value

Ad

Answer this question