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

4 comments

0

You're trying to save too often. Just make the clicks save when the player leaves.

0

yea

0

You also should be using UpdateAsync instead of SetAsync

0

Send less requests