Problem teleporting between places within game

Hello there!
I’m simply trying to teleport a table of players to a private server of a place that is located within the same game.
I keep getting an error saying the place is restricted.

Screenshot

image_2024-04-10_022124983

I already tried the different variants of TeleportAsync and also turned on the API access and teleport setting in the games’ settings.
I grabbed the placeid to teleport from asset manager, so that should be fine.
Here is the current (but messy code) used to teleport the player:

local function teleportPlayers(plrList)
	print(plrList)
	local newGameServer = teleportService:ReserveServer(GAME_PLACE_ID)
	print(newGameServer)
	local teleportOptions = Instance.new("TeleportOptions")
	teleportOptions.ReservedServerAccessCode = newGameServer
	--teleportOptions.ShouldReserveServer = true
	teleportService:TeleportToPrivateServer(GAME_PLACE_ID, newGameServer,plrList)
	--teleportOptions:Destroy()
end

in studio teleport service doesnt work (i think)

and you have to publish the second game or it will be “restricted”

you could test outside of studio for this to work

I already knew I can’t test the teleport service in studio.
However I did not know I also need to manually publish the sub place first and that was the issue.
Thanks for your reply!

1 Like

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