local VirtualInputManager = game:GetService("VirtualInputManager") local player = game:GetService("Players").LocalPlayer local magnetDropper = player.PlayerGui:WaitForChild("MagnetDropper") local mainFrame = magnetDropper:WaitForChild("Main") local replicatedStorage = game:GetService("ReplicatedStorage") task.spawn(function() while true do replicatedStorage.Events.Recycle.SellAllItems:InvokeServer() task.wait(1) end end) local function clickMagnetFrame(magnetFrame) for _, button in ipairs(magnetFrame:GetDescendants()) do if button:IsA("TextButton") or button:IsA("ImageButton") then local absPos = button.AbsolutePosition local absSize = button.AbsoluteSize local clickPos = absPos + (absSize / 2) VirtualInputManager:SendMouseButtonEvent(clickPos.X, clickPos.Y, 0, true, game, 0) VirtualInputManager:SendMouseButtonEvent(clickPos.X, clickPos.Y, 0, false, game, 0) break end end end mainFrame.ChildAdded:Connect(function(child) if child.Name == "MagnetFrame" then clickMagnetFrame(child) end end) local magnetFrame = mainFrame:FindFirstChild("MagnetFrame") if magnetFrame then clickMagnetFrame(magnetFrame) end while true do local magnetFrame = magnetDropper:FindFirstChild("Main") and magnetDropper.Main:FindFirstChild("MagnetFrame") if magnetFrame then magnetFrame.Size = UDim2.new(2, 200, 2, 100) magnetFrame.Position = UDim2.new(0.5, 50, 0.48, -50) end wait(0.1) end