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.
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