Cannot teleport to another place within the same experience

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear! I want player moves to another place.

  2. What is the issue? Include screenshots / videos if possible! When the player tries to teleport by pressing the TextButton, the teleport fails with error code 773. Additionally, when pressing F9 to check the Developer Console, the following error is displayed: Teleport failed because Teleport validation failed (Unauthorized).

  3. What solutions have you tried so far? Did you look for solutions on the Creator Hub? I’ve tried troubleshooting the issue by publishing the place I’m trying to teleport to, changing the teleport function, etc.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

Below are my scripts.

Local Script:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")

local teleportEvent = ReplicatedStorage:WaitForChild("TeleportToMap")

local scrollingFrame = script.Parent
local menuFrame = scrollingFrame.Parent
local infoFrame = menuFrame:WaitForChild("InfoFrame")

local mapData = {
	["Map1"] = {
		Name = "Tokyo Expressway",
		Description = "asdf",
		Image = "rbxassetid://17173786916",
		PlaceId = 140400468621527 
	}
	
}

local selectedMapName = nil

for _, mapButton in ipairs(scrollingFrame:GetChildren()) do
	if mapButton:IsA("TextButton") then
		mapButton.MouseButton1Click:Connect(function()
			local mapName = mapButton.Name
			local info = mapData[mapName]

			if info then
				selectedMapName = mapName

				for _, frame in ipairs(infoFrame:GetChildren()) do
					if frame:IsA("Frame") then
						frame.Visible = false
					end
				end

				local targetFrame = mapButton:FindFirstChild("Object") and mapButton.Object.Value
				if targetFrame and targetFrame:IsA("Frame") then
					targetFrame.Visible = true

					local nameLabel = targetFrame:FindFirstChild("Name")
					local descLabel = targetFrame:FindFirstChild("MapDescription")
					local imageLabel = targetFrame:FindFirstChild("MapThumbnail")

					if nameLabel then nameLabel.Text = info.Name end
					if descLabel then descLabel.Text = info.Description end
					if imageLabel then imageLabel.Image = info.Image end
				end
			end
		end)
	end
end

local playButton = infoFrame:FindFirstChild("Play")

if playButton then
	playButton.MouseButton1Click:Connect(function()
		if selectedMapName and mapData[selectedMapName] then
			local placeId = mapData[selectedMapName].PlaceId
			if placeId then
				teleportEvent:FireServer(placeId)
			else
				warn("PlaceId 없음: " .. selectedMapName)
			end
		else
			warn("맵이 선택되지 않았습니다.")
		end
	end)
end

Server Script:

-- ServerScriptService.TeleportHandler
local TeleportService = game:GetService("TeleportService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local teleportEvent = ReplicatedStorage:WaitForChild("TeleportToMap")

teleportEvent.OnServerEvent:Connect(function(player, placeId)
	if typeof(placeId) == "number" then
		TeleportService:Teleport(placeId, player)
	else
		warn("Invalid placeId received:", placeId)
	end
end)

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

do you have the allow third-party teleports option on?

Howdy,

Please verify that the place you are trying to teleport to has the correct ID and is also under the same experience. If you are trying to teleport to a place outside of the experience, then you must enable Third-Party Teleports in the game settings. Additionally, make sure the place you are trying to teleport to is a version that is published.

I also want to point out that passing a place ID through a remote event may be risky. Explotiers may be able to use this remote to access restricted places if they get their hands on the said restricted place ID. You can add a check within the server script for allowed places (like a table).

Let me know if this helps! Thanks.

The third-party teleport option is already turned on.

I have entered the PlaceID correctly, both places are in the same experience, I also have third-party teleportation enabled and the place I am teleporting to is the official version.

Is the place you’re trying to teleport to published? Send a video of you trying to teleport too.

I have a question. If I change an experience in the studio to Public, will the other places also change to Public?

Not necessarily, you can have private places in a public experience. Did you ever find a solution for the 773 error?

In case anyone else has the same error, just click on “publish to Roblox” (from the place you want to teleport to). I fixed it by doing this :smiley:

2 Likes