my data saves and loads inside the same server switching servers doesnt bring your saved stats from another
this problem occurs were it says
1 | if data = = "save" then |
01 | local event 1 = Instance.new( "RemoteEvent" ,game.ReplicatedStorage) --outfit1 |
02 | event 1. Name = "outfit1" |
03 | local event 2 = Instance.new( "RemoteEvent" ,game.ReplicatedStorage) |
04 | event 2. Name = "outfit2" |
05 | local event 3 = Instance.new( "RemoteEvent" ,game.ReplicatedStorage) |
06 | event 3. Name = "outfit3" |
07 |
08 |
09 | event 1. OnServerEvent:connect( function (player,plr,data) |
10 | print 'fired' |
11 | local outfit 1 = 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 = { |