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

How to Save/Data Persistence?

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

1 answer

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

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