function not being recognised?

i'm trying to change players' attributes based on a random number assigned to their scoreboard (done), but the "activate" function is just not being recognised. can someone explain why?

Continue to help post