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.
How do i make a data save, I typed below what i've tried?
2 answers
Can you send the full script? I can't really seem to know the real issue here.
1 comment
local serverStorage = game:GetService("ServerStorage") local dataStore game:GetService("DataStoreService"):GetDataStore("PlayerDataSave") local player = game.Players.LocalPlayer game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local rebirths = Instance.new("IntValue") rebirths.Name =
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
2 comments
Its not for sale so i cant grab it.
There Now You Can! Hope This Helped!
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
this is hard to read