This is a Script in ServerScriptService, there are no errors, it just doesn't save.
local DSService = game:GetService("DataStoreService"):GetDataStore('asdpie') game.Players.PlayerAdded:Connect(function(plr) local stuff = Instance.new("Folder") stuff.Name = ("sub") stuff.Parent = plr local Strength = Instance.new("IntValue") Strength.Name = 'Strength' Strength.Parent = stuff local SXP = Instance.new("IntValue") SXP.Name = 'SXP' SXP.Parent = stuff -----------------------SAVE DATA----------------------- local uniquekey = 'id-'..plr.UserId local GetSaved = DSService:GetAsync(uniquekey) if GetSaved then Strength.Value = GetSaved[1] else local NumbersForSaving = {Strength.Value} DSService:SetAsync(uniquekey,NumbersForSaving) end ------------------------------------------------------- SXP.Changed:Connect(function() local SXPval = SXP.Value if SXP.Value >= Strength.Value * 100 then SXP.Value = SXP.Value - Strength.Value * 100 Strength.Value = Strength.Value + 1 end end) --[[ Strength.Changed:Connect(function() local uniquekey = 'id'..plr.userId local Savevtable = {plr.sub.Strength.Value} DSService:SetAsync(uniquekey,Savevtable) end) ]] end) game.Players.PlayerRemoving:Connect(function(plr) local uniquekey = 'id'..plr.userId local Savevtable = {plr.sub.Strength.Value} DSService:SetAsync(uniquekey,Savevtable) end)