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