Multiple Data Stores Support

Hello everyone! I hope this forum finds you well,

I am using DataStore to save data (obviously) and I am wondering if I am able to store to two different datastores when the player is removing at once using different Pcall’s as well or if this will break the script or both DataStores will not save. Will this not work? Do I need to add a wait in between? Any support is greatly appreciated.

NOTE: If anyone wants to see my script, let me know and I will attach it.

You can save both. Saving to a DataStore will yield the current thread though. So if you try to save two DataStore keys at the same time, it will inherently wait for one before moving onto the other. You could get around this by using task.spawn to run them over top of each other. Just be cautious about DataStore throttle limits.

So you don’t think a wait command is needed?

There’s no need for any wait. Again, this might depend on throttling limits at any given moment. But roughly speaking, there’s no issue.

1 Like