Is this door teleporting code good? I think it could be better

server side
image

client side

It simply plays a transition and teleports you to the TP object, it disables the proximity prompt so you cant press it through the door and enables the other one. I feel like it could be optimised though or just made better.