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

I need help with my data store script?

Asked by 10 years ago

I would put data store in the tags but there is only data persistence so yeah @mod. There is no error in the output and here the script is...

01game.Players.PlayerAdded:connect(function(plr)
02    local level = Instance.new("StringValue")
03    level.Value = "lobby"
04    level.Parent = plr
05    level.Name = "Level"
06    local chkpt = Instance.new("IntValue")
07    chkpt.Parent = plr
08    chkpt.Value = 0
09    chkpt.Name = "Checkpoint"
10    HighLevel=Instance.new("IntValue")
11    HighLevel.Parent=plr
12    HighLevel.Name="highlev"
13    ID=plr.userId
14    ds=game:GetService("DataStoreService"):GetDataStore("HighLevel")
15    data=ds:GetAsync(ID) or ds:SetAsync(ID,{
View all 30 lines...
0
I fail to see the necessity of the datastore. If there is no output odds are that chkptGroup = nil wazap 100 — 10y
0
Its a obby and I would like to save there highest achieved level so they can just skip to that level. GetSporked 5 — 10y

Answer this question