Teleporting players to a reserved server doesnt work

I have a script that detects when a player presses a start button which will teleport a group of players to a different game. When they get teleported it gives me a http error, here is the script. Would I need to have the Third Party Teleport option enabled for the games?




local function tpPlayers(playerQueue)
	local placeid = 9604406821
	local server = TS:ReserveServer(placeid) 
	TS:TeleportToPrivateServer(9604406821, server, playerQueue)
end

game.ReplicatedStorage.GameStart.OnServerEvent:Connect(function(plr)
	print("Starting")
	local repStorage = game.ReplicatedStorage
	local LocalParty = repStorage.Parties[plr.Name]

	if #LocalParty:GetChildren() > 0 then
		print("Starting Loop")
		local playersToTeleport = {}
		local queue = {}
		local teleportTime = 0
		for i,v in pairs(game.Players:GetChildren()) do
			if v.InPlayersParty.Value == plr.Name then
				table.insert(queue,v)
			end
			tpPlayers(queue)
		end
	end
end)

I found the problem,

this was not a string.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.