So for this I'm using the default roblox leaderboard. (With the deaths value changed to Ls.) Here's the code on my save script :
local datastore = game:GetService("DataStoreService") local ds1 = datastore:GetDataStore("KillSaveSystem") local ds2 = datastore:GetDataStore("LSaveSystem") game.Players.PlayerAdded:connect(function(player) local folder = Instance.new("Folder", player) folder.Name = "leaderstats" local kills = Instance.new("IntValue", folder) kills.Name = "Kills" local ls = Instance.new("IntValue", folder) ls.Name = "Ls" kills.Value = ds1.GetAsync(player.UserId) or 0 ds1:SetAsync(player.UserId, kills.Value) kills.Changed:connect(function() ds1:SetAsync(player.UserId, kills.Value) end) ls.Changed:connect(function() ds2:SetAsync(player.UserId, ls.Value) ls.Value = ds2.GetAsync(player.UserId) or 0 ds2:SetAsync(player.UserId, ls.Value) end) end)
Any ideas as to why it's not functioning properly?