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

Set Datastore Data doesnt transfer from server to server?

Asked by 8 years ago
Edited 8 years ago

my data saves and loads inside the same server switching servers doesnt bring your saved stats from another

this problem occurs were it says

1if data == "save" then
01local event1 = Instance.new("RemoteEvent",game.ReplicatedStorage)--outfit1
02event1.Name = "outfit1"
03local event2 = Instance.new("RemoteEvent",game.ReplicatedStorage)
04event2.Name = "outfit2"
05local event3 = Instance.new("RemoteEvent",game.ReplicatedStorage)
06event3.Name = "outfit3"
07 
08 
09event1.OnServerEvent:connect(function(player,plr,data)
10    print 'fired'
11    local outfit1 = game:GetService("DataStoreService"):GetDataStore("Outfit1")
12    local key = "player-"..plr.userId
13    local plrstats = plr.Customization--Order in stats are saved {Hairs,Face,SkinColor,Shirt,Pants,Accessories1-5"}
14 
15    local vals = {
View all 65 lines...

1 answer

Log in to vote
0
Answered by 8 years ago
Edited 8 years ago

Make sure your game is apart of a universe. The datastore will not transfer if it is not part of the universe.

You can read more about universes here

Once your universe is set up, you can transfer data from the datastore! :)

0
But its only a one place game xlaser23 60 — 8y
Ad

Answer this question