773 error message when player teleports

Hi!
I’m trying to make a teleport that teleports the player from the Starting place to another place (like going from the lobby to the main game) but I keep on getting a 773 error message. It says attempted to teleport to a restricted area.

I’ve looked online and on the devform but nothing is working. I have the game and the place I want to teleport the play to set as public, 3rd party teleports are on, and the game is free.

this is the code I have for the teleporter:

local TeleportService = game:GetService("TeleportService")
local gameID = 5661561828

	function onTouched(hit)
		local player = game.Players:GetPlayerFromCharacter(hit.Parent)
		if player then
		TeleportService:Teleport(gameID, player)
	end
	end

script.parent.Touched:connect(onTouched)
2 Likes

Your PlaceId seems to be invalid. Roblox responds with “404” aka not found. Please make sure you input the correct PlaceId in gameID variable.

www.roblox.com/games/5661561828/

ok! also the placeID is in Roblox studio then you go to asset manager (in the game) right? or is it somewhere else?

its in your console

try pasting this script into your console and let me know whats the output

print(game.PlaceId)
1 Like

now it says client initiated disconnect I think this is just my wifi tho

can you please tell me whats the output of this code snippet in studio??

print(game.PlaceId)

That happens when you shutdown all servers and don’t kill the roblox process and wait like a few seconds (happend to me when jailbreak dropped their update)

oops yeah, 16428583844 is the outcome

Then you should replace gameID variable with that ID you just provided

1 Like

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