How can I access a datastore from a different place

Heyo I’m trying to figure out how I can get a players data between different places within my game. I have 3 places
Roblox Studio 7_30_2021 10_51_35 AM (2)
The main one that players first join is the lobby which is “Ro Fighter” and this game has my datastore script which has data for a players wins, loss and some other things, but when the player gets teleported to the match or training place I wanna be able to access their data from the same datastore how do I do that though? Do I copy and paste my datastore script or something?

4 Likes

You can use instead of “GetDataStore” when getting your datastore, transform it into a global one by changing the datastores “GetDataStore” to “GetGlobalDataStore”, although you can only have one global datastore per EXPERIENCE (not place), you will have to save all your data in a table if you are saving multiple values.

Just looked this up and apparently it’s exactly the same as GetDataStore the only difference is that you can’t name it?

But, you can access it from different places, you don’t have to name it you just access it without the name argument. I’ve used it in many of my games.