Teleporting Issues (Auto Rejoin)

Hi, im trying to make an auto rejoin thing for my game.

the only problem i have is the teleporting…
i want the players to be teleported in the same server always!
so like in vip servers and stuff it has to work too.

the problem is, once theres like 1 person in the server and he gets teleported back into the game the server just dies and it spits errors.

is there any way how i can script the teleporting the way i want it?
im thankful for help

If it’s a VIP server then just check how many players their are and whether it needs to create a new reserved server.

You could do roughly the same with a normal server but instead of making a reserved server just teleport them to a random one by not passing in any server id