my script works in between and in between doesn't work, even if i don't make any changes in between how it's possible or i don't realize something.
Code:
on portal enter:
wait 1 ticks
if world is "Server":
if {survival::%player's uuid%} is set:
teleport player to {survival::%player's uuid%}
else:
teleport player to location at -139, 71, 2 in world "Survival"