Teleports to Private VIP Servers Are Now Allowed


Hi Creators,

We’re launching server ID targeting for teleports, giving you more granular control over where your players go. Until now, teleports to reserved servers had fragmented paths, and VIP server teleports had undefined behavior, automatically inferred in some cases and forgotten in others.

This update simplifies the Teleports API, while offering you more granularity in the server you wish to teleport to. Two new properties on TeleportOptions, ReservedServerId and VipServerId, let you target a server type, by the game.PrivateServerId of the target server.

What you need to know:

  • TeleportOptions gains ReservedServerId and VipServerId, both plain GUID strings.
  • You can teleport players to VIP servers, including group teleports, to any place in your experience.
  • Existing access codes and fields won’t break and will still be functional, but will now show deprecation messages.

Target a Private Server Directly

ReservedServerId sends players to a reserved server, and VipServerId sends them to a VIP server. Follow these steps:

  1. For a new reserved server, you can use any random GUID - we recommend using HttpService:GenerateGUID(false). For an existing reserved server, store the existing GUID and reuse it, or find this on an existing Reserved Server’s game.PrivateServerId. For a VIP server, you can find this when they join from game.PrivateServerId.

  2. Set ReservedServerId or VipServerId on a TeleportOptions instance.

  3. Pass the options to TeleportService:TeleportAsync().


-- Teleport to a new Reserved Server

local TeleportService = game:GetService("TeleportService")

local HttpService = game:GetService("HttpService")

local options = Instance.new("TeleportOptions")

options.ReservedServerId = HttpService:GenerateGUID(false)

TeleportService:TeleportAsync(placeId, {player}, options)

A successful private server teleport returns a TeleportAsyncResult with PrivateServerId, which matches the ReservedServerId or VipServerId you passed in. Set at most one targeting field, because passing more than one raises a Luau error. You also no longer need to store PrivateServerId to ReservedServerAccessCode mappings, so you can teleport to known Reserved servers on the fly. For the full breakdown, read the TeleportService documentation.

Keep Players in Their VIP Servers Across Every Place

We now support explicitly targeting teleports to VIP servers. On a player’s join to a VIP server, grab the game.PrivateServerId. You can then set this in VipServerId in TeleportOptions and pass this into TeleportAsync() to initiate a teleport to that server. Players may create new VIP servers, close old ones, join a friend’s VIP server instead of their own, etc. – so make sure to handle TeleportInitFailed in these cases. We recommend that you associate this information with players in TeleportData to pipe it through teleports.

This now means that all places within your Universe are able to have VIP servers, not just the root place. This should greatly simplify the process of keeping players who purchase VIP servers in a fully private experience.

If a player is not allowed to join the server, TeleportInitFailed is raised.

Example: Teleport From VIP → Reserved → VIP

-- On the VIP server: detect it, and keep ID when teleporting players out
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")

local function isVipServer()
  return game.PrivateServerId ~= "" and game.PrivateServerOwnerId ~= 0
end

if isVipServer() then
  local options = Instance.new("TeleportOptions")
  options:SetTeleportData({ vipServerId = game.PrivateServerId })
  options.ReservedServerId = HttpService:GenerateGUID(false)

  TeleportService:TeleportAsync(otherPlaceId, Players:GetPlayers(), options)
end
-- On any other server in the experience: teleport the player back to a VIP server
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")

local player = Players:GetPlayers()[1]
local vipServerId = player:GetJoinData().TeleportData.vipServerId

local options = Instance.new("TeleportOptions")
options.VipServerId = vipServerId

TeleportService:TeleportAsync(yetAnotherPlaceId, {player}, options)

Deprecations

Next week, we’ll be deprecating ShouldReserveServer and ReservedServerAccessCode fields in TeleportOptions, and TeleportService methods ReserveServer(), ReserveServerAsync(), and TeleportToPrivateServer(). These will continue to function but should not be used for new work. Reserving a server before initiating the teleport has no effect, and is equivalent to passing a random GUID to ReservedServerId in TeleportOptions. Previously created access codes will remain valid indefinitely.

Known Issues

If a VIP server is joined via link, they may see that they lose authentication if teleported away from the root place. This can be resolved by advising players to update Roblox.

Edit: VIP servers joined via link code are known to fail for VIP teleports to non-root places with Secure Teleports enabled for the Universe. We are working on a fix for this, thanks for the patience! Teleports to the root place with VipServerId set should not be affected.

What’s Coming Next

Teleports back to the root place will default to a VIP server for players that have used the VIP feature this session. We will also add a boolean field in TeleportOptions which will allow you to opt-out of automatic VIP teleports. This will grant you the overrides to force certain teleports to be to public servers, where they would have been automatically upgraded to VIP.

Resources

We’re planning more improvements to private servers in the upcoming months, and would appreciate questions and feedback. Thank you!

FAQs

Will my existing code break?

No. Existing flows for reserving servers are still functional, and base64 access codes are accepted indefinitely. New calls to ReserveServerAsync will eventually generate a random GUID. ReservedServerAccessCode will accept both base64 access codes and GUID strings to remain backwards compatible.

What happens if a player can’t join the VIP server I chose?

TeleportInitFailed callback is fired, and the player is presented with an error modal saying the server is restricted.

Can I teleport a group to a VIP server?

Yes. Pass multiple players with the same VipServerId. Each player is checked independently at connect time, so players without access fail individually with TeleportInitFailed while the rest teleport normally.

What if the new properties don’t work on my server?

Your server may be running an older version. The teleport fails with a message indicating Access Code V2 isn’t enabled. Restarting the server should bring up the server version to the latest.

How will VIP authentication work?

VIP servers can be shared with others through a “Friends Allowed” toggle, an allowlist, or joins via a Link code. As long as one of these is valid at the moment of the teleport, it will succeed. Be aware that VIP server owners may change this at any point and remove a player’s authentication, so TeleportInitFailed should be handled in this case.

164 Likes

This topic was automatically opened after 10 minutes.

Ok that is awesome! This will lovely boost social interactions a lot! ty :happy3: :happy3: :happy3:

4 Likes

Now we can finally get exploiters off the private servers :sob:

4 Likes

Not joking but a lot of games had their leaderboards hacked and mainly because of private servers this should reduce the exploit infestation on private servers.

2 Likes

Long overdue addition but still nice to have thank you!

6 Likes

I thought the ‘VIP’ server terminology was deprecated since 2020?

Having different parts of the engine use different terms for the same thing is quite confusing - it’s been private servers for a while and now a new feature calls them VIP servers, including properties?

19 Likes

Holy, I’ve been waiting for this one

8 Likes

While this is neat, when might we be able to prompt users to purchase a private server in game and teleport them to it from a public server without having them join that server first? That’s a big issue with private servers currently. Most users just dont want to leave the game to create a private server and join back.

4 Likes

They added everything together and created a new terminology: “Private VIP Servers”

But honestly I just hope they eventually allow game owners to join private servers.. It’s frustrating to see some players ask questions through the feedback system and not be able to join the server to be able to assist them. (Even tho I’d probably not be able to chat with them I’d still like to be able to take the chance)

2 Likes

giphy

12 Likes

The intention here is that “Private” is more-so an umbrella term over Reserved/VIP servers - for some time, they have both populated game.PrivateServerId. You might think of a VIP server as a “Player-initiated private server” and Reserved servers as “Developer-initiated private server”.

Hope this is more clear, and we appreciate the feedback!

12 Likes

Hey @Coolmyles12346! This is great feedback and you may be happy to hear that we’re already actively working on allowing players to purchase a private server from within a game. Ultimately, we’d like to reduce the friction around creating & joining a private server for players and this is one of our major milestones.

Keep an eye out for our next announcement :eyes:

8 Likes

Does this mean I can choose to use a private server by default when joining a game? There are a few games (namely, Catalog Avatar Creator) that I only wish to use on private servers without intending to join the public servers.

1 Like

This actually the best update we had in a while … the roblox gods have blessed us lol

1 Like

This update broke my server list because teleportAsyncResult.PrivateServerId is no longer a uuid but a long string I was able to fix it with options.ReservedServerId = game.HttpService:GenerateGUID(false)

I was able to fix it I’m just not sure if its suppose to be different by default or not

2 Likes

I still call them VIP servers and I think it is a better term to use

2 Likes

This update probably broke my custom VIP teleport system since I got bug reports about it starting 6 hours ago - despite the post saying it won’t break anything.

1 Like

A reserved server’s game.PrivateServerId now does not match teleportResult.PrivateServerId. teleportResult.PrivateServerId looks to be identical to to teleportResult.ReservedServerAccessCode. Used to be different.

Unexpected behavior.

5 Likes

Now I have to do coding soon cuz of this :slight_smile:

2 Likes