I've tried local dataStore = game:GetService("DataStoreService") game.Players.PlayerRemoving:Connect(function(player) local success,errormessage = pcall(function() dataStore:SetAsync("oof-"..player.UserId,player.leaderstats.Oofs.Value) dataStore:SetAsync("rebirths-"..player.UserId,player.leaderstats.Rebirths.Value) end) end) But it doesnt seem to work.
Can you send the full script? I can't really seem to know the real issue here.
I have a model that saves leaderstats if you put it in serverscriptservice I could link it to you if that would help?
https://www.roblox.com/library/5061331155/DataStore-SAVING-LEADERSTATS