I need help with datastore so i just made it(never tested it) but there is a problem one of my stats are being renamed to 'Value'

Script: local dataStore = game:GetService("DataStoreService") local ds1 = dataStore:GetDataStore("CashSave") local ds2 = dataStore:GetDataStore("WinSave")

game.Players.PlayerAdded:Connect(function(p) local stats = Instance.new("Folder",p) stats.Name = 'leaderstats' local cash = Instance.new("IntValue",stats) repeat wait() cash.Name = 'Cash' until cash.Name == 'Cash' cash.Value = ds1:GetAsync(p.UserId) or 0 cash.Changed:Connect(function() pcall(function() ds1:SetAsync(p.UserId,cash.Value) end) end) local wins = Instance.new("IntValue",stats) repeat wait() wins.Name = 'Wins' until wins.Name == 'Wins' wins.Value = ds2:GetAsync(p.UserId) or 0 wins.Changed:Connect(function() pcall(function() ds2:SetAsync(p.UserId,wins.Value) end) end) end)

game.Players.PlayerAdded:Connect(function(p) pcall(function() local stats = p:WaitForChild("leaderstats") local cash = stats:WaitForChild("Cash") local wins = stats:WaitForChild('Wins') pcall(function() ds1:SetAsync(p.UserId,cash.Value) ds2:SetAsync(p.UserId,wins.Value) end) end) end)

Did i put to many pcalls?