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?
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)
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?
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/”