Teleport Error 773: Attempt to teleport to restricted place

When I attempt to teleport on my main acc it works but on alt acc it just says it is restricted. I’ve enabled third party teleports and made it public as well as publish it.

I’ve read other peoples topics but found nothing that helps

Client Code:

local Button = script.Parent
local Player = game:GetService("Players").LocalPlayer
local char = game.Players.LocalPlayer.Character
local MainMenuGui = game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("MainMenuGui")
local LoadingGui = game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("LoadingGui")
local ButtonPressedEvent = game.ReplicatedStorage.RemoteEvents.ButtonPressed

Button.MouseButton1Click:Connect(function()
	ButtonPressedEvent:FireServer(Player)
end)

Server Code:

local TPService = game:GetService("TeleportService")
local ButtonPressedEvent = game.ReplicatedStorage.RemoteEvents.ButtonPressed

local TPPlaceID = 14689927963
local TeleportGui = game.ReplicatedStorage.TeleportGui

TPService:SetTeleportGui(TeleportGui)

ButtonPressedEvent.OnServerEvent:Connect(function(Player)
	local success, result = pcall(TPService:TeleportAsync(TPPlaceID, {Player}))
end)

Any help is appreciated!

3 Likes

Untested.
(no need for a pcall on this)

Client

local Button = script.Parent
local Player = game:GetService("Players").LocalPlayer
local ButtonPressedEvent = game.ReplicatedStorage.RemoteEvents.ButtonPressed

Button.MouseButton1Click:Connect(function()
    ButtonPressedEvent:FireServer(Player)
end)

Server

local TPService = game:GetService("TeleportService")
local ButtonPressedEvent = game.ReplicatedStorage.RemoteEvents.ButtonPressed

local TPPlaceID = 14689927963

ButtonPressedEvent.OnServerEvent:Connect(function(Player)
    TPService:TeleportAsync(TPPlaceID, Player)
end)
1 Like

Usually the problem lies on the place accessibility, make sure both places are public to everyone. If that’s not the case, then I’m not sure since :TeleportAsync() does not emit that kind of error regarding of code.

Potential Errors for :TeleportAsync():

1 Like

You didn’t bracket the “Player” but i will try it out

1 Like

Nope, it sadly didn’t work (30char)

1 Like

It can be as easy as you using the wrong place id, so make sure your using the correct place id

3 Likes

also I checked the place id, and it might be because its a private game

1 Like

Just wondering where that came from … Some type of error checking?
Never seen that on Roblox.

1 Like

It worked :+1: :+1: :+1: (ty and i wasted 1 week on this problem just for some simple mistake)

1 Like

awesome, it happens so dont worry about it

1 Like

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