Hello all,
This is my first time working with data stores but for some reason every thing I've tried hasn't worked.
I've watched at least 3 tutorials, following closely each time and every time the data store fails to work/load data in.
On Studio I have API Services enabled, so I don't believe that's the problem.
Here is the Script , located in ServerScriptService
local Data = game:GetService("DataStoreService"):GetDataStore("PantherPoints")
game.Players.PlayerAdded:Connect(function(plr)
local folder = Instance.new("Folder")
folder.Name = "leaderstats"
folder.Parent = plr
local cash = Instance.new("IntValue",folder)
cash.Name = "Panther Points"
local saveditems = Data:GetAsync(plr.UserId)
if saveditems then
cash.Value = saveditems:WaitForChild("Panther Points").value
else
cash.Value = 0
end
end)
game.Players.PlayerRemoving:Connect(function(plr)
local saved = {["Panther Points"] = plr:WaitForChild("leaderstats"):WaitForChild("Panther Points").Value}
Data:SetAsync(plr.UserId,saved)
end)
Any help would be greatly appreciated.

8 comments
Oh let me just give you this link to a video
https://www.youtube.com/watch?v=kyBT0Cn29Og
I've tried multiple videos, but thanks for the help
See this one
It didn't work.
@killerninja81 Try changing line 10 to, cash.Value = saveditems["Panther Points"] and let me know if it works or not.
ok
nope, didnt work