Run it
Copy the script and paste it into your executor.
-- auto grab v2
local Workspace = game:GetService("Workspace")
local function setHoldDuration(prompt, duration)
if prompt:IsA("ProximityPrompt") then
prompt.HoldDuration = duration
end
Workspace.DescendantAdded:((descendant)
descendant:()
descendant.PromptShown:(()
(descendant, )
)
)
_, child (Workspace:())
child:()
(child, )
screenGui = .()
screenGui.Name =
screenGui.ResetOnSpawn =
button = .()
button.Size = .(, , , )
button.Position = .(, -, , -)
button.Text =
button.Font = .Font.SourceSansBold
button.TextSize =
button.BackgroundColor3 = .(, , )
button.BorderSizePixel =
button.Parent = screenGui
screenGui.Parent = .Players.LocalPlayer:()
dragging =
dragInput, mousePos, framePos
(input)
delta = input.Position - mousePos
button.Position = .(framePos.X.Scale, framePos.X.Offset + delta.X, framePos.Y.Scale, framePos.Y.Offset + delta.Y)
button.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragging =
mousePos = input.Position
framePos = button.Position
input.Changed:(()
input.UserInputState == .UserInputState.End
dragging =
)
)
button.InputChanged:((input)
dragging input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch
dragInput = input
)
:().InputChanged:((input)
dragging input == dragInput
(input)
)
isTriggering =
button.Activated:(()
isTriggering
button.Text =
button.BackgroundColor3 = .(, , )
isTriggering =
button.Text =
button.BackgroundColor3 = .(, , )
isTriggering =
)v2

Universal