itchyscrotum611

Untitled

May 9th, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. --[[Made by PikachuExploitz subscribe to my channel
  2. .Updated 5/8/2020 Fixed Lags Improve Performances
  3. ]]
  4. --Configs
  5. local bigfarmmode = false -- set to true if you have a big farm to prevent lags
  6. local valuetosell = 4000 -- set your onion if it reaches the given amount
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17. --Scripts
  18. local rs = game:GetService("RunService").RenderStepped
  19. local waittime
  20. local island
  21. for n, c in pairs(game:GetService("Workspace").Islands:GetChildren()) do
  22. if string.match(c.Name, tostring(game.Players.LocalPlayer.UserId)) then
  23. island = c
  24. end
  25. end
  26. if bigfarmmode then
  27. waittime = 0.25
  28. else
  29. waittime = 0
  30. end
  31. local vu = game:GetService("VirtualUser")
  32. game:GetService("Players").LocalPlayer.Idled:connect(function()
  33. vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  34. wait(1)
  35. vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  36. game:GetService("Players").LocalPlayer.Character.Humanoid.Jump = true
  37. end)
  38. rs:Connect(function()
  39. for i, v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  40. if v:IsA("Tool") and v.Name == "onionSeeds" then
  41. v.Parent = game.Players.LocalPlayer.Character
  42. end
  43. end
  44. end)
  45. while true do
  46. pcall(function()
  47. for i, v in pairs(island.Blocks:GetChildren()) do
  48. if v.Name == "berryBush" and v:FindFirstChild("berryBush").stage.Value == 2 then
  49. spawn(function()
  50. local A_1 =
  51. {
  52. ["model"] = v.berryBush,
  53. ["player"] = game:GetService("Players").LocalPlayer
  54. }
  55. game:GetService("ReplicatedStorage").Remotes.Functions["HARVEST_CROP_REQUEST"]:InvokeServer(A_1)
  56. end)
  57. elseif v.Name == "onion" and v:FindFirstChild("onion").stage.Value == 3 then
  58. spawn(function()
  59. local A_1 =
  60. {
  61. ["model"] = v.onion,
  62. ["player"] = game:GetService("Players").LocalPlayer
  63. }
  64. game:GetService("ReplicatedStorage").Remotes.Functions["HARVEST_CROP_REQUEST"]:InvokeServer(A_1)
  65. end)
  66. rs:wait(waittime)
  67. end
  68. end
  69. for i2, v2 in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  70. if v2.Name == "onionSeeds" then
  71. for i3, v3 in pairs(island.Blocks:GetChildren()) do
  72. if v3.Name == "soil" then
  73. if v2.Amount.Value > 1 then
  74. spawn(function()
  75. if v2.Amount.Value > 1 then
  76. local A_1 =
  77. {
  78. ["blockType"] = "onion",
  79. ["cframe"] = v3.soil:FindFirstChildOfClass("Part").CFrame + Vector3.new(0, 3, 0)
  80. }
  81. game:GetService("ReplicatedStorage").Remotes.Functions["BLOCK_PLACE_REQUEST"]:InvokeServer(A_1)
  82. end
  83. end)
  84. rs:wait(waittime)
  85. end
  86. end
  87. end
  88. end
  89. end
  90. for i4, v4 in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  91. if v4.Name == "onionHarvested" and v4.Amount.Value > valuetosell then
  92. local A_1 =
  93. {
  94. ["merchant"] = "cropSell",
  95. ["offerId"] = 5,
  96. ["amount"] = valuetosell
  97. }
  98. game:GetService("ReplicatedStorage").Remotes.Functions["MERCHANT_ORDER_REQUEST"]:InvokeServer(A_1)
  99. end
  100. end
  101. end)
  102. wait(2.5)
  103. end
Add Comment
Please, Sign In to add comment