Script only updates one time

Hello!
I was fixing my leaderboard script when I ran into an error. The script would only run one time at the beginning of the game and wouldn’t update anymore. Please Help!

script:

Script deleted by author.
1 Like

Add a wait(). Roblox Resources Exhaust if you do not add a wait interval in your while true do loop

There already is a wait. Look at the very bottom.

Are you getting any errors whenever the script runs?

Then I am pretty sure you are sending too many Write Requests to Roblox Data Stores

Roblox Data Store Errors And Limitations

I have a 10 second cool down from write request, but I will higher it just to see if it works.

Edit: it still does not work, maybe this is a profile service bug?

I am talking about the for loop, not the While Loop. For Loop does not have a wait interval which means it will continuously send requests, try adding a cooldown there

hm I will try to see if that works.

It did not work, I don’t know what the problem is.

My suggestions are the function Value is not working because of profile service, I will change the function and see what happens.

edit: I don’t know what is wrong. Please help.

I found the problem. I was defining the top page and sorted a sync outside of the function which never updates the DataStore.