Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Failure to teleport to restricted place Error Code: 773 -- only works one way?

Hello, I am making a camping style game. I can teleport to my game from the lobby, but when I try to teleport from the game to the lobby it fails. I have the game public and could not find any explanation to this issue--can anybody help me? My code is exactly the same for both--it just only works one way and not the other which doesn't make sense to me. It also was working both ways earlier in the week as well--so I'm very confused.

Here is the code:

` local Teleportation=game:GetService("TeleportService")
local Game=My id (sorry, not comfortable sharing it at the moment)
 script.Parent.Touched:Connect(function(hit)
 	local player=game.Players:GetPlayerFromCharacter(hit.Parent)
 	if player then
 		Teleportation:Teleport(Game,player)
 	end
 end)`

1 comment

1

are you sure the game id is correct?

1 answer

The problems have been fixed, I was using the wrong id, thanks go to Flasker917 for the help :).

This discussion is preserved as it was. New answers, comments, and votes are closed.