scoreboard players add @s scp008zombie1function 1
execute as @s[scores={scp008zombie1function=200..702}] at @s run effect @s slowness 5 2 true
execute as @s[scores={scp008zombie1function=350..702}] at @s run effect @s resistance 5 2 true
execute as @s[scores={scp008zombie1function=500..702}] at @s run effect @s nausea 5 2 true
execute as @s[scores={scp008zombie1function=500..702}] at @s run effect @s slowness 5 3 true
execute as @s[scores={scp008zombie1function=702..}] at @s run summon scpcf:scp_008_zombie_villager ~~~
execute as @s[scores={scp008zombie1function=702..}] at @s run kill @s
execute as @s[scores={scp008zombie1function=702..}] at @s run tag @s remove scp008zombie1function