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
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
You need a private server code like this. local code = TS:ReserveServer(GameIdHere)
and put code as your 2nd argument