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

Teleport players to a private game?

Asked by 3 years ago

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.

1 answer

Log in to vote
0
Answered by
sayer80 457 Moderation Voter
3 years ago
Edited 3 years ago

1 The answer is not to create a new game, but to create a new place under the game. Click on View > go to Asset Manager > Double Click on Places > Right Click and add new place

2 Now right click on the place and "Copy the Id to Clipboard", that's the place ID that you can teleport players to.

3 Now you have to import all the Data from the Private game to the New place that you've created.

4 To edit the new place simply double click on it.

More Help https://developer.roblox.com/en-us/articles/Teleporting-Between-Places

1
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? Alisa_xd1 8 — 3y
0
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. sayer80 457 — 3y
0
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. Alisa_xd1 8 — 3y
0
So I made the start place public and it still says it is restricted, any ideas? Alisa_xd1 8 — 3y
View all comments (5 more)
0
Maybe try TeleportToPrivateServer or TeleportPartyAsync sayer80 457 — 3y
0
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. sayer80 457 — 3y
0
Or maybe try out TPS:TeleportToPlaceInstance(v.PlaceId, v.GameId, Player) or maybe enabling teleport service in game settings sayer80 457 — 3y
1
Okay! Thank you for help. Alisa_xd1 8 — 3y
Ad

Answer this question