Hello everyone. My code uses TeleportService to teleport a certain table of 2 or more players into a reserved match server, however whenever I (and my friends) attempt to be teleported by this script, we both receive an “Attempted to teleport to a place that is restricted” error, and shortly after we are put into 2 different servers.
The error in the Developer Console log reads: “Invalid teleport [Unauthorized]: Access code for reserved server is not valid.” I am very puzzled about it as my code does not handle any kind of access codes. Code is below:
local SafeTeleport = require(script.SafeTeleport) --https://create.roblox.com/docs/projects/teleporting#handling-failed-teleports
local queue = {player1, player2, ...}
--rest of code
local tpOptions = Instance.new("TeleportOptions")
tpOptions.ShouldReserveServer = true
SafeTeleport(theGame, queue, tpOptions)
I noticed there was a similar topic here but the OP does not receive any errors in his console. Thanks for your help!