Timeplayed script issue (DataStore request was added to queue.)

Hello, developers.

I am not good at scripting, so I need assistance with this. I have a time played script in my game, basically, it adds +1 to a leaderstat called “Mins”, but the problem is in console it says “DataStore request was added to queue”. Currently I have it so it waits two minutes, but I don’t like this because if a player leaves, then it won’t properly count. I also have tried doing a minute and half (1.5) but it just changes the leaderstat to 2.

If you have any tips please inform me :slight_smile:

You can repeatedly send data store requests until it doesn’t give a warning or an error.

Won’t that make the request drop?

The new and more recent request would override the previous.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.