What to use instead of "WaitForDataReady"?

I saw that “WaitForDataReady” has become deprecated in the Developer Wiki. How am I supposed to wait for data ready now?

If you’re using the old data persistence API (Player:LoadString/SaveString/etc), still WaitForDataReady.

That whole API was deprecated in favour of DataStores years ago.

1 Like

No no no, I am using DataStoreService. How to WaitForDataReady using DataStoreService then?

You don’t need to.

The old data persistence system loaded the data for a player when they joined and saved when they left, and DataReady/WaitForDataReady were used to tell when/block until the loading had finished.

With datastores, a request is made every time you use :GetAsync. It automatically waits until the request is complete and returns the data.

4 Likes

omg thx so much!11!!!1

Seriously, now I know what to do, thanks!