lifesteal problems

so I want to create a lifesteal datapack for my server and I have a problom I dont know how to change the player's max health attribute by a scoreboard
Continue to help post