I don't know how to get data store values into 2 places

Well, I have decided to make a multiplace game in which you can get to each area by going to each places.

Sounds simple, but I came to realise that each place is literally a new place I mean I can’t interconnect or pass through information on each side so I have to save Data Store Values and load from the other side to get the values.

The Problem is How am I suppose to get information on the bothsides?
Imagine, I got a Data Store in the name of “hello” now if I go to the other side will the Data Store by the name of “hello” will stay (have the Data) or not? I haven’t tested anything but I want to be sure if this is the thing.

Solutions and alternate method of sharing information about clients in both sides will be greatly appreciated.

1 Like

The data store will stay. i literally have a game where there are multiple place in which i have tried to see if datastore works in both place, and it does, even with datastore2.

2 Likes

Datastores are constant game wide. That means all your servers, places, and even studio access that exact same datastores. That’s why ppl typically use “mock” datastores when editing, so they don’t accidentally mess up live game data.

Can I know about this more?
I knew that GetDataStore(“In side here”) the name can be something but it will be connected with the places id. So if I make a new game and type the exact thing it shouldn’t be the old store instead of a new Store inside or representing the new games independent id…

from what I get from your reply is,
If I type “MyDataStore” and if I am sure someone has made a GetDataStore named as the same it would just connect me to that old datastore and simply we are all of a sudden sharing the old datastore together?

If you made a Datastore in a game, as long as the identifier is the same, you’d be accessing the same data.

If dungeon quest had a Datastore with a key (the identifier) called “Mydatastore” and adopt me also had one with a key called “Mydatastore” they would not be accessing the same data, but if a dungeon in dungeon quest had a Datastore with that key, they would be accessing the same data, because, even though the dungeon is a separate place, it’s still a part of the game.

1 Like

So like, If I would like to make a SetAsync on (plr.UserId…"-Hello", Something.Value) it would be a global value across roblox Data Store inside the Name of “Mydatastore”. So if i want I can use it in another game? like not even a connected place but inside a whole new game?