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

Do I have to do this with Data store script?

In a Datastore script when you make the things that are to be saved, lets say for example "Coins" do you have to put a value there like Coin.Value = 0 or is it not needed in a Datastore script

1 answer

✓ Accepted answer

In a dataStore script, you need to create it, like so.

local Folder = Instance.new("IntValue",player)
	Folder.Name = "Folder"

local Coins = Instance.new("IntValue",Folder)
	Coins.Name = "Coins"

All values will automatically be 0 upon first entrance.

Then you need to create a table so that it will save. I'll leave that to you.

((Please attempt to script it, then post..))

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