If I am not mistaken, you want your scoreboard record that can be stored online, which means you need to store your scoreboard in a database server or something like that.
I got little to no experience of database or server programming, but maybe this video will help you get through how to setup leaderboard/scoreboard for server to handle. I hope this will help you a little if not much.
Video: https://www.youtube.com/watch?v=g4p1x6-Iyx4