so basicly im making a script but for some reason it thinks this one score is always 1 NO MATTER WHAT. even when i change the score it doesnt work.
command /spawn:
trigger:
execute console command "/scoreboard players set @a[scores={arena=0}] arena 1"
set {nether.spawn} to location(-83.5, 97, -17.5, world "world", 0, 0)
set {overworld.spawn} to location(-83.5, 87, 99.5, world "world", -90, 0)
if {arena.%player%} is 1:
teleport player to {overworld.spawn}
else:
if {arena.%player%} is 2:
teleport player to {nether.spawn}
PLESAE HELP