I have tried everything i could come up with i have looked around on the internet i could not find anything.
This is the code i have tried:
local DSS = game:GetService("DataStoreService")
local MoneyDS = DSS:GetDataStore("MoneyDS")
game.Players.PlayerAdded:Connect(function(player)
local leaderboard = Instance.new("Folder",player)
leaderboard.Name = "Leaderboard"
local moneybank = Instance.new("IntValue",leaderboard)
moneybank.Name = "Bank"
moneybank.Value = 0
local moneywallet = Instance.new("IntValue",leaderboard)
moneywallet.Name = "Wallet"
moneywallet.Value = 0
local hunger = Instance.new("IntValue",leaderboard) -- ingore this
hunger.Name = "Hunger"
hunger.Value = 100
local thirst = Instance.new("IntValue",leaderboard) -- ignore this
thirst.Name = "Thirst"
thirst.Value = 100
end)
game.Players.PlayerRemoving:Connect(function(player)
MoneyDS:SetAsync(player.UserId.."-Bank", player.leaderbaord.Bank.Value)
end)

2 comments
You can save as a dictionary I guess. For example: savedData = {Bank = 390, Wallet = 203}. You can then retrieve values like this: savedData["Bank"], which will retrieve 390
Please attempt this code yourself and post it and give more details. Don't expect us to do it for you.