How to teleport from StartPlace to another Place in the universe?

Hi there!
I am trying to get a player that is in the Start Place to be teleported to another Place within the Universe. Think of it like one of those Backrooms game with different levels.

function Teleport(hit)
	local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
	game:GetService("TeleportService"):Teleport(16129390632, player)
	
end
script.Parent.Touched:Connect(Teleport)

Additional question:
Both of these places are the exact same. The first one was created as a place within a place and the second one is its own place. Am I able to overwrite the first place if I just do all updates in the second place and overwrite publish as in the Start Place?
image

local places = {
    Place1 = 16129390632
}

local function Teleport(hit)
	local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
    if not player then return end
	game:GetService("TeleportService"):TeleportAsync(places.Place1, {player})
end

script.Parent.Touched:Connect(Teleport)
1 Like

You can set the start place to place 2 I’m pretty sure.

places.Place1 What does each variable is suppose to represent? For some reason the place published within a place is just called “Ahmingiscool’s place 36”. How do I rename it?

It’s referencing Place1 inside the table.

You should be able to rename the places via place management.

Yeah, its not there. It only contains the Two Separate experiences, not the subplace.

hey, you need the other place’s place id. you need to select the base place in the creations tab and then go to the configure dropdown, there you find the tab “Places”. inside of it, click the other place and then copy the place id from the url after “/places/”

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.