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

Best method to save data without too many requests? [closed]

Asked by
piRadians 297 Moderation Voter
6 years ago

I tried saving data each time the value has changed, but it gave me a warning and told me to send fewer requests. What should I do about it?

Should I use an infinite loop to wait a certain amount of time and then save the data? Help, please.

1while true do
2    wait(180)
3    saveData(player)
4end

Note that the code above is just a hypothetical solution I imagined, and does not contain the actual code for the functions. Thanks.

0
Save Data in Arrays,. Save on: PlayerRemoving Event, every certain amount of time too, optionally :BindToClose. Ziffixture 6913 — 6y

Closed as Primarily Opinion-Based by User#24403

This question has been closed because it is a discussion about a topic focused on diverse opinions, which isn't a good fit for our Q&A format.

Why was this question closed?