Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AUTO PICK UP-----SCROOL DOWN FOR AUTOSELL
- local UserInputService = game:GetService("UserInputService")
- local VirtualInputManager = game:GetService("VirtualInputManager")
- local spamming = false
- local keyToSpam = Enum.KeyCode.E
- local toggleKey = Enum.KeyCode.R
- -- Spammer loop
- task.spawn(function()
- while true do
- if spamming then
- -- Simulate pressing E
- VirtualInputManager:SendKeyEvent(true, keyToSpam, false, game)
- wait()
- VirtualInputManager:SendKeyEvent(false, keyToSpam, false, game)
- end
- wait()
- end
- end)
- -- Toggle with O
- UserInputService.InputBegan:Connect(function(input, gameProcessed)
- if gameProcessed then return end
- if input.KeyCode == toggleKey then
- spamming = not spamming
- print("Auto-E Spammer:", spamming and "ON" or "OFF")
- end
- end)
- --AUTO SELL
- local Players = game:GetService("Players")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local remote = ReplicatedStorage:FindFirstChild("Sell_Inventory")
- if not remote then
- remote = Instance.new("RemoteEvent")
- remote.Name = "Sell_Inventory"
- remote.Parent = ReplicatedStorage
- end
- local player = Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "SellGui"
- screenGui.ResetOnSpawn = false
- screenGui.Parent = playerGui
- local sellButton = Instance.new("TextButton")
- sellButton.Size = UDim2.new(0, 150, 0, 50)
- sellButton.Position = UDim2.new(0.5, -75, 0.8, 0)
- sellButton.Text = "Sell Inventory"
- sellButton.BackgroundColor3 = Color3.fromRGB(255, 170, 0)
- sellButton.TextScaled = true
- sellButton.Parent = screenGui
- local toggleButton = Instance.new("TextButton")
- toggleButton.Size = UDim2.new(0, 150, 0, 40)
- toggleButton.Position = UDim2.new(0.5, -75, 0.8, 55)
- toggleButton.Text = "Auto-Sell: OFF"
- toggleButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- toggleButton.TextScaled = true
- toggleButton.Parent = screenGui
- local autoSellEnabled = false
- local function fireSellEvent()
- remote:FireServer()
- end
- sellButton.MouseButton1Click:Connect(fireSellEvent)
- toggleButton.MouseButton1Click:Connect(function()
- autoSellEnabled = not autoSellEnabled
- toggleButton.Text = autoSellEnabled and "Auto-Sell: ON" or "Auto-Sell: OFF"
- toggleButton.BackgroundColor3 = autoSellEnabled and Color3.fromRGB(0, 170, 0) or Color3.fromRGB(100, 100, 100)
- end)
- task.spawn(function()
- while true do
- if autoSellEnabled then
- fireSellEvent()
- end
- wait(15) --change if u want its the delay between sells
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement