Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I teleport to a VIP server?

Hello,

I'm trying to teleport a player to a VIP server that I own. I do not own the game where I'm trying to teleport to. I found this but couldn't get it to work: https://developer.roblox.com/api-reference/function/TeleportService/TeleportToPrivateServer

Here is my script:

game:GetService("TeleportService"):TeleportToPrivateServer(GamePlaceId, VIPServerId, player)

This doesn't work.

This is a similar question to one I posted earlier. I removed it as I didn't get an answer after 5 days.

Any help/advice you could give me would be appreciated. Tweakified

2 answers

So, for make this you need to reserve a server using TeleportService:ReserveServer

local ReservedServer = TeleportService:ReserveServer(PlaceId)

For get place id you can only use game.PlaceId

local TeleportService = game:GetService("TeleportService") -- Get the TeleportService as variable
local ReservedServer = TeleportService:ReserveServer(game.PlaceId) -- Reserve a server
    
TeleportService:TeleportToPrivateServer(game.PlaceId, ReservedServer, {player}) -- For teleport a player you need to put it in a table.

If you getting error "HTTP 0 (HTTP 403)", It means you're trying this in roblox studio, you should test in "normal game", out of studio

Wiki pages:

ReserveServer

TeleportToPrivateServer

DataModel.PlaceId / game.PlaceId

1 comment

0

This works when I'm trying to create and teleport to a Vip server on my own server. Though, it doesn't work when I'm trying to make a VIP server on someone else's server (E.g. trying to teleport to a Jailbreak vip server)

You need a private server code like this. local code = TS:ReserveServer(GameIdHere)and put code as your 2nd argument

4 comments

0

I have tested this and it doesn't work. Any ideas: local code = TS:ReserveServer(1931780914) TS:TeleportToPrivateServer(1931780914, code, {speaker})

0

My code is separate on studio. Its just weird on these comments. I have a HTTP 0 (HTTP 400) error on studio while running that code.

0

What about on the actual ROBLOX client

0

local ReservedServer = TS:ReserveServer(1931780914) // TS:TeleportToPrivateServer(1931780914, ReservedServer, {player}). This gives a HTTP 0 (HTTP 400)

This discussion is preserved as it was. New answers, comments, and votes are closed.