How can I make a global leaderboard system using the Wesley Timing System

Hello fellow developers, I was wondering how I would be able to add a global leaderboard using the wesley timing system, I will have a link to it below:

I was wondering how I would be able to modify this so the lap times save globally and has for example a top 20 lap times in a gui

I have tried looking for somebody who needed the same thing but I could not come across anything, also please note that I am a beginner scripter so please show some mercy lol