Advanment race datapack

I want to setup a datapack for me and my friends to use that will change a scoreboard variable anytime someone gets an advancement I do have a few parameters though When a player gains an advancement, that advancement is no longer valid for the other players. This makes players prioritize getting the advancement before other people I also need it to give a certain amount of points for different advancements (ex. a normal advancement is worth 1 point while defeating a boss is 10) This datapack is for the 1.21.4 version of minecraft. This is my code which features my attempt at adding the [Stone Age] advancement:

scoreboard objectives add Points dummy

scoreboard objectives setdisplay sidebar Points

execute as @a[advancements={minecraft:story/mine_stone=true}] run execute if data entity @s[advancements={minecraft:story/mine_stone=false}]

Please reply with any knowledge you can give me!

Continue to help post