Issues with trying to teleport players to a separate place in my game

Hi! I’m trying to get my place teleport to work after a timer reaches 0 when standing on a pad. However, it keeps saying Attempted to teleport to a place that is restricted, even when I have set the entire game to Public. I have looked at the documentation for TeleportAsync and it still seems to not be working.

Here is my code snippet:

--local accessCode = tostring(game["Teleport Service"]:ReserveServer(12805152380))
	local successed, returnedData = xpcall(function()
		
		local tpOptions = Instance.new("TeleportOptions")
		--tpOptions.ShouldReserveServer = true
		game["Teleport Service"]:TeleportAsync(12805152380, playersReady--[[, tpOptions]])

Some of it is commented out because I was trying to see if the issue persists even when I’m not trying to teleport the players to a reserved server. playersReady is just a table of which players were ready while standing on the pad.

Also, there is separate code that repeatedly retries the teleport if it fails until the players are finally in the server/reserved server, but I’m assuming this piece of code is the entire issue.

Are you in Studio? Is third party teleports enabled in game settings?

1: No, I am not in Studio. I’ve known that it doesn’t work in Studio and only the in-game client for a while now.
2: I forgot about that, sorry- Heh. Let me see if it teleports me after I enable Third-Party Teleports.

Update: Nope- It still isn’t teleporting me.
These Places belong to the same game, by the way.

Is the game you are teleporting to published?

1 Like

OH . . I think that’s the issue. LOL

Hold on, seeing what happens if I publish it.

Thank you! I completely forgot to publish it. I’d never thought of that.

1 Like

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