How would I make this datastore better to prevent data loss

  1. Use BindToClose.
  2. Wrap your datastore requests in pcalls, they are network calls, so they can fail.
  3. Make the datastore retry if it fails a couple of times before giving up.
  4. UpdateAsync > SetAsync
  5. Don’t save data if all the datastore get requests fail.
1 Like