It comes down to the leaderboard script. When a leaderboard is created, it builds a directory called leaderstats under the Player object. Any value placed inside leaderstats automatically appears on the leaderboard, and changing that value updates the displayed stat.
So the setup is two parts: have the leaderboard script create a points value in leaderstats, then have another script modify that value for a given player whenever you want them to score. Get the names to match exactly and the points show up and increment as intended.