ok ok wait im still on the lobby part i want were a gui appears above the thing saying…
- User
ok ok wait im still on the lobby part i want were a gui appears above the thing saying teleport that shows people were to go and like in sotry games when you get close to the thing it forces you to be inside the teleport and you cant just walk out you need to press the leave button also the countdown when it hits 0 the texts changes to teleporting
- Assistant
Below is a “drop-in” mini-system that gives you the exact story-game lobby behavior you described:
• Big floating “TELEPORT” sign above the pad.
• Walking close snaps / locks the player in the pod (they can’t walk out).
• A screen-GUI “Leave Queue” button lets them exit.
• Live player counter + countdown on the sign.
• At 0 the text swaps to “TELEPORTING…”, then everyone is sent to the round place.You only have to (1) build a little Teleport Pod model, and (2) paste two scripts + one GUI. No extra plugins or modules needed.
──────────────────────────────────────── 1 BUILD THE TELEPORT POD MODEL ──────────────────────────────────────── Workspace
└─ TeleportPod (Model)
├─ Pad (Part — floor, 6×1×6, CanCollide true)
├─ Walls (Part — transparent, CanCollide true, surrounds pad)
└─ Billboard (BillboardGui, parented to Pad)BillboardGui quick setup
• Size: (0,200)×(0,100)
• StudsOffset: (0,6,0) so it floats above.
• Inside it add a TextLabel:
– Text = “TELEPORT\n0/4”
– TextScaled = true, RichText = true, BackgroundTransparency = 1TIP: make the Walls part Transparency = 1 but Keep CanCollide = true so players can’t walk out.
──────────────────────────────────────── 2 SERVER SCRIPT – QueueHandler ──────────────────────────────────────── Place in ServerScriptService.
Replace DELIVERY_PLACE_ID with the ID of your round map.-- QueueHandler.lua local TeleportService = game:GetService("TeleportService") local Players = game:GetService("Players") local RunService = game:GetService("RunService") local DELIVERY_PLACE_ID = 12345678 -- << change! local MIN_PLAYERS = 2 local MAX_PLAYERS = 4 local COUNTDOWN_SEC = 10 ---------------------------------------------------- -- references ---------------------------------------------------- local pod = workspace:WaitForChild("TeleportPod") local pad = pod:WaitForChild("Pad") local billboard = pod:WaitForChild("Billboard"):FindFirstChildWhichIsA("TextLabel") ---------------------------------------------------- -- runtime vars ---------------------------------------------------- local queue = {} local countingDown = false local currentTimer = COUNTDOWN_SEC ---------------------------------------------------- -- helpers ---------------------------------------------------- local function refreshBillboard() billboard.Text = string.format("TELEPORT\n%d/%d", #queue, MAX_PLAYERS) if countingDown then billboard.Text = billboard.Text .. string.format("\n< %d >", currentTimer) end end local function lockPlayer(plr) local char = plr.Character if not char then return end local hrp = char:FindFirstChild("HumanoidRootPart") local hum = char:FindFirstChildOfClass("Humanoid") if hrp and hum then -- freeze movement hum.WalkSpeed = 0 hum.JumpPower = 0 -- snap to centre hrp.CFrame = pad.CFrame * CFrame.new(0, 3, 0) end -- add leave-button GUI local gui = Instance.new("ScreenGui") gui.Name = "LeaveQueueGui" gui.ResetOnSpawn = false gui.Parent = plr.PlayerGui local btn = Instance.new("TextButton") btn.Size = UDim2.new(0,200,0,50) btn.Position = UDim2.new(0.5,-100,0.8,0) btn.Text = "Leave Queue" btn.TextScaled = true btn.Parent = gui btn.Activated:Connect(function() btn.Text = "Leaving..." game.ReplicatedStorage:WaitForChild("LeaveEvent"):FireServer() end) end local function unlockPlayer(plr) local char = plr.Character if char then local hum = char:FindFirstChildOfClass("Humanoid") if hum then hum.WalkSpeed = 16 hum.JumpPower = 50 end end local gui = plr.PlayerGui:FindFirstChild("LeaveQueueGui") if gui then gui:Destroy() end end local function startCountdown() countingDown = true currentTimer = COUNTDOWN_SEC while countingDown and currentTimer > 0 do refreshBillboard() wait(1) currentTimer -= 1 -- someone may have left if #queue < MIN_PLAYERS then countingDown = false refreshBillboard() return end end -- Launch! billboard.Text = "TELEPORTING…" wait(1) local options = Instance.new("TeleportOptions") options.ShouldReserveServer = true local copy = {unpack(queue)} local ok,err = pcall(function() TeleportService:TeleportPartyAsync(DELIVERY_PLACE_ID, copy, options) end) if not ok then warn(err) end -- reset (in case teleport fails) queue = {} countingDown = false refreshBillboard() for _,p in ipairs(copy) do unlockPlayer(p) end end ---------------------------------------------------- -- queue management ---------------------------------------------------- local function enqueue(plr) for _,v in ipairs(queue) do if v==plr then return end end if #queue >= MAX_PLAYERS then return end table.insert(queue, plr) lockPlayer(plr) refreshBillboard() if #queue >= MIN_PLAYERS and not countingDown then coroutine.wrap(startCountdown)() end end local function dequeue(plr) for i,v in ipairs(queue) do if v == plr then table.remove(queue, i) unlockPlayer(plr) break end end if #queue < MIN_PLAYERS then countingDown = false end refreshBillboard() end ---------------------------------------------------- -- touch detection ---------------------------------------------------- pad.Touched:Connect(function(hit) local plr = Players:GetPlayerFromCharacter(hit.Parent) if plr then enqueue(plr) end end) -- remote for leave button local leaveEvent = Instance.new("RemoteEvent", game.ReplicatedStorage) leaveEvent.Name = "LeaveEvent" leaveEvent.OnServerEvent:Connect(function(plr) dequeue(plr) end) -- clean up if player leaves game Players.PlayerRemoving:Connect(dequeue) refreshBillboard()──────────────────────────────────────── 3 HOW IT FEELS IN-GAME ──────────────────────────────────────── • A big “TELEPORT 0/4” sign floats above the pad.
• When a player walks onto the pad they snap to the centre, movement is frozen, invisible walls hold them in.
• A “Leave Queue” button appears on their screen. Pressing it pops them out, restores movement, and updates the counter.
• Once 2+ players are locked in, a 10 → 0 countdown overlays on the sign.
• If someone leaves mid-countdown, the clock cancels and the sign reverts.
• At 0 the text swaps to “TELEPORTING…”, then TeleportService whisks the whole party to the Delivery place.──────────────────────────────────────── 4 QUICK CUSTOM TWEAKS ──────────────────────────────────────── • Change MIN_PLAYERS, MAX_PLAYERS, COUNTDOWN_SEC at the top.
• Move / scale the Walls part if you want a bigger pod.
• Style the BillboardGui however you like (fonts, colours, icons).
• For multiple pods just duplicate the TeleportPod model and the script will still work (each pad has its own touch event).That’s the entire lobby behaviour wrapped up. Drop this into your project, test in Play (2 players) mode, and you’ll see the sign update, the force-lock, the leave button, and the automatic teleport. Have fun!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.