Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I save and transfer data between servers?

Asked by 5 years ago

I have a game which is the start place, and there are other places linked to this place. I want the player to join the start place, kind of like a lobby, and then teleport to different maps. I have this all set up. Everything works, except the datastore. The data store in itself works, but what doesn't work is the transfer of data. I'm a novice, and a bit confused as to how you can transfer data between places. If anyone can help me that'd be great. Here are also the datastores, they have the same name, etc.

--Start Place
local DS1 = game:GetService("DataStoreService"):GetDataStore("4.15")
--A place linked to start place
local DS1 = game:GetService("DataStoreService"):GetDataStore("4.15")

If you need any more details please do follow up.

0
If you literally just have the same code in both places it should work lol rower86 35 — 5y
0
Yeah but it doesn't, do you know anything about why? Any more details you might need? 88BlackRose 5 — 5y
0
Hm, well I am not certain what the problem is, but I can give an explanation of how it works, also if you could show me the entire datastore code that would be good. rower86 35 — 5y
0
The games that are linked to the start place are inside of it's universe. Games in the same universe can use the same datastores. The player's data is stored in the datastore which in your case is "4.15". If two games pull out information from the same datastore for a player, the data that was last saved will load. rower86 35 — 5y
View all comments (2 more)
0
Okay, thank you 88BlackRose 5 — 5y
0
No problem rower86 35 — 5y

Answer this question