local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local CoreGui = game:GetService("CoreGui") -- Main GUI container local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "AdvancedTeleportGui_2025" ScreenGui.Parent = CoreGui -- 1. Main Toggle Button (Stays visible until 'X' is pressed) local OpenBtn = Instance.new("TextButton") OpenBtn.Size = UDim2.new(0, 120, 0, 40) OpenBtn.Position = UDim2.new(0, 10, 0.5, 0) OpenBtn.Text = "Teleport List" OpenBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 40) OpenBtn.TextColor3 = Color3.new(1, 1, 1) OpenBtn.Parent = ScreenGui -- 2. Main Menu Frame local MainFrame = Instance.new("Frame") MainFrame.Size = UDim2.new(0, 250, 0, 350) MainFrame.Position = UDim2.new(0.5, -125, 0.5, -175) MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) MainFrame.Visible = false MainFrame.Parent = ScreenGui -- 3. Minimize Button (-) local MinimizeBtn = Instance.new("TextButton") MinimizeBtn.Size = UDim2.new(0, 30, 0, 30) MinimizeBtn.Position = UDim2.new(1, -65, 0, 5) MinimizeBtn.Text = "-" MinimizeBtn.BackgroundColor3 = Color3.fromRGB(70, 70, 70) MinimizeBtn.TextColor3 = Color3.new(1, 1, 1) MinimizeBtn.Parent = MainFrame -- 4. Destroy Button (X) local DestroyBtn = Instance.new("TextButton") DestroyBtn.Size = UDim2.new(0, 30, 0, 30) DestroyBtn.Position = UDim2.new(1, -35, 0, 5) DestroyBtn.Text = "X" DestroyBtn.BackgroundColor3 = Color3.fromRGB(150, 0, 0) DestroyBtn.TextColor3 = Color3.new(1, 1, 1) DestroyBtn.Parent = MainFrame -- Search Bar & List Logic local SearchBar = Instance.new("TextBox") SearchBar.Size = UDim2.new(1, -75, 0, 30) SearchBar.Position = UDim2.new(0, 5, 0, 5) SearchBar.PlaceholderText = "Search..." SearchBar.BackgroundColor3 = Color3.fromRGB(50, 50, 50) SearchBar.TextColor3 = Color3.new(1, 1, 1) SearchBar.Parent = MainFrame local ScrollFrame = Instance.new("ScrollingFrame") ScrollFrame.Size = UDim2.new(1, -10, 1, -45) ScrollFrame.Position = UDim2.new(0, 5, 0, 40) ScrollFrame.BackgroundTransparency = 1 ScrollFrame.Parent = MainFrame local UIListLayout = Instance.new("UIListLayout") UIListLayout.Parent = ScrollFrame -- Functionality OpenBtn.MouseButton1Click:Connect(function() MainFrame.Visible = true end) MinimizeBtn.MouseButton1Click:Connect(function() MainFrame.Visible = false end) DestroyBtn.MouseButton1Click:Connect(function() ScreenGui:Destroy() -- Permanently deletes the GUI for this session end) local function updateList() for _, child in pairs(ScrollFrame:GetChildren()) do if child:IsA("TextButton") then child:Destroy() end end for _, player in pairs(Players:GetPlayers()) do if player ~= LocalPlayer and string.find(player.Name:lower(), SearchBar.Text:lower()) then local Btn = Instance.new("TextButton") Btn.Size = UDim2.new(1, 0, 0, 30) Btn.Text = player.Name Btn.Parent = ScrollFrame Btn.MouseButton1Click:Connect(function() if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then LocalPlayer.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame end end) end end end SearchBar:GetPropertyChangedSignal("Text"):Connect(updateList) Players.PlayerAdded:Connect(updateList) Players.PlayerRemoving:Connect(updateList) updateList()