Reserve Server Problem

  1. What do you want to achieve?
    i want to make a reserve server with textbox , see video below to understand what i’m
    trying to say .

i have no idea how they can shorten the code , so please explain how all this work , show some example script as well if possible :slight_smile:

1 Like

I think you’re Looking for TeleportService.TeleportToPrivateServer() and TeleportService.ReserverServer().

3 Likes

First of all, you need to assign each server an ID (stored inside that server). You can make that ID randomly generated since chance of it repeating is absolutely minimal (remember to put it through filter so it doesnt put inappropiate text).

When a player wants to join a server with given id, use MessagingService to send message like “Hey, looking for a server with id abc123”. It should be received by all servers. If the server receives message, and the id is matching, you can then have it reply with the access code via another message, which you can use to teleport the player.

1 Like

i already know it need reserve server , what i need is i need to know how it all work , like why is the code shorten ?

i often use messaging service , can you show some example script ? also , i don’t think it need messaging service because reserve server just need to get the server code and join . the problem is the code only can get it when teleporting , which mean you need to do something to make the code visible in other server text label . and for some reason , the code is shorten . which i literally don’t know how to do .

I have never scripted MessagingService yet so I cant really show you an example code.

1 Like

i think i know how to do it now , but i really need to know how to shorten the code , it’s best if you can shorten it to 6 digit .