_G.test = true while _G.test do 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 --collect pollen --print("Farming pollen") local posIndex = 0 pollenTool.Parent = player.Character workspace.Collectibles.ChildAdded:Connect(function(part) if PollenFarmActive then local root = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart if tostring(part) == tostring(game.Players.LocalPlayer.Name) or tostring(part) == "C" then -- print("token position: " ..tostring(part.Position)) -- -- print("player position: " ..tostring(root.Position)) -- -- print("Distance: " ..tostring((part.Position - root.Position).magnitude)) -- 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) root.CFrame = CFrame.new(currp) wait(0.05) end end end end) wait(0.1) while PollenFarmActive and tonumber(player.CoreStats.Pollen.Value) < tonumber(maxpollen) do wait(0.05) posIndex=posIndex+1 if posIndex>#fieldpos then posIndex=1 end for rot=1,4 do 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,25 do if farmzoneswitched and not viciousbeedetected then PollenFarmActive = false farmzoneswitchback = true end if not PollenFarmActive then break end wait(0.2) 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 -- turn pollen to honey -- currp = nil --print("Teleporting back to Hive to make Honey") 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 PollenFarmActive then repeat wait(0.5) until game:GetService("Players").LocalPlayer.CoreStats.Pollen.Value < 1 wait(8) end end end end end)