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
5 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.

while true do
    wait(180)
    saveData(player)
end

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 — 5y

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?