Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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
are you sure the game id is correct? Flasker917 21 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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

Ad

Answer this question