DataStore2: How do you wait for data to finish being set?

Multiple times in my game I am trying to set data to a DataStore and if I don’t add a task.wait(1), the script will either error, the data will not save, or another script will try to use the DataStore and the data has not been updated to it yet. Is there a way to wait for data to finish being set in DataStore2 or is there another method I could use that would accuratetly tell the script when the data is finished being set to continue? Thanks

1 Like

Bumping because I need answer please