I need help with doors

I have this doors game but instead of just having one map, you teleport to different rooms.
but when playing multiplayer the other players get sent to other rooms unlike the one the host was in.
how can it be random and controlled?
but I don’t want them teleport skipping rooms if I just teleport them to the farthest player.

So you would need a global randomizer. This would randomize the next room and set it for everyone.
(By the way, I tried making doors but ran out of floor/wall :cry: )