How would i go about making my datastore store the most recent value that is on the leaderboard?

trying to save a money value that updates as the player does something (that’s already done and shows on the leaderboard). I have a datastore made but I’m just a little confused on how to connect that to my leaderboard value so it’ll update correctly