alright so i have a script that should in theorie just make a global leaderboard onto a frame (Gui) but i keep getting the warning "datastore request was added to queue" ive tried putting a wait from 90 seconds and that don't solve it so yeah any suggestions?
01 | local ds = game:GetService( "DataStoreService" ) |
02 | local TimeDS = ds:GetOrderedDataStore( "AdminSaveStore" ) |
03 |
04 |
05 | local timeUntilReset = 10 |
06 |
07 |
08 | while wait( 1 ) do |
09 |
10 |
11 | timeUntilReset = timeUntilReset - 1 |
12 |
13 | script.Parent.Parent.Countdown.Text = timeUntilReset |
14 |
15 |
The warning is telling you that your DataStore request was queued, not cancelled. This usually happens when you're sending requests too quickly. Try waiting for a longer amount of time.
Useful rule of thumb: Warnings are not errors, but they do provide information that, if neglected, can lead to errors. Don't treat warnings as errors, because your code will still run if it warns you about something rather than raising an error.