local plrs = game:GetService("Players") local TS = game:GetService("TweenService") local UIS = game:GetService("UserInputService") local player = plrs.LocalPlayer local char = player.Character or player.CharacterAdded:Wait() local root = char:WaitForChild("HumanoidRootPart") local baseCFrame = CFrame.new(123, 3, -1) local midCFrame = CFrame.new(1597, 71, 76) local gui = Instance.new("ScreenGui") gui.Name = "BrainrotTeleportUI" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.fromScale(0.22, 0.18) frame.Position = UDim2.fromScale(0.39, 0.4) frame.BackgroundColor3 = Color3.fromRGB(20, 20, 24) frame.BorderSizePixel = 0 frame.Parent = gui frame.Active = true local corner = Instance.new("UICorner", frame) corner.CornerRadius = UDim.new(0, 14) local stroke = Instance.new("UIStroke", frame) stroke.Color = Color3.fromRGB(70, 70, 90) stroke.Thickness = 1 local title = Instance.new("TextLabel") title.Size = UDim2.fromScale(1, 0.28) title.BackgroundTransparency = 1 title.Text = "Secret Brainrot Sniper By XtraYsf" title.Font = Enum.Font.GothamBold title.TextSize = 18 title.TextColor3 = Color3.fromRGB(235, 235, 240) title.Parent = frame local line = Instance.new("Frame") line.Size = UDim2.fromScale(0.9, 0.01) line.Position = UDim2.fromScale(0.05, 0.3) line.BackgroundColor3 = Color3.fromRGB(80, 80, 110) line.BorderSizePixel = 0 line.Parent = frame local button = Instance.new("TextButton") button.Size = UDim2.fromScale(0.85, 0.32) button.Position = UDim2.fromScale(0.075, 0.4) button.Text = "Teleport to Secret Brainrot" button.Font = Enum.Font.GothamMedium button.TextSize = 14 button.TextColor3 = Color3.fromRGB(255, 255, 255) button.BackgroundColor3 = Color3.fromRGB(40, 40, 60) button.BorderSizePixel = 0 button.Parent = frame local bcorner = Instance.new("UICorner", button) bcorner.CornerRadius = UDim.new(0, 10) local author = Instance.new("TextLabel") author.Size = UDim2.fromScale(1, 0.18) author.Position = UDim2.fromScale(0, 0.82) author.BackgroundTransparency = 1 author.Text = "You have to hold the proximity prompt fast enough to get the brainrot." author.Font = Enum.Font.Gotham author.TextSize = 11 author.TextColor3 = Color3.fromRGB(160, 160, 180) author.Parent = frame local close = Instance.new("TextButton") close.Size = UDim2.fromScale(0.12, 0.28) close.Position = UDim2.fromScale(0.88, 0) close.BackgroundTransparency = 1 close.Text = "X" close.Font = Enum.Font.GothamBold close.TextSize = 16 close.TextColor3 = Color3.fromRGB(200, 200, 210) close.Parent = frame close.MouseButton1Click:Connect(function() gui:Destroy() end) local dragging, dragStart, startPos frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPos = frame.Position end end) UIS.InputChanged:Connect(function(input) if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then local delta = input.Position - dragStart frame.Position = UDim2.fromScale( startPos.X.Scale + delta.X / workspace.CurrentCamera.ViewportSize.X, startPos.Y.Scale + delta.Y / workspace.CurrentCamera.ViewportSize.Y ) end end) UIS.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) local function runTeleport() local folder = workspace:FindFirstChild("ActiveBrainrots") folder = folder and folder:FindFirstChild("Secret") if not folder then return end root.CFrame = baseCFrame task.wait(0.05) root.CFrame = midCFrame task.wait(1) local prompt, part for _, inst in ipairs(folder:GetDescendants()) do if inst:IsA("ProximityPrompt") and inst.Name == "TakePrompt" then prompt = inst part = inst.Parent if part:IsA("Attachment") then part = part.Parent end if part and part:IsA("BasePart") then break end end end if not prompt or not part then root.CFrame = baseCFrame return end prompt.HoldDuration = 0.5 root.CFrame = part.CFrame * CFrame.new(0, 0, -2) prompt.Triggered:Wait() root.CFrame = baseCFrame end button.MouseEnter:Connect(function() TS:Create(button, TweenInfo.new(0.12), {BackgroundColor3 = Color3.fromRGB(60, 60, 90)}):Play() end) button.MouseLeave:Connect(function() TS:Create(button, TweenInfo.new(0.12), {BackgroundColor3 = Color3.fromRGB(40, 40, 60)}):Play() end) button.MouseButton1Click:Connect(runTeleport)