How to make a lobby teleporter

I am working on a difficulty chart obby, and I am trying to make a lobby, diffirent portals for diffirent worlds and when you go into the portal you teleport to a diffirent obby.

I’ve tried making a lobby, putting a SpawnLocation in but then it either teleports me to stage 0, (The first stage), or the lobby.

I don’t know what to do, I’d appreciate any help.

I’m wondering if you have a spawn at stage 0 also because when you have more then one active spawn it chooses a random spawn.

I do have a spawn at stage 0.
But I just don’t know how to create a teleporter.

local telePart = TELEPORT_PART

local function onTouch(hit)
   if hit:WaitForChild("Humanoid") ~= nil then
      local hum = hit:WaitForChild("HumanoidRootPart")
      hum.Position = telePart.Position
   end)
end

script.parent.Touched:Connect(onTouch()

Try spmething like this sorry for mistakes im on mobile :grin:

…or you can use CFrame, not sure which works best

1 Like