Hello developers,
I'm working on a game and I have two places: lobby and the main game. Both games are created in the group. The lobby is public and the main game private. I'm trying to teleport the player from a public place to a private one. Once I called some friends to test it out, they get the permission error. You might be asking, why don't you make both games public? Because they would be appearing on my group games and I want only one to show up. Can someone please help me to get this sorted out?
local teleportservice = game:GetService("TeleportService")
script.Parent.Text = "Teleporting, please wait..."
wait(2)
teleportservice:Teleport(6247370307)
end)
Thank you in advance.

9 comments
Hello! Thank you, I managed to get it done but it says I don't have permissions to visit it? Can you help me out, please?
TeleportService does not work during playtesting in Roblox Studio — to test the concepts in this tutorial, you must publish the game and play it in the Roblox application.
Yes, I made sure that the game is published, copied the correct id and then tested it on the roblox application. Getting the error that the place is restricted.
So I made the start place public and it still says it is restricted, any ideas?
Maybe try TeleportToPrivateServer or TeleportPartyAsync
That’s an Roblox issue which was already reported by @berezaa. They stated that this shouldn’t be happening anymore so I’d contact a support or report it as an engine bug again.
https://devforum.roblox.com/t/regularly-when-teleporting-players-are-told-the-place-is-restricted-when-it-is-not/544495
Or maybe try out TPS:TeleportToPlaceInstance(v.PlaceId, v.GameId, Player) or maybe enabling teleport service in game settings
Okay! Thank you for help.