How does this work?

Hello! I am a new Roblox Dev and I was just wondering how this worked.

So sometimes when you enter a game you might end up in a lobby, then you get teleported to a different map and you appear to be getting teleported to another game like this one made by BlockZone where you travel to different dimensions it appears you are going to a different game.

It says that this is created by the same people and everything and looks like your being transported to a different game, the leaderboard has different people on it and everything. But on the groups home page dimension 2 isn’t one of their games.

Please tell me how this works so I can do it too.

This is possible by creating another placefrom the Game Explorer and teleporting the player using TeleportService

I don’t understand, what is Game Explorer?

Heya, welcome to the community! :wave:

So to answer your question, what they do is use TeleportService's Teleport function to TP you to a different place apart from the starting place

Well, what do I mean by that? Take a look at this on your Studio in your Game Explorer:
image

We can see in this image that there are 2 place icons: A starting place, and a separate place

  • The Starting Place (SpawnLocation Icon) is where all players first join the game, it’s kinda like a Lobby for Story Games when you think about it

  • The Separate Place (Worldwide Icon) is a place inside the main game; what’s different about it is that you’re only able to access it by using a TeleportService function (I believe, someone correct me on that), it’s still inside the same game but just a different Place ID

  • I believe it’s also invisible for the public to see since you wouldn’t want like 20-30 separate places to crowd your group games lol

So say if you wanted to do this, let’s say I put a Part inside the workspace:

local PlaceID = 00000 --Obviously the place id goes here
local Part = script.Parent
local TPService = game:GetService("TeleportService")

Part.Touched:Connect(function(Hit)
    local Player = game.Players:GetPlayerFromCharacter(Hit.Parent)
    if Player then
        TPService:Teleport(PlaceID, Player) --I forgot the parameters but it's something along those lines
    end
end)

The part will detect if a player has touched it, if it has, then we can Teleport our player to that “Separate place”!

1 Like

go to View Tab>Game Explorer> Right Click On Places> Add

Then Teleport the player to that place

Thank you so much, this is very helpful

1 Like

Yeah anytime! That’s what the community is here for after all!

Also definitely not suffering inside while typing this all on mobile