How would I add a requirement for a certain score on a scoreboard to an advancement click detection?

Right now I have the code visible in the attached image, but I am wondering what to change to make it work.

Continue to help post