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

My SetAsync is getting throttled, any way to fix it?

Asked by 5 years ago

I have a clicker game I'm working on, I made it so your points get saved but after awhile it's saying

13:55:35.653 - 302: SetAsync request dropped. Request was throttled, but throttled request queue was full.
13:55:35.653 - Stack Begin
13:55:35.654 - Script 'Workspace.scripts.stats', Line 16
13:55:35.654 - Stack End

here is my code for the saving


local stats = Instance.new("IntValue") stats.Name = "leaderstats" stats.Parent = player local Clicks = Instance.new("IntValue", stats) Clicks.Name = "Clicks" Clicks.Value = ds:GetAsync(player.UserId) or 0 ds:SetAsync(player.UserId, Clicks.Value) Clicks.Changed:connect(function() ds:SetAsync(player.UserId, player.leaderstats.Clicks.Value ) end)

I don't know how to fix it, when it gets throttled the saving doesn't work anymore

0
You're trying to save too often. Just make the clicks save when the player leaves. Fraxinus_Sanctus 38 — 5y
0
yea User#19524 175 — 5y
0
You also should be using UpdateAsync instead of SetAsync User#19524 175 — 5y
0
Send less requests EpicMetatableMoment 1444 — 5y

Answer this question