Advertisement
Guest User

Grow a Garden Script!!!

a guest
Apr 8th, 2025
2,155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.58 KB | Gaming | 0 0
  1. AUTO PICK UP-----SCROOL DOWN FOR AUTOSELL
  2.  
  3. local UserInputService = game:GetService("UserInputService")
  4. local VirtualInputManager = game:GetService("VirtualInputManager")
  5.  
  6. local spamming = false
  7. local keyToSpam = Enum.KeyCode.E
  8. local toggleKey = Enum.KeyCode.R
  9.  
  10. -- Spammer loop
  11. task.spawn(function()
  12.     while true do
  13.         if spamming then
  14.             -- Simulate pressing E
  15.             VirtualInputManager:SendKeyEvent(true, keyToSpam, false, game)
  16.             wait()
  17.             VirtualInputManager:SendKeyEvent(false, keyToSpam, false, game)
  18.         end
  19.         wait()
  20.     end
  21. end)
  22.  
  23. -- Toggle with O
  24. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  25.     if gameProcessed then return end
  26.     if input.KeyCode == toggleKey then
  27.         spamming = not spamming
  28.         print("Auto-E Spammer:", spamming and "ON" or "OFF")
  29.     end
  30. end)
  31.  
  32.  
  33.  
  34. --AUTO SELL
  35. local Players = game:GetService("Players")
  36. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  37.  
  38. local remote = ReplicatedStorage:FindFirstChild("Sell_Inventory")
  39. if not remote then
  40.     remote = Instance.new("RemoteEvent")
  41.     remote.Name = "Sell_Inventory"
  42.     remote.Parent = ReplicatedStorage
  43. end
  44.  
  45. local player = Players.LocalPlayer
  46. local playerGui = player:WaitForChild("PlayerGui")
  47.  
  48. local screenGui = Instance.new("ScreenGui")
  49. screenGui.Name = "SellGui"
  50. screenGui.ResetOnSpawn = false
  51. screenGui.Parent = playerGui
  52.  
  53. local sellButton = Instance.new("TextButton")
  54. sellButton.Size = UDim2.new(0, 150, 0, 50)
  55. sellButton.Position = UDim2.new(0.5, -75, 0.8, 0)
  56. sellButton.Text = "Sell Inventory"
  57. sellButton.BackgroundColor3 = Color3.fromRGB(255, 170, 0)
  58. sellButton.TextScaled = true
  59. sellButton.Parent = screenGui
  60.  
  61. local toggleButton = Instance.new("TextButton")
  62. toggleButton.Size = UDim2.new(0, 150, 0, 40)
  63. toggleButton.Position = UDim2.new(0.5, -75, 0.8, 55)
  64. toggleButton.Text = "Auto-Sell: OFF"
  65. toggleButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  66. toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  67. toggleButton.TextScaled = true
  68. toggleButton.Parent = screenGui
  69.  
  70. local autoSellEnabled = false
  71.  
  72. local function fireSellEvent()
  73.     remote:FireServer()
  74. end
  75.  
  76. sellButton.MouseButton1Click:Connect(fireSellEvent)
  77.  
  78. toggleButton.MouseButton1Click:Connect(function()
  79.     autoSellEnabled = not autoSellEnabled
  80.     toggleButton.Text = autoSellEnabled and "Auto-Sell: ON" or "Auto-Sell: OFF"
  81.     toggleButton.BackgroundColor3 = autoSellEnabled and Color3.fromRGB(0, 170, 0) or Color3.fromRGB(100, 100, 100)
  82. end)
  83.  
  84. task.spawn(function()
  85.     while true do
  86.         if autoSellEnabled then
  87.             fireSellEvent()
  88.         end
  89.         wait(15) --change if u want its the delay between sells
  90.     end
  91. end)
  92.  
Tags: Roblox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement