DataStore2 usage question

Is there a way to determine whether a data profile was fetched or created?

Right now it just seems to plug default data regardless and has the same effect/returns whether it was just created or fetched

3 Likes

I’m not too familiar with DataStore2 so I am not 100% sure but you could add createdDate to the datastore and if it is the current time than you know that it is new.

that was my thought, but i feel like that’s a waste

The argument defaultValue in DataStore:Get is optional so you could try getting the data without using it and if that returned nil that would mean the player has no data to be fetched and needs it to be created.