auto grab v2
Key RequiredUniversal

auto grab v2

Universal ScriptQyebutdwoshiQyebutdwoshi 11.4K views 516 executesUpdated Jan 26, 2025
0.0/ 5(1 votes)
010% Positive
Lua Script•85 lines (2497 chars)
-- auto grab v2
local Workspace = game:GetService("Workspace")

local function setHoldDuration(prompt, duration)
    if prompt:IsA("ProximityPrompt") then
        prompt.HoldDuration = duration
    end
end

Workspace.DescendantAdded:Connect(function(descendant)
    if descendant:IsA("ProximityPrompt") then
        descendant.PromptShown:Connect(function()
            setHoldDuration(descendant, 0)
        end)
    end
end)

for _, child in ipairs(Workspace:GetDescendants()) do
    if child:IsA("ProximityPrompt") then
        setHoldDuration(child, 0)
    end
end

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "ProximityPromptController"
screenGui.ResetOnSpawn = false

local button = Instance.new("TextButton")
button.Size = UDim2.new(0, 200, 0, 50)
button.Position = UDim2.new(0.5, -100, 0.5, -25)
button.Text = "Start"
button.Font = Enum.Font.SourceSansBold
button.TextSize = 20
button.BackgroundColor3 = Color3.new(0.3, 0.7, 0.3)
button.BorderSizePixel = 0

button.Parent = screenGui
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

local dragging = false
local dragInput, mousePos, framePos

local function update(input)
    local delta = input.Position - mousePos
    button.Position = UDim2.new(framePos.X.Scale, framePos.X.Offset + delta.X, framePos.Y.Scale, framePos.Y.Offset + delta.Y)
end

button.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
        dragging = true
        mousePos = input.Position
        framePos = button.Position

        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then
                dragging = false
            end
        end)
    end
end)

button.InputChanged:Connect(function(input)
    if dragging and input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
        dragInput = input
    end
end)

game:GetService("UserInputService").InputChanged:Connect(function(input)
    if dragging and input == dragInput then
        update(input)
    end
end)

local isTriggering = false
button.Activated:Connect(function()
    if isTriggering then
        button.Text = "Start"
        button.BackgroundColor3 = Color3.new(0.3, 0.7, 0.3)
        isTriggering = false
    else
        button.Text = "Stop"
        button.BackgroundColor3 = Color3.new(0.7, 0.3, 0.3)
        isTriggering = true
    end
end)

Features & Information

v2

Community Comments (4)

SleepyExoSleepyExoJan 26, 2025(edited)

both auto grabs work its just that they are slow because im playing this game and the item stays there so im trying to grab it multiple times but it grabs slowly

davidvelikiy46davidvelikiy46Feb 7, 2025(edited)

bad script

QyebutdwoshiQyebutdwoshiFeb 9, 2025(edited)

fire proximityprompt v3 is better

QyebutdwoshiQyebutdwoshiFeb 9, 2025(edited)

so stop using this script ok?

More Scripts for Universal Scripts