Sorry I’ve been posting alot of my problems on here and not figuring it out myself but this is a hard one. So I keep getting a message that says this
:07:48:02.412 - DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = Money-131163384. And I don’t see any problem with the script but what I am noticing is my data is loading because everytime I join the game it should print “DataLoaded” But it doesn’t
And when I leave the game that’s when it will say
:07:48:02.412 - DataStore request was added to queue. If request queue fills, further requests will be dropped. Try sending fewer requests.Key = Money-131163384.
And I don’t want that to say that so something wrong with the script. If you know please let me know.
It’s because your saving too often. Im guessing your joining and leaving in a few seconds, then joining back. Players shouldn’t do this though. This issue occurs when you are saving too often.
Wdym because i’ve only tested this three times
And still doesn’t do anything at all
Go in the game, wait like a minute, and then leave, does the message still appear?
yes it does and thats what im trying to fix because when you join the game it supposed to print “DataStored” not that long message which means my data isn’t storing
I even tested it my going in the console and changing my money and rejoining
And now I’m getting a message that says
08:24:25.755 - ScriptNavigationHandler : No script currently available.
But idk if thats part of the CurrencySystem/DataStore
No that’s just a roblox-studio thing.
And I came here about the problem because I spent at least 2 hours trying to figure it out and I can’t figure it out
Can we see where you are doing the player removing event? I’ve seen people have a player removing function and bind to close saving data, which causes 2 requests to be sent, and hence giving this error.
What do u mean??? Sorry for all the question marks it wasn’t letting me send the message because of 30 characters
You said you get the error when you are leaving. So it has something to do with what you do when the character leaves. Do you have a bind to close function that saves data, and a player removing that saves data?
Yes and now the script isn’t loading anything at all
Bind to close in datastore is not necessarily to save data. It’s used to delay the amount of time it takes for the server to close. All you really need in your bind to close is just a wait(x). You can chose the amount of time it waits till it closes.
You should also wrap your saving in a pcall in the player removing function
How would I do that exactly???
And now I have another problem
Just delete everything inside of the bind to close function that you have already. And replace it with wait(3). You can change the wait time if you desire. And then for the saving just do pcall(function() and put the setasyncs in there. If you want you can do local success, err = pcall(function() so that it can print error messages for you, if done correctly.
Ok I’ll do that now my stuff isn’t loading