My skript to prevent running to spawn in combat isn't working. It doesn't return any errors, but doesn't make any blocks look like barriers.
on damage of a player by player:
loop all blocks in radius 10 around attacker:
if loop-block is structure void:
make attacker see loop-block as barrier
wait 15 seconds
make attacker see loop-block as structure void
loop all blocks in radius 10 around victim:
if loop-block is structure void:
make victim see loop-block as barrier
wait 15 seconds
make victim see loop-block as structure void