How can I fix this warn on datastore

Hello! Im trying to make level system and I got problem on datastore
here is a problem


and this is warn

DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key

I have no idea how to fix this.
Thank for helping. :grin:

1 Like

Its not an error, its a warning, i dont think its important, unless you spam save, it just means: “hey im gonna save this but if my queue fills im not be able to save new requests so be slower”

but as I try it won’t save data for me

Use DataStore2 or ProfileService for player data as it eliminates the problem you’re having.

1 Like

You’re sending too many requests to data store service. Try using a debounce or something.

Datastore has a specific amount of requests it can take before adding it to Roblox servers.

SetAsync() and GetAsync() have a 6 second cooldown before saving another data value. If you are saving more than 1 value, I suggest viewing this video: How to Store Multiple Values with Data Store - Roblox Studio Tutorial

Add this line inside of the game:BindToClose

if game:GetService("RunService"):IsStudio() then return end

What happens here is when u stop the server, the player leaves which will save their data and the data will save a second time since you hooked the function to game:BindToClose