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)`
The problems have been fixed, I was using the wrong id, thanks go to Flasker917 for the help :).