It’s quite simple.
Make a property called “FlagScore.”
Make the scope team and the type number.
Place a Counter.
Now, in the settings of the Counter, make the property updated “FlagScore.”
Lastly, make the scope “team.”
Wire both of the flags to the counter.
Flag Captured > Increment Counter
Lastly, in the leaderboard make the score type track a property and make the property “FlagScore.”
(The property doesn’t have to be 100% exactly right, it’s just a device that can store text or numbers, just keep an easy name to remember to stop you from being confused)