Pastebin

Paste #49905: No description

< previous paste - next paste>

Pasted by Anonymous Coward

Download View as text

-- SERVICES
local Players = game:GetService("Players")
local StarterGui = game:GetService("StarterGui")
local VirtualInputManager = game:GetService("VirtualInputManager")
local CoreGui = game:GetService("CoreGui")
local GuiService = game:GetService("GuiService")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")

local localPlayer = Players.LocalPlayer
local playerGui = localPlayer:WaitForChild("PlayerGui")
local camera = workspace.CurrentCamera

-- STEALTH SEEDING
math.randomseed(os.clock())

-- CLEANUP
local UI_NAME = "QB_" .. math.random(100, 999)
for _, v in ipairs(playerGui:GetChildren()) do
    if v:IsA("ScreenGui") and (v:FindFirstChild("Main") or v:FindFirstChild("Toggle")) then v:Destroy() end
end

-- CONFIG
local INPUT_MODE = (UserInputService.TouchEnabled and not UserInputService.MouseEnabled) and "MOBILE" or "PC"
local blockedHistory = {}
local isProcessing = false
local menuVisible = true
local modesList = {"PC", "MOBILE", "AUTO"}
local grabRange = 175
local FIXED_POSITION = Vector3.new(-334.09, -4.69, 23.53)

local TELEPORT_POINTS = {
	CFrame.new(-328.47, -4.96, 115.49),
	CFrame.new(-391.23, -6.86, 116.95),
	CFrame.new(-416.52, -6.36, 86.27),
	CFrame.new(-413.92, -6.36, 35.63),
	CFrame.new(-396.93, -6.85, 12.30),
	CFrame.new(-350.66, -6.86, 17.89),
	CFrame.new(-334.09, -4.69, 23.53)
}

-- YOUR ORIGINAL BLOCK ENGINE (STAYING RAW)
local function instantClick(x, y)
    local jX = x + (math.random(-150, 150)/100)
    local jY = y + (math.random(-150, 150)/100)
    
    if INPUT_MODE == "PC" then
        VirtualInputManager:SendMouseButtonEvent(jX, jY, 0, true, game, 0)
        VirtualInputManager:SendMouseButtonEvent(jX, jY, 0, false, game, 0)
    elseif INPUT_MODE == "MOBILE" then
        VirtualInputManager:SendMouseButtonEvent(jX, jY, 0, true, game, 0)
        VirtualInputManager:SendMouseButtonEvent(jX, jY, 0, false, game, 0)
        VirtualInputManager:SendMouseButtonEvent(jX + 1, jY + 1, 0, true, game, 0)
        VirtualInputManager:SendMouseButtonEvent(jX + 1, jY + 1, 0, false, game, 0)
    else 
        VirtualInputManager:SendMouseButtonEvent(jX, jY, 0, true, game, 0)
        VirtualInputManager:SendMouseButtonEvent(jX, jY, 0, false, game, 0)
    end
end

local function runFastBlock()
    local target = nil
    for _, p in ipairs(Players:GetPlayers()) do
        if p ~= localPlayer and not blockedHistory[p.UserId] then target = p break end
    end
    
    if not target then return end
    blockedHistory[target.UserId] = true
    
    pcall(function() StarterGui:SetCore("PromptBlockPlayer", target) end)

    local startTime = os.clock()
    local connection
    connection = RunService.Heartbeat:Connect(function()
        if os.clock() - startTime > 0.45 then 
            connection:Disconnect() 
            return 
        end
        
        local selected = GuiService.SelectedObject
        if selected and selected:IsA("GuiObject") and selected.Visible then
            instantClick(selected.AbsolutePosition.X + selected.AbsoluteSize.X/2, selected.AbsolutePosition.Y + selected.AbsoluteSize.Y/2)
            connection:Disconnect()
        else
            instantClick(camera.ViewportSize.X/2, camera.ViewportSize.Y * 0.62)
        end
    end)
end

-- UI CONSTRUCTION (YOUR ORIGINAL STYLE)
local screenGui = Instance.new("ScreenGui", playerGui)
screenGui.Name = UI_NAME
screenGui.IgnoreGuiInset = true
screenGui.DisplayOrder = 9999

local MENU_WIDTH, MENU_HEIGHT = 180, 125 -- Extra height for the Grab button
local MENU_Y_OFFSET = 0.35
local TOGGLE_SIZE = 45
local TOGGLE_POS = UDim2.new(1, -(MENU_WIDTH/2) - (TOGGLE_SIZE/2) - 20, MENU_Y_OFFSET, -70)
local MENU_OPEN_POS = UDim2.new(1, -MENU_WIDTH - 20, MENU_Y_OFFSET, 0)
local MENU_CLOSED_POS = UDim2.new(1, 60, MENU_Y_OFFSET, 0)

local backdrop = Instance.new("Frame", screenGui)
backdrop.Name = "Main"
backdrop.Size = UDim2.new(0, MENU_WIDTH, 0, MENU_HEIGHT)
backdrop.Position = MENU_OPEN_POS
backdrop.BackgroundColor3 = Color3.fromRGB(20, 20, 25)
Instance.new("UICorner", backdrop).CornerRadius = UDim.new(0, 16)
local menuStroke = Instance.new("UIStroke", backdrop)
menuStroke.Color = Color3.fromRGB(80, 80, 120)
menuStroke.Thickness = 1.5

-- PFP
local pfpIn = Instance.new("ImageLabel", backdrop)
pfpIn.Size = UDim2.new(0, 42, 0, 42)
pfpIn.Position = UDim2.new(0, 12, 0, 12)
pfpIn.Image = "rbxthumb://type=AvatarHeadShot&id=" .. localPlayer.UserId .. "&w=150&h=150"
pfpIn.BackgroundTransparency = 1
Instance.new("UICorner", pfpIn).CornerRadius = UDim.new(1, 0)

-- BLOCK BUTTON
local blockBtn = Instance.new("TextButton", backdrop)
blockBtn.Size = UDim2.new(0, 106, 0, 42)
blockBtn.Position = UDim2.new(0, 64, 0, 12)
blockBtn.BackgroundColor3 = Color3.fromRGB(90, 100, 255)
blockBtn.Text = "QUICK BLOCK"
blockBtn.Font = Enum.Font.GothamBold
blockBtn.TextColor3 = Color3.new(1,1,1)
blockBtn.TextSize = 10
Instance.new("UICorner", blockBtn).CornerRadius = UDim.new(0, 10)

-- GRAB BUTTON
local grabBtn = Instance.new("TextButton", backdrop)
grabBtn.Size = UDim2.new(0, 158, 0, 32)
grabBtn.Position = UDim2.new(0, 11, 0, 59)
grabBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
grabBtn.Text = "GRAB ONCE"
grabBtn.Font = Enum.Font.GothamBold
grabBtn.TextColor3 = Color3.new(1,1,1)
grabBtn.TextSize = 10
Instance.new("UICorner", grabBtn).CornerRadius = UDim.new(0, 8)

-- DEVICE BUTTON
local modeBtn = Instance.new("TextButton", backdrop)
modeBtn.Size = UDim2.new(0, 158, 0, 20)
modeBtn.Position = UDim2.new(0, 11, 0, 96)
modeBtn.BackgroundColor3 = Color3.fromRGB(35, 35, 45)
modeBtn.Text = "DEVICE: " .. INPUT_MODE
modeBtn.Font = Enum.Font.GothamBold
modeBtn.TextColor3 = Color3.fromRGB(180, 180, 180)
modeBtn.TextSize = 9
Instance.new("UICorner", modeBtn).CornerRadius = UDim.new(0, 6)

-- TOGGLE BUTTON
local toggleBtn = Instance.new("TextButton", screenGui)
toggleBtn.Name = "Toggle"
toggleBtn.Size = UDim2.new(0, TOGGLE_SIZE, 0, TOGGLE_SIZE)
toggleBtn.Position = TOGGLE_POS
toggleBtn.BackgroundColor3 = Color3.fromRGB(20, 20, 25)
toggleBtn.Text = ""
toggleBtn.ZIndex = 10
Instance.new("UICorner", toggleBtn).CornerRadius = UDim.new(1, 0)

local toggleStroke = Instance.new("UIStroke", toggleBtn)
toggleStroke.Color = Color3.fromRGB(100, 110, 255)
toggleStroke.Thickness = 2.5
toggleStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border

local toggleImg = Instance.new("ImageLabel", toggleBtn)
toggleImg.Size = UDim2.new(1,0,1,0)
toggleImg.BackgroundTransparency = 1
toggleImg.Image = "rbxthumb://type=AvatarHeadShot&id=" .. localPlayer.UserId .. "&w=150&h=150"
toggleImg.ZIndex = 11
Instance.new("UICorner", toggleImg).CornerRadius = UDim.new(1, 0)

-- WIRING LOGIC
toggleBtn.MouseButton1Click:Connect(function()
    menuVisible = not menuVisible
    TweenService:Create(backdrop, TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {
        Position = menuVisible and MENU_OPEN_POS or MENU_CLOSED_POS
    }):Play()
end)

modeBtn.MouseButton1Click:Connect(function()
    local i = table.find(modesList, INPUT_MODE) or 1
    INPUT_MODE = modesList[(i % #modesList) + 1]
    modeBtn.Text = "DEVICE: " .. INPUT_MODE
end)

blockBtn.MouseButton1Click:Connect(runFastBlock)

grabBtn.MouseButton1Click:Connect(function()
    if isProcessing then return end
    isProcessing = true
    grabBtn.Text = "GRABBING..."

    -- Fastest Grab Sequence
    task.spawn(runFastBlock) -- Instant popup trigger
    
    task.spawn(function()
        for _, point in ipairs(TELEPORT_POINTS) do
            if localPlayer.Character then localPlayer.Character:PivotTo(point) end
            task.wait() -- High speed cycle
        end
    end)

    task.wait(0.6) -- Wait for prompt to fire
    grabBtn.Text = "GRAB ONCE"
    isProcessing = false
end)

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.