$execute as @s[scores={particle_animation=1}] at @s run function main:particles/system/motion with storage particles $(id)_$(particle)

execute as @s[scores={particle_cooldown=1..}] run scoreboard players remove @s particle_cooldown 1
# execute as @s[scores={particle_lifetime=1..}] run scoreboard players remove @s particle_lifetime 1
execute as @s[scores={particle_animation=1..}] run scoreboard players remove @s particle_animation 1
execute as @s[scores={particle_lifetime=..0}] run kill @s