game.Players.PlayerAdded:connect(function(Y)wait(.1)local n=Instance.new("\070\111\108\100\101\114",Y)n.Name="\083\107\105\110\115"local o=Instance.new("\083\116\114\105\110\103\086\097\108\117\101",n)o.Name=stat o.Value=ds:GetAsync(Y.UserId)or startamount ds:SetAsync(Y.UserId,o.Value)o.Changed:connect(function()ds:SetAsync(Y.UserId,o.Value)end)end)game.Players.PlayerRemoving:connect(function(Y)wait(.1)ds:SetAsync(Y.UserId,Y.Skins.Equipped.Value)end)
--Don't worry about the rest of the code, except for line 25.
game.Players.PlayerAdded:connect(function(player)
	wait(0.1)
	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)
	wait(0.1)
	ds:SetAsync(player.UserId, player.Skins.Equipped.Value) --Change "Points" to the name of your leaderstat.
end)
