Whenever I made this code and ran it, it says "connect from ::ffff:127.0.0.1|65428 - Studio
15:06:13.450 ▶ DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = 328975515"
And whenever I reload back in the game the DataStore doesnt load in. Please help. Code is provided below:
``local stat = "Cash"
local DataStore = game:GetService("DataStoreService")
local ds = DataStore:GetDataStore("LeaderStatSave")
game.Players.PlayerAdded:connect(function(player)
local leader = Instance.new("Folder",player)
leader.Name = "leaderstats"
local Cash = Instance.new("IntValue",leader)
Cash.Name = stat
Cash.Value = ds:GetAsync(player.UserId)
ds:SetAsync(player.UserId, Cash.Value)
Cash.Changed:connect(function()
print("it changed")
ds:SetAsync(player.UserId, Cash.Value)
end)
end)
game.Players.PlayerRemoving:connect(function(player)
ds:SetAsync(player.UserId, player.leaderstats.Cash.Value)
end)
``
** You are now Level 6! **