how do i make it so you can convert 2 zombie piglins at the same time in multiplayer?

heres my tick function

execute as @e[tag=convert,scores={np.timer2=..20}] run scoreboard players add @s np.timer2 1

execute as @e[type=minecraft:zombified_piglin,tag=convert] unless score @s np.timer2 matches 3600.. run function nb:convertproc

execute as @e[scores={np.timer2=3600..}] at @s run function nb:convert

scoreboard players remove @e[tag=convert,scores={np.timer2=1..}] np.timer2 1
scoreboard players remove @e[tag=convert,scores={np.timer2=1..}] np.timer2 1
execute as @e[scores={np.timer2=1}] at @s run function nb:convert```


heres my convertstart 
```execute as @e[type=minecraft:zombified_piglin,distance=..5] run scoreboard players set @s np.timer2 3000
tag @n[type=minecraft:zombified_piglin,distance=..5] add convert
clear @s minecraft:carrot_on_a_stick[minecraft:item_model="lf:piglin_tear",custom_data={item:"piglin_tear"}] 1
particle minecraft:soul ~ ~0.8 ~ 0.25 0.5 0.25 0.01 15 normal
playsound entity.zombie_villager.cure master @a ~ ~ ~```

heres my convertproc
```# Run as converting piglin
execute as @e[tag=convert] at @s run function nb:convert_effects```

heres my convert
```kill @e[type=minecraft:zombified_piglin,tag=convert]
function nb:random_zombie

# Summon pig and zombie at the first air block above (up to 5 blocks up)
execute positioned ~ ~ ~ run function nb:spawn_safe_pig
particle minecraft:poof ~ ~0.75 ~ 0.25 0.5 0.25 0.1 25 normal
playsound minecraft:block.lava.extinguish master @a ~ ~ ~
playsound minecraft:entity.zombie_villager.converted master @a ~ ~ ~ 0.8 1.5```

heres my safe spawn pig
```# Tries to summon at increasing heights until it finds air
execute if block ~ ~ ~ air run summon pig ~ ~ ~
execute unless block ~ ~ ~ air if block ~ ~1 ~ air run summon pig ~ ~1 ~
execute unless block ~ ~ ~ air unless block ~ ~1 ~ air if block ~ ~2 ~ air run summon pig ~ ~2 ~
execute unless block ~ ~ ~ air unless block ~ ~1 ~ air unless block ~ ~2 ~ air if block ~ ~3 ~ air run summon pig ~ ~3 ~```

heres my random_zombie
```summon minecraft:marker ~ ~ ~ {Tags:["zombie_spawner"],Invisible:1b,Invulnerable:1b}
execute store result score @e[tag=zombie_spawner,limit=1,sort=nearest] zombie_check run random value 0..9
# Zombie Villager spawn if score is 0
execute as @e[tag=zombie_spawner,limit=1,sort=nearest] at @s if score @s zombie_check matches 0 if block ~ ~ ~ air run summon minecraft:zombie_villager ~ ~ ~
execute as @e[tag=zombie_spawner,limit=1,sort=nearest] at @s if score @s zombie_check matches 0 unless block ~ ~ ~ air if block ~ ~1 ~ air run summon minecraft:zombie_villager ~ ~1 ~
execute as @e[tag=zombie_spawner,limit=1,sort=nearest] at @s if score @s zombie_check matches 0 unless block ~ ~ ~ air unless block ~ ~1 ~ air if block ~ ~2 ~ air run summon minecraft:zombie_villager ~ ~2 ~

# Regular zombie spawn if score is 1–9
execute as @e[tag=zombie_spawner,limit=1,sort=nearest] at @s if score @s zombie_check matches 1..9 if block ~ ~ ~ air run summon minecraft:zombie ~ ~ ~
execute as @e[tag=zombie_spawner,limit=1,sort=nearest] at @s if score @s zombie_check matches 1..9 unless block ~ ~ ~ air if block ~ ~1 ~ air run summon minecraft:zombie ~ ~1 ~
execute as @e[tag=zombie_spawner,limit=1,sort=nearest] at @s if score @s zombie_check matches 1..9 unless block ~ ~ ~ air unless block ~ ~1 ~ air if block ~ ~2 ~ air run summon minecraft:zombie ~ ~2 ~```
Continue to help post