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

Do I have to do this with Data store script?

Asked by 7 years ago

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

Log in to vote
0
Answered by
Kitorari 266 Moderation Voter
7 years ago

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..))

Ad

Answer this question