The problem arose when I was making the command and was testing it
The commands:
execute as @e [scores={respawn=1}] run gamemode spectator @a execute as @e [scores={respawn=1}] run title @a actionbar §c§lLa hormiga §b@s§c murió execute as @e [scores={respawn=1}] run playsound mob.wither.death @a execute as @e [scores={respawn=1}] run effect @a blindness 10 10 true scoreboard players set @a respawn 1 scoreboard players set @e [type=player] respawn 0
#Bug Death
1 messages · Page 1 of 1 (latest)
gamemode spectator @e[scores={respawn=1}]
title @e[scores={respawn=1}] actionbar §c§lLa hormiga §b@s§c murió
execute as @e[scores={respawn=1}] at @s run playsound mob.wither.death @s
effect @e[scores={respawn=1}] blindness 10 10 true
scoreboard players set @a respawn 1
scoreboard players set @e[type=player] respawn 0
The issue you were running into was selecting all players after executing as others. You use @a, when you should be using @s