of     1   

Latine_Lemonade
#228346147Saturday, December 02, 2017 9:24 PM GMT

local DataStoreService = game:GetService("DataStoreService"):GetDataStore("Experience") game.Players.PlayerAdded:Connect(function(player) local XP = script.Parent:WaitForChild("leaderstats").XP local Level = script.Parent:WaitForChild("leaderstats").Level local MaxXp = script.Parent:WaitForChild("leaderstats").XPMax Level.Value = 0 XP.Value = 0 MaxXp.Value = 0 local key = "Player_" ..player.UserId local SavedAsync = DataStoreService:GetAsync(key) if SavedAsync then XP.Value = SavedAsync[1] Level.Value = SavedAsync[2] MaxXp.Value = SavedAsync[3] else local ValueStore = {XP.Value, Level.Value, MaxXp.Value} DataStoreService:SetAsync(key, ValueStore) end end) I don't know why it isn't working, it don't print any error, can you help me?
Latine_Lemonade
#228346409Saturday, December 02, 2017 9:30 PM GMT

local DataStoreService = game:GetService("DataStoreService"):GetDataStore("Experience") game.Players.PlayerRemoving:Connect(function(player) local XP = script.Parent.leaderstats.XP local XPMax = script.Parent.leaderstats.XPMax local level = script.Parent.leaderstats.Level local key = "Player_" ..player.UserId local ValuesToSave = {XP.Value, XPMax.Value, level.Value} DataStoreService:SetAsync(key, ValuesToSave) end) This is the Save Script.
Latine_Lemonade
#228347513Saturday, December 02, 2017 9:51 PM GMT

bump
Latine_Lemonade
#228348287Saturday, December 02, 2017 10:06 PM GMT

b2
hollowlucas
#228348357Saturday, December 02, 2017 10:08 PM GMT

Did you test it ## #### ###### not in the studio?
Latine_Lemonade
#228348518Saturday, December 02, 2017 10:11 PM GMT

Yes, i did, and it doesn't show error in console.
Latine_Lemonade
#228349332Saturday, December 02, 2017 10:27 PM GMT

b3
Latine_Lemonade
#228350339Saturday, December 02, 2017 10:47 PM GMT

b4
Latine_Lemonade
#228353123Saturday, December 02, 2017 11:49 PM GMT

b5
Latine_Lemonade
#228355854Sunday, December 03, 2017 12:51 AM GMT

##
[rfa#hidefromsearch]
#228356266Sunday, December 03, 2017 1:01 AM GMT

[rfa#hidefromsearch]

    of     1