Do I risk this with datastore

if I save leaderstats, is there a chance that the folder might be destroyed because player leave? I need to know or else I will be afraid and have to make another separate folder in replicated storage so that it doesn’t destroy until I make it destroy after player save data and leave

I have not run into this problem and I have 4 datastores. You should be fine. If you wanted to be safe, you could probably do a folder and destroy it when you need.

2 Likes

No. Players.PlayerRemoving fires prior to the Player instance being disconnected and destroyed, hence “Removing” and not “Removed”. No descendant of the instance will be missing unless tampered with by an external force

3 Likes

ok that is good to know

I’ll do the method inside player since it’s easier now that I know it doesn’t get destroyed before I save data

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.