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)
COMMUNITY QUESTION
Why is my DataStore not working it doe not give any errors and I have API access on?
1 answer
You wrote setAsync twice.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
You must setAsync first and then getAsync
And why excactly was this downvoted?
Nvm