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

Why am I having a exeded maximum quene error in datastore?

Asked by
90poitu -10
6 years ago

Hey guys. Here is my code local DataStore = game:GetService("DataStoreService") local ds2 = DataStore:GetDataStore("CoinsSaveSystem") local ds3 = DataStore:GetDataStore("CoinsSaveSystem1") game.Players.PlayerAdded:connect(function(player) wait(1) local stats = player:WaitForChild("leaderstats") local Coins = stats:WaitForChild("Coins") local Level = stats:WaitForChild("Level") Level.Value = ds3:GetAsync(player.UserId) or 0 Coins.Value = ds2:GetAsync(player.UserId) or 0 ds2:SetAsync(player.UserId, Coins.Value) ds3:SetAsync(player.UserId, Level.Value)

game.Players.PlayerRemoving:connect(function(player) ds2:SetAsync(player.UserId, player.leaderstats.Coins.Value) ds3:SetAsync(player.UserId, player.leaderstats.Level.Value) end) end)

But I keep on keep this error Request was throttled. Try sending fewer requests. Key = 73361510

It is inside of a server script not local script

If anyone know the answer. Than reply to this post. Thanks

Answer this question