Drop Tool button
Key RequiredUniversal

Drop Tool button

Universal Scriptdodgealoverdodgealover 4.3K views 2K executesUpdated Apr 13, 2025
5.0/ 5(1 votes)
10100% Positive
Lua Script•56 lines (1721 chars)
local DropGUI = Instance.new("ScreenGui")
local DropTool = Instance.new("TextButton")

DropGUI.Name = "Drop GUI"
DropGUI.Parent = game.CoreGui
DropGUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

DropTool.Name = "Drop Tool"
DropTool.Parent = DropGUI
DropTool.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
DropTool.BackgroundTransparency = 0.79
DropTool.Position = UDim2.new(1, -20, 0, 0)
DropTool.Size = UDim2.new(0, 20, 0, 20)
DropTool.Font = Enum.Font.SourceSans
DropTool.Text = "D"
DropTool.TextColor3 = Color3.fromRGB(255, 255, 255)
DropTool.TextScaled = true
DropTool.TextSize = 14.000
DropTool.TextWrapped = true
DropTool.AutoButtonColor = false
DropTool.BorderSizePixel = 0

DropTool.ClipsDescendants = true
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(1, 0)
corner.Parent = DropTool

DropTool.MouseButton1Down:Connect(function()
    game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool").Parent = game.Workspace
end)

local dragging
local dragInput
local dragStart
local startPos

DropTool.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.Touch then
        dragging = true
        dragStart = input.Position
        startPos = DropTool.Position

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

DropTool.InputChanged:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.Touch and dragging then
        local delta = input.Position - dragStart
        DropTool.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
    end
end)

Features & Information

---appears in the upper right corner ---20x20(Open source, you can resize) ---Grab-able ---Can't drop some tools(because it's was been undroppable) ---[FIXED] my bad

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts