Use datastore2 for a offline player

  1. What do you want to achieve? Keep it simple and clear!
    Hi, I would like to use datastore2 to edit an offline players data

  2. What is the issue? Include screenshots / videos if possible!
    Whenever I try to use datastore to store offline player data I get

DataStore2() API call expected {string dataStoreName, Instance player}, got {string, string} 
  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

So far I have tried using userid and It didn’t work
So I am wondering if it possible to save offline user data (for bans system)

1 Like

Well sadly Datastore2 needs a player instance and to get it the player MUST be online, Datastore2 isn’t the thing for this.

4 Likes

Oh ok, is there a way that I could store logs with datastore2 or is that not possible?

sadly that isn’t, a lot of people recommend profilService for this type of saving, give it a try!

1 Like