How Can I Create VIP Servers/Normal Server For Free Using A Script?

Hello! I was wondering if it was possible for me to create VIP Servers/Normal Servers for free using scripts. I was wondering when I was playing ER:LC (Click Here For More Info), they have a custom server system and I was wondering how they did it.

Any help is greatly appreciated!

1 Like

Yes, this is possible with the ReserveServer and TeleportToPrivateServer methods.

Just for an example, lets say you wanted to teleport every Player to their own Server when they join:

local TeleportService = game:GetService("TeleportService");
local Players = game:GetService("Players");

local function PlayerAdded(Player)
    local Code = TeleportService:ReserveServer(game.PlaceId); --// Reserve a server for this current place, returns a code for that server
    TeleportService:TeleportToPrivateServer(game.PlaceId, Code, {Player}); --// Teleport to that private server of this place, with that player. It has to be a table of Player(s).


How could I get the code from another server?

Sharing codes throughout servers would need some use of an application which would be accessed through HttpService or alternatively a MessagingService topic.

1 Like

Sorry, 1 more question.

Do the servers stay forever?

Taken from the documentation:

Access codes remain valid indefinitely, meaning reserved servers can still be joined if no game server is running (in this case a new game server will be started)

1 Like