I am running into issues when teleporting two or more players to a reserved server using a server side script. On my side all scripts report successful and I have confirmed this via logging. This is happening within my experience, which I’ve linked below.
Our matchmaking queue essentially finds two players and upon matching, it will reserve a server and teleport both players to that server where they can mow down zombies with a machine gun until they get overrun.
Steps to Reproduce
- Visit my Experience - https://www.roblox.com/games/135380093540296/Namazu-Elements-Matchmaking-Demo
- Make sure two or more players log in to this experience.
- Walk to the back of the scene to the helipad, and stand on top of it.
- You will hear a sound indicating that you’ve entered the matchmaking queue and the particles will activate on the helipad.
- Repeat with a second player.
- Wait a few seconds and you will get the 769 error on the screen.
Troubleshooting Steps Taken So Far
- We have confirmed that the teleports and APIs are available to the experience (See screenshot in Roblox Studio)
- We have confirmed that the capacity of the place is set appropriately (See screenshot of Roblox Studio)
- We have confirmed through logging that the luau scripts report success upon teleportation (See logging screenshot from Discord)
- We have confirmed that it is possible to teleport because there is a single player version where we just skip matchmaking and teleport only the current player.
Confirming Teleporting is Working
- Enter the experience as a single player.
- Talk to the helicopter pilot and select the “Can I go alone?” option.
- Answer “Yes” to his question.
- You will hear a confirmation sound.
- You will be teleported immediately to the game.
Expected behavior
We expect that the teleportation succeeds and takes you to the place “Ashwood Falls” with multiple players just as single player mode behaves.
Screenshots referenced above:
Relevant Scripts:
GlobalMatchmaking.rbxm (6.8 KB)
SinglePlayerTeleport.luau (915 Bytes)
Relevant code from the Scripts.
This is the code is failing and lines up with the Discord logs. Note this code was pulled directly from another experience (from another creator) where it is working properly. The only changes are the error checking and logging:
function GlobalMatchmaking:Teleport(player: Player)
local s = sessions[player]
print("[Matchmaking] Teleporting Player")
if not s or not s.matchId then
warn("[Matchmaking] Not in match")
return
end
local res = Api.getMatch(s.sessionSecret, s.matchId)
if not res.success or not res.data then
warn("[Matchmaking] Failed to get match")
return
end
local code = res.data.reservedServerCode
if not code then
warn("[Matchmaking] No server code")
return
end
local opts = Instance.new("TeleportOptions")
opts.ReservedServerAccessCode = code
local ok, err = pcall(TeleportService.TeleportAsync, TeleportService, res.data.placeId or game.PlaceId, {player}, opts)
if not ok then
warn("[Matchmaking] Teleport failed: " .. tostring(err))
else
print("[Matchmaking] Successfully teleported.")
end
end
This is the code that works to teleport single players.
-- ServerScriptService/ZoneTeleportHandler.server.lua
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
-- Replace with your actual Place ID for the reserved zone
local ZONE_PLACE_ID = <redacted>
-- RemoteEvent for client -> server teleport request
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("SinglePlayerTeleport")
remoteEvent.OnServerEvent:Connect(function(player)
local success, result = pcall(function()
-- Reserve a fresh private server instance
local reservedCode, privateServerId = TeleportService:ReserveServerAsync(ZONE_PLACE_ID)
TeleportService:TeleportToPrivateServer(ZONE_PLACE_ID, reservedCode, { player })
end)
if not success then
warn(string.format("[ZoneTeleport] Failed to teleport %s: %s", player.Name, result))
end
end)


