Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I teleport to a VIP server?

Asked by 5 years ago

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

Log in to vote
1
Answered by
yHasteeD 1819 Moderation Voter
5 years ago
Edited 5 years ago

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

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) Tweakified 117 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

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

0
I have tested this and it doesn't work. Any ideas: local code = TS:ReserveServer(1931780914) TS:TeleportToPrivateServer(1931780914, code, {speaker}) Tweakified 117 — 5y
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. Tweakified 117 — 5y
0
What about on the actual ROBLOX client SuperSamyGamer 316 — 5y
0
local ReservedServer = TS:ReserveServer(1931780914) // TS:TeleportToPrivateServer(1931780914, ReservedServer, {player}). This gives a HTTP 0 (HTTP 400) Tweakified 117 — 5y

Answer this question