Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[Made by PikachuExploitz subscribe to my channel
- .Updated 5/8/2020 Fixed Lags Improve Performances
- ]]
- --Configs
- local bigfarmmode = false -- set to true if you have a big farm to prevent lags
- local valuetosell = 4000 -- set your onion if it reaches the given amount
- --Scripts
- local rs = game:GetService("RunService").RenderStepped
- local waittime
- local island
- for n, c in pairs(game:GetService("Workspace").Islands:GetChildren()) do
- if string.match(c.Name, tostring(game.Players.LocalPlayer.UserId)) then
- island = c
- end
- end
- if bigfarmmode then
- waittime = 0.25
- else
- waittime = 0
- end
- local vu = game:GetService("VirtualUser")
- game:GetService("Players").LocalPlayer.Idled:connect(function()
- vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
- wait(1)
- vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
- game:GetService("Players").LocalPlayer.Character.Humanoid.Jump = true
- end)
- rs:Connect(function()
- for i, v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if v:IsA("Tool") and v.Name == "onionSeeds" then
- v.Parent = game.Players.LocalPlayer.Character
- end
- end
- end)
- while true do
- pcall(function()
- for i, v in pairs(island.Blocks:GetChildren()) do
- if v.Name == "berryBush" and v:FindFirstChild("berryBush").stage.Value == 2 then
- spawn(function()
- local A_1 =
- {
- ["model"] = v.berryBush,
- ["player"] = game:GetService("Players").LocalPlayer
- }
- game:GetService("ReplicatedStorage").Remotes.Functions["HARVEST_CROP_REQUEST"]:InvokeServer(A_1)
- end)
- elseif v.Name == "onion" and v:FindFirstChild("onion").stage.Value == 3 then
- spawn(function()
- local A_1 =
- {
- ["model"] = v.onion,
- ["player"] = game:GetService("Players").LocalPlayer
- }
- game:GetService("ReplicatedStorage").Remotes.Functions["HARVEST_CROP_REQUEST"]:InvokeServer(A_1)
- end)
- rs:wait(waittime)
- end
- end
- for i2, v2 in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v2.Name == "onionSeeds" then
- for i3, v3 in pairs(island.Blocks:GetChildren()) do
- if v3.Name == "soil" then
- if v2.Amount.Value > 1 then
- spawn(function()
- if v2.Amount.Value > 1 then
- local A_1 =
- {
- ["blockType"] = "onion",
- ["cframe"] = v3.soil:FindFirstChildOfClass("Part").CFrame + Vector3.new(0, 3, 0)
- }
- game:GetService("ReplicatedStorage").Remotes.Functions["BLOCK_PLACE_REQUEST"]:InvokeServer(A_1)
- end
- end)
- rs:wait(waittime)
- end
- end
- end
- end
- end
- for i4, v4 in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
- if v4.Name == "onionHarvested" and v4.Amount.Value > valuetosell then
- local A_1 =
- {
- ["merchant"] = "cropSell",
- ["offerId"] = 5,
- ["amount"] = valuetosell
- }
- game:GetService("ReplicatedStorage").Remotes.Functions["MERCHANT_ORDER_REQUEST"]:InvokeServer(A_1)
- end
- end
- end)
- wait(2.5)
- end
Add Comment
Please, Sign In to add comment