local Leaderstats = Instance.new("Folder")
Leaderstats.Name = "Leaderstats"
Leaderstats.Parent = player
local Cash = Instance.new("IntValue")
Cash.Name = "Cash"
Cash.Parent = Leaderstats
local success, errormessage = pcall(function()
data = DataStore1:GetAsync(playerUserId)
end)
if success then
Cash.Value = data.Cash
--Other values are here
end
local data = {Cash = player.Leaderstats.Cash.Value;
--Other values are here
}