I wonder how is this happen. I tried using Suphi's DataStore Module to save player's data in my game, but when I tried printing out the data. It seems to not save at all. I enabled the API and following every step. Here's his code (1st picture) and my code (2nd picture). It is almost identical, but here's the video of me play test and printing out when it's first load and second load. (Video below)
I need some help. Thanks for anyone who's helping me. I'm really confused why it doesn't save for me.
#Why can't I save the data using Suphi's DataStore [Solved]
1 messages · Page 1 of 1 (latest)
You can see the first nil it prints below, for every times I joined in. It suppose to be the latest data session to loaded, but it's nil somehow.
and again, I enabled the API
I believe it's because the Open function called by StatusChanged is necessary
it's part of initializing the data session
unlesssssssssss I'm misunderstanding something 🗿
the data session is open and it prints "Success" but idk how it's not saving the data when I log off.
If you print datastore.Value what does it print?
Before the session is open, it always print nil, even after Datastore.new , shouldn't it prints some data after DataStore.new? If I played the game and saved it. I once tried putting dataStore:Save() before destroying it, but after I loaded in again. It's still prints nil first, which means there's no data saved. Once again, I tried update the data, by staying in the game for more than a minute and change the value, even all that. I still get nil from DataStore.new
The nil is from dataStore.Value by the way, not the Datastore.new()
The class still works like usual, I just got nil from .Value
No new won't load any data
Data is loaded once you open it