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)