How to make leaderboard?

Hello again, I am trying to add a leaderboard to my game.
However, I do not know how to.
Here are some pictures. Please help.

(Relevant code)

(Leaderboard in question)

Turn the score “Coins” into (Variable(Coins))

didnt work. anything else

Hello.

First of all, I have to point out that the condition line is missing a “trigger one”. Otherwise, the action is carried out hundreds of times per second. That causes problems. The leaderboard should only be executed when, for example, the player dies. Or when a button is pressed by the user.

Here is an example of the call (from my last game):

And when the player closes the leaderboard, you also have to think about what should happen. For example, should the score be reset to 0 and/or should you return to the main menu…