Hello developers! I want to save a key value table, but I don’t know how to go about this. I tried using Update Async() but then I got confused, and then some people say that Set Async() shouldn’t be used at all. I’m quite stuck.
DataStore2 have ordered backups + you need to call save to save each values plus it is kinda out-dated module. With ProfileService you don’t have ordered backups but you have “auto-saving” so saving tables and tbh any value are really easy.
I don’t recommend using UpdateAsync for tables but you can use SetAsync for both integers and tables. Note that tables can’t be saved in ordered data stores. It can only be used in a regular data store.
This is your preference. You can use PlayerAdded and PlayerRemoving when a player joins and leaves. And also DataStore2 is not that unreliable. But normal data store, which is the default, is less trustworthy than the others.