Accessing and modifying a datastore of an offline player

Greetings,

I need to access player datastores and modify them in my game. For that, I have an Admin Panel in which I am trying to make this datastore access GUI. How can I make it so that I can access any player’s datastore by just inserting the UserId (I prefer using UserIds into such things) and also loading it onto a value? Thanks a lot!

2 Likes

just put in your format. you can just put user ids for anyone. They do not need to be online in order to do that.

for example, even though ROBLOX the account didn’t play your game at all once, you can still modify what their datastore is. “1_Data” or something like that. You do not even need them to play your game just put in their user id.

We have


Or use Datastore editor, but its not free. (Its worth it tho)

You need key to save someone’s data.

local datastoreservice = game:GetService("DataStoreService")
local Datastore = datastoreservice:GetDataStore("Coins")
Datastore:SetAsync("userid",2102)

It will work even tho if player is not in the game.

3 Likes

If you are using normal DataStore, then player doesn’t need to be online. But if you using DataStore2, then the player should be in your game in order to save or get the data.

Thanks a lot, works well! char limit