Thread issue?

I’m currently making a custom money wash script and while running a loop to show 3d text something goes wrong and im not sure what. it will show one door and allow a teleport correctly but not the other way around.

here’s the code for the doors:

Any help or clues would be greatly appreciated!