Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help datastore from filling up to quickly?

Asked by 5 years ago

If I have a coin game, then it adds amounts quickly to player. The datastore begins to drop requests. Any way to fix this? There is no code associated with this problem.

0
I need help with this aswell XX_Doggoa 24 — 5y
0
You don't need to save every single time an amount is added to player, you really only need to save when they leave (preferably an autosave occasionally too) and when BindToClose fires Vulkarin 581 — 5y
0
Bindtoclose? CaptainD_veloper 290 — 5y
0
Use PlayerRemoving event hellmatic 1523 — 5y
View all comments (2 more)
0
That doesn't work either. CaptainD_veloper 290 — 5y
0
save data every 1 minute if BindToClose and PlayerRemoving aren't working for you greatneil80 2647 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Hello, I'm BlackOrange and I will be helping you today.

Problem:

Since no content of code was provided, I can only state that you are using the .Changed event to save data. This means each time something changes it saves which passes the datatstore limit.

Solution:

Remove your .Changed events and instead an auto-save system should be created that will save data about every 60 seconds. Next add a PlayerRemoving event to make sure data saves when player leaves. I highly suggest no saving data on the studio because it freezes it when saving.

Note:

Since no code was provided this is as much information I can give you. Again your saving too many times in a small time interval. If more content was provided I may have been able to assist you more in terms of improving your code and fixing it up.

Hoped this helped.

Best of luck developer!

BlackOrange3343

Ad

Answer this question