my skript is below but the error is coming with the line spawning particles can anyone help to fix this
on death:
if victim is a zombie pigman:
if name of victim is "&aTormented Soul Husk":
set {_loc} to the location 1 meter above the victim
show 3 "flame" particles at {_loc}
spawn 1 Zombie at {_loc}
set name of last spawned entity to "&aLost Soul"
on death:
if victim is a zombie pigman:
if name of victim is "&aTormented Soul Husk":
set {_loc} to the location 1 meter above the victim
show 3 "flame" particles at {_loc}
spawn 1 Zombie at {_loc}
set name of last spawned entity to "&aLost Soul"