Using value of Scoreboard to change attribute

Was wondering if this is possible or if there is another way as im trying to make functions that add or subtract a value from the player's generic max health. Attribute doesnt let me put anything there other than a double so im kinda lost.

Continue to help post