Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local act6 = true
- local act6temp = false
- local resethive = false
- local switchingzone = false
- while true do
- wait(0.5)
- if resethive then
- print("Waiting 35 seconds before AutoFarm resumes")
- wait(35)
- resethive = false
- act6 = true
- end
- if act6 then
- local player = game:GetService("Players").LocalPlayer
- while player == nil do wait(0.5) end
- local root = player.Character.HumanoidRootPart
- if farmzoneswitched and not viciousbeedetected then act6 = false farmzoneswitchback = true end
- player = game:GetService("Players").LocalPlayer
- local currp
- player.Character.Humanoid.Died:connect(function()
- resethive = true
- act6 = false
- print("Player: " ..tostring(player.Name).. " has died")
- end)
- local pollenLbl = player.Character:FindFirstChild("ProgressLabel",true)
- if not pollenLbl then
- print("Backpack not found")
- end
- local maxpollen = tonumber(pollenLbl.Text:match("%d+$"))
- local pollenTool = player.Character:FindFirstChildOfClass("Tool") or player.Backpack:FindFirstChildOfClass("Tool")
- if pollenTool==nil or pollenTool:FindFirstChild("ClickEvent")==nil then
- print("Tool not found")
- end
- if act6 then
- if act6 == true then
- fieldpos = {Vector3.new(93.2, 175.35, -188.49),Vector3.new(93.2, 175.35, -141.98),Vector3.new(59.12, 175.35, -141.98),Vector3.new(59.12, 175.35, -188.49)}
- print("Farming Mountain Top Field")
- else
- if maxpollen < 9999 then
- fieldpos = {Vector3.new(-220,3.3,220),Vector3.new(-220,4,180),Vector3.new(-220,4,140),Vector3.new(-220,4,100),Vector3.new(-190,4,126),Vector3.new(-190, 4, 166),Vector3.new(-190, 4, 206)}
- print("Farming Sunflower Field")
- else
- fieldpos = {Vector3.new(93.2, 175.35, -188.49),Vector3.new(93.2, 175.35, -141.98),Vector3.new(59.12, 175.35, -141.98),Vector3.new(59.12, 175.35, -188.49)}
- print("Farming Mountain Top Field")
- end
- end
- end
- local posIndex = 0
- pollenTool.Parent = player.Character
- workspace.Collectibles.ChildAdded:Connect(function(part)
- if act6 then
- local root = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
- if tostring(part) == tostring(game.Players.LocalPlayer.Name) or tostring(part) == "C" then
- if currp and (part.Position-root.Position).magnitude <= 60 then
- root.CFrame = CFrame.new(part.Position.x, root.Position.y, part.Position.z)
- wait(0.07) -- 7
- root.CFrame = CFrame.new(currp)
- wait(0.05)
- end
- end
- end
- end)
- wait(0.1)
- while act6 and tonumber(player.CoreStats.Pollen.Value) < tonumber(maxpollen) do
- wait(0.04)
- posIndex=posIndex+1
- if posIndex>#fieldpos then posIndex=1 end
- for rot=1,4 do -- 4
- local angle = CFrame.Angles(0,math.pi*.5*rot,0)
- currp = fieldpos[posIndex]+angle.lookVector*10
- local newrootpos = CFrame.new(currp)*angle
- root.CFrame = newrootpos
- for i=1,29 do --25
- if farmzoneswitched and not viciousbeedetected then act6 = false farmzoneswitchback = true end
- if not act6 then break end
- wait(0.1)
- pollenTool.ClickEvent:FireServer(currp)
- pollenTool.ClickEvent:FireServer(currp)
- end
- player = game:GetService("Players").LocalPlayer
- if tonumber(player.CoreStats.Pollen.Value+1) > tonumber(maxpollen) then
- print("Total Honey: " ..tostring(player.CoreStats.Honey.Value).. ". Bag Full: " ..tostring(player.CoreStats.Pollen.Value))
- break
- end
- end
- end
- currp = nil
- wait(0.1)
- game:GetService("Players").LocalPlayer.Character:MoveTo(game:GetService("Players").LocalPlayer.SpawnPos.Value.p)
- if not switchingzone then
- wait(1)
- game:GetService("ReplicatedStorage").Events.PlayerHiveCommand:FireServer("ToggleHoneyMaking")
- if act6 then
- repeat wait(0.5) until game:GetService("Players").LocalPlayer.CoreStats.Pollen.Value < 1
- wait(8)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment