Reserving and teleporting to server

Can someone teach me how to reserve a server and teleport the player to the reserved server? (multiplayer teleporter)

Teleport from Reserve server and teleport in here.

I’ve already tried some of the reserve and teleport to private server devforum, but it doesn’t work cause it says “Error 403” or something i forgot.

Thank you so much for the help🥳

Hey.

Reading through this TeleportService | Roblox Creator Documentation will help you.

Anyway, you need to reserve server with :ReserverServer(placeId)

local TeleportService = game:GetService("TeleportService")

local placeId = 0 -- your ID here
local serverCode = TeleportService:ReserveServer(placeId)

And then you just simply teleport the players there!

local players = game.Players:GetChildren() -- contains all players currently in game, if you want only some players then you will create a table containing selected players and pass it through
TeleportService:TeleportToPrivateServer(placeId, serverCode, players)

Make sure you are entering the right placeId.

1 Like

im confused on why its not working, can you tell me the game settings that needed to teleport?

Make sure to search first before posting, the bug you are getting might already be talked about/solved.

You are getting the error “403” because you are testing it inside studio.

no, i tested it on roblox cause i already know it from here. but the teleporter doesn’t work. The teleport is in here.

Are all of those different games or are they places that are under 1 game?

the player must go with a teleporter here but it doesn’t work.

I understand, but are those different games or are they places that are under single game?

the teleporter is on different games

That might be the issue, I don’t know if I’m right but I don’t think you can reserve server codes of another game, even if you are the owner of the game. You will have to create multiple places under that one game.

oh ok thank you so much for the help, imma redesign my game into just 1 game. Thank you again so much :blush:

No problem! Make sure to flag one of the posts as solution if it solves your problem.