Here is my problem: when a player leaves my game and finds himself alone on the server, his data is saved twice in a row. Once with “PlayerRemoving” and again with “Game: BindToClose”.
I then get the message “The DataStore request has been added to the queue” and the player cannot save their data.
If anyone has a solution to this problem I thank them in advance
The message just says the data is being saved, but is in a queue because you’re making too many requests at once. It doesn’t mean the data wasn’t saved.
BindToClose prevents the server from shutting down until the code in BindToClose has finished running (it waits up to 30 seconds), so the server did not shut down before the data was saved, BindToClose prevented that from happening, because :SetAsync waits until the data actually saves.