Im trying to spawn an Armor Stand behind a player and play the sound it makes when you complete an end portal. I get no errors but the sound doesn't play. How do I fix it?
command /test:
trigger:
set {loc} to location behind player
set {attacker} to player
spawn an armor stand at {loc}
play sound "end_portal.spawn" to player
set {bot} to last spawned entity
wait 5 seconds
delete last spawned entity
command /test:
trigger:
set {loc} to location behind player
set {attacker} to player
spawn an armor stand at {loc}
play sound "end_portal.spawn" to player
set {bot} to last spawned entity
wait 5 seconds
delete last spawned entity