Issue with teleporting [URGENT]

I am trying to teleport 2 people which are in 2 different tables to one server but I am getting the error
“A specified member cannot join the destination place”

Heres my code :

-- // Copyright 2023, lambarini, All rights reserved.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TeleportService = game:GetService("TeleportService")

local Players1 = {}
local Players2 = {}

local Teleporter = script.Parent

local PLACE_ID_HERE = 13642840058

local Zone = require(ReplicatedStorage.Zone)
local zone1 = Zone.new(Teleporter.Part1)
local zone2 = Zone.new(Teleporter.Part2)
local MaxPlayers = 1

zone1.playerEntered:Connect(function(player)
	if table.find(Players1,player) == nil and #Players1 < MaxPlayers then
		table.insert(Players1,player)
		Teleporter.Part1.BillboardGui.TextLabel.Text = "Players : "..#Players1.."/"..MaxPlayers
		Teleporter.Part2.BillboardGui.TextLabel.Text = "Players : "..#Players2.."/"..MaxPlayers
	end
end)

zone1.playerExited:Connect(function(player)
	if table.find(Players1,player) then
		table.remove(Players1,table.find(Players1,player))
		Teleporter.Part1.BillboardGui.TextLabel.Text = "Players : "..#Players1.."/"..MaxPlayers
		Teleporter.Part2.BillboardGui.TextLabel.Text = "Players : "..#Players2.."/"..MaxPlayers
	end
end)


zone2.playerEntered:Connect(function(player)
	if table.find(Players2,player) == nil and #Players2 < MaxPlayers then
		table.insert(Players2,player)
		Teleporter.Part1.BillboardGui.TextLabel.Text = "Players : "..#Players1.."/"..MaxPlayers
		Teleporter.Part2.BillboardGui.TextLabel.Text = "Players : "..#Players2.."/"..MaxPlayers
	end
end)

zone2.playerExited:Connect(function(player)
	if table.find(Players2,player) then
		table.remove(Players2,table.find(Players2,player))
		Teleporter.Part1.BillboardGui.TextLabel.Text = "Players : "..#Players1.."/"..MaxPlayers
		Teleporter.Part2.BillboardGui.TextLabel.Text = "Players : "..#Players2.."/"..MaxPlayers
	end
end)

while task.wait(10) do
	if #Players1 == MaxPlayers and #Players2 == MaxPlayers then
		local FinalTable = {}

		table.move(Players2, 1, #Players2, #Players1 + 1, Players1)
		TeleportService:TeleportPartyAsync(PLACE_ID_HERE,Players1,{["1"] = Players1, ["2"] = Players2})
	end
end

I am using the zone module which works fine.
Untitled Game - Roblox The link to the place. Would be VERY grateful for help.

1 Like

Please someone, I need this urgently.

Hope this helps!

-- SERVICES

local TELEPORT_SERVICE = game:GetService("TeleportService")
local RUN_SERVICE = game:GetService("RunService")
local PLR_SERVICE = game:GetService("Players")

-- VARIABLES

local REGION_AREA = workspace:FindFirstChild("RegionArea") -- Replace the term "RegionArea" with your chosen name.
local SIZE_1 = REGION_AREA.Position - (REGION_AREA.Size / 2)
local SIZE_2 = REGION_AREA.Position + (REGION_AREA.Size / 2)
local REGION = Region3.new(SIZE_1, SIZE_2) -- This action creates a region using our selected part.
local TABLE = {} -- Setting up our table to determine which players are in the rejoin state or not.
local ID = 0 -- Replace the number "0" with your specific place ID.

-- FUNCTIONS

RUN_SERVICE.Stepped:Connect(function()
	TABLE = {} -- We are resetting our table to its initial empty state.
	local DETECT_PART = workspace:FindPartsInRegion3(REGION) -- Searching for any "Parts" within the rejoin that we have created.
	for _, v in pairs(DETECT_PART) do
		local HUM = v.Parent:FindFirstChild("Humanoid") -- If we encounter a humanoid, it is highly likely that it represents a player.
		if HUM then
			local PLR = game.Players:GetPlayerFromCharacter(HUM.Parent)
			if PLR then
				if not table.find(TABLE, PLR) then table.insert(TABLE, PLR) end -- We insert the player into the table if they are not already included.
			end
		end
	end
end)

-- LOOPS

while task.wait(10) do -- Teleports players every 10 seconds if they are located within the region and within the designated time limit.
	if #TABLE <= 0 then continue end -- If the table is empty, the script will be returned.
	TELEPORT_SERVICE:TeleportPartyAsync(ID, TABLE) -- Teleports the players.
end

I fixed it, turns out the place I was teleporting to was private