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

Why is my DataStore not working it doe not give any errors and I have API access on?

local datastore = game:GetService("DataStoreService")
local ds1 = datastore:GetDataStore("JediPtsSaveSystem")


game.Players.PlayerAdded:connect(function(plr)
 local folder = Instance.new("Folder", plr)
 folder.Name = "leaderstats"
 local JediPts = Instance.new("IntValue", folder)
 JediPts.Name = "Jedi Points"
 
 JediPts.Value = ds1:GetAsync(plr.UserId) or 0
 ds1:SetAsync(plr.UserId, JediPts.Value)
 
 
 JediPts.Changed:connect(function()
  ds1:SetAsync(plr.UserId, JediPts.Value)
 end)
 
end)

1 answer

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