game.Players.PlayerAdded:connect(function(h)local C=Instance.new("\070\111\108\100\101\114",h)C.Name="\083\107\105\110\115"local I=Instance.new("\083\116\114\105\110\103\086\097\108\117\101",C)I.Name=stat I.Value=ds:GetAsync(h.UserId)or startamount ds:SetAsync(h.UserId,I.Value)I.Changed:connect(function()ds:SetAsync(h.UserId,I.Value)end)end)game.Players.PlayerRemoving:connect(function(h)ds:SetAsync(h.UserId,h.Skins.Equipped.Value)end)

game.Players.PlayerAdded:connect(function(player)
local leader = Instance.new("Folder",player)
leader.Name = "Skins"
local Cash = Instance.new("StringValue",leader)
Cash.Name = stat
Cash.Value = ds:GetAsync(player.UserId) or startamount
ds:SetAsync(player.UserId, Cash.Value)
Cash.Changed:connect(function()
ds:SetAsync(player.UserId, Cash.Value)
end)
end)

game.Players.PlayerRemoving:connect(function(player)
	ds:SetAsync(player.UserId, player.Skins.Equipped.Value) --Change "Points" to the name of your leaderstat.
end)
