Cant get it to run kick on datapacks mc

# Copy total deaths into currentHP
scoreboard players operation @a currentHP = @a deathHP

# Set max health based on deaths (1 death = lose 1 HP = half heart)
execute as @a[scores={currentHP=7}] run attribute @s minecraft:max_health base set 13
execute as @a[scores={currentHP=8}] run attribute @s minecraft:max_health base set 12
execute as @a[scores={currentHP=9}] run attribute @s minecraft:max_health base set 11
execute as @a[scores={currentHP=10}] run attribute @s minecraft:max_health base set 10
execute as @a[scores={currentHP=11}] run attribute @s minecraft:max_health base set 9
execute as @a[scores={currentHP=12}] run attribute @s minecraft:max_health base set 8
execute as @a[scores={currentHP=13}] run attribute @s minecraft:max_health base set 7
execute as @a[scores={currentHP=14}] run attribute @s minecraft:max_health base set 6
execute as @a[scores={currentHP=15}] run attribute @s minecraft:max_health base set 5
execute as @a[scores={currentHP=16}] run attribute @s minecraft:max_health base set 4
execute as @a[scores={currentHP=17}] run attribute @s minecraft:max_health base set 3
execute as @a[scores={currentHP=18}] run attribute @s minecraft:max_health base set 2
execute as @a[scores={currentHP=19}] run attribute @s minecraft:max_health base set 1
execute as @a[scores={currentHP=20..}] run attribute @s minecraft:max_health base set 0

# Ban players who hit 0 HP
execute as @a[scores={currentHP=20..}] run tellraw @s {"text":"You died permanently!","color":"red"}
# execute as @a[scores={currentHP=20..}] run kick @s "You died permanently!"

it gives me incorrect argument for command everytime i run it

Continue to help post