Advertisement
DuyOnline101

test

Jan 3rd, 2023 (edited)
2,537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 243.46 KB | None | 0 0
  1. -- NO LONGER MAINTENCE DUE TO OWNER GOT FILE RESET (me)
  2. repeat task.wait(0.1) until game:IsLoaded()
  3.  
  4. --getgenv().LoadRecent = false -- remove the 2 first "--" if you want to use this to prevent from disconnecting
  5. --getgenv().AutoLoad = "" -- type your config name here
  6. getgenv().Star = "⭐"
  7. getgenv().Danger = "⚠️"
  8. getgenv().ExploitSpecific = "📜"
  9. getgenv().Beesmas = "🎄"
  10.  
  11. -- API CALLS
  12.  
  13. local library = loadstring(game:HttpGet("https://pastebin.com/raw/SV5PzfGM"))()
  14. getgenv().api = loadstring(game:HttpGet("https://pastebin.com/raw/KuuW0ZGv"))()
  15. local bssapi = loadstring(game:HttpGet("https://pastebin.com/raw/R6u0EueK"))()
  16. local httpreq = (syn and syn.request) or http_request or (http and http.request) or request
  17.  
  18. if not isfolder("kocmoc") then makefolder("kocmoc") end
  19. if not isfolder("kocmoc/premium") then makefolder("kocmoc/premium") end
  20. if not isfolder("kocmoc/plantercache") then makefolder("kocmoc/plantercache") end
  21.  
  22. -- Script temporary variables
  23. local player = game.Players.LocalPlayer
  24. local playerstatsevent = game:GetService("ReplicatedStorage").Events.RetrievePlayerStats
  25. local playeractivescommand = game:GetService("ReplicatedStorage").Events.PlayerActivesCommand
  26. local statstable = playerstatsevent:InvokeServer()
  27. local monsterspawners = game.Workspace.MonsterSpawners
  28. local NectarBlacklist = {}
  29. local rarename
  30. function rtsg()
  31.     return playerstatsevent:InvokeServer()
  32. end
  33.  
  34. function maskequip(mask)
  35.     if rtsg()["EquippedAccessories"]["Hat"] == mask then return end
  36.     game:GetService("ReplicatedStorage").Events.ItemPackageEvent:InvokeServer("Equip", {
  37.         Mute = false,
  38.         Type = mask,
  39.         Category = "Accessory"
  40.     })
  41. end
  42.  
  43. function equiptool(tool)
  44.     if rtsg()["EquippedCollector"] == tool then return end
  45.     game.ReplicatedStorage.Events.ItemPackageEvent:InvokeServer("Equip", {
  46.         Mute = true,
  47.         Type = tool,
  48.         Category = "Collector"
  49.     })
  50. end
  51.  
  52. local inventorylogs = {
  53.     "Ticket",
  54.     "Gumdrops",
  55.     "Coconut",
  56.     "Stinger",
  57.     "Snowflake",
  58.     "Micro-Converter",
  59.     "Honey Suckle",
  60.     "Whirligig",
  61.     "Field Dice",
  62.     "Smooth Dice",
  63.     "Loaded Dice",
  64.     "Jelly Beans",
  65.     "Red Extract",
  66.     "Blue Extract",
  67.     "Glitter",
  68.     "Glue",
  69.     "Oil",
  70.     "Enzymes",
  71.     "Tropical Drink",
  72.     "Purple Potion",
  73.     "Super Smoothie",
  74.     "Marshmallow Bee",
  75.     "Magic Bean",
  76.     "Festive Bean",
  77.     "Cloud Vial",
  78.     "Night Bell",
  79.     "Box-O-Frogs",
  80.     "Ant Pass",
  81.     "Robo Pass",
  82.     "Present",
  83.     "Treat",
  84.     "Star Treat",
  85.     "Atomic Treat",
  86.     "Gingerbread Bear",
  87.     "Aged Gingerbread Bear",
  88.     "Sunflower Seed",
  89.     "Strawberry",
  90.     "Pineapple",
  91.     "Blueberry",
  92.     "Bitterberry",
  93.     "Neonberry",
  94.     "Mooncharm",
  95.     "White Drive",
  96.     "Red Drive",
  97.     "Blue Drive",
  98.     "Glitched Drive",
  99.     "Comforting Vial",
  100.     "Invigorating Vial",
  101.     "Motivating Vial",
  102.     "Refreshing Vial",
  103.     "Satisfying Vial",
  104.     "Pink Balloon",
  105.     "Red Balloon",
  106.     "White Balloon",
  107.     "Black Balloon",
  108.     "Soft Wax",
  109.     "Hard Wax",
  110.     "Caustic Wax",
  111.     "Swirled Wax",
  112.     "Turpentine",
  113.     "Paper Planter",
  114.     "Ticket Planter",
  115.     "Festive Planter",
  116.     "Plastic Planter",
  117.     "Candy Planter",
  118.     "Red Clay Planter",
  119.     "Blue Clay Planter",
  120.     "Tacky Planter",
  121.     "Pesticide Planter",
  122.     "Basic Egg",
  123.     "Silver Egg",
  124.     "Gold Egg",
  125.     "Diamond Egg",
  126.     "Mythic Egg",
  127.     "Gifted Basic Egg",
  128.     "Gifted Silver Egg",
  129.     "Gifted Gold Egg",
  130.     "Gifted Diamond Egg",
  131.     "Gifted Mythic Egg",
  132.     "Royal Jelly",
  133.     "Star Jelly"
  134. }
  135.  
  136. local lasttouched = nil
  137. local lastfieldpos = nil
  138. local hi = false
  139. local Items = require(game:GetService("ReplicatedStorage").EggTypes).GetTypes()
  140. local v1 = require(game.ReplicatedStorage.ClientStatCache):Get()
  141.  
  142. repeat task.wait(0.1) until player.PlayerGui.ScreenGui:FindFirstChild("Menus")
  143.  
  144. local hives = game.Workspace.Honeycombs:GetChildren()
  145. for i = #hives, 1, -1 do
  146.     local hive = game.Workspace.Honeycombs:GetChildren()[i]
  147.     if hive.Owner.Value == nil then
  148.         game.ReplicatedStorage.Events.ClaimHive:FireServer(hive.HiveID.Value)
  149.     end
  150. end
  151. task.wait(1)
  152. local PlayerHive = game.Players.LocalPlayer.Honeycomb.Value
  153. local Honeycomb = game:GetService("Workspace").Honeycombs
  154.  
  155. -- Script tables
  156. for _, v in pairs(game:GetService("CoreGui"):GetDescendants()) do
  157.     if v:IsA("TextLabel") and v.Text:find("Kocmoc v") then
  158.         v.Parent.Parent:Destroy()
  159.     end
  160. end
  161.  
  162. getgenv().temptable = {
  163.     version = "1.3.1b",
  164.     blackfield = "Sunflower Field",
  165.     redfields = {},
  166.     bluefields = {},
  167.     whitefields = {},
  168.     shouldiconvertballoonnow = false,
  169.     balloondetected = false,
  170.     puffshroomdetected = false,
  171.     magnitude = 60,
  172.     blacklist = {""},
  173.     running = false,
  174.     configname = "",
  175.     tokenpath = game.Workspace.Collectibles,
  176.     started = {
  177.         vicious = false,
  178.         mondo = false,
  179.         windy = false,
  180.         ant = false,
  181.         monsters = false,
  182.         commando = false,
  183.         snowbear = false
  184.     },
  185.     detected = {vicious = false, windy = false},
  186.     tokensfarm = false,
  187.     converting = false,
  188.     consideringautoconverting = false,
  189.     honeystart = 0,
  190.     grib = nil,
  191.     gribpos = CFrame.new(0, 0, 0),
  192.     honeycurrent = statstable.Totals.Honey,
  193.     dead = false,
  194.     float = false,
  195.     pepsigodmode = false,
  196.     pepsiautodig = false,
  197.     myhiveis = false,
  198.     invis = false,
  199.     windy = nil,
  200.     sprouts = {detected = false, coords},
  201.     cache = {
  202.         autofarm = false,
  203.         killmondo = false,
  204.         vicious = false,
  205.         windy = false,
  206.         commando = false,
  207.         snowbear = false
  208.     },
  209.     allplanters = {},
  210.     planters = {
  211.         planter = {},
  212.         cframe = {},
  213.         activeplanters = {type = {}, id = {}}
  214.     },
  215.     monstertypes = {
  216.         "Ladybug", "Rhino", "Spider", "Scorpion", "Mantis", "Werewolf"
  217.     },
  218.     ["stopapypa"] = function(path, part)
  219.         local Closest
  220.         for i, v in next, path:GetChildren() do
  221.             if v.Name ~= "PlanterBulb" then
  222.                 if Closest == nil then
  223.                     Closest = v.Soil
  224.                 else
  225.                     if (part.Position - v.Soil.Position).magnitude <
  226.                         (Closest.Position - part.Position).magnitude then
  227.                         Closest = v.Soil
  228.                     end
  229.                 end
  230.             end
  231.         end
  232.         return Closest
  233.     end,
  234.     coconuts = {},
  235.     crosshairs = {},
  236.     bubbles = {},
  237.     crosshair = false,
  238.     coconut = false,
  239.     act = 0,
  240.     act2 = 0,
  241.     ["touchedfunction"] = function(v)
  242.         if lasttouched ~= v then
  243.             if v.Parent.Name == "FlowerZones" then
  244.                 if v:FindFirstChild("ColorGroup") then
  245.                     if tostring(v.ColorGroup.Value) == "Red" then
  246.                         maskequip("Demon Mask")
  247.                     elseif tostring(v.ColorGroup.Value) == "Blue" then
  248.                         maskequip("Diamond Mask")
  249.                     end
  250.                 else
  251.                     maskequip("Gummy Mask")
  252.                 end
  253.                 lasttouched = v
  254.             end
  255.         end
  256.     end,
  257.     runningfor = 0,
  258.     oldtool = rtsg()["EquippedCollector"],
  259.     ["gacf"] = function(part, st)
  260.         coordd = CFrame.new(part.Position.X, part.Position.Y + st, part.Position.Z)
  261.         return coordd
  262.     end,
  263.     lookat = nil,
  264.     currtool = rtsg()["EquippedCollector"],
  265.     starttime = tick(),
  266.     planting = false,
  267.     crosshaircounter = 0,
  268.     doingbubbles = false,
  269.     doingcrosshairs = false,
  270.     pollenpercentage = 0,
  271.     lastmobkill = 0,
  272.     usegumdropsforquest = false,
  273.     lastgumdropuse = tick(),
  274.     autox4glitter = isfile("kocmoc/plantercache/x4.file") and tonumber(readfile("kocmoc/plantercache/x4.file")) or 1
  275. }
  276. local planterst = {plantername = {}, planterid = {}}
  277.  
  278. function deepcopy(orig)
  279.     local orig_type = type(orig)
  280.     local copy
  281.     if orig_type == 'table' then
  282.         copy = {}
  283.         for orig_key, orig_value in next, orig, nil do
  284.             copy[deepcopy(orig_key)] = deepcopy(orig_value)
  285.         end
  286.         setmetatable(copy, deepcopy(getmetatable(orig)))
  287.     else
  288.         copy = orig
  289.     end
  290.     return copy
  291. end
  292.  
  293. for i, v in next, temptable.blacklist do
  294.     if v == api.nickname then
  295.         player:Kick("You're blacklisted! Get clapped!")
  296.     end
  297. end
  298. if temptable.honeystart == 0 then temptable.honeystart = statstable.Totals.Honey end
  299.  
  300. for i, v in next, monsterspawners:GetDescendants() do
  301.     if v.Name == "TimerAttachment" then v.Name = "Attachment" end
  302. end
  303. for i, v in next, monsterspawners:GetChildren() do
  304.     if v.Name == "RoseBush" then
  305.         v.Name = "ScorpionBush"
  306.     elseif v.Name == "RoseBush2" then
  307.         v.Name = "ScorpionBush2"
  308.     end
  309. end
  310. for i, v in next, game.Workspace.FlowerZones:GetChildren() do
  311.     if v:FindFirstChild("ColorGroup") then
  312.         if v:FindFirstChild("ColorGroup").Value == "Red" then
  313.             table.insert(temptable.redfields, v.Name)
  314.         elseif v:FindFirstChild("ColorGroup").Value == "Blue" then
  315.             table.insert(temptable.bluefields, v.Name)
  316.         end
  317.     else
  318.         table.insert(temptable.whitefields, v.Name)
  319.     end
  320. end
  321. local flowertable = {}
  322. for _, z in next, game.Workspace.Flowers:GetChildren() do
  323.     table.insert(flowertable, z.Position)
  324. end
  325. local masktable = {}
  326. for _, v in next, game:GetService("ReplicatedStorage").Accessories:GetChildren() do
  327.     if string.match(v.Name, "Mask") then table.insert(masktable, v.Name) end
  328. end
  329. local collectorstable = {}
  330. for _, v in next, getupvalues(
  331.                 require(game:GetService("ReplicatedStorage").Collectors).Exists) do
  332.     for e, r in next, v do table.insert(collectorstable, e) end
  333. end
  334. local fieldstable = {}
  335. for _, v in next, game.Workspace.FlowerZones:GetChildren() do
  336.     table.insert(fieldstable, v.Name)
  337. end
  338. local toystable = {}
  339. for _, v in next, game.Workspace.Toys:GetChildren() do
  340.     table.insert(toystable, v.Name)
  341. end
  342. local spawnerstable = {}
  343. for _, v in next, monsterspawners:GetChildren() do
  344.     table.insert(spawnerstable, v.Name)
  345. end
  346. local accesoriestable = {}
  347. for _, v in next, game:GetService("ReplicatedStorage").Accessories:GetChildren() do
  348.     if v.Name ~= "UpdateMeter" then table.insert(accesoriestable, v.Name) end
  349. end
  350. for i, v in pairs(getupvalues(require(game:GetService("ReplicatedStorage").PlanterTypes).GetTypes)) do
  351.     for e, z in pairs(v) do
  352.         table.insert(temptable.allplanters, e)
  353.     end
  354. end
  355. local donatableItemsTable = {}
  356. local treatsTable = {}
  357. for i, v in pairs(Items) do
  358.     if v.DonatableToWindShrine == true then
  359.         table.insert(donatableItemsTable, i)
  360.     end
  361. end
  362. for i, v in pairs(Items) do if v.TreatValue then table.insert(treatsTable, i) end end
  363. local buffTable = {
  364.     ["Blue Extract"] = {b = false, DecalID = "2495936060"},
  365.     ["Red Extract"] = {b = false, DecalID = "2495935291"},
  366.     ["Oil"] = {b = false, DecalID = "2545746569"}, -- ?
  367.     ["Enzymes"] = {b = false, DecalID = "2584584968"},
  368.     ["Glue"] = {b = false, DecalID = "2504978518"},
  369.     ["Glitter"] = {b = false, DecalID = "2542899798"},
  370.     ["Tropical Drink"] = {b = false, DecalID = "3835877932"},
  371.     ["Super Smoothie"] = {b = false, DecalID = "5144657215"},
  372.     ["Purple Potion"] = {b = false, DecalID = "4935580187"},
  373.     ["Stinger"] = {b = false, DecalID = "2314214749"}
  374. }
  375. local AccessoryTypes = require(game:GetService("ReplicatedStorage").Accessories).GetTypes()
  376. local MasksTable = {}
  377. for i, v in pairs(AccessoryTypes) do
  378.     if tostring(i):find("Mask") then
  379.         if i ~= "Honey Mask" then table.insert(MasksTable, i) end
  380.     end
  381. end
  382. local DropdownPlanterTable = {
  383.     "Plastic Planter",
  384.     "Candy Planter",
  385.     "Red Clay Planter",
  386.     "Blue Clay Planter",
  387.     "Tacky Planter",
  388.     "Pesticide Planter",
  389.     "Petal Planter",
  390.     "The Planter Of Plenty",
  391.     "None"
  392. }
  393. local DropdownFieldsTable = deepcopy(fieldstable)
  394. for i,v in pairs(DropdownFieldsTable) do
  395.     if v == "Ant Field" then
  396.         table.remove(DropdownFieldsTable, i)
  397.     end
  398. end
  399. table.insert(DropdownFieldsTable, "None")
  400.  
  401. table.sort(fieldstable)
  402. table.sort(accesoriestable)
  403. table.sort(toystable)
  404. table.sort(spawnerstable)
  405. table.sort(masktable)
  406. table.sort(temptable.allplanters)
  407. table.sort(collectorstable)
  408. table.sort(donatableItemsTable)
  409. table.sort(buffTable)
  410. table.sort(MasksTable)
  411.  
  412. -- float pad
  413.  
  414. local floatpad = Instance.new("Part", game.Workspace)
  415. floatpad.CanCollide = false
  416. floatpad.Anchored = true
  417. floatpad.Transparency = 1
  418. floatpad.Name = "FloatPad"
  419.  
  420. -- cococrab
  421.  
  422. local cocopad = Instance.new("Part", game:GetService("Workspace"))
  423. cocopad.Name = "Coconut Part"
  424. cocopad.Anchored = true
  425. cocopad.Transparency = 1
  426. cocopad.Size = Vector3.new(135, 1, 100)
  427. cocopad.CanCollide = false
  428. cocopad.Position = Vector3.new(-265.52117919922, 105.91863250732, 480.86791992188)
  429.  
  430. -- antfarm
  431.  
  432. local antpart = Instance.new("Part", workspace)
  433. antpart.Name = "Ant Autofarm Part"
  434. antpart.Position = Vector3.new(96, 47, 553)
  435. antpart.Anchored = true
  436. antpart.Size = Vector3.new(128, 1, 50)
  437. antpart.Transparency = 1
  438. antpart.CanCollide = false
  439.  
  440. -- config
  441.  
  442. getgenv().kocmoc = {
  443.     rares = {},
  444.     priority = {},
  445.     bestfields = {
  446.         red = "Pepper Patch",
  447.         white = "Coconut Field",
  448.         blue = "Stump Field"
  449.     },
  450.     blacklistedfields = {},
  451.     killerkocmoc = {},
  452.     bltokens = {},
  453.     toggles = {
  454.         autofarm = false,
  455.         farmclosestleaf = false,
  456.         farmfireflies = false,
  457.         farmleaves = false,
  458.         farmsparkles = false,
  459.         farmbubbles = false,
  460.         autodig = false,
  461.         farmrares = false,
  462.         rgbui = false,
  463.         farmflower = false,
  464.         farmfuzzy = false,
  465.         farmcoco = false,
  466.         farmflame = false,
  467.         farmclouds = false,
  468.         killmondo = false,
  469.         killvicious = false,
  470.         traincommando = false,
  471.         loopspeed = false,
  472.         loopjump = false,
  473.         autoquest = false,
  474.         autoboosters = false,
  475.         autodispense = false,
  476.         clock = false,
  477.         freeantpass = false,
  478.         freerobopass = false,
  479.         honeystorm = false,
  480.         autodoquest = false,
  481.         disableseperators = false,
  482.         npctoggle = false,
  483.         loopfarmspeed = false,
  484.         mobquests = false,
  485.         traincrab = false,
  486.         trainsnail = false,
  487.         avoidmobs = false,
  488.         farmsprouts = false,
  489.         enabletokenblacklisting = false,
  490.         farmunderballoons = false,
  491.         farmsnowflakes = false,
  492.         collectgingerbreads = false,
  493.         collectcrosshairs = false,
  494.         farmpuffshrooms = false,
  495.         tptonpc = false,
  496.         donotfarmtokens = false,
  497.         convertballoons = false,
  498.         autostockings = false,
  499.         autosamovar = false,
  500.         autosnowmachine = false,
  501.         sproutsummoner = false,
  502.         ptsrage = false,
  503.         trainsnow = false,
  504.         autoonettart = false,
  505.         autocandles = false,
  506.         autofeast = false,
  507.         autoplanters = false,
  508.         autokillmobs = false,
  509.         autoant = false,
  510.         killwindy = false,
  511.         godmode = false,
  512.         disableconversion = false,
  513.         autodonate = false,
  514.         farmdigital = false,
  515.         autouseconvertors = false,
  516.         honeymaskconv = false,
  517.         resetbeenergy = false,
  518.         enablestatuspanel = false,
  519.         autoequipmask = false,
  520.         followplayer = false,
  521.         buckobeequests = false,
  522.         brownbearquests = false,
  523.         rileybeequests = false,
  524.         polarbearquests = false,
  525.         blackbearquests = false,
  526.         allquests = false,
  527.         blacklistinvigorating = false,
  528.         blacklistcomforting = false,
  529.         blacklistmotivating = false,
  530.         blacklistrefreshing = false,
  531.         blacklistsatisfying = false,
  532.         plasticplanter = false,
  533.         candyplanter = false,
  534.         redclayplanter = false,
  535.         blueclayplanter = false,
  536.         tackyplanter = false,
  537.         pesticideplanter = false,
  538.         petalplanter = false,
  539.         shutdownkick = false,
  540.         webhookupdates = false,
  541.         webhookping = false,
  542.         autoquesthoneybee = false,
  543.         buyantpass = false,
  544.         tweenteleport = false,
  545.         docustomplanters = false,
  546.         fastcrosshairs = false,
  547.         smartmobkill = false,
  548.         ["autouseBlue Extract"] = false,
  549.         ["autouseRed Extract"] = false,
  550.         ["autouseOil"] = false,
  551.         ["autouseEnzymes"] = false,
  552.         ["autouseGlue"] = false,
  553.         ["autouseGlitter"] = false,
  554.         ["autouseTropical Drink"] = false,
  555.         ["autouseSuper Smoothie"] = false,
  556.         ["autousePurple Potion"] = false,
  557.         ["autouseStinger"] = false,
  558.         usegumdropsforquest = false,
  559.         autox4 = false,
  560.         newtokencollection = false,
  561.         gpusaver = false,
  562.         cpusaver = false
  563.     },
  564.     vars = {
  565.         field = "Ant Field",
  566.         convertat = 100,
  567.         farmspeed = 60,
  568.         prefer = "Tokens",
  569.         walkspeed = 70,
  570.         jumppower = 70,
  571.         npcprefer = "All Quests",
  572.         farmtype = "Walk",
  573.         monstertimer = 15,
  574.         autodigmode = "Normal",
  575.         donoItem = "Coconut",
  576.         donoAmount = 25,
  577.         selectedTreat = "Treat",
  578.         selectedTreatAmount = 0,
  579.         autouseMode = "Just Tickets",
  580.         autoconvertWaitTime = 10,
  581.         defmask = "Bubble",
  582.         deftool = "Petal Wand",
  583.         resettimer = 3,
  584.         questcolorprefer = "Any NPC",
  585.         playertofollow = "",
  586.         convertballoonpercent = 50,
  587.         planterharvestamount = 75,
  588.         webhookurl = "",
  589.         discordid = 0,
  590.         webhooktimer = 60,
  591.         customplanter11 = "",
  592.         customplanter12 = "",
  593.         customplanter13 = "",
  594.         customplanter14 = "",
  595.         customplanter15 = "",
  596.         customplanter21 = "",
  597.         customplanter22 = "",
  598.         customplanter23 = "",
  599.         customplanter24 = "",
  600.         customplanter25 = "",
  601.         customplanter31 = "",
  602.         customplanter32 = "",
  603.         customplanter33 = "",
  604.         customplanter34 = "",
  605.         customplanter35 = "",
  606.         customplanterfield11 = "",
  607.         customplanterfield12 = "",
  608.         customplanterfield13 = "",
  609.         customplanterfield14 = "",
  610.         customplanterfield15 = "",
  611.         customplanterfield21 = "",
  612.         customplanterfield22 = "",
  613.         customplanterfield23 = "",
  614.         customplanterfield24 = "",
  615.         customplanterfield25 = "",
  616.         customplanterfield31 = "",
  617.         customplanterfield32 = "",
  618.         customplanterfield33 = "",
  619.         customplanterfield34 = "",
  620.         customplanterfield35 = "",
  621.         customplanterdelay11 = 75,
  622.         customplanterdelay12 = 75,
  623.         customplanterdelay13 = 75,
  624.         customplanterdelay14 = 75,
  625.         customplanterdelay21 = 75,
  626.         customplanterdelay22 = 75,
  627.         customplanterdelay23 = 75,
  628.         customplanterdelay24 = 75,
  629.         customplanterdelay25 = 75,
  630.         customplanterdelay31 = 75,
  631.         customplanterdelay32 = 75,
  632.         customplanterdelay33 = 75,
  633.         customplanterdelay34 = 75,
  634.         customplanterdelay35 = 75
  635.     },
  636.     dispensesettings = {
  637.         blub = false,
  638.         straw = false,
  639.         treat = false,
  640.         coconut = false,
  641.         glue = false,
  642.         rj = false,
  643.         white = false,
  644.         red = false,
  645.         blue = false
  646.     },
  647.     autojelly = {
  648.         bool = {
  649.             starjelly = false,
  650.             specificbee = false,
  651.             rarity = true
  652.         },
  653.         raritybool = {
  654.             ["Rare"] = false,
  655.             ["Epic"] = false,
  656.             ["Legendary"] = false,
  657.             ["Gifted"] = false,
  658.             ["Mythic"] = false
  659.         },
  660.         beenames = {},
  661.         maxroll = 10000,
  662.         slot = {horizonal=0,vertical=0}
  663.     }
  664. }
  665.  
  666.  
  667. local defaultkocmoc = kocmoc
  668.  
  669. -- functions
  670.  
  671. local function addcommas(num)
  672.     local str = tostring(num):reverse():gsub("(%d%d%d)", "%1,"):reverse()
  673.     if str:sub(1,1) == "," then
  674.         str = str:sub(2)
  675.     end
  676.     return str
  677. end
  678.  
  679. local function truncatetime(sec)
  680.     local second = tostring(sec%60)
  681.     local minute = tostring(math.floor(sec / 60 - math.floor(sec / 3600) * 60))
  682.     local hour = tostring(math.floor(sec / 3600))
  683.    
  684.     return (#hour == 1 and "0"..hour or hour)..":"..(#minute == 1 and "0"..minute or minute)..":"..(#second == 1 and "0"..second or second)
  685. end
  686.  
  687. local function truncate(num)
  688.     num = tonumber(math.round(num))
  689.     if num <= 0 then
  690.         return 0
  691.     end
  692.     local savenum = ""
  693.     local i = 0
  694.     local suff = ""
  695.     local suffixes = {"k","M","B","T","qd","Qn","sx","Sp","O","N"}
  696.     local length = math.floor(math.log10(num)+1)
  697.     while num > 999 do
  698.         i = i + 1
  699.         suff = suffixes[i] or "???"
  700.         num = num/1000
  701.         savenum = (math.floor(num*100)/100)..suff
  702.     end
  703.     if i == 0 then
  704.         return num
  705.     end
  706.     return savenum
  707. end
  708.  
  709. local function disconnected(hook, discordid, reason)
  710.     if not discordid then discordid = "0" end
  711.  
  712.     local timepassed = math.round(tick() - temptable.starttime)
  713.     local honeygained = temptable.honeycurrent - temptable.honeystart
  714.  
  715.     local totalhoneystring = addcommas(temptable.honeycurrent).." ("..truncate(temptable.honeycurrent)..")"
  716.     local honeygainedstring = addcommas(honeygained).." ("..truncate(honeygained)..")"
  717.     local honeyperhourstring = addcommas(math.floor(honeygained / timepassed) * 3600).." ("..truncate(math.floor(honeygained / timepassed) * 3600)..") Honey"
  718.     local uptimestring = truncatetime(timepassed)
  719.     local data = {
  720.         ["username"] = player.Name,
  721.         ["avatar_url"] = "https://www.roblox.com/HeadShot-thumbnail/image?userId="..tostring(player.UserId).."&width=420&height=420&format=png",
  722.         ["content"] = "<@"..tostring(discordid).."> "..(reason == "Server Timeout (Game Freeze)" and "Freeze" or "Kick"),
  723.         ["embeds"] = {{
  724.             ["title"] = "**Disconnect Detected**",
  725.             --["description"] = "description",
  726.             ["type"] = "rich",
  727.             ["color"] = tonumber(0xfff802),
  728.             ["fields"] = {
  729.                 {
  730.                     ["name"] = "Reason:",
  731.                     ["value"] = reason,
  732.                     ["inline"] =  false
  733.                 },
  734.                 {
  735.                     ["name"] = "Total Honey:",
  736.                     ["value"] = totalhoneystring,
  737.                     ["inline"] =  false
  738.                 },
  739.                 {
  740.                     ["name"] = "Session Honey:",
  741.                     ["value"] = honeygainedstring,
  742.                     ["inline"] =  true
  743.                 },
  744.                 {
  745.                     ["name"] = "Session Uptime:",
  746.                     ["value"] = uptimestring,
  747.                     ["inline"] =  true
  748.                 },
  749.                 {
  750.                     ["name"] = "Session Honey Per Hour:",
  751.                     ["value"] = honeyperhourstring,
  752.                     ["inline"] =  true
  753.                 },
  754.             },
  755.             ["footer"] = {
  756.                 ["text"] = os.date("%x").." • "..os.date("%I")..":"..os.date("%M")..":"..os.date("%S").." "..os.date("%p")
  757.             }
  758.         }}
  759.     }
  760.     local headers = {
  761.         ["content-Type"] = "application/json"
  762.     }
  763.     httpreq({Url = hook, Body = game:GetService("HttpService"):JSONEncode(data), Method = "POST", Headers = headers})
  764. end
  765.  
  766. local function hourly(ping, hook, discordid)
  767.     if not discordid then discordid = "0" end
  768.  
  769.     local timepassed = math.round(tick() - temptable.starttime)
  770.     local honeygained = temptable.honeycurrent - temptable.honeystart
  771.  
  772.     local totalhoneystring = addcommas(temptable.honeycurrent).." ("..truncate(temptable.honeycurrent)..")"
  773.     local honeygainedstring = addcommas(honeygained).." ("..truncate(honeygained)..")"
  774.     local honeyperhourstring = addcommas(math.floor(honeygained / timepassed) * 3600).." ("..truncate(math.floor(honeygained / timepassed) * 3600)..") Honey"
  775.     local uptimestring = truncatetime(timepassed)
  776.    
  777.     local data = {
  778.         ["username"] = player.Name,
  779.         ["avatar_url"] = "https://www.roblox.com/HeadShot-thumbnail/image?userId="..tostring(player.UserId).."&width=420&height=420&format=png",
  780.         ["content"] = ping and "<@"..tostring(discordid).."> ".."Honey Update" or "Honey Update",
  781.         ["embeds"] = {{
  782.             ["title"] = "**Honey Update**",
  783.             ["type"] = "rich",
  784.             ["color"] = tonumber(0xfff802),
  785.             ["fields"] = {
  786.                 {
  787.                     ["name"] = "Total Honey:",
  788.                     ["value"] = totalhoneystring,
  789.                     ["inline"] =  false
  790.                 },
  791.                 {
  792.                     ["name"] = "Session Honey:",
  793.                     ["value"] = honeygainedstring,
  794.                     ["inline"] =  true
  795.                 },
  796.                 {
  797.                     ["name"] = "Session Uptime:",
  798.                     ["value"] = uptimestring,
  799.                     ["inline"] =  true
  800.                 },
  801.                 {
  802.                     ["name"] = "Session Honey Per Hour:",
  803.                     ["value"] = honeyperhourstring,
  804.                     ["inline"] =  true
  805.                 },
  806.             },
  807.             ["footer"] = {
  808.                 ["text"] = os.date("%x").." • "..os.date("%I")..":"..os.date("%M")..":"..os.date("%S").." "..os.date("%p")
  809.             }
  810.         }}
  811.     }
  812.     local headers = {
  813.         ["content-Type"] = "application/json"
  814.     }
  815.     httpreq({Url = hook, Body = game:GetService("HttpService"):JSONEncode(data), Method = "POST", Headers = headers})
  816. end
  817.  
  818. local function findField(position)
  819.     if not position then return nil end
  820.    
  821.     for _,v in pairs(game.Workspace.FlowerZones:GetChildren()) do
  822.         local fieldPos = v.CFrame.p
  823.         local fieldSize = v.Size + Vector3.new(0, 30, 0)
  824.         if position.X > fieldPos.X - fieldSize.X/2 and position.X < fieldPos.X + fieldSize.X/2 then
  825.             if position.Z > fieldPos.Z - fieldSize.Z/2 and position.Z < fieldPos.Z + fieldSize.Z/2 then
  826.                 if position.Y > fieldPos.Y - fieldSize.Y/2 and position.Y < fieldPos.Y + fieldSize.Y/2 then
  827.                     return v
  828.                 end
  829.             end
  830.         end
  831.     end
  832.    
  833.     return nil
  834. end
  835.  
  836. function statsget()
  837.     local StatCache = require(game.ReplicatedStorage.ClientStatCache)
  838.     local stats = StatCache:Get()
  839.     return stats
  840. end
  841. function farm(trying)
  842.     if kocmoc.toggles.loopfarmspeed then
  843.         player.Character.Humanoid.WalkSpeed = kocmoc.vars.farmspeed
  844.     end
  845.     api.humanoid():MoveTo(trying.Position)
  846.     repeat
  847.         task.wait()
  848.     until (trying.Position - api.humanoidrootpart().Position).magnitude <= 4 or not IsToken(trying) or not temptable.running
  849. end
  850.  
  851. function disableall()
  852.     if kocmoc.toggles.autofarm and not temptable.converting then
  853.         temptable.cache.autofarm = true
  854.         kocmoc.toggles.autofarm = false
  855.     end
  856.     if kocmoc.toggles.killmondo and not temptable.started.mondo then
  857.         kocmoc.toggles.killmondo = false
  858.         temptable.cache.killmondo = true
  859.     end
  860.     if kocmoc.toggles.killvicious and not temptable.started.vicious then
  861.         kocmoc.toggles.killvicious = false
  862.         temptable.cache.vicious = true
  863.     end
  864.     if kocmoc.toggles.killwindy and not temptable.started.windy then
  865.         kocmoc.toggles.killwindy = false
  866.         temptable.cache.windy = true
  867.     end
  868.     if kocmoc.toggles.traincommando and not temptable.started.commando then
  869.         kocmoc.toggles.commando = false
  870.         temptable.cache.commando = true
  871.     end
  872.     if kocmoc.toggles.trainsnow and not temptable.started.snowbear then
  873.         kocmoc.toggles.trainsnow = false
  874.         temptable.cache.snowbear = true
  875.     end
  876. end
  877.  
  878. function enableall()
  879.     if temptable.cache.autofarm then
  880.         kocmoc.toggles.autofarm = true
  881.         temptable.cache.autofarm = false
  882.     end
  883.     if temptable.cache.killmondo then
  884.         kocmoc.toggles.killmondo = true
  885.         temptable.cache.killmondo = false
  886.     end
  887.     if temptable.cache.vicious then
  888.         kocmoc.toggles.killvicious = true
  889.         temptable.cache.vicious = false
  890.     end
  891.     if temptable.cache.windy then
  892.         kocmoc.toggles.killwindy = true
  893.         temptable.cache.windy = false
  894.     end
  895.     if temptable.cache.commando then
  896.         kocmoc.toggles.traincommando = true
  897.         temptable.cache.traincommando = false
  898.     end
  899. end
  900.  
  901. function gettoken(v3, farmclosest)
  902.     --if temptable.doingbubbles or temptable.doingcrosshairs then return end
  903.     if not v3 then v3 = fieldposition end
  904.     task.wait()
  905.     if farmclosest then
  906.         for i=0,10 do
  907.             local closesttoken = {}
  908.             for e, r in next, game.Workspace.Collectibles:GetChildren() do
  909.                 if r:FindFirstChild("farmed") then continue end
  910.                 itb = false
  911.                 if r:FindFirstChildOfClass("Decal") and kocmoc.toggles.enabletokenblacklisting then
  912.                     if api.findvalue(kocmoc.bltokens, string.split(r:FindFirstChildOfClass("Decal").Texture, "rbxassetid://")[2]) then
  913.                         itb = true
  914.                     end
  915.                 end
  916.                 if not itb and findField(r.Position) == findField(api.humanoidrootpart().Position) then
  917.                     if closesttoken.Distance then
  918.                         if (r.Position - api.humanoidrootpart().Position).magnitude < closesttoken.Distance then
  919.                             closesttoken = {Token = r, Distance = (r.Position - api.humanoidrootpart().Position).magnitude}
  920.                         end
  921.                     else
  922.                         closesttoken = {Token = r, Distance = (r.Position - api.humanoidrootpart().Position).magnitude}
  923.                     end
  924.                 end
  925.             end
  926.             if closesttoken.Token then
  927.                 farm(closesttoken.Token)
  928.                 local farmed = Instance.new("BoolValue", closesttoken.Token)
  929.                 farmed.Name = "farmed"
  930.                 task.spawn(function()
  931.                     task.wait(1)
  932.                     if closesttoken.Token and closesttoken.Token.Parent then
  933.                         farmed.Parent = nil
  934.                     end
  935.                 end)
  936.             end
  937.         end
  938.     else
  939.         for e, r in next, game.Workspace.Collectibles:GetChildren() do
  940.             itb = false
  941.             if r:FindFirstChildOfClass("Decal") and kocmoc.toggles.enabletokenblacklisting then
  942.                 if api.findvalue(kocmoc.bltokens, string.split(r:FindFirstChildOfClass("Decal").Texture, "rbxassetid://")[2]) then
  943.                     itb = true
  944.                 end
  945.             end
  946.             if tonumber((r.Position - api.humanoidrootpart().Position).magnitude) <= temptable.magnitude / 1.4 and not itb and (v3 - r.Position).magnitude <= temptable.magnitude then
  947.                 farm(r)
  948.             end
  949.         end
  950.     end
  951. end
  952.  
  953. function makesprinklers(position, onlyonesprinkler)
  954.     local sprinkler = rtsg().EquippedSprinkler
  955.     local sprinklercount = 1
  956.     local sprinklermodel = game.Workspace.Gadgets:FindFirstChild(sprinkler)
  957.  
  958.     if sprinkler == "The Supreme Saturator" then
  959.         if sprinklermodel then
  960.             if (sprinklermodel.Base.CFrame.p - position).magnitude > 32 then
  961.                 playeractivescommand:FireServer({["Name"] = "Sprinkler Builder"})
  962.             end
  963.         else
  964.             playeractivescommand:FireServer({["Name"] = "Sprinkler Builder"})
  965.         end
  966.         return
  967.     end
  968.    
  969.     if sprinkler == "Basic Sprinkler" or onlyonesprinkler then
  970.         sprinklercount = 1
  971.     elseif sprinkler == "Silver Soakers" then
  972.         sprinklercount = 2
  973.     elseif sprinkler == "Golden Gushers" then
  974.         sprinklercount = 3
  975.     elseif sprinkler == "Diamond Drenchers" then
  976.         sprinklercount = 4
  977.     end
  978.  
  979.     for i = 1, sprinklercount do
  980.         if api.humanoid() then
  981.             local k = api.humanoid().JumpPower
  982.             if sprinklercount ~= 1 then
  983.                 api.humanoid().JumpPower = 70
  984.                 api.humanoid().Jump = true
  985.                 task.wait(.2)
  986.             end
  987.             playeractivescommand:FireServer({["Name"] = "Sprinkler Builder"})
  988.             if sprinklercount ~= 1 then
  989.                 api.humanoid().JumpPower = k
  990.                 task.wait(1)
  991.             end
  992.         end
  993.     end
  994. end
  995.  
  996. function domob(place)
  997.     if place:FindFirstChild("Territory") then
  998.         local timestamp = tick()
  999.         local secondstamp = tick()
  1000.         local monsterpart = place.Territory.Value
  1001.  
  1002.         if place.Name:match("Werewolf") then
  1003.             monsterpart = game:GetService("Workspace").Territories.WerewolfPlateau.w
  1004.         elseif place.Name:match("Mushroom") then
  1005.             monsterpart = game:GetService("Workspace").Territories.MushroomZone.Part
  1006.         end
  1007.  
  1008.         local point = Vector3.new((place.CFrame.p.X + monsterpart.CFrame.p.X) / 2, monsterpart.CFrame.p.Y, (place.CFrame.p.Z + monsterpart.CFrame.p.Z) / 2)
  1009.  
  1010.         if place:FindFirstChild("TimerLabel", true).Visible then
  1011.             return false
  1012.         end
  1013.  
  1014.         while not place:FindFirstChild("TimerLabel", true).Visible and tick() - timestamp < 25 do
  1015.             if tick() - secondstamp > 2 then
  1016.                 api.humanoidrootpart().CFrame = CFrame.new(point + Vector3.new(0, 30, 0))
  1017.                 api.humanoidrootpart().Velocity = Vector3.new(0, 0, 0)
  1018.                 task.wait(1)
  1019.                 secondstamp = tick()
  1020.             end
  1021.             task.wait()
  1022.             api.humanoidrootpart().CFrame = CFrame.new(point)
  1023.             api.humanoidrootpart().Velocity = Vector3.new(0, 0, 0)
  1024.         end
  1025.  
  1026.         if tick() - timestamp > 25 then
  1027.             return false
  1028.         end
  1029.  
  1030.         task.wait(1)
  1031.         for i = 1, 2 do
  1032.             gettoken(place.CFrame.p)
  1033.         end
  1034.  
  1035.         return true
  1036.     end
  1037. end
  1038.  
  1039. function killmobs()
  1040.     if kocmoc.toggles.smartmobkill then
  1041.         local monsternames = {
  1042.             "Mantis",
  1043.             "Scorpion",
  1044.             "Spider",
  1045.             "Werewol",
  1046.             "Rhino",
  1047.             "Ladybug"
  1048.         }
  1049.        
  1050.         local totalmonsters = {}
  1051.  
  1052.         for i, v in next, player.PlayerGui.ScreenGui.Menus.Children.Quests:GetDescendants() do
  1053.             if v.Name == "Description" and v.Parent and v.Parent.Parent then
  1054.                 local text = v.Text
  1055.                 for _,monstername in pairs(monsternames) do
  1056.                     local monsterindex = text:find(monstername)
  1057.                     if monsterindex and not text:find("Field") and text:find("/") then
  1058.                         local totalmonstercount = text:sub(text:find("/") + 1, #text)
  1059.                         local defeatedmonstercount = text:sub(text:find("\n"), text:find("/") - 1)
  1060.                         totalmonsters[monstername] = totalmonsters[monstername] and totalmonsters[monstername] + totalmonstercount - defeatedmonstercount or totalmonstercount - defeatedmonstercount
  1061.                     end
  1062.                 end
  1063.             end
  1064.         end
  1065.  
  1066.         if totalmonsters["Rhino"] and totalmonsters["Rhino"] > 0 then
  1067.             if domob(monsterspawners:FindFirstChild("Rhino Bush")) then
  1068.                 totalmonsters["Rhino"] = totalmonsters["Rhino"] - 1
  1069.             end
  1070.         end
  1071.         if totalmonsters["Ladybug"] and totalmonsters["Ladybug"] > 0 then
  1072.             if domob(monsterspawners:FindFirstChild("Ladybug Bush")) then
  1073.                 totalmonsters["Ladybug"] = totalmonsters["Ladybug"] - 1
  1074.             end
  1075.         end
  1076.         if totalmonsters["Rhino"] and totalmonsters["Rhino"] > 0 then
  1077.             if domob(monsterspawners:FindFirstChild("Rhino Cave 1")) then
  1078.                 totalmonsters["Rhino"] = totalmonsters["Rhino"] - 1
  1079.             end
  1080.         end
  1081.         if totalmonsters["Rhino"] and totalmonsters["Rhino"] > 0 then
  1082.             if domob(monsterspawners:FindFirstChild("Rhino Cave 2")) then
  1083.                 totalmonsters["Rhino"] = totalmonsters["Rhino"] - 1
  1084.             end
  1085.         end
  1086.         if totalmonsters["Rhino"] and totalmonsters["Rhino"] > 0 then
  1087.             if domob(monsterspawners:FindFirstChild("Rhino Cave 3")) then
  1088.                 totalmonsters["Rhino"] = totalmonsters["Rhino"] - 1
  1089.             end
  1090.         end
  1091.         if totalmonsters["Rhino"] and totalmonsters["Rhino"] > 0 then
  1092.             if domob(monsterspawners:FindFirstChild("PineappleBeetle")) then
  1093.                 totalmonsters["Rhino"] = totalmonsters["Rhino"] - 1
  1094.             end
  1095.         end
  1096.         if totalmonsters["Mantis"] and totalmonsters["Mantis"] > 0 then
  1097.             if domob(monsterspawners:FindFirstChild("PineappleMantis1")) then
  1098.                 totalmonsters["Mantis"] = totalmonsters["Mantis"] - 1
  1099.             end
  1100.         end
  1101.         if totalmonsters["Spider"] and totalmonsters["Spider"] > 0 then
  1102.             domob(monsterspawners:FindFirstChild("Spider Cave"))
  1103.         end
  1104.         if totalmonsters["Ladybug"] and totalmonsters["Ladybug"] > 0 then
  1105.             if domob(monsterspawners:FindFirstChild("MushroomBush")) then
  1106.                 totalmonsters["Ladybug"] = totalmonsters["Ladybug"] - 1
  1107.             end
  1108.         end
  1109.         if totalmonsters["Ladybug"] and totalmonsters["Ladybug"] > 0 then
  1110.             domob(monsterspawners:FindFirstChild("Ladybug Bush 2"))
  1111.             domob(monsterspawners:FindFirstChild("Ladybug Bush 3"))
  1112.         end
  1113.         if totalmonsters["Scorpion"] and totalmonsters["Scorpion"] > 0 then
  1114.             domob(monsterspawners:FindFirstChild("ScorpionBush"))
  1115.             domob(monsterspawners:FindFirstChild("ScorpionBush2"))
  1116.         end
  1117.         if totalmonsters["Werewol"] and totalmonsters["Werewol"] > 0 then
  1118.             domob(monsterspawners:FindFirstChild("WerewolfCave"))
  1119.         end
  1120.         if totalmonsters["Mantis"] and totalmonsters["Mantis"] > 0 then
  1121.             domob(monsterspawners:FindFirstChild("ForestMantis1"))
  1122.             domob(monsterspawners:FindFirstChild("ForestMantis2"))
  1123.         end
  1124.     else
  1125.         domob(monsterspawners:FindFirstChild("Rhino Bush")) -- Clover Field
  1126.         domob(monsterspawners:FindFirstChild("Ladybug Bush")) -- Clover Field
  1127.         domob(monsterspawners:FindFirstChild("Rhino Cave 1")) -- Blue Flower Field
  1128.         domob(monsterspawners:FindFirstChild("Rhino Cave 2")) -- Bamboo Field
  1129.         domob(monsterspawners:FindFirstChild("Rhino Cave 3")) -- Bamboo Field
  1130.         domob(monsterspawners:FindFirstChild("PineappleMantis1")) -- Pineapple Field
  1131.         domob(monsterspawners:FindFirstChild("PineappleBeetle")) -- Pineapple Field
  1132.         domob(monsterspawners:FindFirstChild("Spider Cave")) -- Spider Field
  1133.         domob(monsterspawners:FindFirstChild("MushroomBush")) -- Mushroom Field
  1134.         domob(monsterspawners:FindFirstChild("Ladybug Bush 2")) -- Strawberry Field
  1135.         domob(monsterspawners:FindFirstChild("Ladybug Bush 3")) -- Strawberry Field
  1136.         domob(monsterspawners:FindFirstChild("ScorpionBush")) -- Rose Field
  1137.         domob(monsterspawners:FindFirstChild("ScorpionBush2")) -- Rose Field
  1138.         domob(monsterspawners:FindFirstChild("WerewolfCave")) -- Werewolf
  1139.         domob(monsterspawners:FindFirstChild("ForestMantis1")) -- Pine Tree Field
  1140.         domob(monsterspawners:FindFirstChild("ForestMantis2")) -- Pine Tree Field
  1141.     end
  1142. end
  1143.  
  1144. function IsToken(token)
  1145.     if not token then return false end
  1146.     if not token.Parent then return false end
  1147.     if token then
  1148.         if token.Orientation.Z ~= 0 then return false end
  1149.         if token:FindFirstChild("FrontDecal") then
  1150.         else
  1151.             return false
  1152.         end
  1153.         if not token.Name == "C" then return false end
  1154.         if not token:IsA("Part") then return false end
  1155.         return true
  1156.     else
  1157.         return false
  1158.     end
  1159. end
  1160.  
  1161. function check(ok)
  1162.     if not ok then return false end
  1163.     if not ok.Parent then return false end
  1164.     return true
  1165. end
  1166.  
  1167. function getplanters()
  1168.     table.clear(planterst.plantername)
  1169.     table.clear(planterst.planterid)
  1170.     for i, v in pairs(debug.getupvalues(require(game:GetService("ReplicatedStorage").LocalPlanters).LoadPlanter)[4]) do
  1171.         if v.GrowthPercent == 1 and v.IsMine then
  1172.             table.insert(planterst.plantername, v.Type)
  1173.             table.insert(planterst.planterid, v.ActorID)
  1174.         end
  1175.     end
  1176. end
  1177.  
  1178. function getBuffTime(decalID)
  1179.     if not decalID then return 0 end
  1180.    
  1181.     for i,v in pairs(player.PlayerGui.ScreenGui:GetChildren()) do
  1182.         if v.Name == "TileGrid" then
  1183.             for j,k in pairs(v:GetChildren()) do
  1184.                 if k:FindFirstChild("BG") and k.BG:FindFirstChild("Icon") then
  1185.                     if string.find(tostring(k.BG.Icon.Image), decalID) then
  1186.                         return k.BG.Bar.Size.Y.Scale
  1187.                     end
  1188.                 end
  1189.             end
  1190.         end
  1191.     end
  1192.  
  1193.     return 0
  1194. end
  1195.  
  1196. function getBuffStack(decalID)
  1197.     if not decalID then return 0 end
  1198.    
  1199.     for i,v in pairs(player.PlayerGui.ScreenGui:GetChildren()) do
  1200.         if v.Name == "TileGrid" then
  1201.             for j,k in pairs(v:GetChildren()) do
  1202.                 if k:FindFirstChild("BG") and k.BG:FindFirstChild("Icon") then
  1203.                     if string.find(tostring(k.BG.Icon.Image), decalID) then
  1204.                         local placeholder = k.BG.Text.Text:gsub("x", "")
  1205.                         return tonumber(placeholder) or 1
  1206.                     end
  1207.                 end
  1208.             end
  1209.         end
  1210.     end
  1211.  
  1212.     return 0
  1213. end
  1214.  
  1215. function farmant()
  1216.     antpart.CanCollide = true
  1217.     temptable.started.ant = true
  1218.     local anttable = {left = true, right = false}
  1219.     temptable.oldtool = rtsg()["EquippedCollector"]
  1220.     if temptable.oldtool ~= "Tide Popper" then
  1221.         equiptool("Spark Staff")
  1222.     end
  1223.     local oldmask = rtsg()["EquippedAccessories"]["Hat"]
  1224.     maskequip("Demon Mask")
  1225.     game.ReplicatedStorage.Events.ToyEvent:FireServer("Ant Challenge")
  1226.     kocmoc.toggles.autodig = true
  1227.     local acl = CFrame.new(Vector3.new(127, 48, 547), Vector3.new(94, 51.8, 550))
  1228.     local acr = CFrame.new(Vector3.new(65, 48, 534), Vector3.new(94, 51.8, 550))
  1229.     task.wait(1)
  1230.     playeractivescommand:FireServer({
  1231.         ["Name"] = "Sprinkler Builder"
  1232.     })
  1233.     api.humanoidrootpart().CFrame = api.humanoidrootpart().CFrame + Vector3.new(0, 15, 0)
  1234.     local anttokendb = false
  1235.     task.wait(3)
  1236.     repeat
  1237.         task.wait()
  1238.         task.spawn(function()
  1239.             if not anttokendb then
  1240.                 anttokendb = true
  1241.                 local smallest = math.huge
  1242.                 for _,token in pairs(workspace.Collectibles:GetChildren()) do
  1243.                     local decal = token:FindFirstChildOfClass("Decal")
  1244.                     if decal and decal.Texture then
  1245.                         if decal.Texture == "rbxassetid://1629547638" then
  1246.                             for _,monster in pairs(game.Workspace.Monsters:GetChildren()) do
  1247.                                 if monster.Name:find("Ant") and monster:FindFirstChild("Head") then
  1248.                                     local dist = (monster.Head.CFrame.p - token.CFrame.p).magnitude
  1249.                                     if dist < smallest then
  1250.                                         smallest = dist
  1251.                                     end
  1252.                                 end
  1253.                             end
  1254.                            
  1255.                             if player.Character:FindFirstChild("Humanoid") and smallest > 20 and smallest < 100 then
  1256.                                 local save = api.humanoidrootpart().CFrame
  1257.                                 api.humanoidrootpart().CFrame = CFrame.new(token.CFrame.p)
  1258.                                 task.wait(0.5)
  1259.                                 api.humanoidrootpart().CFrame = save
  1260.                                 break
  1261.                             end
  1262.                         end
  1263.                     end
  1264.                 end
  1265.                 task.wait(1)
  1266.                 anttokendb = false
  1267.             end
  1268.         end)
  1269.         for i, v in next, game.Workspace.Toys["Ant Challenge"].Obstacles:GetChildren() do
  1270.             if v:FindFirstChild("Root") then
  1271.                 if (v.Root.Position - api.humanoidrootpart().Position).magnitude <= 40 and anttable.left then
  1272.                     api.humanoidrootpart().CFrame = acr
  1273.                     anttable.left = false
  1274.                     anttable.right = true
  1275.                     task.wait(0.5)
  1276.                 elseif (v.Root.Position - api.humanoidrootpart().Position).magnitude <= 40 and anttable.right then
  1277.                     api.humanoidrootpart().CFrame = acl
  1278.                     anttable.left = true
  1279.                     anttable.right = false
  1280.                     task.wait(0.5)
  1281.                 end
  1282.             end
  1283.         end
  1284.     until game.Workspace.Toys["Ant Challenge"].Busy.Value == false
  1285.     task.wait(1)
  1286.     if temptable.oldtool ~= "Tide Popper" then
  1287.         equiptool(temptable.oldtool)
  1288.     end
  1289.     maskequip(oldmask)
  1290.     temptable.started.ant = false
  1291.     antpart.CanCollide = false
  1292. end
  1293.  
  1294. function collectplanters()
  1295.     getplanters()
  1296.     for i, v in pairs(planterst.plantername) do
  1297.         if api.partwithnamepart(v, game.Workspace.Planters) and api.partwithnamepart(v, game.Workspace.Planters):FindFirstChild("Soil") then
  1298.             local soil = api.partwithnamepart(v, game.Workspace.Planters).Soil
  1299.             api.humanoidrootpart().CFrame = soil.CFrame
  1300.             game:GetService("ReplicatedStorage").Events.PlanterModelCollect:FireServer(planterst.planterid[i])
  1301.             task.wait(1)
  1302.             playeractivescommand:FireServer({["Name"] = v .. " Planter"})
  1303.             for i = 1, 5 do
  1304.                 gettoken(soil.Position)
  1305.             end
  1306.             task.wait(3)
  1307.         end
  1308.     end
  1309. end
  1310. game.Workspace.Collectibles.ChildAdded:Connect(function(r)
  1311.     if r:FindFirstChildOfClass("Decal") then
  1312.         local aaaaaaaa = string.split(r:FindFirstChildOfClass("Decal").Texture, "rbxassetid://")[2] --sakata lol xd
  1313.         if aaaaaaaa ~= nil and api.findvalue(kocmoc.priority, aaaaaaaa) then
  1314.             if r.Name == player.Name and
  1315.                 not r:FindFirstChild("got it") or tonumber((r.Position - api.humanoidrootpart().Position).magnitude) <= temptable.magnitude / 1.4 and
  1316.                 not r:FindFirstChild("got it") then
  1317.                 if not kocmoc.toggles.ptsrage then
  1318.                     farm(r)
  1319.                 else
  1320.                     api.humanoidrootpart().CFrame = CFrame.new(r.Position)
  1321.                 end
  1322.                 local val = Instance.new("IntValue", r)
  1323.                 val.Name = "got it"
  1324.             end
  1325.         end
  1326.     end
  1327. end)
  1328.  
  1329. function getprioritytokens()
  1330.     return true
  1331. end
  1332.  
  1333. function gethiveballoon()
  1334.     for _,balloon in pairs(game.Workspace.Balloons.HiveBalloons:GetChildren()) do
  1335.         if balloon:FindFirstChild("BalloonRoot") then
  1336.             if balloon.BalloonRoot.CFrame.p.X == player.SpawnPos.Value.p.X then
  1337.                 return true
  1338.             end
  1339.         end
  1340.     end
  1341.     return false
  1342. end
  1343.  
  1344. local function getfurthestballoon()
  1345.     local biggest = 0
  1346.     local saveloon = nil
  1347.     local balloons = game.Workspace:FindFirstChild("Balloons")
  1348.     local root = player.Character:FindFirstChild("HumanoidRootPart")
  1349.     if balloons and root then
  1350.         for _,balloon in pairs(balloons.FieldBalloons:GetChildren()) do
  1351.             local owner = balloon:FindFirstChild("PlayerName")
  1352.             if owner then
  1353.                 if owner.Value == player.Name then
  1354.                     local text = balloon.BalloonBody.GuiAttach.Gui.Bar.TextLabel.Text
  1355.                     local bar = balloon.BalloonBody.GuiAttach.Gui.Bar.FillBar
  1356.                     if bar.Parent.BackgroundTransparency == 0 and fieldposition then
  1357.                         local dist = (root.CFrame.p - balloon.BalloonBody.Position).magnitude
  1358.                         if dist > biggest and dist < 100 then
  1359.                             biggest = dist
  1360.                             saveloon = balloon
  1361.                         end
  1362.                     end
  1363.                 end
  1364.             end
  1365.         end
  1366.     end
  1367.     if saveloon and fieldposition then
  1368.         return Vector3.new(saveloon.BalloonBody.Position.X, fieldposition.Y, saveloon.BalloonBody.Position.Z)
  1369.     end
  1370.     return nil
  1371. end
  1372.  
  1373. function converthoney()
  1374.     task.wait(0)
  1375.     if temptable.converting then
  1376.         if player.PlayerGui.ScreenGui.ActivateButton.TextBox.Text ~= "Stop Making Honey" and player.PlayerGui.ScreenGui.ActivateButton.BackgroundColor3 ~= Color3.new(201, 39, 28) or (player.SpawnPos.Value.Position - api.humanoidrootpart().Position).magnitude > 13 then
  1377.             api.tween(1, player.SpawnPos.Value * CFrame.fromEulerAnglesXYZ(0, 110, 0) + Vector3.new(0, 0, 9))
  1378.             task.wait(.9)
  1379.             if player.PlayerGui.ScreenGui.ActivateButton.TextBox.Text ~= "Stop Making Honey" and player.PlayerGui.ScreenGui.ActivateButton.BackgroundColor3 ~= Color3.new(201, 39, 28) or (player.SpawnPos.Value.Position - api.humanoidrootpart().Position).magnitude > 13 then
  1380.                 game:GetService("ReplicatedStorage").Events.PlayerHiveCommand:FireServer("ToggleHoneyMaking")
  1381.             end
  1382.             task.wait(.1)
  1383.         end
  1384.     end
  1385. end
  1386.  
  1387. function closestleaf()
  1388.     for i, v in next, game.Workspace.Flowers:GetDescendants() do
  1389.         if v.Name == "Leaf Burst" and v.Parent:IsA("Part") and v.Parent then
  1390.             if temptable.running == false and tonumber((v.Position - player.Character.HumanoidRootPart.Position).magnitude) < temptable.magnitude / 1.4 then
  1391.                 farm(v.Parent)
  1392.                 break
  1393.             end
  1394.         else
  1395.             continue
  1396.         end
  1397.     end
  1398. end
  1399.  
  1400.  
  1401. function getfireflies()
  1402.     for i,v in next, game:GetService("Workspace").NPCBees:GetChildren() do
  1403.         if v.Name == "Firefly" then
  1404.             disableall()
  1405.             api.humanoidrootpart().CFrame = CFrame.new(v.Position)
  1406.             task.wait(.5)
  1407.             api.humanoidrootpart().CFrame = CFrame.new(v.Position)
  1408.             enableall()
  1409.             api.tween(2, fieldpos)
  1410.         else
  1411.             continue
  1412.         end
  1413.     end
  1414. end
  1415.  
  1416. function getsparkles()
  1417.     for i,v in next, game.Workspace.Flowers:GetDescendants() do
  1418.         if v.Name == "Sparkles" and v.Parent and v.Parent:IsA("Part") then
  1419.             disableall()
  1420.             api.humanoidrootpart().CFrame = CFrame.new(v.Parent.Position)
  1421.             task.wait(.5)
  1422.             repeat
  1423.                 api.humanoidrootpart().CFrame = CFrame.new(v.Parent.Position)
  1424.             until not api.isExist(v.Parent)
  1425.             enableall()
  1426.             api.tween(2, fieldpos)
  1427.         else
  1428.             continue
  1429.         end
  1430.     end
  1431. end
  1432.  
  1433. function getballoons()
  1434.     if temptable.doingbubbles or temptable.doingcrosshairs then return end
  1435.     for i, v in next, game.Workspace.Balloons.FieldBalloons:GetChildren() do
  1436.         if v:FindFirstChild("BalloonRoot") and v:FindFirstChild("PlayerName") then
  1437.             if v:FindFirstChild("PlayerName").Value == player.Name then
  1438.                 if tonumber((v.BalloonRoot.Position - api.humanoidrootpart().Position).magnitude) < temptable.magnitude / 1.4 then
  1439.                     api.walkTo(v.BalloonRoot.Position)
  1440.                 end
  1441.             end
  1442.         end
  1443.     end
  1444. end
  1445.  
  1446. function getpuff()
  1447.     local smallest = math.huge
  1448.     local closestPuffStem
  1449.     for _,puffshroom in pairs(game.Workspace.Happenings.Puffshrooms:GetChildren()) do
  1450.         local stem = puffshroom:FindFirstChild("Puffball Stem")
  1451.         if stem and player.Character:FindFirstChild("HumanoidRootPart") then
  1452.             local dist = (api.humanoidrootpart().CFrame.p - stem.CFrame.p).magnitude
  1453.             if dist < smallest then
  1454.                 smallest = dist
  1455.                 closestPuffStem = stem
  1456.             end
  1457.         end
  1458.     end
  1459.  
  1460.     if closestPuffStem then
  1461.         api.walkTo(closestPuffStem.CFrame.p)
  1462.     end
  1463. end
  1464.  
  1465. function doautox4()
  1466.     if temptable.autox4glitter == 1 then
  1467.         writefile("kocmoc/plantercache/x4.file", "0")
  1468.     else
  1469.         writefile("kocmoc/plantercache/x4.file", "1")
  1470.     end
  1471. end
  1472.  
  1473. function getflower()
  1474.     flowerrrr = flowertable[math.random(#flowertable)]
  1475.     if tonumber((flowerrrr - api.humanoidrootpart().Position).magnitude) <= temptable.magnitude / 1.4 and
  1476.         tonumber((flowerrrr - fieldposition).magnitude) <= temptable.magnitude / 1.4 then
  1477.         if temptable.running == false then
  1478.             if kocmoc.toggles.loopfarmspeed then
  1479.                 player.Character.Humanoid.WalkSpeed = kocmoc.vars.farmspeed
  1480.             end
  1481.             api.walkTo(flowerrrr)
  1482.         end
  1483.     end
  1484. end
  1485.  
  1486. function getcloud()
  1487.     if temptable.doingbubbles or temptable.doingcrosshairs then return end
  1488.     for i, v in next, game.Workspace.Clouds:GetChildren() do
  1489.         e = v:FindFirstChild("Plane")
  1490.         if e and tonumber((e.Position - api.humanoidrootpart().Position).magnitude) < temptable.magnitude / 1.4 then
  1491.             api.walkTo(e.Position)
  1492.         end
  1493.     end
  1494. end
  1495.  
  1496. function getfuzzy()
  1497.     pcall(function()
  1498.         for i, v in next, game.workspace.Particles:GetChildren() do
  1499.             if v.Name == "DustBunnyInstance" and temptable.running == false and
  1500.                 tonumber((v.Plane.Position - api.humanoidrootpart().Position).magnitude) < temptable.magnitude /
  1501.                 1.4 then
  1502.                 if v:FindFirstChild("Plane") then
  1503.                     farm(v:FindFirstChild("Plane"))
  1504.                     break
  1505.                 end
  1506.             end
  1507.         end
  1508.     end)
  1509. end
  1510. function getdigital()
  1511.     pcall(function()
  1512.         if not temptable.converting then
  1513.             for i,v in next, game.Workspace.Camera.DupedTokens:GetChildren() do
  1514.                 if v.Name == "C" and v:FindFirstChild('FrontDecal') and string.find(v.FrontDecal.Texture,"5877939956") then
  1515.                     local hashed = math.random(1, 42345252)
  1516.                     v.Name = tostring(hashed)
  1517.                     repeat task.wait(0.1)
  1518.                         api.tween(1, CFrame.new(v.CFrame.X, v.CFrame.Y - 14, v.CFrame.Z))
  1519.                         --[[ api.humanoidrootpart().Velocity = Vector3.new(0, 0, 0)
  1520.                         api.humanoidrootpart().CFrame = CFrame.new(v.CFrame.X, v.CFrame.Y - 14, v.CFrame.Z) ]]
  1521.                     until not game.Workspace.Camera.DupedTokens:FindFirstChild(hashed)
  1522.                 end
  1523.             end
  1524.         end
  1525.     end)
  1526. end
  1527.  
  1528. function getflame()
  1529.     for _,v in pairs(game.Workspace.PlayerFlames:GetChildren()) do
  1530.         if player.Character and player.Character:FindFirstChild("HumanoidRootPart") and v.PF.Color.Keypoints[1].Value.G == 0 and findField(v.Position) == findField(api.humanoidrootpart().Position) then
  1531.             api.humanoid():MoveTo(v.Position)
  1532.             repeat
  1533.                 task.wait()
  1534.             until (v.Position - api.humanoidrootpart().Position).magnitude <= 4 or not v or not v.Parent or not temptable.running
  1535.             return
  1536.         end
  1537.     end
  1538. end
  1539.  
  1540. function farmcombattokens(v, pos, type)
  1541.     pcall(function()
  1542.     if type == 'crab' then
  1543.         if v.CFrame.YVector.Y == 1 and v.Transparency == 0 and v ~= nil and v.Parent ~= nil then
  1544.             if (v.Position - pos.Position).Magnitude < 50 then
  1545.                 repeat
  1546.                     task.wait(.5)
  1547.                     api.walkTo(v.Position)
  1548.                 until not v.Parent or v.CFrame.YVector.Y ~= 1 or not v
  1549.                 api.teleport(pos)
  1550.             end
  1551.         end
  1552.     elseif type == 'snail' then
  1553.         if v.CFrame.YVector.Y == 1 and v.Transparency == 0 and v ~= nil and v.Parent ~= nil then
  1554.             if (v.Position - pos.Position).Magnitude < 50 then
  1555.                 repeat
  1556.                     task.wait(.5)
  1557.                     api.walkTo(v.Position)
  1558.                 until not v.Parent or v.CFrame.YVector.Y ~= 1 or not v
  1559.                 api.teleport(pos)
  1560.             end
  1561.         end
  1562.     elseif type == 'mondo' then
  1563.         if temptable.MondoCollectTokens then return end
  1564.         if v.CFrame.YVector.Y == 1 and v.Transparency == 0 and v ~= nil and v.Parent ~= nil then
  1565.             if (v.Position - pos.Position).Magnitude < 25 then
  1566.                 repeat
  1567.                     task.wait()
  1568.                     api.humanoidrootpart().CFrame = CFrame.new(v.Position)
  1569.                 until not v.Parent or v.CFrame.YVector.Y ~= 1 or not v
  1570.                 api.teleport(pos)
  1571.             end
  1572.         end
  1573.     elseif type == 'commando' then
  1574.     if temptable.MondoCollectTokens then return end
  1575.         if v.CFrame.YVector.Y == 1 and v.Transparency == 0 and v ~= nil and v.Parent ~= nil then
  1576.             if (v.Position - pos.Position).Magnitude < 25 and v.Parent and v then
  1577.                 repeat
  1578.                     task.wait()
  1579.                     api.humanoidrootpart().CFrame = CFrame.new(v.Position)
  1580.                 until not v.Parent or v.CFrame.YVector.Y ~= 1 or not v
  1581.                 api.teleport(pos)
  1582.             end
  1583.         end
  1584.     elseif type == 'snowbear' then
  1585.     if temptable.MondoCollectTokens then return end
  1586.         if v.CFrame.YVector.Y == 1 and v.Transparency == 0 and v ~= nil and v.Parent ~= nil then
  1587.             if (v.Position - pos.Position).Magnitude < 25 and v.Parent and v then
  1588.                 repeat
  1589.                     task.wait()
  1590.                     api.humanoidrootpart().CFrame = CFrame.new(v.Position)
  1591.                 until not v.Parent or v.CFrame.YVector.Y ~= 1 or not v
  1592.                 api.teleport(pos)
  1593.             end
  1594.         end
  1595.     end
  1596. end)
  1597. end
  1598.  
  1599.  
  1600. function avoidmob()
  1601.     for i, v in next, game.Workspace.Monsters:GetChildren() do
  1602.         if v:FindFirstChild("Head") then
  1603.             if (v.Head.Position - api.humanoidrootpart().Position).magnitude < 30 and api.humanoid():GetState() ~= Enum.HumanoidStateType.Freefall then
  1604.                 player.Character.Humanoid.Jump = true
  1605.             end
  1606.         end
  1607.     end
  1608. end
  1609.  
  1610. function dobubbles()
  1611.     if kocmoc.toggles.farmpuffshrooms and game.Workspace.Happenings.Puffshrooms:FindFirstChildOfClass("Model") then return end
  1612.     if temptable.started.ant or temptable.started.vicious or temptable.converting or temptable.planting then return end
  1613.  
  1614.     temptable.doingbubbles = true
  1615.     local savespeed = kocmoc.vars.walkspeed
  1616.     kocmoc.vars.walkspeed = kocmoc.vars.walkspeed * 1.75
  1617.  
  1618.     for _,v in pairs(game.Workspace.Particles:GetChildren()) do
  1619.         if string.find(v.Name, "Bubble") and v.Parent and player.Character and player.Character:FindFirstChild("HumanoidRootPart") and getBuffTime("5101328809") > 0.2 and (v.Position - api.humanoidrootpart().Position).magnitude < temptable.magnitude * 0.9 then
  1620.             api.humanoid():MoveTo(v.Position)
  1621.             repeat
  1622.                 task.wait()
  1623.             until (v.Position - api.humanoidrootpart().Position).magnitude <= 4 or not v or not v.Parent or not temptable.running
  1624.         end
  1625.     end
  1626.  
  1627.     temptable.doingbubbles = false
  1628.     kocmoc.vars.walkspeed = savespeed
  1629. end
  1630.  
  1631. function docrosshairs()
  1632.     if kocmoc.toggles.farmpuffshrooms and game.Workspace.Happenings.Puffshrooms:FindFirstChildOfClass("Model") then return end
  1633.     if temptable.started.ant or temptable.started.vicious or temptable.converting or temptable.planting or temptable.started.monsters then return end
  1634.  
  1635.     local savespeed = kocmoc.vars.walkspeed
  1636.  
  1637.     for _,v in pairs(game.Workspace.Particles:GetChildren()) do
  1638.         if string.find(v.Name, "Crosshair") and v.Parent and player.Character and player.Character:FindFirstChild("HumanoidRootPart") and v.BrickColor ~= BrickColor.new("Flint") then
  1639.             if kocmoc.toggles.fastcrosshairs then
  1640.                 if (v.Position - api.humanoidrootpart().Position).magnitude > 200 then continue end
  1641.                 if getBuffTime("8172818074") > 0.5 and getBuffStack("8172818074") > 9 and getBuffTime("5101329167") == 0 then
  1642.                     if v.BrickColor == BrickColor.new("Alder") then
  1643.                         task.wait(0.5)
  1644.                         local save_height = v.Position.y
  1645.                         repeat
  1646.                             task.wait()
  1647.                             api.humanoidrootpart().CFrame = CFrame.new(v.Position)
  1648.                         until not v or not v.Parent or v.Position.y ~= save_height
  1649.                     end
  1650.                 else
  1651.                     if v.BrickColor == BrickColor.new("Red flip/flop") or v.BrickColor == BrickColor.new("Alder") then
  1652.                         repeat
  1653.                             api.humanoid():MoveTo(v.Position)
  1654.                             task.wait()
  1655.                         until (v.Position - api.humanoidrootpart().Position).magnitude <= 4 or not v or not v.Parent or v.BrickColor == BrickColor.new("Forest green") or v.BrickColor == BrickColor.new("Royal purple")
  1656.                     end
  1657.                 end
  1658.             else
  1659.                 if (v.Position - api.humanoidrootpart().Position).magnitude < temptable.magnitude * 0.9 then
  1660.                     temptable.doingcrosshairs = true
  1661.                     kocmoc.vars.walkspeed = savespeed * 1.75
  1662.                     api.humanoid():MoveTo(v.Position)
  1663.                     repeat
  1664.                         task.wait()
  1665.                     until (v.Position - api.humanoidrootpart().Position).magnitude <= 4 or not v or not v.Parent or v.BrickColor == BrickColor.new("Forest green") or v.BrickColor == BrickColor.new("Royal purple") or not temptable.running
  1666.                     kocmoc.vars.walkspeed = savespeed
  1667.                     temptable.doingcrosshairs = false
  1668.                 end
  1669.             end
  1670.         end
  1671.     end
  1672. end
  1673.  
  1674.  
  1675. function makequests()
  1676.     for i, v in next, game.Workspace.NPCs:GetChildren() do
  1677.         if v.Name ~= "Ant Challenge Info" and v.Name ~= "Bubble Bee Man 2" and v.Name ~= "Wind Shrine" and v.Name ~= "Gummy Bear" and v.Name ~= "Honey Bee" then
  1678.             if v:FindFirstChild("Platform") then
  1679.                 if v.Platform:FindFirstChild("AlertPos") then
  1680.                     if v.Platform.AlertPos:FindFirstChild("AlertGui") then
  1681.                         if v.Platform.AlertPos.AlertGui:FindFirstChild("ImageLabel") then
  1682.                             image = v.Platform.AlertPos.AlertGui.ImageLabel
  1683.                             button = player.PlayerGui.ScreenGui.ActivateButton.MouseButton1Click
  1684.                             if image.ImageTransparency == 0 then
  1685.                                 if kocmoc.toggles.tptonpc then
  1686.                                     api.humanoidrootpart().CFrame = CFrame.new(
  1687.                                         v.Platform.Position.X,
  1688.                                         v.Platform.Position.Y + 3,
  1689.                                         v.Platform.Position.Z
  1690.                                     )
  1691.                                     task.wait(1)
  1692.                                 else
  1693.                                     api.tween(2, CFrame.new(
  1694.                                         v.Platform.Position.X,
  1695.                                         v.Platform.Position.Y + 3,
  1696.                                         v.Platform.Position.Z
  1697.                                     ))
  1698.                                     task.wait(3)
  1699.                                 end
  1700.                                 for b, z in next, getconnections(button) do
  1701.                                     z.Function()
  1702.                                 end
  1703.                                 task.wait(8)
  1704.                                 if image.ImageTransparency == 0 then
  1705.                                     for b, z in next, getconnections(button) do
  1706.                                         z.Function()
  1707.                                     end
  1708.                                 end
  1709.                                 task.wait(2)
  1710.                             end
  1711.                         end
  1712.                     end
  1713.                 end
  1714.             end
  1715.         end
  1716.     end
  1717. end
  1718.  
  1719. getgenv().Tvk1 = {true, "💖"}
  1720.  
  1721. local function donateToShrine(item, qnt)
  1722.     print(qnt)
  1723.     local s, e = pcall(function()
  1724.         game:GetService("ReplicatedStorage").Events.WindShrineDonation:InvokeServer(item, qnt)
  1725.         task.wait(0.5)
  1726.         game.ReplicatedStorage.Events.WindShrineTrigger:FireServer()
  1727.  
  1728.         local UsePlatform = game.Workspace.NPCs["Wind Shrine"].Stage
  1729.         api.humanoidrootpart().CFrame = UsePlatform.CFrame + Vector3.new(0, 5, 0)
  1730.  
  1731.         for i = 1, 120 do
  1732.             task.wait(0.05)
  1733.             for i, v in pairs(game.Workspace.Collectibles:GetChildren()) do
  1734.                 if (v.Position - UsePlatform.Position).magnitude < 60 and
  1735.                     v.CFrame.YVector.Y == 1 then
  1736.                     api.humanoidrootpart().CFrame = v.CFrame
  1737.                 end
  1738.             end
  1739.         end
  1740.     end)
  1741.     if not s then print(e) end
  1742. end
  1743.  
  1744. local function isWindshrineOnCooldown()
  1745.     local isOnCooldown = false
  1746.     local cooldown = 3600 - (require(game.ReplicatedStorage.OsTime)() - (require(game.ReplicatedStorage.StatTools).GetLastCooldownTime(v1, "WindShrine")))
  1747.     if cooldown > 0 then isOnCooldown = true end
  1748.     return isOnCooldown
  1749. end
  1750.  
  1751. local function getTimeSinceToyActivation(name)
  1752.     return require(game.ReplicatedStorage.OsTime)() - require(game.ReplicatedStorage.ClientStatCache):Get("ToyTimes")[name]
  1753. end
  1754.  
  1755. local function getTimeUntilToyAvailable(n)
  1756.     return workspace.Toys[n].Cooldown.Value - getTimeSinceToyActivation(n)
  1757. end
  1758.  
  1759. local function canToyBeUsed(toy)
  1760.     local timeleft = tostring(getTimeUntilToyAvailable(toy))
  1761.     local canbeUsed = false
  1762.     if string.find(timeleft, "-") then canbeUsed = true end
  1763.     return canbeUsed
  1764. end
  1765.  
  1766. function GetItemListWithValue()
  1767.     local StatCache = require(game.ReplicatedStorage.ClientStatCache)
  1768.     local data = StatCache.Get()
  1769.     return data.Eggs
  1770. end
  1771.  
  1772. local function useConvertors()
  1773.     local conv = {
  1774.         "Instant Converter", "Instant Converter B", "Instant Converter C"
  1775.     }
  1776.  
  1777.     local lastWithoutCooldown = nil
  1778.  
  1779.     for i, v in pairs(conv) do
  1780.         if canToyBeUsed(v) == true then lastWithoutCooldown = v end
  1781.     end
  1782.  
  1783.     if canToyBeUsed("Honey Wreath") == true then
  1784.         lastWithoutCooldown = v
  1785.     end
  1786.     local converted = false
  1787.     if lastWithoutCooldown ~= nil and
  1788.         string.find(kocmoc.vars.autouseMode, "Ticket") or
  1789.         string.find(kocmoc.vars.autouseMode, "All") then
  1790.         if converted == false then
  1791.             game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer(lastWithoutCooldown)
  1792.             converted = true
  1793.         end
  1794.     end
  1795.     if lastWithoutCooldown ~= nil and
  1796.     string.find(kocmoc.vars.autouseMode, "Honey Wreath") or
  1797.     string.find(kocmoc.vars.autouseMode, "All") then
  1798.         if converted == false then
  1799.             game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer(lastWithoutCooldown)
  1800.             platformm = game:GetService("Workspace").Toys["Honey Wreath"].Platform
  1801.             for i, v in pairs(game.Workspace.Collectibles:GetChildren()) do
  1802.                 if (v.Position - platformm.Position).magnitude < 25 and v.CFrame.YVector.Y == 1 then
  1803.                     api.humanoidrootpart().CFrame = v.CFrame
  1804.                 end
  1805.             end
  1806.             converted = true
  1807.         end
  1808.     end
  1809.     if GetItemListWithValue()["Snowflake"] > 0 and
  1810.         string.find(kocmoc.vars.autouseMode, "Snowflak") or
  1811.         string.find(kocmoc.vars.autouseMode, "All") then
  1812.         playeractivescommand:FireServer({["Name"] = "Snowflake"})
  1813.     end
  1814.     if GetItemListWithValue()["Coconut"] > 0 and
  1815.     string.find(kocmoc.vars.autouseMode, "Coconut") or
  1816.     string.find(kocmoc.vars.autouseMode, "All") then
  1817.         playeractivescommand:FireServer({["Name"] = "Coconut"})
  1818.     end
  1819.     if GetItemListWithValue()["Stinger"] > 0 and
  1820.     string.find(kocmoc.vars.autouseMode, "Stinger") or
  1821.     string.find(kocmoc.vars.autouseMode, "All") then
  1822.         playeractivescommand:FireServer({["Name"] = "Stinger"})
  1823.     end
  1824. end
  1825.  
  1826. local function fetchBuffTable(stats)
  1827.     local stTab = {}
  1828.     if player then
  1829.         if player.PlayerGui then
  1830.             if player.PlayerGui.ScreenGui then
  1831.                 for i, v in pairs(player.PlayerGui.ScreenGui:GetChildren()) do
  1832.                     if v.Name == "TileGrid" then
  1833.                         for p, l in pairs(v:GetChildren()) do
  1834.                             if l:FindFirstChild("BG") then
  1835.                                 if l:FindFirstChild("BG"):FindFirstChild("Icon") then
  1836.                                     local ic = l:FindFirstChild("BG"):FindFirstChild("Icon")
  1837.                                     for field, fdata in pairs(stats) do
  1838.                                         if fdata["DecalID"] ~= nil then
  1839.                                             if string.find(ic.Image, fdata["DecalID"]) then
  1840.                                                 if ic.Parent:FindFirstChild("Text") then
  1841.                                                     if ic.Parent:FindFirstChild("Text").Text == "" then
  1842.                                                         stTab[field] = 1
  1843.                                                     else
  1844.                                                         local thing = ""
  1845.                                                         thing = string.gsub(ic.Parent:FindFirstChild("Text").Text, "x", "")
  1846.                                                         stTab[field] = tonumber(thing + 1)
  1847.                                                     end
  1848.                                                 end
  1849.                                             end
  1850.                                         end
  1851.                                     end
  1852.                                 end
  1853.                             end
  1854.                         end
  1855.                     end
  1856.                 end
  1857.             end
  1858.         end
  1859.     end
  1860.  
  1861.     return stTab
  1862. end
  1863.  
  1864. local fullPlanterData = {
  1865.     ["Red Clay"] = {
  1866.         NectarTypes = {Invigorating = 1.2, Satisfying = 1.2},
  1867.         GrowthFields = {
  1868.             ["Pepper Patch"] = 1.25,
  1869.             ["Rose Field"] = 1.25,
  1870.             ["Strawberry Field"] = 1.25,
  1871.             ["Mushroom Field"] = 1.25
  1872.         }
  1873.     },
  1874.     --[[
  1875.     Plenty = {
  1876.         NectarTypes = {
  1877.             Satisfying = 1.5,
  1878.             Comforting = 1.5,
  1879.             Invigorating = 1.5,
  1880.             Refreshing = 1.5,
  1881.             Motivating = 1.5
  1882.         },
  1883.         GrowthFields = {
  1884.             ["Mountain Top Field"] = 1.5,
  1885.             ["Coconut Field"] = 1.5,
  1886.             ["Pepper Patch"] = 1.5,
  1887.             ["Stump Field"] = 1.5
  1888.         }
  1889.     },
  1890.     Festive = {
  1891.         NectarTypes = {
  1892.             Satisfying = 3,
  1893.             Comforting = 3,
  1894.             Invigorating = 3,
  1895.             Refreshing = 3,
  1896.             Motivating = 3
  1897.         },
  1898.         GrowthFields = { }
  1899.     },
  1900.     Paper = {
  1901.         NectarTypes = {
  1902.             Satisfying = 0.75,
  1903.             Comforting = 0.75,
  1904.             Invigorating = 0.75,
  1905.             Refreshing = 0.75,
  1906.             Motivating = 0.75
  1907.         },
  1908.         GrowthFields = {}
  1909.     },
  1910.     ]]
  1911.     Tacky = {
  1912.         NectarTypes = {Satisfying = 1.25, Comforting = 1.25},
  1913.         GrowthFields = {
  1914.             ["Sunflower Field"] = 1.25,
  1915.             ["Mushroom Field"] = 1.25,
  1916.             ["Dandelion Field"] = 1.25,
  1917.             ["Clover Field"] = 1.25,
  1918.             ["Blue Flower Field"] = 1.25
  1919.         }
  1920.     },
  1921.     Candy = {
  1922.         NectarTypes = {Motivating = 1.2},
  1923.         GrowthFields = {
  1924.             ["Coconut Field"] = 1.25,
  1925.             ["Strawberry Field"] = 1.25,
  1926.             ["Pineapple Patch"] = 1.25
  1927.         }
  1928.     },
  1929.     Hydroponic = {
  1930.         NectarTypes = {Refreshing = 1.4, Comforting = 1.4},
  1931.         GrowthFields = {
  1932.             ["Blue Flower Field"] = 1.5,
  1933.             ["Pine Tree Forest"] = 1.5,
  1934.             ["Stump Field"] = 1.5,
  1935.             ["Bamboo Field"] = 1.5
  1936.         }
  1937.     },
  1938.     Plastic = {
  1939.         NectarTypes = {
  1940.             Refreshing = 1,
  1941.             Invigorating = 1,
  1942.             Comforting = 1,
  1943.             Satisfying = 1,
  1944.             Motivating = 1
  1945.         },
  1946.         GrowthFields = {}
  1947.     },
  1948.     Petal = {
  1949.         NectarTypes = {Satisfying = 1.5, Comforting = 1.5},
  1950.         GrowthFields = {
  1951.             ["Sunflower Field"] = 1.5,
  1952.             ["Dandelion Field"] = 1.5,
  1953.             ["Spider Field"] = 1.5,
  1954.             ["Pineapple Patch"] = 1.5,
  1955.             ["Coconut Field"] = 1.5
  1956.         }
  1957.     },
  1958.     ["Heat-Treated"] = {
  1959.         NectarTypes = {Invigorating = 1.4, Motivating = 1.4},
  1960.         GrowthFields = {
  1961.             ["Pepper Patch"] = 1.5,
  1962.             ["Rose Field"] = 1.5,
  1963.             ["Strawberry Field"] = 1.5,
  1964.             ["Mushroom Field"] = 1.5
  1965.         }
  1966.     },
  1967.     ["Blue Clay"] = {
  1968.         NectarTypes = {Refreshing = 1.2, Comforting = 1.2},
  1969.         GrowthFields = {
  1970.             ["Blue Flower Field"] = 1.25,
  1971.             ["Pine Tree Forest"] = 1.25,
  1972.             ["Stump Field"] = 1.25,
  1973.             ["Bamboo Field"] = 1.25
  1974.         }
  1975.     },
  1976.     Pesticide = {
  1977.         NectarTypes = {Motivating = 1.3, Satisfying = 1.3},
  1978.         GrowthFields = {
  1979.             ["Strawberry Field"] = 1.3,
  1980.             ["Spider Field"] = 1.3,
  1981.             ["Bamboo Field"] = 1.3
  1982.         }
  1983.     }
  1984. }
  1985.  
  1986. local planterData = deepcopy(fullPlanterData)
  1987.  
  1988. local nectarData = {
  1989.     Refreshing = {"Blue Flower Field", "Strawberry Field", "Coconut Field"},
  1990.     Invigorating = {"Clover Field", "Cactus Field", "Mountain Top Field", "Pepper Patch"},
  1991.     Comforting = {"Dandelion Field", "Bamboo Field", "Pine Tree Forest"},
  1992.     Motivating = {"Mushroom Field", "Spider Field", "Stump Field", "Rose Field"},
  1993.     Satisfying = {"Sunflower Field", "Pineapple Patch", "Pumpkin Patch"}
  1994. }
  1995.  
  1996. function GetPlanterData(name)
  1997.     local concaccon = require(game:GetService("ReplicatedStorage").LocalPlanters)
  1998.     local concacbo = concaccon.LoadPlanter
  1999.     local PlanterTable = debug.getupvalues(concacbo)[4]
  2000.     local tttttt = nil
  2001.     for k, v in pairs(PlanterTable) do
  2002.         if v.PotModel and v.IsMine == true and string.find(v.PotModel.Name, name) then
  2003.             tttttt = v
  2004.         end
  2005.     end
  2006.     return tttttt
  2007. end
  2008.  
  2009. local fullnectardata = require(game:GetService("ReplicatedStorage").NectarTypes).GetTypes()
  2010.  
  2011. function fetchNectarsData()
  2012.  
  2013.     local ndata = {
  2014.         Refreshing = "none",
  2015.         Invigorating = "none",
  2016.         Comforting = "none",
  2017.         Motivating = "none",
  2018.         Satisfying = "none"
  2019.     }
  2020.  
  2021.     if game:GetService("Players").LocalPlayer then
  2022.         if game:GetService("Players").LocalPlayer.PlayerGui then
  2023.             if game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui then
  2024.                 for i, v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui:GetChildren()) do
  2025.                     if v.Name == "TileGrid" then
  2026.                         for p, l in pairs(v:GetChildren()) do
  2027.                             for k, e in pairs(fullnectardata) do
  2028.                                 if l:FindFirstChild("BG") then
  2029.                                     if l:FindFirstChild("BG"):FindFirstChild("Icon") then
  2030.                                         if l:FindFirstChild("BG"):FindFirstChild("Icon").ImageColor3 == e.Color then
  2031.                                             local Xsize = l:FindFirstChild("BG").Bar.AbsoluteSize.X
  2032.                                             local Ysize = l:FindFirstChild("BG").Bar.AbsoluteSize.Y
  2033.                                             local percentage = (Ysize / Xsize) * 100
  2034.                                             ndata[k] = percentage
  2035.                                         end
  2036.                                     end
  2037.                                 end
  2038.                             end
  2039.                         end
  2040.                     end
  2041.                 end
  2042.             end
  2043.         end
  2044.     end
  2045.  
  2046.     return ndata
  2047. end
  2048.  
  2049. function isBlacklisted(nectartype, blacklist)
  2050.     local bl = false
  2051.     for i, v in pairs(blacklist) do
  2052.         if v == nectartype then
  2053.             bl = true
  2054.         end
  2055.     end
  2056.     for i, v in pairs(NectarBlacklist) do
  2057.         if v == nectartype then
  2058.             bl = true
  2059.         end
  2060.     end
  2061.     return bl
  2062. end
  2063.  
  2064. function calculateLeastNectar(blacklist)
  2065.     local leastNectar = nil
  2066.     local tempLeastValue = 999
  2067.  
  2068.     local nectarData = fetchNectarsData()
  2069.     for i, v in pairs(nectarData) do
  2070.         if not isBlacklisted(i, blacklist) then
  2071.             if v == "none" or v == nil then
  2072.                 leastNectar = i
  2073.                 tempLeastValue = 0
  2074.             else
  2075.                 if v <= tempLeastValue then
  2076.                     tempLeastValue = v
  2077.                     leastNectar = i
  2078.                 end
  2079.             end
  2080.         end
  2081.     end
  2082.     return leastNectar
  2083. end
  2084.  
  2085. function GetItemListWithValue()
  2086.     local StatCache = require(game.ReplicatedStorage.ClientStatCache)
  2087.     local data = StatCache.Get()
  2088.     return data.Eggs
  2089. end
  2090.  
  2091. function fetchBestMatch(nectartype, field)
  2092.     local bestPlanter = nil
  2093.     local bestNectarMult = 0
  2094.     local bestFieldGrowthRate = 0
  2095.     for i, v in pairs(planterData) do
  2096.         if GetItemListWithValue()[i .. "Planter"] then
  2097.             if GetItemListWithValue()[i .. "Planter"] >= 1 then
  2098.                 if v.GrowthFields[field] ~= nil then
  2099.                     if v.GrowthFields[field] > bestFieldGrowthRate then
  2100.                         bestFieldGrowthRate = v.GrowthFields[field]
  2101.                         bestPlanter = i
  2102.                     end
  2103.                 end
  2104.             end
  2105.         end
  2106.     end
  2107.     for i, v in pairs(planterData) do
  2108.         if GetItemListWithValue()[i .. "Planter"] then
  2109.             if GetItemListWithValue()[i .. "Planter"] >= 1 then
  2110.                 if v.NectarTypes[nectartype] ~= nil then
  2111.                     if v.NectarTypes[nectartype] > bestNectarMult then
  2112.                         local totalNectarFieldGrowthMult = 0
  2113.                         if v["GrowthFields"][field] ~= nil then
  2114.                             totalNectarFieldGrowthMult = totalNectarFieldGrowthMult + (v["GrowthFields"][field])
  2115.                         end
  2116.                         bestNectarMult = (v.NectarTypes[nectartype] + totalNectarFieldGrowthMult)
  2117.                         bestPlanter = i
  2118.                     end
  2119.                 end
  2120.             end
  2121.         end
  2122.     end
  2123.     return bestPlanter
  2124. end
  2125.  
  2126. function getPlanterLocation(plnt)
  2127.     local resultingField = "None"
  2128.     local lowestMag = math.huge
  2129.     for i, v in pairs(game:GetService("Workspace").FlowerZones:GetChildren()) do
  2130.         if (v.Position - plnt.Position).magnitude < lowestMag then
  2131.             lowestMag = (v.Position - plnt.Position).magnitude
  2132.             resultingField = v.Name
  2133.         end
  2134.     end
  2135.     return resultingField
  2136. end
  2137.  
  2138. function isFieldOccupied(field)
  2139.     local isOccupied = false
  2140.     local concaccon = require(game:GetService("ReplicatedStorage").LocalPlanters)
  2141.     local concacbo = concaccon.LoadPlanter
  2142.     local PlanterTable = debug.getupvalues(concacbo)[4]
  2143.  
  2144.     for k, v in pairs(PlanterTable) do
  2145.         if v.PotModel and v.PotModel.Parent and v.PotModel.PrimaryPart then
  2146.             if getPlanterLocation(v.PotModel.PrimaryPart) == field then
  2147.                 isOccupied = true
  2148.             end
  2149.         end
  2150.     end
  2151.     return isOccupied
  2152. end
  2153.  
  2154. function fetchAllPlanters()
  2155.     local p = {}
  2156.     local concaccon = require(game:GetService("ReplicatedStorage").LocalPlanters)
  2157.     local concacbo = concaccon.LoadPlanter
  2158.     local PlanterTable = debug.getupvalues(concacbo)[4]
  2159.  
  2160.     for k, v in pairs(PlanterTable) do
  2161.         if v.PotModel and v.PotModel.Parent and v.IsMine == true then
  2162.             p[k] = v
  2163.         end
  2164.     end
  2165.     return p
  2166. end
  2167.  
  2168. function isNectarPending(nectartype)
  2169.     local planterz = fetchAllPlanters()
  2170.     local isPending = false
  2171.     for i, v in pairs(planterz) do
  2172.         local location = getPlanterLocation(v.PotModel.PrimaryPart)
  2173.         if location then
  2174.             local conftype = getNectarFromField(location)
  2175.             if conftype then
  2176.                 if conftype == nectartype then
  2177.                     isPending = true
  2178.                 end
  2179.             end
  2180.         end
  2181.     end
  2182.     return isPending
  2183. end
  2184.  
  2185. function fetchBestFieldWithNectar(nectar)
  2186.     local bestField = "None"
  2187.     local nectarFields = nectarData[nectar]
  2188.     local fieldPlaceholderValue = ""
  2189.  
  2190.     repeat
  2191.         task.wait(0.01)
  2192.         local randomField = nectarFields[math.random(1, #nectarFields)]
  2193.         if randomField then
  2194.             fieldPlaceholderValue = randomField
  2195.         end
  2196.     until not isFieldOccupied(fieldPlaceholderValue)
  2197.  
  2198.     bestField = fieldPlaceholderValue
  2199.  
  2200.     return bestField
  2201. end
  2202.  
  2203. function checkIfPlanterExists(pNum)
  2204.     local exists = false
  2205.     local stuffs = fetchAllPlanters()
  2206.     if stuffs ~= {} then
  2207.         for i, v in pairs(stuffs) do
  2208.             if v["ActorID"] == pNum then
  2209.                 exists = true
  2210.             end
  2211.         end
  2212.     end
  2213.     return exists
  2214. end
  2215.  
  2216. function collectSpecificPlanter(prt, id)
  2217.     if prt then
  2218.         if player.Character then
  2219.             if player.Character:FindFirstChild("HumanoidRootPart") then
  2220.                 player.Character:FindFirstChild("HumanoidRootPart").CFrame = prt.CFrame
  2221.                 task.wait(0.1)
  2222.                 game:GetService("ReplicatedStorage").Events.PlanterModelCollect:FireServer(id)
  2223.             end
  2224.         end
  2225.     end
  2226. end
  2227.  
  2228. function RequestCollectPlanter(planter)
  2229.     if planter.PotModel and planter.PotModel.Parent and planter.ActorID then
  2230.         repeat
  2231.             task.wait(0.7)
  2232.             collectSpecificPlanter(planter.PotModel.PrimaryPart, planter.ActorID)
  2233.         until not checkIfPlanterExists(planter.ActorID)
  2234.     end
  2235. end
  2236.  
  2237. function RequestCollectPlanters(planterTable)
  2238.     task.spawn(function()
  2239.         local plantersToCollect = {}
  2240.         if planterTable then
  2241.             for i, v in pairs(planterTable) do
  2242.                 if v["GrowthPercent"] ~= nil then
  2243.                     if kocmoc.vars.planterharvestamount then
  2244.                         if v["GrowthPercent"] >= (kocmoc.vars.planterharvestamount / 100) then
  2245.                             table.insert(plantersToCollect, {
  2246.                                 ["PM"] = v["PotModel"].PrimaryPart,
  2247.                                 ["AID"] = v["ActorID"]
  2248.                             })
  2249.                         end
  2250.                     else
  2251.                         if v["GrowthPercent"] >= (75 / 100) then
  2252.                             table.insert(plantersToCollect, {
  2253.                                 ["PM"] = v["PotModel"].PrimaryPart,
  2254.                                 ["AID"] = v["ActorID"]
  2255.                             })
  2256.                         end
  2257.                     end
  2258.                 end
  2259.             end
  2260.         end
  2261.         if plantersToCollect ~= {} then
  2262.             for i, v in pairs(plantersToCollect) do
  2263.                 repeat
  2264.                     task.wait(0.7)
  2265.                     collectSpecificPlanter(v["PM"], v["AID"])
  2266.                 until checkIfPlanterExists(v["AID"]) == false
  2267.             end
  2268.         end
  2269.     end)
  2270. end
  2271.  
  2272. function PlantPlanter(name, field)
  2273.     if field and name then
  2274.         local specField = game:GetService("Workspace").FlowerZones:FindFirstChild(field)
  2275.         if specField ~= nil then
  2276.             temptable.planting = true
  2277.             local attempts = 0
  2278.             repeat
  2279.                 task.wait(0.1)
  2280.                 if player.Character then
  2281.                     if player.Character:FindFirstChild("HumanoidRootPart") then
  2282.                         for i=0,50 do
  2283.                             player.Character.HumanoidRootPart.CFrame = specField.CFrame
  2284.                             task.wait()
  2285.                         end
  2286.                         if name == "The Planter Of Plenty" then
  2287.                             playeractivescommand:FireServer({["Name"] = name})
  2288.                         else
  2289.                             playeractivescommand:FireServer({["Name"] = name .. " Planter"})
  2290.                         end
  2291.                     end
  2292.                     attempts = attempts + 1
  2293.                 end
  2294.             until GetPlanterData(name) ~= nil or attempts == 15
  2295.             temptable.planting = false
  2296.         end
  2297.     end
  2298. end
  2299.  
  2300. function getNectarFromField(field)
  2301.     local foundnectar = nil
  2302.     for i, v in pairs(nectarData) do
  2303.         for k, p in pairs(v) do
  2304.             if p == field then
  2305.                 foundnectar = i
  2306.             end
  2307.         end
  2308.     end
  2309.     return foundnectar
  2310. end
  2311.  
  2312. function fetchNectarBlacklist()
  2313.     local nblacklist = {}
  2314.     for i, v in pairs(nectarData) do
  2315.         if isNectarPending(i) == true then
  2316.             table.insert(nblacklist, i)
  2317.         end
  2318.     end
  2319.     return nblacklist
  2320. end
  2321.  
  2322. function formatString(Planter, Field, Nectar)
  2323.     return "You should plant a " .. Planter .. " Planter in the " .. Field .. " to get " .. Nectar .. " Nectar."
  2324. end
  2325.  
  2326. local Config = {
  2327.     WindowName = "BssThePoggest v" .. temptable.version .. " Remastered By Ur Mom",
  2328.     Color = Color3.fromRGB(39, 133, 11),
  2329.     Keybind = Enum.KeyCode.Semicolon
  2330. }
  2331. local Window = library:CreateWindow(Config, game:GetService("CoreGui"))
  2332.  
  2333. local guiElements = {
  2334.     toggles = {},
  2335.     vars = {},
  2336.     bestfields = {},
  2337.     dispensesettings = {}
  2338. }
  2339.  
  2340. local hometab = Window:CreateTab("Home")
  2341. local farmtab = Window:CreateTab("Farming")
  2342. local combtab = Window:CreateTab("Combat")
  2343. local itemstab = Window:CreateTab("Items")
  2344. local plantertab = Window:CreateTab("Planters")
  2345. local misctab = Window:CreateTab("Misc")
  2346. local setttab = Window:CreateTab("Settings")
  2347. --[[ local premiumtab = Window:CreateTab("Premium") ]]
  2348.  
  2349. local loadingInfo = hometab:CreateSection("Startup")
  2350. local loadingFunctions = loadingInfo:CreateLabel("Loading Functions..")
  2351. task.wait(1)
  2352. loadingFunctions:UpdateText("Loaded Functions")
  2353. local loadingBackend = loadingInfo:CreateLabel("Loading Backend..")
  2354.  
  2355. loadingBackend:UpdateText("Loaded Backend")
  2356. local loadingUI = loadingInfo:CreateLabel("Loading UI..")
  2357.  
  2358. local information = hometab:CreateSection("Information")
  2359. information:CreateLabel("Welcome, " .. api.nickname .. "!")
  2360. information:CreateLabel("Script version: " .. temptable.version)
  2361. information:CreateLabel(Danger.." - Not Safe Function")
  2362. information:CreateLabel("⚙ - Configurable Function")
  2363. information:CreateLabel("📜 - May be exploit specific")
  2364. information:CreateLabel(Beesmas.." - Beesmas Function")
  2365. information:CreateLabel("Script by OrangeIsTheColor")
  2366. information:CreateLabel("With help from Sakata#4939")
  2367. information:CreateLabel("Originally by weuz_, mrdevl")
  2368. information:CreateLabel("and RoseGold#5441")
  2369. local gainedhoneylabel = information:CreateLabel("Gained Honey: 0")
  2370. local uptimelabel = information:CreateLabel("Uptime: 0")
  2371. information:CreateButton("Discord Invite", function()
  2372.     setclipboard("https://discord.gg/BMmfQ6ZUxP")
  2373. end):AddToolTip("It will copy the Discord link to your clipboard!")
  2374. information:CreateButton("Donation", function()
  2375.     setclipboard("https://www.paypal.com/paypalme/oranginabss")
  2376. end)
  2377. guiElements["toggles"]["enablestatuspanel"] = information:CreateToggle("Status Panel", true, function(bool)
  2378.     kocmoc.toggles.enablestatuspanel = bool
  2379.     for _,v in pairs(game:GetService("CoreGui"):GetDescendants()) do
  2380.         if string.find(v.Name, "Mob Panel") or
  2381.             string.find(v.Name, "Utility Panel") then
  2382.             v.Visible = bool
  2383.         end
  2384.     end
  2385. end)
  2386.  
  2387. local disableenable = hometab:CreateSection("Disable all or Enable all")
  2388. disableenable:CreateButton("Disable All Functions", function()
  2389.     disableall()
  2390. end):AddToolTip("It will disable all the functions in your script")
  2391.  
  2392. disableenable:CreateButton("Enable All Functions Back", function()
  2393.     enableall()
  2394. end):AddToolTip("It will enable all the functions you were using before in your script")
  2395.  
  2396. local farmo = farmtab:CreateSection("Farming")
  2397. local fielddropdown = farmo:CreateDropdown("Field", fieldstable, function(String)
  2398.     kocmoc.vars.field = String
  2399. end)
  2400. fielddropdown:SetOption(fieldstable[1])
  2401. guiElements["vars"]["field"] = fielddropdown
  2402. local convertatslider = farmo:CreateSlider("Convert At", 0, 100, 100, false, function(Value) kocmoc.vars.convertat = Value end)
  2403. guiElements["vars"]["convertat"] = convertatslider
  2404. local autofarmtoggle = farmo:CreateToggle("Autofarm [⚙]", nil, function(State)
  2405.     kocmoc.toggles.autofarm = State
  2406. end)
  2407. guiElements["toggles"]["autofarm"] = autofarmtoggle
  2408. autofarmtoggle:CreateKeybind(nil, function(Key) end)
  2409. guiElements["toggles"]["autodig"] = farmo:CreateToggle("Autodig", nil, function(State)
  2410.     kocmoc.toggles.autodig = State
  2411. end)
  2412. guiElements["vars"]["autodigmode"] = farmo:CreateDropdown("Autodig Mode", {"Normal", "Collector Steal"}, function(Option) kocmoc.vars.autodigmode = Option end)
  2413.  
  2414. local contt = farmtab:CreateSection("Container Tools")
  2415. guiElements["toggles"]["disableconversion"] = contt:CreateToggle("Don't Convert Pollen", nil, function(State)
  2416.     kocmoc.toggles.disableconversion = State
  2417. end)
  2418. guiElements["toggles"]["autouseconvertors"] = contt:CreateToggle("Auto Bag Reduction", nil, function(Boole)
  2419.     kocmoc.toggles.autouseconvertors = Boole
  2420. end)
  2421. guiElements["vars"]["autouseMode"] = contt:CreateDropdown("Bag Reduction Mode", {
  2422.     "Ticket Converters", "Just Snowflakes", "Just Coconuts", "Just Wreath", "Just Stinger",
  2423.     "Coconuts and Snowflakes", "Snowflakes and Tickets", "Coconuts and Tickets",
  2424.     "Wreath and Tickets", "Coconuts and Wreath", "Snowflakes and Wreath",
  2425.     "Coconut and Stinger", "Snowflakes and Stinger", "Wreath and Stinger", "Tickets and Stinger",
  2426.     "All"
  2427. }, function(Select) kocmoc.vars.autouseMode = Select end)
  2428. guiElements["vars"]["autoconvertWaitTime"] = contt:CreateSlider("Reduction Confirmation Time", 3, 20, 10, false, function(state)
  2429.     kocmoc.vars.autoconvertWaitTime = tonumber(state)
  2430. end)
  2431.  
  2432. guiElements["toggles"]["autosprinkler"] = farmo:CreateToggle("Auto Sprinkler", nil, function(State) kocmoc.toggles.autosprinkler = State end)
  2433. guiElements["toggles"]["farmbubbles"] = farmo:CreateToggle("Farm Bubbles", nil, function(State) kocmoc.toggles.farmbubbles = State end)
  2434. guiElements["toggles"]["farmflame"] = farmo:CreateToggle("Farm Flames", nil, function(State) kocmoc.toggles.farmflame = State end)
  2435. guiElements["toggles"]["farmcoco"] = farmo:CreateToggle("Farm Coconuts & Shower", nil, function(State)
  2436.     kocmoc.toggles.farmcoco = State
  2437. end)
  2438. guiElements["toggles"]["farmdigital"] = farmo:CreateToggle("Farm Digital Bee", nil, function(State) kocmoc.toggles.farmdigital = State end)
  2439. guiElements["toggles"]["collectcrosshairs"] = farmo:CreateToggle("Farm Precise Crosshairs", nil, function(State) kocmoc.toggles.collectcrosshairs = State end)
  2440. guiElements["toggles"]["fastcrosshairs"] = farmo:CreateToggle("Smart Precise Crosshairs", nil, function(State)
  2441.     kocmoc.toggles.fastcrosshairs = State
  2442. end)
  2443.  
  2444. guiElements["toggles"]["farmfuzzy"] = farmo:CreateToggle("Farm Fuzzy Bombs", nil, function(State) kocmoc.toggles.farmfuzzy = State end)
  2445. guiElements["toggles"]["farmunderballoons"] = farmo:CreateToggle("Farm Under Balloons", nil, function(State) kocmoc.toggles.farmunderballoons = State end)
  2446. guiElements["toggles"]["farmclouds"] = farmo:CreateToggle("Farm Under Clouds", nil, function(State) kocmoc.toggles.farmclouds = State end)
  2447. guiElements["toggles"]["honeymaskconv"] = farmo:CreateToggle("Auto Honey Mask", nil, function(bool) kocmoc.toggles.honeymaskconv = bool end)
  2448. guiElements["vars"]["defmask"] = farmo:CreateDropdown("Default Mask", MasksTable, function(val) kocmoc.vars.defmask = val end)
  2449. guiElements["vars"]["deftool"] = farmo:CreateDropdown("Default Tool", collectorstable, function(val) kocmoc.vars.deftool = val end)
  2450. guiElements["toggles"]["autoequipmask"] = farmo:CreateToggle("Equip Mask Based on Field", nil, function(bool) kocmoc.toggles.autoequipmask = bool end)
  2451. guiElements["toggles"]["followplayer"] = farmo:CreateToggle("Follow Player", nil, function(bool)
  2452.     kocmoc.toggles.followplayer = bool
  2453. end)
  2454. guiElements["vars"]["playertofollow"] = farmo:CreateTextBox("Player to Follow", "player name", false, function(Value)
  2455.     kocmoc.vars.playertofollow = Value
  2456. end)
  2457. farmo:CreateToggle("Farm Closest Leaves", nil, function(State) kocmoc.toggles.farmclosestleaf = State end)
  2458. farmo:CreateToggle("Auto Fireflies", nil, function(State) kocmoc.toggles.farmfireflies = State end)
  2459. farmo:CreateToggle("Auto Sparkles", nil, function(State) kocmoc.toggles.farmsparkles = State end)
  2460. farmo:CreateToggle("Farm All Leaves ["..Danger.."]", nil, function(State) kocmoc.toggles.farmleaves = State end)
  2461.  
  2462. local farmt = farmtab:CreateSection("Farming")
  2463. guiElements["toggles"]["autodispense"] = farmt:CreateToggle("Auto Dispenser [⚙]", nil, function(State) kocmoc.toggles.autodispense = State end)
  2464. guiElements["toggles"]["autoboosters"] = farmt:CreateToggle("Auto Field Boosters [⚙]", nil, function(State) kocmoc.toggles.autoboosters = State end)
  2465. guiElements["toggles"]["clock"] = farmt:CreateToggle("Auto Wealth Clock", nil, function(State) kocmoc.toggles.clock = State end)
  2466. guiElements["toggles"]["collectgingerbreads"] = farmt:CreateToggle("Auto Gingerbread Bears ["..Beesmas.."]", nil, function(State) kocmoc.toggles.collectgingerbreads = State end)
  2467. guiElements["toggles"]["autosamovar"] = farmt:CreateToggle("Auto Samovar ["..Beesmas.."]", nil, function(State) kocmoc.toggles.autosamovar = State end)
  2468. guiElements["toggles"]["autosnowmachine"] = farmt:CreateToggle("Auto Snow Machine ["..Beesmas.."]", nil, function(State) kocmoc.toggles.autosnowmachine = State end)
  2469. guiElements["toggles"]["autostockings"] = farmt:CreateToggle("Auto Stockings ["..Beesmas.."]", nil, function(State) kocmoc.toggles.autostockings = State end)
  2470. guiElements["toggles"]["autocandles"] = farmt:CreateToggle("Auto Honey Candles ["..Beesmas.."]", nil, function(State) kocmoc.toggles.autocandles = State end)
  2471. guiElements["toggles"]["autofeast"] = farmt:CreateToggle("Auto Beesmas Feast ["..Beesmas.."]", nil, function(State) kocmoc.toggles.autofeast = State end)
  2472. guiElements["toggles"]["autoonettart"] = farmt:CreateToggle("Auto Onett's Lid Art ["..Beesmas.."]", nil, function(State) kocmoc.toggles.autoonettart = State end)
  2473. guiElements["toggles"]["freeantpass"] = farmt:CreateToggle("Auto Free Antpasses", nil, function(State) kocmoc.toggles.freeantpass = State end)
  2474. guiElements["toggles"]["freerobopass"] = farmt:CreateToggle("Auto Free Robopasses", nil, function(State) kocmoc.toggles.freerobopass = State end)
  2475. guiElements["toggles"]["farmsprouts"] = farmt:CreateToggle("Farm Sprouts", nil, function(State) kocmoc.toggles.farmsprouts = State end)
  2476. guiElements["toggles"]["farmpuffshrooms"] = farmt:CreateToggle("Farm Puffshrooms", nil, function(State) kocmoc.toggles.farmpuffshrooms = State end)
  2477. farmt:CreateToggle("Farm Snowflakes ["..Danger.."]", nil, function(State) kocmoc.toggles.farmsnowflakes = State end)
  2478. guiElements["toggles"]["farmrares"] = farmt:CreateToggle("Teleport To Rares ["..Danger.."]", nil, function(State) kocmoc.toggles.farmrares = State end)
  2479. guiElements["toggles"]["autoquest"] = farmt:CreateToggle("Auto Accept/Confirm Quests [⚙]", nil, function(State) kocmoc.toggles.autoquest = State end)
  2480. guiElements["toggles"]["autodoquest"] = farmt:CreateToggle("Auto Do Quests [⚙]", nil, function(State) kocmoc.toggles.autodoquest = State end)
  2481. guiElements["toggles"]["honeystorm"] = farmt:CreateToggle("Auto Honeystorm", nil, function(State) kocmoc.toggles.honeystorm = State end)
  2482. guiElements["toggles"]["sproutsummoner"] = farmt:CreateToggle("Auto Sprout Summoner", nil, function(State)
  2483.     kocmoc.toggles.sproutsummoner = State
  2484. end)
  2485. farmt:CreateLabel(" ")
  2486. guiElements["toggles"]["resetbeenergy"] = farmt:CreateToggle("Reset Bee Energy after X Conversions", nil, function(bool)
  2487.     kocmoc.toggles.resetbeenergy = bool
  2488. end)
  2489. guiElements["vars"]["resettimer"] = farmt:CreateTextBox("Conversion Amount", "default = 3", true, function(Value)
  2490.     kocmoc.vars.resettimer = tonumber(Value)
  2491. end)
  2492.  
  2493. local plantersection = plantertab:CreateSection("Automatic Planters & Nectars")
  2494. guiElements["toggles"]["autoplanters"] = plantersection:CreateToggle("Auto Planters", nil, function(State) kocmoc.toggles.autoplanters = State end)
  2495. guiElements["toggles"]["blacklistinvigorating"] = plantersection:CreateToggle("Blacklist Invigorating", nil, function(State) kocmoc.toggles.blacklistinvigorating = State end)
  2496. guiElements["toggles"]["blacklistcomforting"] = plantersection:CreateToggle("Blacklist Comforting", nil, function(State) kocmoc.toggles.blacklistcomforting = State end)
  2497. guiElements["toggles"]["blacklistmotivating"] = plantersection:CreateToggle("Blacklist Motivating", nil, function(State) kocmoc.toggles.blacklistmotivating = State end)
  2498. guiElements["toggles"]["blacklistrefreshing"] = plantersection:CreateToggle("Blacklist Refreshing", nil, function(State) kocmoc.toggles.blacklistrefreshing = State end)
  2499. guiElements["toggles"]["blacklistsatisfying"] = plantersection:CreateToggle("Blacklist Satisfying", nil, function(State) kocmoc.toggles.blacklistsatisfying = State end)
  2500. guiElements["vars"]["planterharvestamount"] = plantersection:CreateSlider("Planter Harvest Percentage", 0, 100, 75, false, function(Value)
  2501.     kocmoc.vars.planterharvestamount = Value
  2502. end)
  2503. guiElements["toggles"]["plasticplanter"] = plantersection:CreateToggle("Blacklist Plastic Planter", nil, function(State) kocmoc.toggles.plasticplanter = State end)
  2504. guiElements["toggles"]["candyplanter"] = plantersection:CreateToggle("Blacklist Candy Planter", nil, function(State) kocmoc.toggles.candyplanter = State end)
  2505. guiElements["toggles"]["redclayplanter"] = plantersection:CreateToggle("Blacklist Red Clay Planter", nil, function(State) kocmoc.toggles.redclayplanter = State end)
  2506. guiElements["toggles"]["blueclayplanter"] = plantersection:CreateToggle("Blacklist Blue Clay Planter", nil, function(State) kocmoc.toggles.blueclayplanter = State end)
  2507. guiElements["toggles"]["tackyplanter"] = plantersection:CreateToggle("Blacklist Tacky Planter", nil, function(State) kocmoc.toggles.tackyplanter = State end)
  2508. guiElements["toggles"]["pesticideplanter"] = plantersection:CreateToggle("Blacklist Pesticide Planter", nil, function(State) kocmoc.toggles.pesticideplanter = State end)
  2509. guiElements["toggles"]["petalplanter"] = plantersection:CreateToggle("Blacklist Petal Planter", nil, function(State) kocmoc.toggles.petalplanter = State end)
  2510.  
  2511. local customplanterssection = plantertab:CreateSection("Custom Planters")
  2512. customplanterssection:CreateLabel("Turning this on will disable auto planters!")
  2513. customplanterssection:CreateLabel("["..Danger.."] You should know what you are")
  2514. customplanterssection:CreateLabel("doing before turning this on! ["..Danger.."]")
  2515. guiElements["toggles"]["docustomplanters"] = customplanterssection:CreateToggle("Custom Planters", nil, function(State) kocmoc.toggles.docustomplanters = State end)
  2516.  
  2517. local customplanter1section = plantertab:CreateSection("Custom Planter 1")
  2518. guiElements["vars"]["customplanterfield11"] = customplanter1section:CreateDropdown("Field 1", DropdownFieldsTable, function(Option)
  2519.     kocmoc.vars.customplanterfield11 = Option
  2520. end)
  2521. guiElements["vars"]["customplanter11"] = customplanter1section:CreateDropdown("Field 1 Planter Type", DropdownPlanterTable, function(Option)
  2522.     kocmoc.vars.customplanter11 = Option
  2523. end)
  2524. guiElements["vars"]["customplanterdelay11"] = customplanter1section:CreateSlider("Field 1 Harvest %", 0, 100, 75, false, function(Value)
  2525.     kocmoc.vars.customplanterdelay11 = Value
  2526. end)
  2527. guiElements["vars"]["customplanterfield12"] = customplanter1section:CreateDropdown("Field 2", DropdownFieldsTable, function(Option)
  2528.     kocmoc.vars.customplanterfield12 = Option
  2529. end)
  2530. guiElements["vars"]["customplanter12"] = customplanter1section:CreateDropdown("Field 2 Planter Type", DropdownPlanterTable, function(Option)
  2531.     kocmoc.vars.customplanter12 = Option
  2532. end)
  2533. guiElements["vars"]["customplanterdelay12"] = customplanter1section:CreateSlider("Field 2 Harvest %", 0, 100, 75, false, function(Value)
  2534.     kocmoc.vars.customplanterdelay12 = Value
  2535. end)
  2536. guiElements["vars"]["customplanterfield13"] = customplanter1section:CreateDropdown("Field 3", DropdownFieldsTable, function(Option)
  2537.     kocmoc.vars.customplanterfield13 = Option
  2538. end)
  2539. guiElements["vars"]["customplanter13"] = customplanter1section:CreateDropdown("Field 3 Planter Type", DropdownPlanterTable, function(Option)
  2540.     kocmoc.vars.customplanter13 = Option
  2541. end)
  2542. guiElements["vars"]["customplanterdelay13"] = customplanter1section:CreateSlider("Field 3 Harvest %", 0, 100, 75, false, function(Value)
  2543.     kocmoc.vars.customplanterdelay13 = Value
  2544. end)
  2545. guiElements["vars"]["customplanterfield14"] = customplanter1section:CreateDropdown("Field 4", DropdownFieldsTable, function(Option)
  2546.     kocmoc.vars.customplanterfield14 = Option
  2547. end)
  2548. guiElements["vars"]["customplanter14"] = customplanter1section:CreateDropdown("Field 4 Planter Type", DropdownPlanterTable, function(Option)
  2549.     kocmoc.vars.customplanter14 = Option
  2550. end)
  2551. guiElements["vars"]["customplanterdelay14"] = customplanter1section:CreateSlider("Field 4 Harvest %", 0, 100, 75, false, function(Value)
  2552.     kocmoc.vars.customplanterdelay14 = Value
  2553. end)
  2554. guiElements["vars"]["customplanterfield15"] = customplanter1section:CreateDropdown("Field 5", DropdownFieldsTable, function(Option)
  2555.     kocmoc.vars.customplanterfield15 = Option
  2556. end)
  2557. guiElements["vars"]["customplanter15"] = customplanter1section:CreateDropdown("Field 5 Planter Type", DropdownPlanterTable, function(Option)
  2558.     kocmoc.vars.customplanter15 = Option
  2559. end)
  2560. guiElements["vars"]["customplanterdelay15"] = customplanter1section:CreateSlider("Field 5 Harvest %", 0, 100, 75, false, function(Value)
  2561.     kocmoc.vars.customplanterdelay15 = Value
  2562. end)
  2563.  
  2564. local customplanter2section = plantertab:CreateSection("Custom Planter 2")
  2565. guiElements["vars"]["customplanterfield21"] = customplanter2section:CreateDropdown("Field 1", DropdownFieldsTable, function(Option)
  2566.     kocmoc.vars.customplanterfield21 = Option
  2567. end)
  2568. guiElements["vars"]["customplanter21"] = customplanter2section:CreateDropdown("Field 1 Planter Type", DropdownPlanterTable, function(Option)
  2569.     kocmoc.vars.customplanter21 = Option
  2570. end)
  2571. guiElements["vars"]["customplanterdelay21"] = customplanter2section:CreateSlider("Field 1 Harvest %", 0, 100, 75, false, function(Value)
  2572.     kocmoc.vars.customplanterdelay21 = Value
  2573. end)
  2574. guiElements["vars"]["customplanterfield22"] = customplanter2section:CreateDropdown("Field 2", DropdownFieldsTable, function(Option)
  2575.     kocmoc.vars.customplanterfield22 = Option
  2576. end)
  2577. guiElements["vars"]["customplanter22"] = customplanter2section:CreateDropdown("Field 2 Planter Type", DropdownPlanterTable, function(Option)
  2578.     kocmoc.vars.customplanter22 = Option
  2579. end)
  2580. guiElements["vars"]["customplanterdelay22"] = customplanter2section:CreateSlider("Field 2 Harvest %", 0, 100, 75, false, function(Value)
  2581.     kocmoc.vars.customplanterdelay22 = Value
  2582. end)
  2583. guiElements["vars"]["customplanterfield23"] = customplanter2section:CreateDropdown("Field 3", DropdownFieldsTable, function(Option)
  2584.     kocmoc.vars.customplanterfield23 = Option
  2585. end)
  2586. guiElements["vars"]["customplanter23"] = customplanter2section:CreateDropdown("Field 3 Planter Type", DropdownPlanterTable, function(Option)
  2587.     kocmoc.vars.customplanter23 = Option
  2588. end)
  2589. guiElements["vars"]["customplanterdelay23"] = customplanter2section:CreateSlider("Field 3 Harvest %", 0, 100, 75, false, function(Value)
  2590.     kocmoc.vars.customplanterdelay23 = Value
  2591. end)
  2592. guiElements["vars"]["customplanterfield24"] = customplanter2section:CreateDropdown("Field 4", DropdownFieldsTable, function(Option)
  2593.     kocmoc.vars.customplanterfield24 = Option
  2594. end)
  2595. guiElements["vars"]["customplanter24"] = customplanter2section:CreateDropdown("Field 4 Planter Type", DropdownPlanterTable, function(Option)
  2596.     kocmoc.vars.customplanter24 = Option
  2597. end)
  2598. guiElements["vars"]["customplanterdelay24"] = customplanter2section:CreateSlider("Field 4 Harvest %", 0, 100, 75, false, function(Value)
  2599.     kocmoc.vars.customplanterdelay24 = Value
  2600. end)
  2601. guiElements["vars"]["customplanterfield25"] = customplanter2section:CreateDropdown("Field 5", DropdownFieldsTable, function(Option)
  2602.     kocmoc.vars.customplanterfield25 = Option
  2603. end)
  2604. guiElements["vars"]["customplanter25"] = customplanter2section:CreateDropdown("Field 5 Planter Type", DropdownPlanterTable, function(Option)
  2605.     kocmoc.vars.customplanter25 = Option
  2606. end)
  2607. guiElements["vars"]["customplanterdelay25"] = customplanter2section:CreateSlider("Field 5 Harvest %", 0, 100, 75, false, function(Value)
  2608.     kocmoc.vars.customplanterdelay25 = Value
  2609. end)
  2610.  
  2611. local customplanter3section = plantertab:CreateSection("Custom Planter 3")
  2612. guiElements["vars"]["customplanterfield31"] = customplanter3section:CreateDropdown("Field 1 Field", DropdownFieldsTable, function(Option)
  2613.     kocmoc.vars.customplanterfield31 = Option
  2614. end)
  2615. guiElements["vars"]["customplanter31"] = customplanter3section:CreateDropdown("Field 1 Planter Type", DropdownPlanterTable, function(Option)
  2616.     kocmoc.vars.customplanter31 = Option
  2617. end)
  2618. guiElements["vars"]["customplanterdelay31"] = customplanter3section:CreateSlider("Field 1 Harvest %", 0, 100, 75, false, function(Value)
  2619.     kocmoc.vars.customplanterdelay31 = Value
  2620. end)
  2621. guiElements["vars"]["customplanterfield32"] = customplanter3section:CreateDropdown("Field 2 Field", DropdownFieldsTable, function(Option)
  2622.     kocmoc.vars.customplanterfield32 = Option
  2623. end)
  2624. guiElements["vars"]["customplanter32"] = customplanter3section:CreateDropdown("Field 2 Planter Type", DropdownPlanterTable, function(Option)
  2625.     kocmoc.vars.customplanter32 = Option
  2626. end)
  2627. guiElements["vars"]["customplanterdelay32"] = customplanter3section:CreateSlider("Field 2 Harvest %", 0, 100, 75, false, function(Value)
  2628.     kocmoc.vars.customplanterdelay32 = Value
  2629. end)
  2630. guiElements["vars"]["customplanterfield33"] = customplanter3section:CreateDropdown("Field 3 Field", DropdownFieldsTable, function(Option)
  2631.     kocmoc.vars.customplanterfield33 = Option
  2632. end)
  2633. guiElements["vars"]["customplanter33"] = customplanter3section:CreateDropdown("Field 3 Planter Type", DropdownPlanterTable, function(Option)
  2634.     kocmoc.vars.customplanter33 = Option
  2635. end)
  2636. guiElements["vars"]["customplanterdelay33"] = customplanter3section:CreateSlider("Field 3 Harvest %", 0, 100, 75, false, function(Value)
  2637.     kocmoc.vars.customplanterdelay33 = Value
  2638. end)
  2639. guiElements["vars"]["customplanterfield34"] = customplanter3section:CreateDropdown("Field 4 Field", DropdownFieldsTable, function(Option)
  2640.     kocmoc.vars.customplanterfield34 = Option
  2641. end)
  2642. guiElements["vars"]["customplanter34"] = customplanter3section:CreateDropdown("Field 4 Planter Type", DropdownPlanterTable, function(Option)
  2643.     kocmoc.vars.customplanter34 = Option
  2644. end)
  2645. guiElements["vars"]["customplanterdelay34"] = customplanter3section:CreateSlider("Field 4 Harvest %", 0, 100, 75, false, function(Value)
  2646.     kocmoc.vars.customplanterdelay34 = Value
  2647. end)
  2648. guiElements["vars"]["customplanterfield35"] = customplanter3section:CreateDropdown("Field 5 Field", DropdownFieldsTable, function(Option)
  2649.     kocmoc.vars.customplanterfield35 = Option
  2650. end)
  2651. guiElements["vars"]["customplanter35"] = customplanter3section:CreateDropdown("Field 5 Planter Type", DropdownPlanterTable, function(Option)
  2652.     kocmoc.vars.customplanter35 = Option
  2653. end)
  2654. guiElements["vars"]["customplanterdelay35"] = customplanter3section:CreateSlider("Field 5 Harvest %", 0, 100, 75, false, function(Value)
  2655.     kocmoc.vars.customplanterdelay35 = Value
  2656. end)
  2657.  
  2658. local mobkill = combtab:CreateSection("Combat")
  2659. guiElements["toggles"]["traincommando"] = mobkill:CreateToggle("Train Commando Chick", nil, function(State) kocmoc.toggles.traincommando = State end)
  2660. guiElements["toggles"]["trainsnowbear"] = mobkill:CreateToggle("Train Snow Bear", nil, function(State) kocmoc.toggles.trainsnow = State end)
  2661. mobkill:CreateToggle("Train Crab", nil, function(State)
  2662.     if State then
  2663.         api.teleport(CFrame.new(-375, 110, 535))
  2664.         task.wait(5)
  2665.         api.humanoidrootpart().CFrame = CFrame.new(-256, 110, 475)
  2666.     end
  2667.     cocopad.CanCollide = State
  2668.     kocmoc.toggles.traincrab = State
  2669. end)
  2670. mobkill:CreateToggle("Train Snail", nil, function(State)
  2671.     kocmoc.toggles.trainsnail = State
  2672.     local fd = game.Workspace.FlowerZones["Stump Field"]
  2673.     if State then
  2674.         api.humanoidrootpart().CFrame = CFrame.new(
  2675.             fd.Position.X,
  2676.             fd.Position.Y - 20,
  2677.             fd.Position.Z
  2678.         )
  2679.     else
  2680.         api.humanoidrootpart().CFrame = CFrame.new(
  2681.             fd.Position.X,
  2682.             fd.Position.Y + 2,
  2683.             fd.Position.Z
  2684.         )
  2685.     end
  2686. end)
  2687. function Notification(TextTitle,Desc,Duration)
  2688.     game.StarterGui:SetCore("SendNotification", {
  2689.         Title = TextTitle,
  2690.         Text = Desc,
  2691.         Duration = Duration
  2692.     })
  2693. end
  2694.  
  2695. guiElements["toggles"]["killmondo"] = mobkill:CreateToggle("Kill Mondo", nil, function(State) kocmoc.toggles.killmondo = State end)
  2696. guiElements["toggles"]["killvicious"] = mobkill:CreateToggle("Kill Vicious", nil, function(State) kocmoc.toggles.killvicious = State end)
  2697. guiElements["toggles"]["killwindy"] = mobkill:CreateToggle("Kill Windy", nil, function(State) kocmoc.toggles.killwindy = State end)
  2698. local autokillmobstoggle = mobkill:CreateToggle("Auto Kill Mobs", nil, function(State) kocmoc.toggles.autokillmobs = State end)
  2699. autokillmobstoggle:AddToolTip("Kills mobs after x pollen converting")
  2700. guiElements["toggles"]["autokillmobs"] = autokillmobstoggle
  2701. guiElements["toggles"]["avoidmobs"] = mobkill:CreateToggle("Avoid Mobs", nil, function(State) kocmoc.toggles.avoidmobs = State end)
  2702. local autoanttoggle = mobkill:CreateToggle("Auto Ant", nil, function(State) kocmoc.toggles.autoant = State end)
  2703. autoanttoggle:AddToolTip("You Need Spark Stuff 😋; Goes to Ant Challenge after pollen converting")
  2704. guiElements["toggles"]["autoant"] = autoanttoggle
  2705.  
  2706. local serverhopkill = combtab:CreateSection("Serverhopping Combat")
  2707. serverhopkill:CreateButton("Vicious Bee Serverhopper ["..Danger.."]["..ExploitSpecific.."]", function()
  2708.     loadstring(game:HttpGet("https://raw.githubusercontent.com/Ericd71/skiP/main/viciousbeeserverhop.lua"))()
  2709. end):AddToolTip("Serverhops for rouge vicious bees")
  2710. serverhopkill:CreateLabel("")
  2711. serverhopkill:CreateLabel("["..Danger.."] These functions will unload the UI")
  2712. serverhopkill:CreateLabel("")
  2713.  
  2714. local amks = combtab:CreateSection("Auto Kill Mobs Settings")
  2715. guiElements["vars"]["monstertimer"] = amks:CreateTextBox("Reset Mob Timer Minutes", "default = 15", true, function(Value)
  2716.     if tonumber(Value) then
  2717.         kocmoc.vars.monstertimer = tonumber(Value)
  2718.     end
  2719. end)
  2720. amks:CreateButton("Kill Mobs", function()
  2721.     temptable.started.monsters = true
  2722.     killmobs()
  2723.     temptable.started.monsters = false
  2724. end)
  2725.  
  2726. local wayp = misctab:CreateSection("Waypoints")
  2727. wayp:CreateDropdown("Field Teleports", fieldstable, function(Option)
  2728.     api.humanoidrootpart().CFrame = game.Workspace.FlowerZones:FindFirstChild(Option).CFrame
  2729. end)
  2730. wayp:CreateDropdown("Monster Teleports", spawnerstable, function(Option)
  2731.     local d = monsterspawners:FindFirstChild(Option)
  2732.     api.humanoidrootpart().CFrame = CFrame.new(
  2733.         d.Position.X,
  2734.         d.Position.Y + 3,
  2735.         d.Position.Z
  2736.     )
  2737. end)
  2738. wayp:CreateDropdown("Toys Teleports", toystable, function(Option)
  2739.     d = game.Workspace.Toys:FindFirstChild(Option).Platform
  2740.     api.humanoidrootpart().CFrame = CFrame.new(
  2741.         d.Position.X,
  2742.         d.Position.Y + 3,
  2743.         d.Position.Z
  2744.     )
  2745. end)
  2746. wayp:CreateButton("Teleport to hive", function()
  2747.     api.humanoidrootpart().CFrame =
  2748.         player.SpawnPos.Value
  2749. end)
  2750.  
  2751. local useitems = itemstab:CreateSection("Use Items")
  2752.  
  2753. useitems:CreateButton("Use All Buffs ["..Danger.."]", function()
  2754.     for i, v in pairs(buffTable) do
  2755.         playeractivescommand:FireServer({["Name"] = i})
  2756.     end
  2757. end)
  2758. useitems:CreateLabel("")
  2759.  
  2760. for i, v in pairs(buffTable) do
  2761.     useitems:CreateButton("Use " .. i, function()
  2762.         playeractivescommand:FireServer({["Name"] = i})
  2763.     end)
  2764.     guiElements["vars"]["autouse"..i] = useitems:CreateToggle("Auto Use " .. i, nil, function(bool)
  2765.         buffTable[i].b = bool
  2766.         kocmoc.vars["autouse"..i] = bool
  2767.     end)
  2768. end
  2769.  
  2770. local miscc = misctab:CreateSection("Misc")
  2771. miscc:CreateButton("Ant Challenge Semi-Godmode", function()
  2772.     api.tween(1, CFrame.new(93.4228, 32.3983, 553.128))
  2773.     task.wait(1)
  2774.     game.ReplicatedStorage.Events.ToyEvent:FireServer("Ant Challenge")
  2775.     api.humanoidrootpart().Position = Vector3.new(93.4228, 42.3983, 553.128)
  2776.     task.wait(2)
  2777.     player.Character.Humanoid.Name = 1
  2778.     local l = player.Character["1"]:Clone()
  2779.     l.Parent = player.Character
  2780.     l.Name = "Humanoid"
  2781.     task.wait()
  2782.     player.Character["1"]:Destroy()
  2783.     api.tween(1, CFrame.new(93.4228, 32.3983, 553.128))
  2784.     task.wait(8)
  2785.     api.tween(1, CFrame.new(93.4228, 32.3983, 553.128))
  2786. end)
  2787. --[[ local gpusave = miscc:CreateToggle('GPU, CPU Saver', nil, function(State) --Sakata
  2788.     kocmoc.toggles.gpusaver = State
  2789. end) ]]
  2790. local cpusave = miscc:CreateToggle("CPU / GPU Saver", nil, function(State)
  2791.     kocmoc.toggles.cpusaver = State
  2792. end)
  2793. local wstoggle = miscc:CreateToggle("Walk Speed", nil, function(State)
  2794.     kocmoc.toggles.loopspeed = State
  2795. end)
  2796. wstoggle:CreateKeybind(nil, function(Key) end)
  2797. guiElements["toggles"]["loopspeed"] = wstoggle
  2798. local jptoggle = miscc:CreateToggle("Jump Power", nil, function(State)
  2799.     kocmoc.toggles.loopjump = State
  2800. end)
  2801. jptoggle:CreateKeybind(nil, function(Key) end)
  2802. guiElements["toggles"]["loopjump"] = jptoggle
  2803. guiElements["toggles"]["godmode"] = miscc:CreateToggle("Godmode", nil, function(State)
  2804.     kocmoc.toggles.godmode = State
  2805.     bssapi:Godmode(State)
  2806. end)
  2807. local misco = misctab:CreateSection("Other")
  2808. misco:CreateDropdown("Equip Accesories", accesoriestable, function(Option)
  2809.     local ohString1 = "Equip"
  2810.     local ohTable2 = {
  2811.         ["Mute"] = false,
  2812.         ["Type"] = Option,
  2813.         ["Category"] = "Accessory"
  2814.     }
  2815.     game:GetService("ReplicatedStorage").Events.ItemPackageEvent:InvokeServer(ohString1, ohTable2)
  2816. end)
  2817. misco:CreateDropdown("Equip Masks", masktable, function(Option)
  2818.     maskequip(Option)
  2819. end)
  2820. misco:CreateDropdown("Equip Collectors", collectorstable, function(Option)
  2821.     equiptool(Option)
  2822. end)
  2823. misco:CreateDropdown("Generate Amulet", {
  2824.     "Supreme Star Amulet", "Diamond Star Amulet", "Gold Star Amulet",
  2825.     "Silver Star Amulet", "Bronze Star Amulet", "Moon Amulet"
  2826. }, function(Option)
  2827.     game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer(Option .. " Generator")
  2828. end)
  2829. misco:CreateButton("Export Stats Table ["..ExploitSpecific.."]", function()
  2830.     local StatCache = require(game.ReplicatedStorage.ClientStatCache)
  2831.     writefile("Stats_" .. api.nickname .. ".json", StatCache:Encode())
  2832. end)
  2833.  
  2834.  
  2835.  
  2836. if string.find(string.upper(identifyexecutor()), "SYN") or string.find(string.upper(identifyexecutor()), "SCRIP") then
  2837.     local visu = misctab:CreateSection("Visual")
  2838.     local alertText = "☢️ A nuke is incoming! ☢️"
  2839.     local alertDesign = "Purple"
  2840.     local function pushAlert()
  2841.         local alerts = require(game:GetService("ReplicatedStorage").AlertBoxes)
  2842.         local chat = function(...) alerts:Push(...) end
  2843.         chat(alertText, nil, alertDesign)
  2844.     end
  2845.     visu:CreateButton("Spawn Coconut ["..ExploitSpecific.."]", function()
  2846.         syn.secure_call(function()
  2847.             require(game.ReplicatedStorage.LocalFX.FallingCoconut)({
  2848.                 Pos = player.Character.Humanoid.RootPart.CFrame.p,
  2849.                 Dur = 0.6,
  2850.                 Radius = 16,
  2851.                 Delay = 1.5,
  2852.                 Friendly = true
  2853.             })
  2854.         end, player.PlayerScripts.ClientInit)
  2855.     end)
  2856.     visu:CreateButton("Spawn Hostile Coconut ["..ExploitSpecific.."]", function()
  2857.         syn.secure_call(function()
  2858.             require(game.ReplicatedStorage.LocalFX.FallingCoconut)({
  2859.                 Pos = player.Character.Humanoid.RootPart.CFrame.p,
  2860.                 Dur = 0.6,
  2861.                 Radius = 16,
  2862.                 Delay = 1.5,
  2863.                 Friendly = false
  2864.             })
  2865.         end, player.PlayerScripts.ClientInit)
  2866.     end)
  2867.     visu:CreateButton("Spawn Mythic Meteor ["..ExploitSpecific.."]", function()
  2868.         syn.secure_call(function()
  2869.             require(game.ReplicatedStorage.LocalFX.MythicMeteor)({
  2870.                 Pos = player.Character.Humanoid.RootPart.CFrame.p,
  2871.                 Dur = 0.6,
  2872.                 Radius = 16,
  2873.                 Delay = 1.5,
  2874.                 Friendly = true
  2875.             })
  2876.         end, player.PlayerScripts.ClientInit)
  2877.     end)
  2878.     visu:CreateButton("Spawn Jelly Bean ["..ExploitSpecific.."]", function()
  2879.         local jellybeans = {
  2880.             "Navy", "Blue", "Spoiled", "Merigold", "Teal", "Periwinkle", "Pink",
  2881.             "Slate", "White", "Black", "Green", "Brown", "Yellow", "Maroon",
  2882.             "Red"
  2883.         }
  2884.         syn.secure_call(function()
  2885.             require(game.ReplicatedStorage.LocalFX.JellyBeanToss)({
  2886.                 Start = player.Character.Humanoid.RootPart.CFrame.p,
  2887.                 Type = jellybeans[math.random(1, #jellybeans)],
  2888.                 End = (player.Character.Humanoid.RootPart.CFrame * CFrame.new(0, 0, -35)).p + Vector3.new(math.random(1, 20), 0, math.random(1, 20))
  2889.             })
  2890.         end, player.PlayerScripts.ClientInit)
  2891.     end)
  2892.     visu:CreateButton("Spawn Puffshroom Spores ["..ExploitSpecific.."]", function()
  2893.         task.spawn(function()
  2894.             syn.secure_call(function()
  2895.                 local field = game.Workspace.FlowerZones:GetChildren()[math.random(1, #game.Workspace.FlowerZones:GetChildren())]
  2896.                 local pos = field.CFrame.p
  2897.                 require(game.ReplicatedStorage.LocalFX.PuffshroomSporeThrow)({
  2898.                     Start = api.humanoidrootpart().CFrame.p,
  2899.                     End = pos
  2900.                 })
  2901.             end, player.PlayerScripts.ClientInit)
  2902.             task.wait(10)
  2903.             workspace.Particles:FindFirstChild("SporeCloud"):Destroy()
  2904.         end)
  2905.     end)
  2906.     visu:CreateButton("Spawn Party Popper ["..ExploitSpecific.."]", function()
  2907.         syn.secure_call(function()
  2908.             require(game:GetService("ReplicatedStorage").LocalFX.PartyPopper)({
  2909.                 Pos = player.Character.Humanoid.RootPart.CFrame.p
  2910.             })
  2911.         end, player.PlayerScripts.ClientInit)
  2912.     end)
  2913.     visu:CreateButton("Spawn Flame ["..ExploitSpecific.."]", function()
  2914.         syn.secure_call(function()
  2915.             require(game.ReplicatedStorage.LocalFX.LocalFlames).AddFlame(
  2916.                 player.Character.Humanoid.RootPart.CFrame.p,
  2917.                 10,
  2918.                 1,
  2919.                 player.UserId,
  2920.                 false
  2921.             )
  2922.         end, player.PlayerScripts.ClientInit)
  2923.     end)
  2924.     visu:CreateButton("Spawn Dark Flame ["..ExploitSpecific.."]", function()
  2925.         syn.secure_call(function()
  2926.             require(game.ReplicatedStorage.LocalFX.LocalFlames).AddFlame(
  2927.                 player.Character.Humanoid.RootPart.CFrame.p,
  2928.                 10,
  2929.                 1,
  2930.                 player.UserId,
  2931.                 true
  2932.             )
  2933.         end, player.PlayerScripts.ClientInit)
  2934.     end)
  2935.     local booolholder = false
  2936.     visu:CreateToggle("Flame Walk ["..ExploitSpecific.."]", nil, function(boool)
  2937.         if boool == true then
  2938.             booolholder = true
  2939.             repeat
  2940.                 task.wait(0.1)
  2941.                 syn.secure_call(function()
  2942.                     require(game.ReplicatedStorage.LocalFX.LocalFlames).AddFlame(
  2943.                         player.Character.Humanoid.RootPart.CFrame.p,
  2944.                         10,
  2945.                         1,
  2946.                         player.UserId,
  2947.                         false
  2948.                     )
  2949.                 end, player.PlayerScripts.ClientInit)
  2950.             until booolholder == false
  2951.         else
  2952.             booolholder = false
  2953.         end
  2954.     end)
  2955.     visu:CreateToggle("Dark Flame Walk ["..ExploitSpecific.."]", nil, function(boool)
  2956.         if boool == true then
  2957.             booolholder = true
  2958.             repeat
  2959.                 task.wait(0.1)
  2960.                 syn.secure_call(function()
  2961.                     require(game.ReplicatedStorage.LocalFX.LocalFlames).AddFlame(
  2962.                         player.Character.Humanoid.RootPart.CFrame.p,
  2963.                         10,
  2964.                         1,
  2965.                         player.UserId,
  2966.                         true
  2967.                     )
  2968.                 end, player.PlayerScripts.ClientInit)
  2969.             until booolholder == false
  2970.         else
  2971.             booolholder = false
  2972.         end
  2973.     end)
  2974.     visu:CreateLabel("")
  2975.     local styles = {}
  2976.     local raw = {
  2977.         Blue = Color3.fromRGB(50, 131, 255),
  2978.         ChaChing = Color3.fromRGB(50, 131, 255),
  2979.         Green = Color3.fromRGB(27, 119, 43),
  2980.         Red = Color3.fromRGB(201, 39, 28),
  2981.         White = Color3.fromRGB(140, 140, 140),
  2982.         Yellow = Color3.fromRGB(218, 216, 31),
  2983.         Gold = Color3.fromRGB(254, 200, 9),
  2984.         Pink = Color3.fromRGB(242, 129, 255),
  2985.         Teal = Color3.fromRGB(33, 255, 171),
  2986.         Purple = Color3.fromRGB(125, 97, 232),
  2987.         TaDah = Color3.fromRGB(254, 200, 9),
  2988.         Festive = Color3.fromRGB(197, 0, 15),
  2989.         Festive2 = Color3.fromRGB(197, 0, 15),
  2990.         Badge = Color3.fromRGB(254, 200, 9),
  2991.         Robo = Color3.fromRGB(34, 255, 64),
  2992.         EggHunt = Color3.fromRGB(236, 227, 158),
  2993.         Vicious = Color3.fromRGB(0, 1, 5),
  2994.         Brown = Color3.fromRGB(82, 51, 43)
  2995.     }
  2996.     local alertDesign2 = "ChaChing"
  2997.     for i, v in pairs(raw) do table.insert(styles, i) end
  2998.     visu:CreateDropdown("Notification Style", styles,function(dd) alertDesign2 = dd end)
  2999.     visu:CreateTextBox("Text ["..ExploitSpecific.."]", "ex. Hello World", false, function(tx)
  3000.         alertText = tx
  3001.         alertDesign = alertDesign2
  3002.         syn.secure_call(pushAlert, player.PlayerScripts.AlertBoxes)
  3003.     end)
  3004.  
  3005.     visu:CreateLabel("")
  3006.     local destroym = true
  3007.     visu:CreateToggle("Destroy Map", true, function(State) destroym = State end)
  3008.     local nukeDuration = 10
  3009.     local nukePosition = Vector3.new(-26.202560424804688, 0.657240390777588, 172.31759643554688)
  3010.     local spoof = player.PlayerScripts.AlertBoxes
  3011.     function Nuke()
  3012.         require(game.ReplicatedStorage.LocalFX.MythicMeteor)({
  3013.             Pos = nukePosition,
  3014.             Dur = nukeDuration,
  3015.             Radius = 50,
  3016.             Delay = 1
  3017.         })
  3018.     end
  3019.     function DustCloud()
  3020.         require(game.ReplicatedStorage.LocalFX.OrbExplode)({
  3021.             Color = Color3.new(0.313726, 0.313726, 0.941176),
  3022.             Radius = 600,
  3023.             Dur = 15,
  3024.             Pos = nukePosition
  3025.         })
  3026.     end
  3027.     visu:CreateButton("Spawn Nuke ["..ExploitSpecific.."]", function()
  3028.         alertText = "☢️ A nuke is incoming! ☢️"
  3029.         syn.secure_call(pushAlert, spoof)
  3030.         alertText = "☢️ Get somewhere high! ☢️"
  3031.         task.wait(1.5)
  3032.         task.spawn(function()
  3033.             local Humanoid = player.Character.Humanoid
  3034.             for i = 1, 950 do
  3035.                 local x = math.random(-100, 100) / 100
  3036.                 local y = math.random(-100, 100) / 100
  3037.                 local z = math.random(-100, 100) / 100
  3038.                 Humanoid.CameraOffset = Vector3.new(x, y, z)
  3039.                 task.wait(0.01)
  3040.             end
  3041.         end)
  3042.         syn.secure_call(pushAlert, spoof)
  3043.         task.wait(10)
  3044.         task.spawn(function()
  3045.             syn.secure_call(Nuke, player.PlayerScripts.ClientInit)
  3046.         end)
  3047.         task.wait(nukeDuration)
  3048.         task.spawn(function()
  3049.             syn.secure_call(DustCloud, player.PlayerScripts.ClientInit)
  3050.         end)
  3051.         task.wait(1)
  3052.         local Orb = game.Workspace.Particles:FindFirstChild("Orb")
  3053.         if Orb then Orb.CanCollide = true end
  3054.         if destroym == true then
  3055.             repeat
  3056.                 task.wait(3)
  3057.                 for i, v in pairs(Orb:GetTouchingParts()) do
  3058.                     if v.Anchored == true then
  3059.                         v.Anchored = false
  3060.                     end
  3061.                     v:BreakJoints()
  3062.                     v.Position = v.Position + Vector3.new(0, 0, 2)
  3063.                 end
  3064.             until Orb == nil
  3065.         end
  3066.     end)
  3067. end
  3068.  
  3069. local webhooksection = misctab:CreateSection("External")
  3070. guiElements["toggles"]["shutdownkick"] = webhooksection:CreateToggle("Shutdown on Kick", nil, function(State)
  3071.     kocmoc.toggles.shutdownkick = State
  3072. end)
  3073. guiElements["toggles"]["webhookupdates"] = webhooksection:CreateToggle("Send Webhook Updates", nil, function(State)
  3074.     kocmoc.toggles.webhookupdates = State
  3075. end)
  3076. guiElements["vars"]["webhookurl"] = webhooksection:CreateTextBox("Webhook URL", "Discord webhook URL", false, function(Value)
  3077.     if Value and string.find(Value, "https://") then
  3078.         kocmoc.vars.webhookurl = Value
  3079.     else
  3080.         api.notify("Rosemoc " .. temptable.version, "Invalid URL!", 2)
  3081.     end
  3082. end)
  3083. guiElements["vars"]["webhooktimer"] = webhooksection:CreateSlider("Minutes Between Updates", 1, 60, 60, false, function(Value)
  3084.     kocmoc.vars.webhooktimer = Value
  3085. end)
  3086. guiElements["toggles"]["webhookping"] = webhooksection:CreateToggle("Ping on Honey Update", nil, function(State)
  3087.     kocmoc.toggles.webhookping = State
  3088. end)
  3089. guiElements["vars"]["discordid"] = webhooksection:CreateTextBox("Discord ID", "", false, function(Value)
  3090.     if tonumber(Value) then
  3091.         kocmoc.vars.discordid = Value
  3092.     else
  3093.         api.notify("Rosemoc " .. temptable.version, "Invalid ID!", 2)
  3094.     end
  3095. end)
  3096.  
  3097. local BeeTable = require(game:GetService("ReplicatedStorage").BeeTypes).GetAllTypes()
  3098.  
  3099. local autojellysection = misctab:CreateSection("Auto Jelly")
  3100.  
  3101. autojellysection:CreateLabel("Auto Jelly Aka. RNG Manipulation")
  3102. autojellysection:CreateLabel("")
  3103. autojellysection:CreateTextBox("Horizonal (from left to right) ", 'examble 1', true, function(Value) kocmoc.autojelly.slot["horizonal"] = tonumber(Value) end)
  3104. autojellysection:CreateTextBox("Vertical (from down to up)", 'example 3', true, function(Value) kocmoc.autojelly.slot["vertical"] = tonumber(Value) end)
  3105. autojellysection:CreateLabel("")
  3106. autojellysection:CreateTextBox("Max Roll", 'example 1000 will only use 1000 and stop', true, function(Value) kocmoc.autojelly.maxroll = tonumber(Value) end)
  3107.  
  3108. autojellysection:CreateToggle("Use Star Jelly",false,function(bool) kocmoc.autojelly.bool.starjelly = bool end)
  3109. autojellysection:CreateToggle("Get Specific Bee",false,function(bool) kocmoc.autojelly.bool.specificbee = bool end)
  3110. autojellysection:CreateToggle("Specific Rarity",false,function(bool) kocmoc.autojelly.bool.rarity = bool end)
  3111. autojellysection:CreateLabel("Select Rarities")
  3112. for i, v in pairs(kocmoc.autojelly.raritybool) do
  3113.     autojellysection:CreateToggle(i,false,function(bool) kocmoc.autojelly.raritybool[i] = bool end)
  3114. end
  3115. autojellysection:CreateLabel("Specific Bee Name")
  3116.  
  3117. local beename = ""
  3118. local gt = false
  3119. local assetids = {}
  3120. autojellysection:CreateTextBox("Bee Name", 'example. Hasty', false, function(Value)
  3121.     local Name = ""
  3122.     for i,v in pairs(BeeTable) do
  3123.     local newString=string.upper(i.."Bee")
  3124.     if string.find(newString,string.upper(Value)) then Name = i.."Bee" end
  3125.     end
  3126.     if true then
  3127.         beename = Name
  3128.         game.StarterGui:SetCore("SendNotification", {
  3129.             Title = "Success",
  3130.             Text = beename,
  3131.             Duration = 10
  3132.         })
  3133.     else
  3134.         game.StarterGui:SetCore("SendNotification", {
  3135.             Title = "Error",
  3136.             Text = "that bee aint a thing :skull:",
  3137.             Duration = 10
  3138.         })
  3139.     end
  3140. end)
  3141. autojellysection:CreateToggle("Require Gifted",false,function(bool)
  3142.     gt = bool
  3143. end)
  3144. autojellysection:CreateButton("Add Bee to List", function()
  3145.     local isg="Any"
  3146.     if gt then isg = "Gifted" end
  3147.     table.insert(kocmoc.autojelly.beenames, {beename,isg})
  3148.     table.insert(assetids,isg.." "..beename)
  3149.     game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main.Holder.TContainer:FindFirstChild("Misc Tab").RightSide:FindFirstChild("Auto Jelly Section").Container:FindFirstChild("Bee List Dropdown",true):Destroy()
  3150.     autojellysection:CreateDropdown("Bee List", assetids, function(Option) end)
  3151. end)
  3152. autojellysection:CreateButton("Clear Bee List", function()
  3153.     assetids = {}
  3154.     kocmoc.autojelly.beenames = {}
  3155.     game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main.Holder.TContainer:FindFirstChild("Misc Tab").RightSide:FindFirstChild("Auto Jelly Section").Container:FindFirstChild("Bee List Dropdown",true):Destroy()
  3156.     autojellysection:CreateDropdown("Bee List", assetids, function(Option) end)
  3157. end)
  3158. autojellysection:CreateLabel(" ")
  3159. local emerStop=false
  3160. local amount = 0
  3161.   function checkBee(BeeValue,IsGifted,startRJ)
  3162.       warn(BeeValue)
  3163.     local SetBool = kocmoc.autojelly.bool
  3164.     local specificbees = kocmoc.autojelly.beenames
  3165.     local AllowedRarities = kocmoc.autojelly.raritybool
  3166.     local iscorrect = false
  3167.     amount = amount + 1
  3168.    
  3169.     local isAGiftedBee = true
  3170.     if IsGifted == nil then
  3171.         isAGiftedBee = false
  3172.     end
  3173.    
  3174.     if SetBool.specificbee == true then
  3175.         for i,v in pairs(specificbees) do
  3176.                 print("bv:"..BeeValue,v[1],v[2])
  3177.         if v[1] == BeeValue then
  3178.             if v[2] == "Any" then
  3179.                 iscorrect = true
  3180.             else
  3181.             if v[2] == "NonGifted" then
  3182.                 if isAGiftedBee == false then
  3183.                     iscorrect = true
  3184.                 end
  3185.             else
  3186.                 if v[2] == "Gifted" then
  3187.                     if isAGiftedBee == true then
  3188.                         iscorrect = true
  3189.                     end
  3190.                 end
  3191.             end
  3192.             end
  3193.         end
  3194.     end
  3195.     end
  3196.    
  3197.     if iscorrect == false then
  3198.     if SetBool.rarity == true then
  3199.         local newString = string.gsub(BeeValue,"Bee","")
  3200.         for i,v in pairs(BeeTable) do
  3201.             if string.upper(i) == string.upper(newString) then
  3202.                 for j,k in pairs(AllowedRarities) do
  3203.                     if k == true then
  3204.                         if v["Rarity"] == j then
  3205.                             iscorrect = true
  3206.                         end
  3207.                         if j == "Gifted" then
  3208.                             if isAGiftedBee then
  3209.                                 iscorrect = true
  3210.                             end
  3211.                         end
  3212.                     end
  3213.                 end
  3214.             end
  3215.         end
  3216.     end
  3217.     end
  3218.  
  3219.     if iscorrect then
  3220.         amount=(startRJ-GetItemListWithValue().RoyalJelly)
  3221.         Notification("In "..tostring(amount).." Royal Jellies..","You rolled a "..string.gsub(BeeValue,"Bee","").." Bee!",5)
  3222.     end
  3223.    
  3224.     return iscorrect
  3225.   end
  3226.   autojellysection:CreateButton("Run Auto Jelly",function()
  3227.     task.spawn(function()
  3228.         local horizonal = kocmoc.autojelly.slot["horizonal"]
  3229.         local vertical = kocmoc.autojelly.slot["vertical"]
  3230.         local SetBool = kocmoc.autojelly.bool
  3231.         local startRJ = GetItemListWithValue().RoyalJelly
  3232.         local maxroll = kocmoc.autojelly.maxroll
  3233.         if SetBool.starjelly == true then
  3234.             UseItemName = "StarJelly"
  3235.          else
  3236.             UseItemName = "RoyalJelly"
  3237.         end
  3238.         warn(typeof(checkBee))
  3239.         local cell = Honeycomb[tostring(PlayerHive)].Cells["C" .. horizonal .. "," .. vertical]
  3240.         repeat
  3241.         game:GetService("ReplicatedStorage").Events.ConstructHiveCellFromEgg:InvokeServer(horizonal, vertical, UseItemName, 1)
  3242.         until checkBee(cell.CellType.Value, cell:FindFirstChild("GiftedCell"), startRJ) == true or (startRJ-GetItemListWithValue().RoyalJelly) >= maxroll or GetItemListWithValue().RoyalJelly == nil or GetItemListWithValue().RoyalJelly == 0 or emerStop == true
  3243.         if (startRJ-GetItemListWithValue().RoyalJelly) >= maxroll then
  3244.             Notification("Error","You hit the Usage limit.",5)
  3245.         end
  3246.         if GetItemListWithValue().RoyalJelly == nil then
  3247.             Notification("Error","You ran out of royal jellies.",5)
  3248.         end
  3249.         if GetItemListWithValue().RoyalJelly == 0 then
  3250.             Notification("Error","You ran out of royal jellies.",5)
  3251.         end
  3252.         if emerStop == true then
  3253.             Notification("Stopped","AutoJelly Force Fully Stopped.",5)
  3254.         end
  3255.     end)
  3256. end)
  3257.  
  3258. autojellysection:CreateButton("Emergency Stop",function()
  3259.     task.spawn(function()
  3260.     emerStop=true wait(1.5) emerStop=false
  3261.     end)
  3262. end)
  3263.  
  3264. autojellysection:CreateDropdown("Bee List", assetids, function(Option) end)
  3265.  
  3266. local autofeed = itemstab:CreateSection("Auto Feed")
  3267.  
  3268. local function feedAllBees(treat, amt)
  3269.     for L = 1, 5 do
  3270.         for U = 1, 10 do
  3271.             game:GetService("ReplicatedStorage").Events.ConstructHiveCellFromEgg:InvokeServer(L, U, treat, amt)
  3272.         end
  3273.     end
  3274. end
  3275.  
  3276. guiElements["vars"]["selectedTreat"] = autofeed:CreateDropdown("Select Treat", treatsTable, function(option)
  3277.     kocmoc.vars.selectedTreat = option
  3278. end)
  3279. guiElements["vars"]["selectedTreatAmount"] = autofeed:CreateTextBox("Treat Amount", "10", false, function(Value)
  3280.     kocmoc.vars.selectedTreatAmount = tonumber(Value)
  3281. end)
  3282. autofeed:CreateButton("Feed All Bees", function()
  3283.     feedAllBees(kocmoc.vars.selectedTreat, kocmoc.vars.selectedTreatAmount)
  3284. end)
  3285.  
  3286. local windShrine = itemstab:CreateSection("Wind Shrine")
  3287. guiElements["vars"]["donoItem"] = windShrine:CreateDropdown("Select Item", donatableItemsTable, function(Option)
  3288.     kocmoc.vars.donoItem = Option
  3289. end)
  3290. guiElements["vars"]["donoAmount"] = windShrine:CreateTextBox("Item Quantity", "10", false, function(Value)
  3291.     kocmoc.vars.donoAmount = tonumber(Value)
  3292. end)
  3293. windShrine:CreateButton("Donate", function()
  3294.     donateToShrine(kocmoc.vars.donoItem, kocmoc.vars.donoAmount)
  3295.     print(kocmoc.vars.donoAmount)
  3296. end)
  3297. guiElements["toggles"]["autodonate"] = windShrine:CreateToggle("Auto Donate", nil, function(selection)
  3298.     kocmoc.toggles.autodonate = selection
  3299. end)
  3300.  
  3301. local farmsettings = setttab:CreateSection("Autofarm Settings")
  3302. guiElements["vars"]["farmspeed"] = farmsettings:CreateTextBox("Autofarming Walkspeed", "Default Value = 60", true, function(Value)
  3303.     kocmoc.vars.farmspeed = Value
  3304. end)
  3305. guiElements["toggles"]["loopfarmspeed"] = farmsettings:CreateToggle("^ Loop Speed On Autofarming", nil, function(State)
  3306.     kocmoc.toggles.loopfarmspeed = State
  3307. end)
  3308. guiElements["toggles"]["farmflower"] = farmsettings:CreateToggle("Don't Walk In Field", nil, function(State)
  3309.     kocmoc.toggles.farmflower = State
  3310. end)
  3311. guiElements["toggles"]["convertballoons"] = farmsettings:CreateToggle("Convert Hive Balloon", nil, function(State)
  3312.     kocmoc.toggles.convertballoons = State
  3313. end)
  3314. local balloonPercentSlider = farmsettings:CreateSlider("Balloon Blessing % To Convert At", 0, 100, 50, false, function(Value)
  3315.     kocmoc.vars.convertballoonpercent = Value
  3316. end)
  3317. balloonPercentSlider:AddToolTip("0% = Always convert balloon when converting bag")
  3318. guiElements["vars"]["convertballoonpercent"] = balloonPercentSlider
  3319. guiElements["toggles"]["donotfarmtokens"] = farmsettings:CreateToggle("Don't Farm Tokens", nil, function(State)
  3320.     kocmoc.toggles.donotfarmtokens = State
  3321. end)
  3322. guiElements["toggles"]["enabletokenblacklisting"] = farmsettings:CreateToggle("Enable Token Blacklisting", nil, function(State)
  3323.     kocmoc.toggles.enabletokenblacklisting = State
  3324. end)
  3325. guiElements["vars"]["walkspeed"] = farmsettings:CreateSlider("Walk Speed", 0, 120, 70, false, function(Value)
  3326.     kocmoc.vars.walkspeed = Value
  3327. end)
  3328. guiElements["vars"]["jumppower"] = farmsettings:CreateSlider("Jump Power", 0, 120, 70, false, function(Value)
  3329.     kocmoc.vars.jumppower = Value
  3330. end)
  3331. --[[ guiElements["toggles"]["autox4"] = farmsettings:CreateToggle("Auto x4 Field Boost", nil, function(State)
  3332.     kocmoc.toggles.autox4 = State
  3333. end) ]]
  3334. --[[ guiElements["toggles"]["newtokencollection"] = farmsettings:CreateToggle("New Token Collection", nil, function(State)
  3335.     kocmoc.toggles.newtokencollection = State
  3336. end) ]]
  3337. local raresettings = setttab:CreateSection("Tokens Settings")
  3338. raresettings:CreateTextBox("Asset ID", "rbxassetid", false, function(Value)
  3339.     rarename = Value
  3340. end)
  3341. raresettings:CreateButton("Add Token To Rares List", function()
  3342.     table.insert(kocmoc.rares, rarename)
  3343.     game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main:FindFirstChild("Rares List Dropdown", true):Destroy()
  3344.     raresettings:CreateDropdown("Rares List", kocmoc.rares, function(Option) end)
  3345. end)
  3346. raresettings:CreateButton("Remove Token From Rares List", function()
  3347.     table.remove(kocmoc.rares, api.tablefind(kocmoc.rares, rarename))
  3348.     game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main:FindFirstChild(
  3349.         "Rares List Dropdown", true):Destroy()
  3350.     raresettings:CreateDropdown("Rares List", kocmoc.rares, function(Option) end)
  3351. end)
  3352. raresettings:CreateButton("Add Token To Blacklist", function()
  3353.     table.insert(kocmoc.bltokens, rarename)
  3354.     game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main:FindFirstChild(
  3355.         "Tokens Blacklist Dropdown", true):Destroy()
  3356.     raresettings:CreateDropdown("Tokens Blacklist", kocmoc.bltokens,
  3357.                                 function(Option) end)
  3358. end)
  3359. raresettings:CreateButton("Remove Token From Blacklist", function()
  3360.     table.remove(kocmoc.bltokens, api.tablefind(kocmoc.bltokens, rarename))
  3361.     game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main:FindFirstChild(
  3362.         "Tokens Blacklist Dropdown", true):Destroy()
  3363.     raresettings:CreateDropdown("Tokens Blacklist", kocmoc.bltokens,
  3364.                                 function(Option) end)
  3365. end)
  3366. raresettings:CreateDropdown("Tokens Blacklist", kocmoc.bltokens,
  3367.                             function(Option) end)
  3368. raresettings:CreateDropdown("Rares List", kocmoc.rares, function(Option) end)
  3369. raresettings:CreateButton("Copy Token List Link", function()
  3370.     api.notify("Rosemoc " .. temptable.version, "Copied link to clipboard!", 2)
  3371.     setclipboard("https://pastebin.com/raw/wtHBD3ij")
  3372. end)
  3373. local dispsettings = setttab:CreateSection("Auto Dispenser & Auto Boosters Settings")
  3374. guiElements["dispensesettings"]["rj"] = dispsettings:CreateToggle("Royal Jelly Dispenser", nil, function(State)
  3375.     kocmoc.dispensesettings.rj = not kocmoc.dispensesettings.rj
  3376. end)
  3377. guiElements["dispensesettings"]["blub"] = dispsettings:CreateToggle("Blueberry Dispenser", nil, function(State)
  3378.     kocmoc.dispensesettings.blub = not kocmoc.dispensesettings.blub
  3379. end)
  3380. guiElements["dispensesettings"]["straw"] = dispsettings:CreateToggle("Strawberry Dispenser", nil, function(State)
  3381.     kocmoc.dispensesettings.straw = not kocmoc.dispensesettings.straw
  3382. end)
  3383. guiElements["dispensesettings"]["treat"] = dispsettings:CreateToggle("Treat Dispenser", nil, function(State)
  3384.     kocmoc.dispensesettings.treat = not kocmoc.dispensesettings.treat
  3385. end)
  3386. guiElements["dispensesettings"]["coconut"] = dispsettings:CreateToggle("Coconut Dispenser", nil, function(State)
  3387.     kocmoc.dispensesettings.coconut = not kocmoc.dispensesettings.coconut
  3388. end)
  3389. guiElements["dispensesettings"]["glue"] = dispsettings:CreateToggle("Glue Dispenser", nil, function(State)
  3390.     kocmoc.dispensesettings.glue = not kocmoc.dispensesettings.glue
  3391. end)
  3392. guiElements["dispensesettings"]["white"] = dispsettings:CreateToggle("Mountain Top Booster", nil, function(State)
  3393.     kocmoc.dispensesettings.white = not kocmoc.dispensesettings.white
  3394. end)
  3395. guiElements["dispensesettings"]["blue"] = dispsettings:CreateToggle("Blue Field Booster", nil, function(State)
  3396.     kocmoc.dispensesettings.blue = not kocmoc.dispensesettings.blue
  3397. end)
  3398. guiElements["dispensesettings"]["red"] = dispsettings:CreateToggle("Red Field Booster", nil, function(State)
  3399.     kocmoc.dispensesettings.red = not kocmoc.dispensesettings.red
  3400. end)
  3401. local guisettings = setttab:CreateSection("GUI Settings")
  3402. local uitoggle = guisettings:CreateToggle("UI Toggle", nil, function(State)
  3403.     Window:Toggle(State)
  3404. end)
  3405. uitoggle:CreateKeybind(tostring(Config.Keybind):gsub("Enum.KeyCode.", ""),
  3406.                        function(Key) Config.Keybind = Enum.KeyCode[Key] end)
  3407. uitoggle:SetState(true)
  3408. local UIColorPicker = guisettings:CreateColorpicker("UI Color", function(Color) Window:ChangeColor(Color) end)
  3409. repeat
  3410.     task.wait()
  3411. until UIColorPicker:GetObject() and UIColorPicker:GetObject():FindFirstChild("Color")
  3412. UIColorPicker:GetObject().Color.BackgroundColor3 = Config.Color
  3413. local themes = guisettings:CreateDropdown("Image", {
  3414.     "Default", "Hearts", "Abstract", "Hexagon", "Circles", "Lace With Flowers", "Floral"
  3415. }, function(Name)
  3416.     if Name == "Default" then
  3417.         Window:SetBackground("2151741365")
  3418.     elseif Name == "Hearts" then
  3419.         Window:SetBackground("6073763717")
  3420.     elseif Name == "Abstract" then
  3421.         Window:SetBackground("6073743871")
  3422.     elseif Name == "Hexagon" then
  3423.         Window:SetBackground("6073628839")
  3424.     elseif Name == "Circles" then
  3425.         Window:SetBackground("6071579801")
  3426.     elseif Name == "Lace With Flowers" then
  3427.         Window:SetBackground("6071575925")
  3428.     elseif Name == "Floral" then
  3429.         Window:SetBackground("5553946656")
  3430.     end
  3431. end)
  3432. themes:SetOption("Default")
  3433. local kocmocs = setttab:CreateSection("Configs")
  3434. kocmocs:CreateTextBox("Config Name", "ex: stumpconfig", false, function(Value) temptable.configname = Value end)
  3435. kocmocs:CreateButton("Load Config", function()
  3436.     if not isfile("kocmoc/BSS_" .. temptable.configname .. ".json") then
  3437.         api.notify("Rosemoc " .. temptable.version, "No such config file!", 2)
  3438.     else
  3439.         kocmoc = game:service("HttpService"):JSONDecode(readfile("kocmoc/BSS_" .. temptable.configname .. ".json"))
  3440.         for i,v in pairs(guiElements) do
  3441.             for j,k in pairs(v) do
  3442.                 local obj = k:GetObject()
  3443.                 local lastCharacters = obj.Name:reverse():sub(0, obj.Name:reverse():find(" ")):reverse()
  3444.                 if kocmoc[i][j] then
  3445.                     if lastCharacters == " Dropdown" then
  3446.                         obj.Container.Value.Text = kocmoc[i][j]
  3447.                     elseif lastCharacters == " Slider" then
  3448.                         task.spawn(function()
  3449.                             local Tween = game:GetService("TweenService"):Create(
  3450.                                 obj.Slider.Bar,
  3451.                                 TweenInfo.new(1),
  3452.                                 {Size = UDim2.new((tonumber(kocmoc[i][j]) - k:GetMin()) / (k:GetMax() - k:GetMin()), 0, 1, 0)}
  3453.                             )
  3454.                             Tween:Play()
  3455.                             local startStamp = tick()
  3456.                             local startValue = tonumber(obj.Value.PlaceholderText)
  3457.                             while tick() - startStamp < 1 do
  3458.                                 task.wait()
  3459.                                 local partial = tick() - startStamp
  3460.                                 local value = (startValue + ((tonumber(kocmoc[i][j]) - startValue) * partial))
  3461.                                 obj.Value.PlaceholderText = math.round(value * 100) / 100
  3462.                             end
  3463.                             obj.Value.PlaceholderText = tonumber(kocmoc[i][j])
  3464.                         end)
  3465.                     elseif lastCharacters == " Toggle" then
  3466.                         obj.Toggle.BackgroundColor3 = kocmoc[i][j] and Config.Color or Color3.fromRGB(50,50,50)
  3467.                     elseif lastCharacters == " TextBox" then
  3468.                         obj.Background.Input.Text = kocmoc[i][j]
  3469.                     end
  3470.                 end
  3471.             end
  3472.         end
  3473.     end
  3474. end)
  3475. kocmocs:CreateButton("Save Config", function()
  3476.     writefile("kocmoc/BSS_" .. temptable.configname .. ".json", game:service("HttpService"):JSONEncode(kocmoc))
  3477. end)
  3478. kocmocs:CreateButton("Reset Config", function() kocmoc = defaultkocmoc end)
  3479. local fieldsettings = setttab:CreateSection("Fields Settings")
  3480. guiElements["bestfields"]["white"] = fieldsettings:CreateDropdown("Best White Field", temptable.whitefields, function(Option)
  3481.     kocmoc.bestfields.white = Option
  3482. end)
  3483. guiElements["bestfields"]["red"] = fieldsettings:CreateDropdown("Best Red Field", temptable.redfields, function(Option)
  3484.     kocmoc.bestfields.red = Option
  3485. end)
  3486. guiElements["bestfields"]["blue"] = fieldsettings:CreateDropdown("Best Blue Field", temptable.bluefields, function(Option)
  3487.     kocmoc.bestfields.blue = Option
  3488. end)
  3489. fieldsettings:CreateDropdown("Field", fieldstable, function(Option) temptable.blackfield = Option end)
  3490. fieldsettings:CreateButton("Add Field To Blacklist", function()
  3491.     table.insert(kocmoc.blacklistedfields, temptable.blackfield)
  3492.     game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main:FindFirstChild("Blacklisted Fields Dropdown", true):Destroy()
  3493.     fieldsettings:CreateDropdown("Blacklisted Fields", kocmoc.blacklistedfields, function(Option) end)
  3494. end)
  3495. fieldsettings:CreateButton("Remove Field From Blacklist", function()
  3496.     table.remove(kocmoc.blacklistedfields, api.tablefind(kocmoc.blacklistedfields, temptable.blackfield))
  3497.     game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main:FindFirstChild("Blacklisted Fields Dropdown", true):Destroy()
  3498.     fieldsettings:CreateDropdown("Blacklisted Fields", kocmoc.blacklistedfields, function(Option) end)
  3499. end)
  3500. fieldsettings:CreateDropdown("Blacklisted Fields", kocmoc.blacklistedfields, function(Option) end)
  3501. local aqs = setttab:CreateSection("Auto Quest Settings")
  3502.  
  3503. guiElements["toggles"]["allquests"] = aqs:CreateToggle("Non-Repeatable Quests", nil, function(State) kocmoc.toggles.allquests = State end)
  3504. guiElements["toggles"]["buckobeequests"] = aqs:CreateToggle("Bucko Bee Quests", nil, function(State) kocmoc.toggles.buckobeequests = State end)
  3505. guiElements["toggles"]["rileybeequests"] = aqs:CreateToggle("Riley Bee Quests", nil, function(State) kocmoc.toggles.rileybeequests = State end)
  3506. guiElements["toggles"]["blackbearquests"] = aqs:CreateToggle("Black Bear Quests", nil, function(State) kocmoc.toggles.blackbearquests = State end)
  3507. guiElements["toggles"]["brownbearquests"] = aqs:CreateToggle("Brown Bear Quests", nil, function(State) kocmoc.toggles.brownbearquests = State end)
  3508. guiElements["toggles"]["polarbearquests"] = aqs:CreateToggle("Polar Bear Quests", nil, function(State) kocmoc.toggles.polarbearquests = State end)
  3509.  
  3510. guiElements["vars"]["questcolorprefer"] = aqs:CreateDropdown("Only Farm Ants From NPC", {
  3511.     "Any NPC", "Bucko Bee", "Riley Bee"
  3512. }, function(Option)
  3513.     kocmoc.vars.questcolorprefer = Option
  3514. end)
  3515. guiElements["toggles"]["tptonpc"] = aqs:CreateToggle("Teleport To NPC", nil, function(State) kocmoc.toggles.tptonpc = State end)
  3516. guiElements["toggles"]["autoquesthoneybee"] = aqs:CreateToggle("Include Honey Bee Quests", nil, function(State) kocmoc.toggles.autoquesthoneybee = State end)
  3517. guiElements["toggles"]["buyantpass"] = aqs:CreateToggle("Buy Ant Pass When Needed", nil, function(State) kocmoc.toggles.buyantpass = State end)
  3518. guiElements["toggles"]["smartmobkill"] = aqs:CreateToggle("Modify Mob Kill To Match Quests", nil, function(State) kocmoc.toggles.smartmobkill = State end)
  3519. guiElements["toggles"]["usegumdropsforquest"] = aqs:CreateToggle("Use Gumdrops For Goo Quests", nil, function(State) kocmoc.toggles.usegumdropsforquest = State end)
  3520.  
  3521.  
  3522. local pts = setttab:CreateSection("Autofarm Priority Tokens")
  3523. local ragemodepts = pts:CreateToggle("Rage Mode", nil, function(State)
  3524.     kocmoc.toggles.ptsrage = State
  3525. end)
  3526. pts:CreateTextBox("Asset ID", "rbxassetid", false, function(Value) rarename = Value end)
  3527. pts:CreateButton("Add Token To Priority List", function()
  3528.     table.insert(kocmoc.priority, rarename)
  3529.     game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main:FindFirstChild("Priority List Dropdown", true):Destroy()
  3530.     pts:CreateDropdown("Priority List", kocmoc.priority, function(Option) end)
  3531. end)
  3532. pts:CreateButton("Remove Token From Priority List", function()
  3533.     table.remove(kocmoc.priority, api.tablefind(kocmoc.priority, rarename))
  3534.     game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main:FindFirstChild("Priority List Dropdown", true):Destroy()
  3535.     pts:CreateDropdown("Priority List", kocmoc.priority, function(Option) end)
  3536. end)
  3537. pts:CreateDropdown("Priority List", kocmoc.priority, function(Option) end)
  3538.  
  3539. --[[
  3540. local buysection = premiumtab:CreateSection("Buy")
  3541. buysection:CreateLabel("Support the developer of Kocmoc v3!")
  3542. buysection:CreateButton("Copy Shirt Link", function()
  3543.     api.notify("Rosemoc " .. temptable.version, "Copied link to clipboard!", 2)
  3544.     setclipboard("https://www.roblox.com/catalog/8958348861/Kocmoc-Honey-Bee-Design")
  3545. end)
  3546. buysection:CreateLabel("Without them this project")
  3547. buysection:CreateLabel("wouldn't be possible")
  3548.  
  3549. local miscsection = premiumtab:CreateSection("Misc")
  3550. miscsection:CreateLabel("Kocmoc Premium includes:")
  3551. miscsection:CreateLabel("Glider Speed Modifier [" .. getgenv().Star .. "]")
  3552. miscsection:CreateLabel("Glider Float Exploit [" .. getgenv().Star .. "]")
  3553.  
  3554. local autofarmingsection = premiumtab:CreateSection("Auto Farming")
  3555. autofarmingsection:CreateLabel("Kocmoc Premium includes:")
  3556. autofarmingsection:CreateLabel("Windy Bee Server Hopper [" .. getgenv().Star .. "]")
  3557. autofarmingsection:CreateLabel("Smart Bubble Bloat [" .. getgenv().Star .. "]")
  3558.  
  3559. local autojellysection = premiumtab:CreateSection("Auto Jelly")
  3560. autojellysection:CreateLabel("Kocmoc Premium includes:")
  3561. autojellysection:CreateLabel("Auto Jelly [" .. getgenv().Star .. "]")
  3562. autojellysection:CreateLabel("Incredibly intricate yet simple to use")
  3563. autojellysection:CreateLabel("to get you the perfect hive!")
  3564.  
  3565. local autonectarsection = premiumtab:CreateSection("Auto Nectar")
  3566. autonectarsection:CreateLabel("Kocmoc Premium includes:")
  3567. autonectarsection:CreateLabel("Auto Nectar [" .. getgenv().Star .. "]")
  3568.  
  3569. local webhooksection = premiumtab:CreateSection("Webhook")
  3570. webhooksection:CreateLabel("Kocmoc Premium includes:")
  3571. webhooksection:CreateLabel("Enable Webhook [" .. getgenv().Star .. "]")
  3572. webhooksection:CreateLabel("The perfect way to track your exact")
  3573. webhooksection:CreateLabel("progress even from your mobile device!")
  3574. ]]
  3575.  
  3576. loadingUI:UpdateText("Loaded UI")
  3577. local loadingLoops = loadingInfo:CreateLabel("Loading Loops..")
  3578. -- script
  3579.  
  3580. local honeytoggleouyfyt = false
  3581. task.spawn(function()
  3582.     while task.wait(1) do
  3583.         if kocmoc.toggles.honeymaskconv then
  3584.             if temptable.converting then
  3585.                 if not honeytoggleouyfyt then
  3586.                     honeytoggleouyfyt = true
  3587.                     maskequip("Honey Mask")
  3588.                 end
  3589.             else
  3590.                 if honeytoggleouyfyt then
  3591.                     honeytoggleouyfyt = false
  3592.                     maskequip(kocmoc.vars.defmask)
  3593.                 end
  3594.             end
  3595.         end
  3596.     end
  3597. end)
  3598.  
  3599. task.spawn(function()
  3600.     while task.wait(5) do
  3601.         local buffs = fetchBuffTable(buffTable)
  3602.         for i, v in pairs(buffTable) do
  3603.             buffTable[i].b = kocmoc.vars["autouse"..i]
  3604.             if v["b"] then
  3605.                 local inuse = false
  3606.                 for k, p in pairs(buffs) do
  3607.                     if k == i then inuse = true end
  3608.                 end
  3609.                 if not inuse then
  3610.                     playeractivescommand:FireServer({["Name"] = i})
  3611.                 end
  3612.             end
  3613.         end
  3614.     end
  3615. end)
  3616.  
  3617. task.spawn(function()
  3618.     while task.wait() do
  3619.         if kocmoc.toggles.autofarm then
  3620.             if kocmoc.toggles.farmbubbles then
  3621.                 dobubbles()
  3622.             end
  3623.             if kocmoc.toggles.collectcrosshairs then
  3624.                 docrosshairs()
  3625.             end
  3626.             if kocmoc.toggles.farmfuzzy then
  3627.                 getfuzzy()
  3628.             end
  3629.             if kocmoc.toggles.farmdigital then
  3630.                 getdigital()
  3631.             end
  3632.         end
  3633.     end
  3634. end)
  3635.  
  3636. game.Workspace.Particles.ChildAdded:Connect(function(v)
  3637.     if (v:IsA("Part") or v:IsA("MeshPart")) and not temptable.started.ant and not temptable.started.vicious and kocmoc.toggles.autofarm and not temptable.converting and not temptable.planting then
  3638.         if v.Name == "WarningDisk" and kocmoc.toggles.farmcoco then
  3639.             task.wait(0.5)
  3640.             if v.BrickColor == BrickColor.new("Lime green") then
  3641.                 task.wait(1.25)
  3642.                 if (v.Position - api.humanoidrootpart().Position).magnitude > 100 then return end
  3643.                     if temptable.lookat then
  3644.                         api.humanoidrootpart().Velocity = Vector3.new(0, 0, 0)
  3645.                         api.humanoidrootpart().CFrame = CFrame.new(v.CFrame.p, temptable.lookat)
  3646.                         task.wait()
  3647.                         api.humanoidrootpart().CFrame = CFrame.new(v.CFrame.p, temptable.lookat)
  3648.                     else
  3649.                         api.humanoidrootpart().Velocity = Vector3.new(0, 0, 0)
  3650.                         api.humanoidrootpart().CFrame = CFrame.new(v.CFrame.p)
  3651.                         task.wait()
  3652.                         api.humanoidrootpart().CFrame = CFrame.new(v.CFrame.p)
  3653.                     end
  3654.                 end
  3655.         elseif v.Name == "Crosshair" and kocmoc.toggles.collectcrosshairs then
  3656.             local timestamp = Instance.new("NumberValue", v)
  3657.             timestamp.Name = "timestamp"
  3658.             timestamp.Value = tick()
  3659.         elseif string.find(v.Name, "Bubble") and getBuffTime("5101328809") > 0.2 and kocmoc.toggles.farmbubbles then
  3660.             if not kocmoc.toggles.farmpuffshrooms or (kocmoc.toggles.farmpuffshrooms and not game.Workspace.Happenings.Puffshrooms:FindFirstChildOfClass("Model")) then
  3661.                 if (v.Position - api.humanoidrootpart().Position).magnitude > 100 then return end
  3662.                 table.insert(temptable.bubbles, v)
  3663.             end
  3664.         end
  3665.     end
  3666. end)
  3667.  
  3668. -- Auto Digital Bee
  3669.  
  3670. --[[ game.Workspace.Camera.DupedTokens.ChildAdded:Connect(function(v)
  3671.     if v:IsA("Part") and not temptable.started.ant and not temptable.started.vicious and kocmoc.toggles.autofarm and not temptable.converting and not temptable.planting then
  3672.         if v.Name == "C" and kocmoc.toggles.farmdigital then
  3673.             task.wait(1.25)
  3674.                
  3675.         end
  3676.     end
  3677. end) ]]
  3678.  
  3679. task.spawn(function()
  3680.     while task.wait() do
  3681.         temptable.magnitude = 50
  3682.         if player.Character:FindFirstChild("ProgressLabel", true) then
  3683.             local pollenprglbl = player.Character:FindFirstChild("ProgressLabel", true)
  3684.             local maxpollen = tonumber(pollenprglbl.Text:match("%d+$"))
  3685.             local pollencount = player.CoreStats.Pollen.Value
  3686.             temptable.pollenpercentage = pollencount / maxpollen * 100
  3687.             fieldselected = game.Workspace.FlowerZones[kocmoc.vars.field]
  3688.  
  3689.             if kocmoc.toggles.autouseconvertors then
  3690.                 if tonumber(temptable.pollenpercentage) >= (kocmoc.vars.convertat - (kocmoc.vars.autoconvertWaitTime)) then
  3691.                     if not temptable.consideringautoconverting then
  3692.                         temptable.consideringautoconverting = true
  3693.                         task.spawn(function()
  3694.                             task.wait(kocmoc.vars.autoconvertWaitTime)
  3695.                             if tonumber(temptable.pollenpercentage) >= (kocmoc.vars.convertat - (kocmoc.vars.autoconvertWaitTime)) then
  3696.                                 useConvertors()
  3697.                             end
  3698.                             temptable.consideringautoconverting = false
  3699.                         end)
  3700.                     end
  3701.                 end
  3702.             end
  3703.  
  3704.             if kocmoc.toggles.autofarm then
  3705.                 temptable.usegumdropsforquest = false
  3706.                 if kocmoc.toggles.autodoquest and player.PlayerGui.ScreenGui.Menus.Children.Quests.Content:FindFirstChild("Frame") then
  3707.                     for i, v in next, player.PlayerGui.ScreenGui.Menus.Children.Quests:GetDescendants() do
  3708.                         if v.Name == "Description" and v.Parent and v.Parent.Parent then
  3709.                             local text = v.Text
  3710.                             local questName = v.Parent.Parent.TitleBar.Text
  3711.                             local pollentypes = {
  3712.                                 "White Pollen", "Red Pollen", "Blue Pollen", "Blue Flowers", "Red Flowers", "White Flowers"
  3713.                             }
  3714.                             if (kocmoc.toggles.buckobeequests and questName:find("Bucko Bee")) or (kocmoc.toggles.rileybeequests and questName:find("Riley Bee")) or (kocmoc.toggles.polarbearquests and questName:find("Polar Bear")) or (kocmoc.toggles.brownbearquests and questName:find("Brown Bear")) or (kocmoc.toggles.blackbearquests and questName:find("Black Bear")) or (kocmoc.toggles.allquests and not questName:find("Bear:") and not questName:find("Bee:")) then
  3715.                                 if not string.find(v.Text, "Puffshroom") then
  3716.                                     if text:find(" Goo ") then
  3717.                                         temptable.usegumdropsforquest = true
  3718.                                         if text:find (" Goo " .. " Comepleted!") then
  3719.                                             temptable.usegumdropsforquest = false
  3720.                                         end
  3721.                                     end
  3722.                                     if api.returnvalue(fieldstable, text) and not string.find(v.Text, "Complete!") and not api.findvalue(kocmoc.blacklistedfields, api.returnvalue(fieldstable, text)) then
  3723.                                         d = api.returnvalue(fieldstable, text)
  3724.                                         fieldselected = game.Workspace.FlowerZones[d]
  3725.                                         break
  3726.                                     elseif api.returnvalue(pollentypes, text) and not string.find(v.Text, "Complete!") then
  3727.                                         d = api.returnvalue(pollentypes, text)
  3728.                                         if d == "Blue Flowers" or d == "Blue Pollen" then
  3729.                                             fieldselected = game.Workspace.FlowerZones[kocmoc.bestfields.blue]
  3730.                                             break
  3731.                                         elseif d == "White Flowers" or d == "White Pollen" then
  3732.                                             fieldselected = game.Workspace.FlowerZones[kocmoc.bestfields.white]
  3733.                                             break
  3734.                                         elseif d == "Red Flowers" or d == "Red Pollen" then
  3735.                                             fieldselected = game.Workspace.FlowerZones[kocmoc.bestfields.red]
  3736.                                             break
  3737.                                         end
  3738.                                     elseif questName:find("Bee") and string.find(text, "Feed") and not string.find(text, "Complete!") and not v:FindFirstChild("done") then
  3739.                                         local amount, kind = unpack((text:sub(6, text:find("to")-2)):split(" "))
  3740.                                         if amount and kind then
  3741.                                             if kind == "Blueberries" then
  3742.                                                 game:GetService("ReplicatedStorage").Events.ConstructHiveCellFromEgg:InvokeServer(5, 3, "Blueberry", amount, false)
  3743.                                             elseif kind == "Strawberries" then
  3744.                                                 game:GetService("ReplicatedStorage").Events.ConstructHiveCellFromEgg:InvokeServer(5, 3, "Strawberry", amount, false)
  3745.                                             end                                            
  3746.                                             local done = Instance.new("BoolValue", v)
  3747.                                             done.Name = "done"
  3748.                                             break
  3749.                                         end
  3750.                                     elseif string.find(text, "Ants.") and not string.find(text, "Complete!") then
  3751.                                         if rtsg().Eggs.AntPass == 0 and kocmoc.toggles.buyantpass then
  3752.                                             game.ReplicatedStorage.Events.ToyEvent:FireServer("Ant Pass Dispenser")
  3753.                                             task.wait(0.5)
  3754.                                         end
  3755.                                         if not game.Workspace.Toys["Ant Challenge"].Busy.Value and rtsg().Eggs.AntPass > 0 then
  3756.                                             if kocmoc.vars.questcolorprefer == "Any NPC" then
  3757.                                                 farmant()
  3758.                                             else
  3759.                                                 if questName:find(kocmoc.vars.questcolorprefer) then
  3760.                                                     farmant()
  3761.                                                 end
  3762.                                             end
  3763.                                         end
  3764.                                     end
  3765.                                 end
  3766.                             end
  3767.                         end
  3768.                         if i == #player.PlayerGui.ScreenGui.Menus.Children.Quests:GetDescendants() then
  3769.                             if kocmoc.toggles.followplayer then
  3770.                                 local playerToFollow = game.Players:FindFirstChild(kocmoc.vars.playertofollow)
  3771.                                 if playerToFollow and playerToFollow.Character and playerToFollow.Character:FindFirstChild("HumanoidRootPart") then
  3772.                                     fieldselected = findField(playerToFollow.Character.HumanoidRootPart.CFrame.p)
  3773.                                     if not fieldselected or tostring(fieldselected) == "Ant Field" then
  3774.                                         fieldselected = game.Workspace.FlowerZones[kocmoc.vars.field]
  3775.                                     end
  3776.                                 end
  3777.                             else
  3778.                                 fieldselected = game.Workspace.FlowerZones[kocmoc.vars.field]
  3779.                             end
  3780.                         end
  3781.                     end
  3782.                 else
  3783.                     if kocmoc.toggles.followplayer then
  3784.                         local playerToFollow = game.Players:FindFirstChild(kocmoc.vars.playertofollow)
  3785.                         if playerToFollow and playerToFollow.Character and playerToFollow.Character:FindFirstChild("HumanoidRootPart") then
  3786.                             fieldselected = findField(playerToFollow.Character.HumanoidRootPart.CFrame.p)
  3787.                             if not fieldselected then
  3788.                                 fieldselected = game.Workspace.FlowerZones[kocmoc.vars.field]
  3789.                             end
  3790.                         end
  3791.                     else
  3792.                         fieldselected = game.Workspace.FlowerZones[kocmoc.vars.field]
  3793.                     end
  3794.                 end
  3795.                 local colorGroup = fieldselected:FindFirstChild("ColorGroup")
  3796.                 if kocmoc.toggles.autoequipmask then
  3797.                     if colorGroup then
  3798.                         if colorGroup.Value == "Red" then
  3799.                             maskequip("Demon Mask")
  3800.                         elseif colorGroup and colorGroup.Value == "Blue" then
  3801.                             maskequip("Diamond Mask")
  3802.                         else
  3803.                             maskequip("Gummy Mask")
  3804.                         end
  3805.                     end
  3806.                 end
  3807.  
  3808.                 local onlyonesprinkler = false
  3809.  
  3810.                 fieldpos = CFrame.new(
  3811.                     fieldselected.Position.X,
  3812.                     fieldselected.Position.Y + 3,
  3813.                     fieldselected.Position.Z
  3814.                 )
  3815.                 fieldposition = fieldselected.Position
  3816.                 if temptable.sprouts.detected and temptable.sprouts.coords and kocmoc.toggles.farmsprouts then
  3817.                     onlyonesprinkler = true
  3818.                     fieldposition = temptable.sprouts.coords.Position
  3819.                     fieldpos = temptable.sprouts.coords
  3820.                 end
  3821.                 if kocmoc.toggles.farmpuffshrooms and game.Workspace.Happenings.Puffshrooms:FindFirstChildOfClass("Model") then
  3822.                     local mythics = {}
  3823.                     local legendaries = {}
  3824.                     local epics = {}
  3825.                     local rares = {}
  3826.                     local commons = {}
  3827.  
  3828.                     local function isPuffInField(stem)
  3829.                         if stem and player.Character:FindFirstChild("HumanoidRootPart") then
  3830.                             return findField(stem.CFrame.p) == findField(api.humanoidrootpart().CFrame.p)
  3831.                         end
  3832.                         return false
  3833.                     end
  3834.  
  3835.                     for _,puffshroom in pairs(game.Workspace.Happenings.Puffshrooms:GetChildren()) do
  3836.                         local stem = puffshroom:FindFirstChild("Puffball Stem")
  3837.                         if stem then
  3838.                             if string.find(puffshroom.Name, "Mythic") then
  3839.                                 table.insert(mythics, {stem, isPuffInField(stem)})
  3840.                             elseif string.find(puffshroom.Name, "Legendary") then
  3841.                                 table.insert(legendaries, {stem, isPuffInField(stem)})
  3842.                             elseif string.find(puffshroom.Name, "Epic") then
  3843.                                 table.insert(epics, {stem, isPuffInField(stem)})
  3844.                             elseif string.find(puffshroom.Name, "Rare") then
  3845.                                 table.insert(rares, {stem, isPuffInField(stem)})
  3846.                             else
  3847.                                 table.insert(commons, {stem, isPuffInField(stem)})
  3848.                             end
  3849.                         end
  3850.                     end
  3851.  
  3852.                     if #mythics ~= 0 then
  3853.                         for _,v in pairs(mythics) do
  3854.                             local stem, infield = unpack(v)
  3855.                             fieldpos = stem.CFrame
  3856.                         end
  3857.                         for _,v in pairs(mythics) do
  3858.                             local stem, infield = unpack(v)
  3859.                             if infield then
  3860.                                 fieldpos = stem.CFrame
  3861.                             end
  3862.                         end
  3863.                     elseif #legendaries ~= 0 then
  3864.                         for _,v in pairs(legendaries) do
  3865.                             local stem, infield = unpack(v)
  3866.                             fieldpos = stem.CFrame
  3867.                         end
  3868.                         for _,v in pairs(legendaries) do
  3869.                             local stem, infield = unpack(v)
  3870.                             if infield then
  3871.                                 fieldpos = stem.CFrame
  3872.                             end
  3873.                         end
  3874.                     elseif #epics ~= 0 then
  3875.                         for _,v in pairs(epics) do
  3876.                             local stem, infield = unpack(v)
  3877.                             fieldpos = stem.CFrame
  3878.                         end
  3879.                         for _,v in pairs(epics) do
  3880.                             local stem, infield = unpack(v)
  3881.                             if infield then
  3882.                                 fieldpos = stem.CFrame
  3883.                             end
  3884.                         end
  3885.                     elseif #rares ~= 0 then
  3886.                         for _,v in pairs(rares) do
  3887.                             local stem, infield = unpack(v)
  3888.                             fieldpos = stem.CFrame
  3889.                         end
  3890.                         for _,v in pairs(rares) do
  3891.                             local stem, infield = unpack(v)
  3892.                             if infield then
  3893.                                 fieldpos = stem.CFrame
  3894.                             end
  3895.                         end
  3896.                     elseif #commons ~= 0 then
  3897.                         fieldpos = api.getbiggestmodel(game.Workspace.Happenings.Puffshrooms):FindFirstChild("Puffball Stem").CFrame
  3898.                         for _,v in pairs(commons) do
  3899.                             local stem, infield = unpack(v)
  3900.                             if infield then
  3901.                                 fieldpos = stem.CFrame
  3902.                             end
  3903.                         end
  3904.                     end
  3905.  
  3906.                     fieldposition = fieldpos.Position
  3907.                     temptable.magnitude = 35
  3908.                     onlyonesprinkler = true
  3909.  
  3910.                     fieldselected = findField(fieldposition)
  3911.                     if fieldselected then
  3912.                         local colorGroup = fieldselected:FindFirstChild("ColorGroup")
  3913.                         if kocmoc.toggles.autoequipmask then
  3914.                             if colorGroup then
  3915.                                 if colorGroup.Value == "Red" then
  3916.                                     maskequip("Demon Mask")
  3917.                                 elseif colorGroup and colorGroup.Value == "Blue" then
  3918.                                     maskequip("Diamond Mask")
  3919.                                 else
  3920.                                     maskequip("Gummy Mask")
  3921.                                 end
  3922.                             end
  3923.                         end
  3924.                     end
  3925.                 end
  3926.                
  3927.                 if kocmoc.toggles.convertballoons and not temptable.planting and not temptable.started.vicious and kocmoc.vars.convertballoonpercent and gethiveballoon() and getBuffTime("8083443467") < tonumber(kocmoc.vars.convertballoonpercent) / 100 then
  3928.                     temptable.tokensfarm = false
  3929.                     api.tween(2, player.SpawnPos.Value * CFrame.fromEulerAnglesXYZ(0, 110, 0) + Vector3.new(0, 0, 9))
  3930.                     task.wait(2)
  3931.                     api.humanoidrootpart().Velocity = Vector3.new(0, 0, 0)
  3932.                     api.tween(0.1, player.SpawnPos.Value * CFrame.fromEulerAnglesXYZ(0, 110, 0) + Vector3.new(0, 0, 9))
  3933.                     temptable.converting = true
  3934.                     repeat converthoney() until player.CoreStats.Pollen.Value == 0
  3935.                     if kocmoc.toggles.convertballoons and gethiveballoon() then
  3936.                         task.wait(6)
  3937.                         repeat
  3938.                             task.wait()
  3939.                             converthoney()
  3940.                         until gethiveballoon() == false or not kocmoc.toggles.convertballoons
  3941.                     end
  3942.                     temptable.converting = false
  3943.                     temptable.act = temptable.act + 1
  3944.                     task.wait(6)
  3945.                     if kocmoc.toggles.autoant and not game.Workspace.Toys["Ant Challenge"].Busy.Value and rtsg().Eggs.AntPass > 0 then
  3946.                         farmant()
  3947.                     end
  3948.                     if kocmoc.toggles.autoquest then
  3949.                         makequests()
  3950.                     end
  3951.                     if kocmoc.toggles.autokillmobs then
  3952.                         if tick() - temptable.lastmobkill >= kocmoc.vars.monstertimer * 60 then
  3953.                             temptable.lastmobkill = tick()
  3954.                             temptable.started.monsters = true
  3955.                             temptable.act = 0
  3956.                             killmobs()
  3957.                             temptable.started.monsters = false
  3958.                         end
  3959.                     end
  3960.                     if kocmoc.vars.resetbeenergy then
  3961.                         if temptable.act2 >= kocmoc.vars.resettimer then
  3962.                             temptable.started.monsters = true
  3963.                             temptable.act2 = 0
  3964.                             repeat
  3965.                                 task.wait()
  3966.                             until player.Character and player.Character:FindFirstChild("Humanoid") and player.Character.Humanoid.Health > 0
  3967.                             player.Character:BreakJoints()
  3968.                             task.wait(6.5)
  3969.                             repeat
  3970.                                 task.wait()
  3971.                             until player.Character
  3972.                             player.Character:BreakJoints()
  3973.                             task.wait(6.5)
  3974.                             repeat
  3975.                                 task.wait()
  3976.                             until player.Character
  3977.                             temptable.started.monsters = false
  3978.                         end
  3979.                     end
  3980.                 end
  3981.                 if tonumber(temptable.pollenpercentage) < tonumber(kocmoc.vars.convertat) or kocmoc.toggles.disableconversion and not temptable.planting then
  3982.                     if not temptable.tokensfarm then
  3983.                         api.tween(2, fieldpos)
  3984.                         task.wait(2)
  3985.                         temptable.tokensfarm = true
  3986.                         if kocmoc.toggles.autosprinkler then
  3987.                             makesprinklers(fieldposition, onlyonesprinkler)
  3988.                             task.wait(0.5)
  3989.                             playeractivescommand:FireServer({["Name"] = "Sprinkler Builder"})
  3990.                         end
  3991.                     else
  3992.                         if not game.Workspace.MonsterSpawners.CoconutCrab.Attachment.TimerGui.TimerLabel.Visible and not temptable.started.vicious and not temptable.started.monsters and not temptable.started.windy and findField(fieldposition).Name == "Coconut Field" then
  3993.                             maskequip("Demon Mask")
  3994.                             temptable.started.crab = true
  3995.                             while not game.Workspace.MonsterSpawners.CoconutCrab.Attachment.TimerGui.TimerLabel.Visible and not temptable.started.vicious and not temptable.started.monsters and not temptable.started.windy and findField(fieldposition).Name == "Coconut Field" do
  3996.                                 task.wait()
  3997.                                 if api.humanoidrootpart() then
  3998.                                     api.humanoidrootpart().CFrame = CFrame.new(-307.52117919922, 110.11863250732, 467.86791992188)
  3999.                                 end
  4000.                             end
  4001.                         end
  4002.                         temptable.started.crab = false
  4003.                         if kocmoc.toggles.killmondo then
  4004.                             while kocmoc.toggles.killmondo and game.Workspace.Monsters:FindFirstChild("Mondo Chick (Lvl 8)") and not temptable.started.vicious and not temptable.started.monsters and not temptable.started.windy do
  4005.                                 temptable.started.mondo = true
  4006.                                 while game.Workspace.Monsters:FindFirstChild("Mondo Chick (Lvl 8)") and kocmoc.toggles.killmondo do
  4007.                                     disableall()
  4008.                                     game.Workspace.Map.Ground.HighBlock.CanCollide = false
  4009.                                     mondopition = game.Workspace.Monsters["Mondo Chick (Lvl 8)"].Head.Position
  4010.                                     api.tween(1, CFrame.new(
  4011.                                         mondopition.x,
  4012.                                         mondopition.y - 40,
  4013.                                         mondopition.z)
  4014.                                     )
  4015.                                     task.wait(1)
  4016.                                     temptable.float = true
  4017.                                 end
  4018.                                 task.wait(.5)
  4019.                                 game.Workspace.Map.Ground.HighBlock.CanCollide = true
  4020.                                 temptable.float = false
  4021.                                 api.tween(.5, CFrame.new(73.2, 176.35, -167))
  4022.                                 task.wait(1)
  4023.                                 for i = 0, 50 do
  4024.                                     gettoken(CFrame.new(73.2, 176.35, -167).Position)
  4025.                                 end
  4026.                                 enableall()
  4027.                                 api.tween(2, fieldpos)
  4028.                                 temptable.started.mondo = false
  4029.                             end
  4030.                         end
  4031.                         if lastfieldpos ~= fieldpos then
  4032.                             task.wait(0.5)
  4033.                             gettoken()
  4034.                         end
  4035.                         if (fieldposition - api.humanoidrootpart().Position).magnitude > temptable.magnitude and findField(api.humanoidrootpart().CFrame.p) ~= findField(fieldposition) and not temptable.planting and not temptable.doingcrosshairs and not temptable.doingbubbles then
  4036.                             api.tween(0.1, fieldpos)
  4037.                             task.spawn(function()
  4038.                                 task.wait(0.5)
  4039.                                 if kocmoc.toggles.autosprinkler then
  4040.                                     makesprinklers(fieldposition, onlyonesprinkler)
  4041.                                 end
  4042.                             end)
  4043.                         end
  4044.                         getprioritytokens()
  4045.                         if kocmoc.toggles.farmflame then
  4046.                             getflame()
  4047.                         end
  4048.                         if kocmoc.toggles.avoidmobs then
  4049.                             avoidmob()
  4050.                         end
  4051.                         if kocmoc.toggles.farmclosestleaf then
  4052.                             closestleaf()
  4053.                         end
  4054.                         if kocmoc.toggles.farmfireflies then
  4055.                             getfireflies()
  4056.                         end
  4057.                         if kocmoc.toggles.farmsparkles then
  4058.                             getsparkles()
  4059.                         end
  4060.                         if kocmoc.toggles.farmclouds then
  4061.                             getcloud()
  4062.                         end
  4063.                         if kocmoc.toggles.farmunderballoons then
  4064.                             getballoons()
  4065.                         end
  4066.                         if not kocmoc.toggles.donotfarmtokens then
  4067.                             gettoken(nil, kocmoc.toggles.newtokencollection)
  4068.                         end
  4069.                         if not kocmoc.toggles.farmflower then
  4070.                             getflower()
  4071.                         end
  4072.                         if kocmoc.toggles.farmpuffshrooms and game.Workspace.Happenings.Puffshrooms:FindFirstChildOfClass("Model") then
  4073.                             getpuff()
  4074.                         end
  4075.                         if kocmoc.toggles.autox4 then
  4076.                             doautox4()
  4077.                         end
  4078.                         if temptable.usegumdropsforquest and kocmoc.toggles.usegumdropsforquest and tick() - temptable.lastgumdropuse > 3 then
  4079.                             temptable.lastgumdropuse = tick()
  4080.                             playeractivescommand:FireServer({["Name"] = "Gumdrops"})
  4081.                         end
  4082.                     end
  4083.                 elseif tonumber(temptable.pollenpercentage) >= tonumber(kocmoc.vars.convertat) and not temptable.started.vicious and not temptable.planting then
  4084.                     if not kocmoc.toggles.disableconversion then
  4085.                         temptable.tokensfarm = false
  4086.                         api.tween(2, player.SpawnPos.Value * CFrame.fromEulerAnglesXYZ(0, 110, 0) + Vector3.new(0, 0, 9))
  4087.                         task.wait(2)
  4088.                         api.humanoidrootpart().Velocity = Vector3.new(0, 0, 0)
  4089.                         api.tween(0.1, player.SpawnPos.Value * CFrame.fromEulerAnglesXYZ(0, 110, 0) + Vector3.new(0, 0, 9))
  4090.                         temptable.converting = true
  4091.                         repeat converthoney() until player.CoreStats.Pollen.Value == 0
  4092.                         if kocmoc.toggles.convertballoons and kocmoc.vars.convertballoonpercent == 0 and gethiveballoon() then
  4093.                             task.wait(6)
  4094.                             repeat
  4095.                                 task.wait()
  4096.                                 converthoney()
  4097.                             until gethiveballoon() == false or not kocmoc.toggles.convertballoons
  4098.                         end
  4099.                         equiptool(kocmoc.vars.deftool)
  4100.                         temptable.converting = false
  4101.                         temptable.act = temptable.act + 1
  4102.                         task.wait(6)
  4103.                         if kocmoc.toggles.autoant and not game.Workspace.Toys["Ant Challenge"].Busy.Value and rtsg().Eggs.AntPass > 0 then
  4104.                             farmant()
  4105.                         end
  4106.                         if kocmoc.toggles.autoquest then
  4107.                             makequests()
  4108.                         end
  4109.                         if kocmoc.toggles.autokillmobs then
  4110.                             if tick() - temptable.lastmobkill >= kocmoc.vars.monstertimer * 60 then
  4111.                                 temptable.lastmobkill = tick()
  4112.                                 temptable.started.monsters = true
  4113.                                 temptable.act = 0
  4114.                                 killmobs()
  4115.                                 temptable.started.monsters = false
  4116.                             end
  4117.                         end
  4118.                         if kocmoc.vars.resetbeenergy then
  4119.                             if temptable.act2 >= kocmoc.vars.resettimer then
  4120.                                 temptable.started.monsters = true
  4121.                                 temptable.act2 = 0
  4122.                                 repeat
  4123.                                     task.wait()
  4124.                                 until player.Character and player.Character:FindFirstChild("Humanoid") and player.Character.Humanoid.Health > 0
  4125.                                 player.Character:BreakJoints()
  4126.                                 task.wait(6.5)
  4127.                                 repeat
  4128.                                     task.wait()
  4129.                                 until player.Character
  4130.                                 player.Character:BreakJoints()
  4131.                                 task.wait(6.5)
  4132.                                 repeat
  4133.                                     task.wait()
  4134.                                 until player.Character
  4135.                                 temptable.started.monsters = false
  4136.                             end
  4137.                         end
  4138.                     end
  4139.                 end
  4140.                 lastfieldpos = fieldpos
  4141.             end
  4142.         end
  4143.     end
  4144. end)
  4145.  
  4146. task.spawn(function()
  4147.     pcall(function()
  4148.     while task.wait(1) do
  4149.         if kocmoc.toggles.killvicious and temptable.detected.vicious and not temptable.converting and not temptable.started.monsters and not game.Workspace.Toys["Ant Challenge"].Busy.Value then
  4150.             temptable.started.vicious = true
  4151.             disableall()
  4152.             local vichumanoid = api.humanoidrootpart()
  4153.             for i, v in next, game.workspace.Particles:GetChildren() do
  4154.                 for x in string.gmatch(v.Name, "Vicious") do
  4155.                     if string.find(v.Name, "Vicious") then
  4156.                         api.tween(1, CFrame.new(v.Position.x, v.Position.y, v.Position.z))
  4157.                         task.wait(1)
  4158.                         api.tween(0.5, CFrame.new(v.Position.x, v.Position.y, v.Position.z))
  4159.                         task.wait(.5)
  4160.                     end
  4161.                 end
  4162.             end
  4163.             for i, v in next, game.workspace.Particles:GetChildren() do
  4164.                 for x in string.gmatch(v.Name, "Vicious") do
  4165.                     while kocmoc.toggles.killvicious and
  4166.                         temptable.detected.vicious do
  4167.                         task.wait()
  4168.                         if string.find(v.Name, "Vicious") then
  4169.                             for i = 1, 4 do
  4170.                                 temptable.float = true
  4171.                                 vichumanoid.CFrame =
  4172.                                     CFrame.new(v.Position.x + 10, v.Position.y,
  4173.                                                v.Position.z)
  4174.                                 task.wait(.3)
  4175.                             end
  4176.                         end
  4177.                     end
  4178.                 end
  4179.             end
  4180.             enableall()
  4181.             task.wait(1)
  4182.             temptable.float = false
  4183.             temptable.started.vicious = false
  4184.         end
  4185.     end
  4186. end)
  4187. end)
  4188.  
  4189. task.spawn(function()
  4190.     while task.wait() do
  4191.         if kocmoc.toggles.killwindy and temptable.detected.windy and not temptable.converting and not temptable.started.vicious and not temptable.started.mondo and not temptable.started.monsters and not game.Workspace.Toys["Ant Challenge"].Busy.Value then
  4192.             temptable.started.windy = true
  4193.             local windytokendb = false
  4194.             local windytokentp = false
  4195.             local wlvl = ""
  4196.             local aw = false
  4197.             local awb = false -- some variable for autowindy, yk?
  4198.             disableall()
  4199.             local oldmask = rtsg()["EquippedAccessories"]["Hat"]
  4200.             maskequip("Demon Mask")
  4201.             while kocmoc.toggles.killwindy and temptable.detected.windy do
  4202.                 if not aw then
  4203.                     for i, v in pairs(workspace.Monsters:GetChildren()) do
  4204.                         if string.find(v.Name, "Windy") then
  4205.                             wlvl = v.Name
  4206.                             aw = true -- we found windy!
  4207.                         end
  4208.                     end
  4209.                 end
  4210.                 if aw then
  4211.                     for i, v in pairs(workspace.Monsters:GetChildren()) do
  4212.                         if string.find(v.Name, "Windy") then
  4213.                             if v.Name ~= wlvl then
  4214.                                 temptable.float = false
  4215.                                 task.wait(2)
  4216.                                 api.humanoidrootpart().CFrame = temptable.gacf(temptable.windy, 5)
  4217.                                 task.wait(2)
  4218.                                 for i = 1, 3 do
  4219.                                     gettoken(api.humanoidrootpart().Position)
  4220.                                 end -- collect tokens :yessir:
  4221.                                 wlvl = v.Name
  4222.                             end
  4223.                         end
  4224.                     end
  4225.                 end
  4226.                 if not awb then
  4227.                     api.tween(1, temptable.gacf(temptable.windy, 5))
  4228.                     task.wait(2)
  4229.                     api.tween(1, temptable.gacf(temptable.windy, 5))
  4230.                     task.wait(2)
  4231.                     awb = true
  4232.                 end
  4233.                 if awb and temptable.windy and temptable.windy.Name == "Windy" then
  4234.                     task.spawn(function()
  4235.                         if not windytokendb then
  4236.                             for _,token in pairs(workspace.Collectibles:GetChildren()) do
  4237.                                 decal = token:FindFirstChildOfClass("Decal")
  4238.                                 if decal and decal.Texture == "rbxassetid://1629547638" and api.humanoidrootpart() then
  4239.                                     windytokendb = true
  4240.                                     windytokentp = true
  4241.                                     task.wait()
  4242.                                     for i=0,20 do
  4243.                                         api.humanoidrootpart().CFrame = token.CFrame
  4244.                                         task.wait()
  4245.                                     end
  4246.                                     windytokentp = false
  4247.                                     task.wait(3)
  4248.                                     windytokendb = false
  4249.                                     break
  4250.                                 end
  4251.                             end
  4252.                         end
  4253.                     end)
  4254.                     if not windytokentp and api.humanoidrootpart() then
  4255.                         api.humanoidrootpart().CFrame = temptable.gacf(temptable.windy, 25)
  4256.                         temptable.float = true
  4257.                     end
  4258.                     task.wait()
  4259.                 end
  4260.             end
  4261.             maskequip(oldmask)
  4262.             enableall()
  4263.             temptable.float = false
  4264.             temptable.started.windy = false
  4265.         end
  4266.     end
  4267. end)
  4268.  
  4269. task.spawn(function()
  4270.     while task.wait(0.05) do
  4271.         if kocmoc.toggles.autodig then
  4272.             pcall(function()
  4273.             if player then
  4274.                 if player.Character then
  4275.                     if player.Character:FindFirstChildOfClass("Tool") then
  4276.                         if player.Character:FindFirstChildOfClass("Tool"):FindFirstChild("ClickEvent", true) then
  4277.                             tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool") or nil
  4278.                             local tool = player.Character:FindFirstChildOfClass("Tool")
  4279.                         end
  4280.                     end
  4281.                 end
  4282.                 if tool then
  4283.                 getsenv(tool.ClientScriptMouse).collectStart(game:GetService("Players").LocalPlayer:GetMouse())
  4284.                 end
  4285.                 end
  4286.                 collectorSteal()
  4287.                 workspace.NPCs.Onett.Onett["Porcelain Dipper"].ClickEvent:FireServer()
  4288.             end)
  4289.         end
  4290.     end
  4291. end)
  4292.  
  4293. task.spawn(function()
  4294.     while task.wait() do
  4295.         --[[ if kocmoc.toggles.traincrab and api.humanoidrootpart() then
  4296.             api.humanoidrootpart().CFrame = CFrame.new(-307.52117919922, 110.11863250732, 467.86791992188)
  4297.         end
  4298.         if kocmoc.toggles.trainsnail and api.humanoidrootpart() then
  4299.             local fd = game.Workspace.FlowerZones["Stump Field"]
  4300.             api.humanoidrootpart().CFrame = CFrame.new(
  4301.                 fd.Position.X,
  4302.                 fd.Position.Y - 20,
  4303.                 fd.Position.Z
  4304.             )
  4305.         end ]]
  4306.         if kocmoc.toggles.farmrares and not temptable.started.crab and not temptable.started.ant then
  4307.             for k, v in next, game.workspace.Collectibles:GetChildren() do
  4308.                 if v.CFrame.YVector.Y == 1 then
  4309.                     if v.Transparency == 0 then
  4310.                         decal = v:FindFirstChildOfClass("Decal")
  4311.                         for e, r in next, kocmoc.rares do
  4312.                             if decal.Texture == r or decal.Texture == "rbxassetid://" .. r then
  4313.                                 api.humanoidrootpart().CFrame = v.CFrame
  4314.                                 break
  4315.                             end
  4316.                         end
  4317.                     end
  4318.                 end
  4319.             end
  4320.         end -- removed below due to it looping shit so it lags and wont work properly
  4321.         --[[if kocmoc.toggles.cpusaver then
  4322.             local InputService = game:GetService'UserInputService'
  4323.             local RunService = game:GetService'RunService'
  4324.             _TARGETFPS = 20
  4325.        
  4326.             local OldLevel = settings().Rendering.QualityLevel
  4327.             RunService:Set3dRenderingEnabled(false)
  4328.            
  4329.             settings().Rendering.QualityLevel = 1
  4330.        
  4331.             InputService.WindowFocused:Connect(function()
  4332.                 RunService:Set3dRenderingEnabled(true)
  4333.                 settings().Rendering.QualityLevel = OldLevel
  4334.                 setfpscap(60)
  4335.             end)
  4336.        
  4337.             InputService.WindowFocusReleased:Connect(function()
  4338.                 OldLevel = settings().Rendering.QualityLevel
  4339.        
  4340.                 RunService:Set3dRenderingEnabled(false)
  4341.                 settings().Rendering.QualityLevel = 1
  4342.                 setfpscap(_TARGETFPS)
  4343.             end)
  4344.        
  4345.             setfpscap(_TARGETFPS)
  4346.         end]]
  4347.     end
  4348. end)
  4349.  
  4350. local InputService = game:GetService'UserInputService'
  4351. local RunService = game:GetService'RunService'
  4352. _TARGETFPS = 20
  4353.  
  4354. local OldLevel = settings().Rendering.QualityLevel
  4355.  
  4356. local resume = function()
  4357.     if kocmoc.toggles.cpusaver then
  4358.     RunService:Set3dRenderingEnabled(true)
  4359.     settings().Rendering.QualityLevel = OldLevel
  4360.     setfpscap(60)
  4361.     end
  4362. end
  4363.  
  4364. local pause = function()
  4365.     if kocmoc.toggles.cpusaver then
  4366.     OldLevel = settings().Rendering.QualityLevel
  4367.  
  4368.     RunService:Set3dRenderingEnabled(false)
  4369.     settings().Rendering.QualityLevel = 1
  4370.     setfpscap(_TARGETFPS)
  4371.     end
  4372. end
  4373.  
  4374. local con0 = InputService.WindowFocusReleased:Connect(pause)
  4375. local con1 = InputService.WindowFocused:Connect(resume)
  4376. local con2 = InputService.InputBegan:Connect(function(input) if paused and input.UserInputState == Enum.UserInputState.Begin and input.UserInputType == Enum.UserInputType.Keyboard then resume(); end; end)
  4377.  
  4378. local findcommando = function()
  4379.     for i, v in ipairs(workspace.Monsters:GetChildren()) do
  4380.         if v.Name:find('Commando') then
  4381.             return true
  4382.         end
  4383.     end
  4384. end
  4385.  
  4386. local findsnow = function()
  4387.     for i, v in ipairs(workspace.Monsters:GetChildren()) do
  4388.         if v.Name:find('Snow') then
  4389.             return true
  4390.         end
  4391.     end
  4392. end
  4393.  
  4394. game.Workspace.Collectibles.ChildAdded:Connect(function(token) -- kometa
  4395.     if kocmoc.toggles.trainsnail then
  4396.         disableall()
  4397.         for i, v in pairs(workspace.Monsters:GetChildren()) do
  4398.             if string.find(v.Name, "Snail") then
  4399.                 farmcombattokens(token, CFrame.new(game.Workspace.FlowerZones['Stump Field'].Position.X, game.Workspace.FlowerZones['Stump Field'].Position.Y-20, game.Workspace.FlowerZones['Stump Field'].Position.Z), 'snail')
  4400.             else
  4401.                 continue
  4402.             end
  4403.         end
  4404.     end
  4405.     if kocmoc.toggles.traincrab then
  4406.         disableall()
  4407.         for i, v in pairs(workspace.Monsters:GetChildren()) do
  4408.             if string.find(v.Name, "Coconut Crab") then
  4409.                 cc = true -- we found coco crab!
  4410.                 farmcombattokens(token, CFrame.new(-256, 110, 475), 'crab')
  4411.             else
  4412.                 continue
  4413.             end
  4414.         end
  4415.     end
  4416.     if kocmoc.toggles.killmondo and game.Workspace.Monsters:FindFirstChild("Mondo Chick (Lvl 8)") then --sakata xd lol
  4417.         farmcombattokens(token, CFrame.new(game.Workspace.FlowerZones['Mountain Top Field'].Position.X, game.Workspace.FlowerZones['Mountain Top Field'].Position.Y-40, game.Workspace.FlowerZones['Mountain Top Field'].Position.Z), 'mondo')
  4418.     end
  4419.     if kocmoc.toggles.traincommando and findcommando() then
  4420.         farmcombattokens(token, CFrame.new(api.humanoidrootpart().Position), 'commando')
  4421.     end
  4422.     if kocmoc.toggles.trainsnow and findsnow() then
  4423.         farmcombattokens(token, CFrame.new(api.humanoidrootpart().Position), 'snowbear')
  4424.     end
  4425. end)
  4426.  
  4427. game.Workspace.Particles.Folder2.ChildAdded:Connect(function(child)
  4428.     if child.Name == "Sprout" then
  4429.         temptable.sprouts.detected = true
  4430.         temptable.sprouts.coords = child.CFrame
  4431.     end
  4432. end)
  4433. game.Workspace.Particles.Folder2.ChildRemoved:Connect(function(child)
  4434.     if child.Name == "Sprout" then
  4435.         task.wait(30)
  4436.         temptable.sprouts.detected = false
  4437.         temptable.sprouts.coords = ""
  4438.     end
  4439. end)
  4440.  
  4441. Workspace.Particles.ChildAdded:Connect(function(instance)
  4442.     if string.find(instance.Name, "Vicious") then
  4443.         temptable.detected.vicious = true
  4444.     end
  4445. end)
  4446. Workspace.Particles.ChildRemoved:Connect(function(instance)
  4447.     if string.find(instance.Name, "Vicious") then
  4448.         temptable.detected.vicious = false
  4449.     end
  4450. end)
  4451. game.Workspace.NPCBees.ChildAdded:Connect(function(v)
  4452.     if v.Name == "Windy" then
  4453.         task.wait(3)
  4454.         temptable.windy = v
  4455.         temptable.detected.windy = true
  4456.     end
  4457. end)
  4458. game.Workspace.NPCBees.ChildRemoved:Connect(function(v)
  4459.     if v.Name == "Windy" then
  4460.         task.wait(3)
  4461.         temptable.windy = nil
  4462.         temptable.detected.windy = false
  4463.     end
  4464. end)
  4465.  
  4466. task.spawn(function()
  4467.     while task.wait(0.1) do
  4468.         if not temptable.converting then
  4469.             if kocmoc.toggles.autosnowmachine then
  4470.                 game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Snow Machine")
  4471.             end
  4472.             if kocmoc.toggles.autosamovar then
  4473.                 game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Samovar")
  4474.                 platformm = game.Workspace.Toys.Samovar.Platform
  4475.                 for i, v in pairs(game.Workspace.Collectibles:GetChildren()) do
  4476.                     if (v.Position - platformm.Position).magnitude < 25 and
  4477.                         v.CFrame.YVector.Y == 1 then
  4478.                         api.humanoidrootpart().CFrame = v.CFrame
  4479.                     end
  4480.                 end
  4481.             end
  4482.             if kocmoc.toggles.autostockings then
  4483.                 game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Stockings")
  4484.                 platformm = game.Workspace.Toys.Stockings.Platform
  4485.                 for i, v in pairs(game.Workspace.Collectibles:GetChildren()) do
  4486.                     if (v.Position - platformm.Position).magnitude < 25 and
  4487.                         v.CFrame.YVector.Y == 1 then
  4488.                         api.humanoidrootpart().CFrame = v.CFrame
  4489.                     end
  4490.                 end
  4491.             end
  4492.             if kocmoc.toggles.autoonettart then
  4493.                 game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Onett's Lid Art")
  4494.                 platformm = game.Workspace.Toys["Onett's Lid Art"]
  4495.                                 .Platform
  4496.                 for i, v in pairs(game.Workspace.Collectibles:GetChildren()) do
  4497.                     if (v.Position - platformm.Position).magnitude < 25 and
  4498.                         v.CFrame.YVector.Y == 1 then
  4499.                         api.humanoidrootpart().CFrame = v.CFrame
  4500.                     end
  4501.                 end
  4502.             end
  4503.             if kocmoc.toggles.autocandles then
  4504.                 game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Honeyday Candles")
  4505.                 platformm = game.Workspace.Toys["Honeyday Candles"].Platform
  4506.                 for i, v in pairs(game.Workspace.Collectibles:GetChildren()) do
  4507.                     if (v.Position - platformm.Position).magnitude < 25 and
  4508.                         v.CFrame.YVector.Y == 1 then
  4509.                         api.humanoidrootpart().CFrame = v.CFrame
  4510.                     end
  4511.                 end
  4512.             end
  4513.             if kocmoc.toggles.autofeast then
  4514.                 game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Beesmas Feast")
  4515.                 platformm = game.Workspace.Toys["Beesmas Feast"]
  4516.                                 .Platform
  4517.                 for i, v in pairs(game.Workspace.Collectibles:GetChildren()) do
  4518.                     if (v.Position - platformm.Position).magnitude < 25 and
  4519.                         v.CFrame.YVector.Y == 1 then
  4520.                         api.humanoidrootpart().CFrame = v.CFrame
  4521.                     end
  4522.                 end
  4523.             end
  4524.             if kocmoc.toggles.autodonate then
  4525.                 if isWindshrineOnCooldown() == false then
  4526.                     donateToShrine(kocmoc.vars.donoItem, kocmoc.vars.donoAmount)
  4527.                 end
  4528.             end
  4529.         end
  4530.     end
  4531. end)
  4532.  
  4533. task.spawn(function()
  4534.     while task.wait(2) do
  4535.         temptable.runningfor = temptable.runningfor + 1
  4536.         temptable.honeycurrent = statsget().Totals.Honey
  4537.         if kocmoc.toggles.honeystorm then
  4538.             game.ReplicatedStorage.Events.ToyEvent:FireServer("Honeystorm")
  4539.         end
  4540.         if kocmoc.toggles.collectgingerbreads then
  4541.             game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Gingerbread House")
  4542.         end
  4543.         if kocmoc.toggles.autodispense then
  4544.             if kocmoc.dispensesettings.rj then
  4545.                 game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Free Royal Jelly Dispenser")
  4546.             end
  4547.             if kocmoc.dispensesettings.blub then
  4548.                 game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Blueberry Dispenser")
  4549.             end
  4550.             if kocmoc.dispensesettings.straw then
  4551.                 game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Strawberry Dispenser")
  4552.             end
  4553.             if kocmoc.dispensesettings.treat then
  4554.                 game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Treat Dispenser")
  4555.             end
  4556.             if kocmoc.dispensesettings.coconut then
  4557.                 game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Coconut Dispenser")
  4558.             end
  4559.             if kocmoc.dispensesettings.glue then
  4560.                 game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Glue Dispenser")
  4561.             end
  4562.         end
  4563.         if kocmoc.toggles.autoboosters then
  4564.             if kocmoc.dispensesettings.white then
  4565.                 game.ReplicatedStorage.Events.ToyEvent:FireServer("Field Booster")
  4566.             end
  4567.             if kocmoc.dispensesettings.red then
  4568.                 game.ReplicatedStorage.Events.ToyEvent:FireServer("Red Field Booster")
  4569.             end
  4570.             if kocmoc.dispensesettings.blue then
  4571.                 game.ReplicatedStorage.Events.ToyEvent:FireServer("Blue Field Booster")
  4572.             end
  4573.         end
  4574.         if kocmoc.toggles.clock then
  4575.             game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Wealth Clock")
  4576.         end
  4577.         if kocmoc.toggles.freeantpass then
  4578.             game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Free Ant Pass Dispenser")
  4579.         end
  4580.         if kocmoc.toggles.freerobopass then
  4581.             game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Free Robo Pass Dispenser")
  4582.         end
  4583.         if kocmoc.toggles.autoquest then
  4584.             local completeQuest = game.ReplicatedStorage.Events.CompleteQuestFromPool
  4585.             completeQuest:FireServer("Polar Bear")
  4586.             completeQuest:FireServer("Brown Bear 2")
  4587.             completeQuest:FireServer("Black Bear 2")
  4588.             completeQuest:FireServer("Bucko Bee")
  4589.             completeQuest:FireServer("Riley Bee")
  4590.             if kocmoc.toggles.autoquesthoneybee then
  4591.                 completeQuest:FireServer("Honey Bee")
  4592.             end
  4593.             task.wait(1)
  4594.             local getQuest = game.ReplicatedStorage.Events.GiveQuestFromPool
  4595.             getQuest:FireServer("Polar Bear")
  4596.             getQuest:FireServer("Brown Bear 2")
  4597.             getQuest:FireServer("Black Bear 2")
  4598.             getQuest:FireServer("Bucko Bee")
  4599.             getQuest:FireServer("Riley Bee")
  4600.             if kocmoc.toggles.autoquesthoneybee then
  4601.                 completeQuest:FireServer("Honey Bee")
  4602.             end
  4603.         end
  4604.         gainedhoneylabel:UpdateText("Gained Honey: " .. api.suffixstring(temptable.honeycurrent - temptable.honeystart))
  4605.         uptimelabel:UpdateText("Uptime: " .. truncatetime(math.round(tick() - temptable.starttime)))
  4606.     end
  4607. end)
  4608.  
  4609. game:GetService("RunService").Heartbeat:connect(function()
  4610.     if kocmoc.toggles.autoquest and player:FindFirstChild("PlayerGui") and player.PlayerGui:FindFirstChild("ScreenGui") and player.PlayerGui.ScreenGui:FindFirstChild("NPC") and player.PlayerGui.ScreenGui.NPC.Visible then
  4611.         firesignal(player.PlayerGui.ScreenGui.NPC.ButtonOverlay.MouseButton1Click)
  4612.     end
  4613.     if kocmoc.toggles.loopspeed and player.Character:FindFirstChild("Humanoid") then
  4614.         player.Character.Humanoid.WalkSpeed = kocmoc.vars.walkspeed
  4615.     end
  4616.     if kocmoc.toggles.loopjump and player.Character:FindFirstChild("Humanoid") then
  4617.         player.Character.Humanoid.JumpPower = kocmoc.vars.jumppower
  4618.     end
  4619. end)
  4620.  
  4621. game:GetService("RunService").Heartbeat:connect(function()
  4622.     for _, v in next, player.PlayerGui.ScreenGui:WaitForChild("MinigameLayer"):GetChildren() do
  4623.         for _, q in next, v:WaitForChild("GuiGrid"):GetDescendants() do
  4624.             if q.Name == "ObjContent" or q.Name == "ObjImage" then
  4625.                 q.Visible = true
  4626.             end
  4627.         end
  4628.     end
  4629. end)
  4630.  
  4631. game:GetService("RunService").Heartbeat:connect(function()
  4632.     if temptable.float and player.Character:FindFirstChild("Humanoid") then
  4633.         player.Character.Humanoid.BodyTypeScale.Value = 0
  4634.         floatpad.CanCollide = true
  4635.         floatpad.CFrame = CFrame.new(
  4636.             api.humanoidrootpart().Position.X,
  4637.             api.humanoidrootpart().Position.Y - 3.75,
  4638.             api.humanoidrootpart().Position.Z
  4639.         )
  4640.         task.wait(0)
  4641.     else
  4642.         floatpad.CanCollide = false
  4643.     end
  4644. end)
  4645.  
  4646. if syn then
  4647.     for i,v in pairs(getconnections(game.Players.LocalPlayer.Idled)) do
  4648.         v:Disable()
  4649.     end
  4650. else
  4651.     local vu = game:GetService("VirtualUser")
  4652.     game:GetService("Players").LocalPlayer.Idled:connect(function()
  4653.        vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  4654.        wait(1)
  4655.        vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  4656.     end)
  4657. end
  4658.  
  4659. local canTeleport = true
  4660. game:GetService("Workspace").Particles.Snowflakes.ChildAdded:Connect(function(snowflake)
  4661.     if canTeleport == true and kocmoc.toggles.farmsnowflakes == true then
  4662.         local hash = tostring(math.random(1,10000))
  4663.         snowflake.Name = hash
  4664.         canTeleport = false
  4665.         repeat
  4666.            wait()
  4667.            getgenv().temptable.float = true
  4668.            game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = snowflake.CFrame + Vector3.new(0,7.5,0)
  4669.         until game:GetService("Workspace").Particles.Snowflakes:FindFirstChild(hash) == nil
  4670.         getgenv().temptable.float = false
  4671.         wait(1)
  4672.         canTeleport = true
  4673.     end
  4674. end)
  4675.  
  4676. task.spawn(function()
  4677.     while task.wait() do
  4678.         if kocmoc.toggles.farmleaves then
  4679.             task.wait(3)
  4680.             for i,v in next, game.Workspace.Flowers:GetDescendants() do
  4681.                 if v.Name == "LeafBurst" and v.Parent:IsA("Part") and v.Parent then
  4682.                     api.humanoidrootpart().CFrame = CFrame.new(v.Parent.Position)
  4683.                     break
  4684.                 end
  4685.             end
  4686.         end
  4687.     end
  4688. end)
  4689.  
  4690. player.CharacterAdded:Connect(function(char)
  4691.     humanoid = char:WaitForChild("Humanoid")
  4692.     humanoid.Died:Connect(function()
  4693.         if kocmoc.toggles.autofarm then
  4694.             temptable.dead = true
  4695.             kocmoc.toggles.autofarm = false
  4696.             temptable.converting = false
  4697.             temptable.farmtoken = false
  4698.         end
  4699.         if temptable.dead then
  4700.             task.wait(25)
  4701.             temptable.dead = false
  4702.             kocmoc.toggles.autofarm = true
  4703.             temptable.converting = false
  4704.             temptable.tokensfarm = true
  4705.         end
  4706.     end)
  4707. end)
  4708.  
  4709. for _, v in next, game.workspace.Collectibles:GetChildren() do
  4710.     if string.find(v.Name, "") then v:Destroy() end
  4711. end
  4712.  
  4713. task.spawn(function()
  4714.     while task.wait() do
  4715.         if player.Character:FindFirstChild("HumanoidRootPart") then
  4716.             local pos = api.humanoidrootpart().Position
  4717.             task.wait(0.00001)
  4718.             local currentSpeed = (pos - api.humanoidrootpart().Position).magnitude
  4719.             if currentSpeed > 0 then
  4720.                 temptable.running = true
  4721.             else
  4722.                 temptable.running = false
  4723.             end
  4724.         end
  4725.     end
  4726. end)
  4727.  
  4728. task.spawn(function()
  4729.     while task.wait(1) do
  4730.         temptable.currtool = rtsg()["EquippedCollector"]
  4731.     end
  4732. end)
  4733.  
  4734. task.spawn(function()
  4735.         while task.wait() do
  4736.         if kocmoc.toggles.sproutsummoner then
  4737.         game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Sprout Summoner")
  4738.         end
  4739.     end
  4740. end)
  4741.  
  4742. task.spawn(function()
  4743.     while task.wait() do
  4744.         local torso = player.Character:FindFirstChild("UpperTorso")
  4745.        
  4746.         if temptable.currtool == "Tide Popper" then
  4747.             temptable.lookat = getfurthestballoon() or fieldposition
  4748.         elseif temptable.currtool == "Petal Wand" then
  4749.             temptable.lookat = fieldposition
  4750.         elseif temptable.currtool == "Dark Scythe" then
  4751.             temptable.lookat = fieldposition
  4752.             for i,v in pairs(game.Workspace.PlayerFlames:GetChildren()) do
  4753.                 if v:FindFirstChild("PF") and v.PF.Color.Keypoints[1].Value.G ~= 0 and (v.Position - torso.Position).magnitude < 20 then
  4754.                     temptable.lookat = v.Position
  4755.                 end
  4756.             end
  4757.         end
  4758.        
  4759.         if not temptable.started.ant and not temptable.started.vicious and kocmoc.toggles.autofarm and not temptable.converting then
  4760.             if torso then
  4761.                 local bodygyro = torso:FindFirstChildOfClass("BodyGyro")
  4762.  
  4763.                 if not bodygyro then
  4764.                     bodygyro = Instance.new("BodyGyro")
  4765.                     bodygyro.D = 10
  4766.                     bodygyro.P = 5000
  4767.                     bodygyro.MaxTorque = Vector3.new(0, 0, 0)
  4768.                     bodygyro.Parent = torso
  4769.                 end
  4770.                
  4771.                 if bodygyro then
  4772.                     if fieldposition and temptable.lookat then
  4773.                         bodygyro.CFrame = CFrame.new(torso.CFrame.p, temptable.lookat)
  4774.                         bodygyro.MaxTorque = Vector3.new(0, math.huge, 0)
  4775.                         bodygyro.D = 10
  4776.                         bodygyro.P = 5000
  4777.                     elseif bodygyro then
  4778.                         bodygyro:Destroy()
  4779.                     end
  4780.                 end
  4781.             end
  4782.         else
  4783.             if torso then
  4784.                 local bodygyro = torso:FindFirstChildOfClass("BodyGyro")
  4785.                 if bodygyro then
  4786.                     bodygyro:Destroy()
  4787.                 end
  4788.             end
  4789.         end
  4790.     end
  4791. end)
  4792.  
  4793. task.spawn(function()
  4794.     while task.wait(1) do
  4795.         for i,v in pairs(game.Workspace.Planters:GetChildren()) do
  4796.             if v.Name == "PlanterBulb" then
  4797.                 local attach = v:FindFirstChild("Gui Attach")
  4798.                 if attach then
  4799.                     local gui = attach:FindFirstChild("Planter Gui")
  4800.                     if gui then
  4801.                         gui.MaxDistance = 1e5
  4802.                         gui.Size = UDim2.new(30, 0, 10, 0)
  4803.                        
  4804.                         local text = gui.Bar.TextLabel
  4805.                         if text then
  4806.                             text.Size = UDim2.new(0.9, 0, 1, 0)
  4807.                             text.Position = UDim2.new(0.05, 0, 0, 0)
  4808.                         end
  4809.                     end
  4810.                 end
  4811.             end
  4812.         end
  4813.     end
  4814. end)
  4815.  
  4816. task.spawn(function()
  4817.     while task.wait(5) do
  4818.         if kocmoc.toggles.docustomplanters then
  4819.             local plantercycles = {
  4820.                 {
  4821.                     {Planter = kocmoc.vars.customplanter11, Field = kocmoc.vars.customplanterfield11, Percent = kocmoc.vars.customplanterdelay11},
  4822.                     {Planter = kocmoc.vars.customplanter12, Field = kocmoc.vars.customplanterfield12, Percent = kocmoc.vars.customplanterdelay12},
  4823.                     {Planter = kocmoc.vars.customplanter13, Field = kocmoc.vars.customplanterfield13, Percent = kocmoc.vars.customplanterdelay13},
  4824.                     {Planter = kocmoc.vars.customplanter14, Field = kocmoc.vars.customplanterfield14, Percent = kocmoc.vars.customplanterdelay14},
  4825.                     {Planter = kocmoc.vars.customplanter15, Field = kocmoc.vars.customplanterfield15, Percent = kocmoc.vars.customplanterdelay15}
  4826.                 },
  4827.                 {
  4828.                     {Planter = kocmoc.vars.customplanter21, Field = kocmoc.vars.customplanterfield21, Percent = kocmoc.vars.customplanterdelay21},
  4829.                     {Planter = kocmoc.vars.customplanter22, Field = kocmoc.vars.customplanterfield22, Percent = kocmoc.vars.customplanterdelay22},
  4830.                     {Planter = kocmoc.vars.customplanter23, Field = kocmoc.vars.customplanterfield23, Percent = kocmoc.vars.customplanterdelay23},
  4831.                     {Planter = kocmoc.vars.customplanter24, Field = kocmoc.vars.customplanterfield24, Percent = kocmoc.vars.customplanterdelay24},
  4832.                     {Planter = kocmoc.vars.customplanter25, Field = kocmoc.vars.customplanterfield25, Percent = kocmoc.vars.customplanterdelay25}
  4833.                 },
  4834.                 {
  4835.                     {Planter = kocmoc.vars.customplanter31, Field = kocmoc.vars.customplanterfield31, Percent = kocmoc.vars.customplanterdelay31},
  4836.                     {Planter = kocmoc.vars.customplanter32, Field = kocmoc.vars.customplanterfield32, Percent = kocmoc.vars.customplanterdelay32},
  4837.                     {Planter = kocmoc.vars.customplanter33, Field = kocmoc.vars.customplanterfield33, Percent = kocmoc.vars.customplanterdelay33},
  4838.                     {Planter = kocmoc.vars.customplanter34, Field = kocmoc.vars.customplanterfield34, Percent = kocmoc.vars.customplanterdelay34},
  4839.                     {Planter = kocmoc.vars.customplanter35, Field = kocmoc.vars.customplanterfield35, Percent = kocmoc.vars.customplanterdelay35}
  4840.                 }
  4841.             }
  4842.  
  4843.             local steps = {
  4844.                 5, 5, 5
  4845.             }
  4846.  
  4847.             for i,cycle in pairs(plantercycles) do
  4848.                 for j,step in pairs(cycle) do
  4849.                     if not step.Planter or not step.Planter:find("Planter") then
  4850.                         steps[i] = steps[i] - 1
  4851.                     elseif not step.Field or (not step.Field:find("Field") and not step.Field:find("Patch") and not step.Field:find("Forest")) then
  4852.                         steps[i] = steps[i] - 1
  4853.                     end
  4854.                 end
  4855.             end
  4856.  
  4857.             for i=1,3 do
  4858.                 if not isfile("kocmoc/plantercache/cycle"..i.."cache.file") then
  4859.                     for _,planter in pairs(fetchAllPlanters()) do
  4860.                         RequestCollectPlanter(planter)
  4861.                     end
  4862.                     writefile("kocmoc/plantercache/cycle"..i.."cache.file", "1")
  4863.                 end
  4864.             end
  4865.  
  4866.             if not temptable.started.ant and kocmoc.toggles.autofarm and not temptable.converting and not temptable.started.monsters then
  4867.                 for i,cycle in pairs(plantercycles) do
  4868.                     if steps[i] == 0 then continue end
  4869.                     local planted = false
  4870.                     local currentstep = isfile("kocmoc/plantercache/cycle"..i.."cache.file") and tonumber(readfile("kocmoc/plantercache/cycle"..i.."cache.file")) or 1
  4871.                     currentstep = (currentstep - 1) % steps[i] + 1
  4872.                     for j,step in pairs(cycle) do
  4873.                         if step.Percent and step.Planter and step.Planter:find("Planter") and step.Field and (step.Field:find("Field") or step.Field:find("Patch") or step.Field:find("Forest")) then
  4874.                             for _,planter in pairs(fetchAllPlanters()) do
  4875.                                 if planter.PotModel and planter.PotModel.Parent and planter.PotModel.PrimaryPart then
  4876.                                     if planter.GrowthPercent > step.Percent / 100 then
  4877.                                         if planter.PotModel.Name == step.Planter and getPlanterLocation(planter.PotModel.PrimaryPart) == step.Field then
  4878.                                             RequestCollectPlanter(planter)
  4879.                                         end
  4880.                                     else
  4881.                                         if planter.PotModel.Name == step.Planter and getPlanterLocation(planter.PotModel.PrimaryPart) == step.Field then
  4882.                                             planted = true
  4883.                                         end
  4884.                                     end
  4885.                                 end
  4886.                             end
  4887.                         end
  4888.                     end
  4889.                     if not planted and cycle[currentstep].Planter and #fetchAllPlanters() < 3 then
  4890.                         local planter = cycle[currentstep].Planter
  4891.                         if planter == "The Planter Of Plenty" and GetItemListWithValue()["PlentyPlanter"] and GetItemListWithValue()["PlentyPlanter"] > 0 then
  4892.                             PlantPlanter(planter, cycle[currentstep].Field)
  4893.                             writefile("kocmoc/plantercache/cycle"..i.."cache.file", tostring((currentstep - 1) % steps[i] + 2))
  4894.                         else
  4895.                             if GetItemListWithValue()[planter:gsub(" Planter", "") .. "Planter"] and GetItemListWithValue()[planter:gsub(" Planter", "") .. "Planter"] > 0 then
  4896.                                 PlantPlanter(planter:gsub(" Planter", ""), cycle[currentstep].Field)
  4897.                                 writefile("kocmoc/plantercache/cycle"..i.."cache.file", tostring((currentstep - 1) % steps[i] + 2))
  4898.                             end
  4899.                         end
  4900.                     end
  4901.                 end
  4902.             end
  4903.         else
  4904.             NectarBlacklist["Invigorating"] = kocmoc.toggles.blacklistinvigorating and "Invigorating" or nil
  4905.             NectarBlacklist["Comforting"] = kocmoc.toggles.blacklistcomforting and "Comforting" or nil
  4906.             NectarBlacklist["Motivating"] = kocmoc.toggles.blacklistmotivating and "Motivating" or nil
  4907.             NectarBlacklist["Refreshing"] = kocmoc.toggles.blacklistrefreshing and "Refreshing" or nil
  4908.             NectarBlacklist["Satisfying"] = kocmoc.toggles.blacklistsatisfying and "Satisfying" or nil
  4909.  
  4910.             planterData["Plastic"] = not kocmoc.toggles.plasticplanter and fullPlanterData["Plastic"] or nil
  4911.             planterData["Candy"] = not kocmoc.toggles.candyplanter and fullPlanterData["Candy"] or nil
  4912.             planterData["Red Clay"] = not kocmoc.toggles.redclayplanter and fullPlanterData["Red Clay"] or nil
  4913.             planterData["Blue Clay"] = not kocmoc.toggles.blueclayplanter and fullPlanterData["Blue Clay"] or nil
  4914.             planterData["Tacky"] = not kocmoc.toggles.tackyplanter and fullPlanterData["Tacky"] or nil
  4915.             planterData["Pesticide"] = not kocmoc.toggles.pesticideplanter and fullPlanterData["Pesticide"] or nil
  4916.             planterData["Petal"] = not kocmoc.toggles.petalplanter and fullPlanterData["Petal"] or nil
  4917.  
  4918.             if kocmoc.toggles.autoplanters and not temptable.started.ant and kocmoc.toggles.autofarm and not temptable.converting then
  4919.                 RequestCollectPlanters(fetchAllPlanters())
  4920.                 if #fetchAllPlanters() < 3 then
  4921.                     local LeastNectar = calculateLeastNectar(fetchNectarBlacklist())
  4922.                     local Field = fetchBestFieldWithNectar(LeastNectar)
  4923.                     local Planter = fetchBestMatch(LeastNectar, Field)
  4924.                     if LeastNectar and Field and Planter then
  4925.                         print(formatString(Planter, Field, LeastNectar))
  4926.                         PlantPlanter(Planter, Field)
  4927.                     end
  4928.                 end
  4929.             end
  4930.         end
  4931.     end
  4932. end)
  4933.  
  4934. loadingLoops:UpdateText("Loaded Loops")
  4935.  
  4936. local function getMonsterName(name)
  4937.     local newName = nil
  4938.     local keywords = {
  4939.         ["Mushroom"] = "Ladybug",
  4940.         ["Rhino"] = "Rhino Beetle",
  4941.         ["Spider"] = "Spider",
  4942.         ["Ladybug"] = "Ladybug",
  4943.         ["Scorpion"] = "Scorpion",
  4944.         ["Mantis"] = "Mantis",
  4945.         ["Beetle"] = "Rhino Beetle",
  4946.         ["Tunnel"] = "Tunnel Bear",
  4947.         ["Coco"] = "Coconut Crab",
  4948.         ["King"] = "King Beetle",
  4949.         ["Stump"] = "Stump Snail",
  4950.         ["Were"] = "Werewolf"
  4951.     }
  4952.     for i, v in pairs(keywords) do
  4953.         if string.find(string.upper(name), string.upper(i)) then
  4954.             newName = v
  4955.             break
  4956.         end
  4957.     end
  4958.     if newName == nil then newName = name end
  4959.     return newName
  4960. end
  4961.  
  4962. local function getNearestField(part)
  4963.     local resultingFieldPos
  4964.     local lowestMag = math.huge
  4965.     for i, v in pairs(game.Workspace.FlowerZones:GetChildren()) do
  4966.         if (v.Position - part.Position).magnitude < lowestMag then
  4967.             lowestMag = (v.Position - part.Position).magnitude
  4968.             resultingFieldPos = v.Position
  4969.         end
  4970.     end
  4971.     if lowestMag > 100 then
  4972.         resultingFieldPos = part.Position + Vector3.new(0, 0, 10)
  4973.     end
  4974.     if string.find(part.Name, "Tunnel") then
  4975.         resultingFieldPos = part.Position + Vector3.new(20, -70, 0)
  4976.     end
  4977.     return resultingFieldPos
  4978. end
  4979.  
  4980. local function fetchVisualMonsterString(v)
  4981.     local mobText = nil
  4982.     if v:FindFirstChild("Attachment") then
  4983.         if v.Attachment:FindFirstChild("TimerGui") then
  4984.             if v.Attachment.TimerGui:FindFirstChild("TimerLabel") then
  4985.                 if v.Attachment.TimerGui.TimerLabel.Visible then
  4986.                     local splitTimer = string.split(v.Attachment.TimerGui.TimerLabel.Text, " ")
  4987.                     if splitTimer[3] ~= nil then
  4988.                         mobText = getMonsterName(v.Name) .. ": " .. splitTimer[3]
  4989.                     elseif splitTimer[2] ~= nil then
  4990.                         mobText = getMonsterName(v.Name) .. ": " .. splitTimer[2]
  4991.                     else
  4992.                         mobText = getMonsterName(v.Name) .. ": " .. splitTimer[1]
  4993.                     end
  4994.                 else
  4995.                     mobText = getMonsterName(v.Name) .. ": Ready"
  4996.                 end
  4997.             end
  4998.         end
  4999.     end
  5000.     return mobText
  5001. end
  5002.  
  5003. local function getToyCooldown(toy)
  5004.     local c = require(game.ReplicatedStorage.ClientStatCache):Get()
  5005.     local name = toy
  5006.     local t = workspace.OsTime.Value - c.ToyTimes[name]
  5007.     local cooldown = workspace.Toys[name].Cooldown.Value
  5008.     local u = cooldown - t
  5009.     local canBeUsed = false
  5010.     if string.find(tostring(u), "-") then canBeUsed = true end
  5011.     return u, canBeUsed
  5012. end
  5013.  
  5014.  
  5015. game:GetService("CoreGui").RobloxPromptGui.promptOverlay.ChildAdded:Connect(function(child)
  5016.     if child.Name == 'ErrorPrompt' and child:FindFirstChild('MessageArea') and child.MessageArea:FindFirstChild("ErrorFrame") then
  5017.         if kocmoc.vars.webhookurl ~= "" and httpreq then
  5018.             task.wait(1)
  5019.             disconnected(kocmoc.vars.webhookurl, kocmoc.vars.discordid, child.MessageArea.ErrorFrame.ErrorMessage.Text)
  5020.         end
  5021.         if kocmoc.toggles.shutdownkick then
  5022.             game:Shutdown()
  5023.         end
  5024.     end
  5025. end)
  5026.  
  5027. task.spawn(function()
  5028.     local timestamp = tick()
  5029.     while task.wait(15) do
  5030.         local timeout = false
  5031.         task.spawn(function()
  5032.             timeout = true
  5033.             task.wait(15)
  5034.             if timeout then
  5035.                 if kocmoc.vars.webhookurl ~= "" and httpreq then
  5036.                     disconnected(kocmoc.vars.webhookurl, kocmoc.vars.discordid, "Server Timeout (Game Freeze)")
  5037.                 end
  5038.                 if kocmoc.toggles.shutdownkick then
  5039.                     game:Shutdown()
  5040.                 end
  5041.             end
  5042.         end)
  5043.         local timestamp = tick()
  5044.         local statstable = playerstatsevent:InvokeServer()
  5045.         while task.wait() do
  5046.             if timeout then
  5047.                 timeout = false
  5048.                 break
  5049.             end
  5050.         end
  5051.     end
  5052. end)
  5053.  
  5054. task.spawn(function()
  5055.     local timestamp = tick()
  5056.     while task.wait(0.1) do
  5057.         pcall(function()
  5058.         if tick() - timestamp > kocmoc.vars.webhooktimer * 60 then
  5059.             if httpreq and kocmoc.vars.webhookurl ~= "" and kocmoc.toggles.webhookupdates then
  5060.                 hourly(kocmoc.toggles.webhookping, kocmoc.vars.webhookurl, kocmoc.vars.discordid)
  5061.             end
  5062.             timestamp = tick()
  5063.         end
  5064.     end)
  5065.     end
  5066. end)
  5067. local commandospawn = false
  5068. task.spawn(function() -- Commando Sakata
  5069.         while task.wait(1) do
  5070.             if kocmoc.toggles.traincommando and findcommando() ~= true then
  5071.                 temptable.float = false
  5072.             end
  5073.             if kocmoc.toggles.traincommando and not monsterspawners["Commando Chick"].Attachment.TimerGui.TimerLabel.Visible and not temptable.converting and not temptable.started.monsters and not game.Workspace.Toys["Ant Challenge"].Busy.Value then
  5074.                 temptable.started.commando = true
  5075.                 disableall()
  5076.                 --if not commandospawn then
  5077.                 for i, v in next, game.workspace.Monsters:GetChildren() do
  5078.                     if string.find(v.Name, "Commando") then
  5079.                         commandospawn = true
  5080.                     else
  5081.                         commandospawn = false
  5082.                     end
  5083.                 end
  5084.                 if commandospawn == false then
  5085.                     api.humanoidrootpart().CFrame = CFrame.new(monsterspawners["Commando Chick"].Position)
  5086.                     task.wait(0.5)
  5087.                 end
  5088.                 for i, v in next, game.workspace.Monsters:GetChildren() do
  5089.                     for x in string.gmatch(v.Name, "Commando") do
  5090.                         while kocmoc.toggles.traincommando and commandospawn == true do
  5091.                             task.wait()
  5092.                             if string.find(v.Name, "Commando") then
  5093.                                 commandospawn = true
  5094.                                 for i = 1, 4 do
  5095.                                     temptable.float = true
  5096.                                     if v:FindFirstChild('HumanoidRootPart') then
  5097.                                         api.humanoidrootpart().CFrame = CFrame.new(v.HumanoidRootPart.Position.x, v.HumanoidRootPart.Position.y+15, v.HumanoidRootPart.Position.z)
  5098.                                     end
  5099.                                     task.wait(.3)
  5100.                                 end
  5101.                                 else
  5102.                                     temptable.float = false
  5103.                             end
  5104.                         end
  5105.                     end
  5106.                 end
  5107.                 enableall()
  5108.                 task.wait(1)
  5109.                 temptable.float = false
  5110.                 temptable.started.commando = false
  5111.             end
  5112.         end
  5113. end)
  5114. local snowbearspawn = false
  5115. task.spawn(function()
  5116.         while task.wait(1) do
  5117.             if kocmoc.toggles.trainsnow and findsnow() ~= true then
  5118.                 temptable.float = false
  5119.             end
  5120.             if kocmoc.toggles.trainsnow and not monsterspawners["Commando Chick"].Attachment.TimerGui.TimerLabel.Visible and not temptable.converting and not temptable.started.monsters and not game.Workspace.Toys["Ant Challenge"].Busy.Value then
  5121.                 temptable.started.snowbear = true
  5122.                 disableall()
  5123.                 --if not commandospawn then
  5124.                 for i, v in next, game.workspace.Monsters:GetChildren() do
  5125.                     if string.find(v.Name, "Snow") then
  5126.                         snowbearspawn = true
  5127.                     else
  5128.                         snowbearspawn = false
  5129.                     end
  5130.                 end
  5131.                 if snowbearspawn == false then
  5132.                     pcall(function()
  5133.                     api.humanoidrootpart().CFrame = CFrame.new(game:GetService("Workspace").Toys.Snowbear.Platform.Position.X, game:GetService("Workspace").Toys.Snowbear.Platform.Position.Y + 5, game:GetService("Workspace").Toys.Snowbear.Platform.Position.Z)
  5134.                     task.wait(0.4)
  5135.                     firesignal(game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.ActivateButton.MouseButton1Click)
  5136.                     end)
  5137.                     task.wait(0.5)
  5138.                 end
  5139.                 for i, v in next, game.workspace.Monsters:GetChildren() do
  5140.                     for x in string.gmatch(v.Name, "Snow") do
  5141.                         while kocmoc.toggles.trainsnow and snowbearspawn == true do
  5142.                             task.wait()
  5143.                             if string.find(v.Name, "Snow") then
  5144.                                 snowbearspawn = true
  5145.                                 for i = 1, 4 do
  5146.                                     temptable.float = true
  5147.                                     if v:FindFirstChild('HumanoidRootPart') then
  5148.                                         api.humanoidrootpart().CFrame = CFrame.new(v.HumanoidRootPart.Position.x, v.HumanoidRootPart.Position.y+30, v.HumanoidRootPart.Position.z)
  5149.                                     end
  5150.                                     task.wait(.1)
  5151.                                 end
  5152.                                 else
  5153.                                     temptable.float = false
  5154.                             end
  5155.                         end
  5156.                     end
  5157.                 end
  5158.                 enableall()
  5159.                 task.wait(1)
  5160.                 temptable.float = false
  5161.                 temptable.started.snowbear = false
  5162.             end
  5163.         end
  5164. end)
  5165.  
  5166. task.spawn(function()
  5167.     pcall(function()
  5168.         loadingInfo:CreateLabel("")
  5169.         loadingInfo:CreateLabel("Script loaded!")
  5170.         task.wait(2)
  5171.         pcall(function()
  5172.             for i, v in pairs(game.CoreGui:GetDescendants()) do
  5173.                 if v.Name == "Startup Section" then
  5174.                     v.Parent.Parent.RightSide["Information Section"].Parent = v.Parent
  5175.                     v:Destroy()
  5176.                 end
  5177.             end
  5178.         end)
  5179.         local panel = hometab:CreateSection("Mob Panel")
  5180.         local statusTable = {}
  5181.         for i, v in pairs(monsterspawners:GetChildren()) do
  5182.             if not string.find(v.Name, "CaveMonster") then
  5183.                 local mobText = nil
  5184.                 mobText = fetchVisualMonsterString(v)
  5185.                 if mobText ~= nil then
  5186.                     local mob = panel:CreateButton(mobText, function()
  5187.                         api.tween(1, CFrame.new(getNearestField(v)))
  5188.                     end)
  5189.                     table.insert(statusTable, {mob, v})
  5190.                 end
  5191.             end
  5192.         end
  5193.         local mob2 = panel:CreateButton("Mondo Chick: 00:00", function()
  5194.             api.tween(1,
  5195.                       game.Workspace.FlowerZones["Mountain Top Field"]
  5196.                           .CFrame)
  5197.         end)
  5198.         local panel2 = hometab:CreateSection("Utility Panel")
  5199.         local ssUpd = panel2:CreateButton("Sprout Summoner: 00:00", function()
  5200.             api.tween(1, CFrame.new( game.Workspace.Toys["Sprout Summoner"].Platform.Position + Vector3.new(0, 5, 0)))
  5201.         end)
  5202.         local windUpd = panel2:CreateButton("Wind Shrine: 00:00", function()
  5203.             api.tween(1,
  5204.                       CFrame.new(
  5205.                           game.Workspace.NPCs["Wind Shrine"]
  5206.                               .Circle.Position + Vector3.new(0, 5, 0)))
  5207.         end)
  5208.         local rfbUpd = panel2:CreateButton("Red Field Booster: 00:00",
  5209.                                            function()
  5210.             api.tween(1,
  5211.                       CFrame.new(
  5212.                           game.Workspace.Toys["Red Field Booster"]
  5213.                               .Platform.Position + Vector3.new(0, 5, 0)))
  5214.         end)
  5215.         local bfbUpd = panel2:CreateButton("Blue Field Booster: 00:00",
  5216.                                            function()
  5217.             api.tween(1,
  5218.                       CFrame.new(
  5219.                           game.Workspace.Toys["Blue Field Booster"]
  5220.                               .Platform.Position + Vector3.new(0, 5, 0)))
  5221.         end)
  5222.         local wfbUpd = panel2:CreateButton("White Field Booster: 00:00",
  5223.                                            function()
  5224.             api.tween(1, CFrame.new(
  5225.                           game.Workspace.Toys["Field Booster"]
  5226.                               .Platform.Position + Vector3.new(0, 5, 0)))
  5227.         end)
  5228.         local cocoDispUpd = panel2:CreateButton("Coconut Dispenser: 00:00",
  5229.                                                 function()
  5230.             api.tween(1,
  5231.                       CFrame.new(
  5232.                           game.Workspace.Toys["Coconut Dispenser"]
  5233.                               .Platform.Position + Vector3.new(0, 5, 0)))
  5234.         end)
  5235.         local ic1 = panel2:CreateButton("Instant Converter A: 00:00", function()
  5236.             api.tween(1,
  5237.                       CFrame.new(
  5238.                           game.Workspace.Toys["Instant Converter"]
  5239.                               .Platform.Position + Vector3.new(0, 5, 0)))
  5240.         end)
  5241.         local ic2 = panel2:CreateButton("Instant Converter B: 00:00", function()
  5242.             api.tween(1,
  5243.                       CFrame.new(
  5244.                           game.Workspace.Toys["Instant Converter B"]
  5245.                               .Platform.Position + Vector3.new(0, 5, 0)))
  5246.         end)
  5247.         local ic3 = panel2:CreateButton("Instant Converter C: 00:00", function()
  5248.             api.tween(1,
  5249.                       CFrame.new(
  5250.                           game.Workspace.Toys["Instant Converter C"]
  5251.                               .Platform.Position + Vector3.new(0, 5, 0)))
  5252.         end)
  5253.         local wcUpd = panel2:CreateButton("Wealth Clock: 00:00", function()
  5254.             api.tween(1, CFrame.new(
  5255.                           game.Workspace.Toys["Wealth Clock"]
  5256.                               .Platform.Position + Vector3.new(0, 5, 0)))
  5257.         end)
  5258.         local mmsUpd = panel2:CreateButton("Mythic Meteor Shower: 00:00", function()
  5259.             api.tween(1, CFrame.new( game.Workspace.Toys["Mythic Meteor Shower"].Platform.Position + Vector3.new(0, 5, 0)))
  5260.         end)
  5261.        
  5262.         local utilities = {
  5263.             ["Sprout Summoner"] = ssUpd,
  5264.             ["Red Field Booster"] = rfbUpd,
  5265.             ["Blue Field Booster"] = bfbUpd,
  5266.             ["Field Booster"] = wfbUpd,
  5267.             ["Coconut Dispenser"] = cocoDispUpd,
  5268.             ["Instant Converter"] = ic1,
  5269.             ["Instant Converter B"] = ic2,
  5270.             ["Instant Converter C"] = ic3,
  5271.             ["Wealth Clock"] = wcUpd,
  5272.             ["Mythic Meteor Shower"] = mmsUpd,
  5273.             ["Honey Wreath"] = hwUpd,
  5274.             ["Snow Machine"] = smUpd,
  5275.             ["Gingerbread House"] = gbUpd,
  5276.             ["Samovar"] = smvrUpd,
  5277.             ["Honeyday Candles"] = hcUpd,
  5278.             ["Beesmas Feast"] = bfUpd,
  5279.             ["Onett's Lid Art"] = olaUpd
  5280.         }
  5281.  
  5282.         local panel3 = hometab:CreateSection("Beesmas Panel ["..Beesmas.."]")
  5283.         local hwUpd = panel2:CreateButton("Honey Wreath: 00:00", function()
  5284.             api.tween(1, CFrame.new( game.Workspace.Toys["Honey Wreath"].Platform.Position + Vector3.new(0, 5, 0)))
  5285.         end)
  5286.         local smUpd = panel3:CreateButton("Snow Machine: 00:00", function()
  5287.             api.tween(1, CFrame.new( game.Workspace.Toys["Snow Machine"].Platform.Position + Vector3.new(0, 5, 0)))
  5288.         end)
  5289.         local gbUpd = panel3:CreateButton("Gingerbread House: 00:00", function()
  5290.             api.tween(1, CFrame.new( game.Workspace.Toys["Gingerbread House"].Platform.Position + Vector3.new(0, 5, 0)))
  5291.         end)
  5292.         local smvrUpd = panel3:CreateButton("Samovar: 00:00", function()
  5293.             api.tween(1, CFrame.new( game.Workspace.Toys["Samovar"].Platform.Position + Vector3.new(0, 5, 0)))
  5294.         end)
  5295.         local hcUpd = panel3:CreateButton("Honeyday Candles: 00:00", function()
  5296.             api.tween(1, CFrame.new( game.Workspace.Toys["Honeyday Candles"].Platform.Position + Vector3.new(0, 5, 0)))
  5297.         end)
  5298.         local bfUpd = panel3:CreateButton("Beesmas Feast: 00:00", function()
  5299.             api.tween(1, CFrame.new( game.Workspace.Toys["Beesmas Feast"].Platform.Position + Vector3.new(0, 5, 0)))
  5300.         end)
  5301.         local olaUpd = panel3:CreateButton("Onett's Lid Art: 00:00", function()
  5302.             api.tween(1, CFrame.new( game.Workspace.Toys["Onett's Lid Art"].Platform.Position + Vector3.new(0, 5, 0)))
  5303.         end)
  5304.         while task.wait(1) do
  5305.             if kocmoc.toggles.enablestatuspanel then
  5306.                 for i, v in pairs(statusTable) do
  5307.                     if v[1] and v[2] then
  5308.                         v[1]:UpdateText(fetchVisualMonsterString(v[2]))
  5309.                     end
  5310.                 end
  5311.                 if workspace:FindFirstChild("Clock") then
  5312.                     if workspace.Clock:FindFirstChild("SurfaceGui") then
  5313.                         if workspace.Clock.SurfaceGui:FindFirstChild("TextLabel") then
  5314.                             if workspace.Clock.SurfaceGui:FindFirstChild("TextLabel").Text == "! ! !" then
  5315.                                 mob2:UpdateText("Mondo Chick: Ready")
  5316.                             else
  5317.                                 mob2:UpdateText("Mondo Chick: " .. string.gsub(string.gsub(workspace.Clock.SurfaceGui:FindFirstChild("TextLabel").Text, "\n", ""), "Mondo Chick:", ""))
  5318.                             end
  5319.                         end
  5320.                     end
  5321.                 end
  5322.                 local cooldown = require(game.ReplicatedStorage.TimeString)(
  5323.                                      3600 -
  5324.                                          (require(game.ReplicatedStorage.OsTime)() -
  5325.                                              (require(
  5326.                                                  game.ReplicatedStorage
  5327.                                                      .StatTools).GetLastCooldownTime(
  5328.                                                  v1, "WindShrine") or 0)))
  5329.                 if cooldown == "" then
  5330.                     windUpd:UpdateText("Wind Shrine: Ready")
  5331.                 else
  5332.                     windUpd:UpdateText("Wind Shrine: " .. cooldown)
  5333.                 end
  5334.                 for i, v in pairs(utilities) do
  5335.                     local cooldown, isUsable = getToyCooldown(i)
  5336.                     if cooldown ~= nil and isUsable ~= nil then
  5337.                         if isUsable then
  5338.                             v:UpdateText(i .. ": Ready")
  5339.                         else
  5340.                             v:UpdateText(i .. ": " .. require(game.ReplicatedStorage.TimeString)(cooldown))
  5341.                         end
  5342.                     end
  5343.                 end
  5344.             end
  5345.         end
  5346.     end)
  5347. end)
  5348.  
  5349. if getgenv().LoadRecent and isfile('kocmoc/recent.json') then
  5350.     kocmoc = game:service("HttpService"):JSONDecode(readfile("kocmoc/recent.json"))
  5351.             for i,v in pairs(guiElements) do
  5352.             for j,k in pairs(v) do
  5353.                 local obj = k:GetObject()
  5354.                 local lastCharacters = obj.Name:reverse():sub(0, obj.Name:reverse():find(" ")):reverse()
  5355.                 if kocmoc[i][j] then
  5356.                     if lastCharacters == " Dropdown" then
  5357.                         obj.Container.Value.Text = kocmoc[i][j]
  5358.                     elseif lastCharacters == " Slider" then
  5359.                         task.spawn(function()
  5360.                             local Tween = game:GetService("TweenService"):Create(
  5361.                                 obj.Slider.Bar,
  5362.                                 TweenInfo.new(1),
  5363.                                 {Size = UDim2.new((tonumber(kocmoc[i][j]) - k:GetMin()) / (k:GetMax() - k:GetMin()), 0, 1, 0)}
  5364.                             )
  5365.                             Tween:Play()
  5366.                             local startStamp = tick()
  5367.                             local startValue = tonumber(obj.Value.PlaceholderText)
  5368.                             while tick() - startStamp < 1 do
  5369.                                 task.wait()
  5370.                                 local partial = tick() - startStamp
  5371.                                 local value = (startValue + ((tonumber(kocmoc[i][j]) - startValue) * partial))
  5372.                                 obj.Value.PlaceholderText = math.round(value * 100) / 100
  5373.                             end
  5374.                             obj.Value.PlaceholderText = tonumber(kocmoc[i][j])
  5375.                         end)
  5376.                     elseif lastCharacters == " Toggle" then
  5377.                         obj.Toggle.BackgroundColor3 = kocmoc[i][j] and Config.Color or Color3.fromRGB(50,50,50)
  5378.                     elseif lastCharacters == " TextBox" then
  5379.                         obj.Background.Input.Text = kocmoc[i][j]
  5380.                     end
  5381.                 end
  5382.             end
  5383.             end
  5384.     else
  5385.         api.notify("Rosemoc " .. temptable.version, "No such config file!", 2)
  5386.     end
  5387.  
  5388.     local menuTabs = player.PlayerGui.ScreenGui.Menus.ChildTabs
  5389.     local set_thread_identity = syn and syn.set_thread_identity or setthreadcontext or setidentity
  5390.  
  5391.     if not set_thread_identity then
  5392.         api.notify("Rosemoc " .. temptable.version, "your exploit only partially supports autoload!", 2)
  5393.     else
  5394.         for _,v in pairs(menuTabs:GetChildren()) do
  5395.             if v:FindFirstChild("Icon") and v.Icon.Image == "rbxassetid://1436835355" then
  5396.                 set_thread_identity(2)
  5397.                 firesignal(v.MouseButton1Click)
  5398.                 set_thread_identity(7)
  5399.             end
  5400.         end
  5401.     end
  5402.  
  5403. task.spawn(function()
  5404.     while task.wait(1) do
  5405.         writefile("kocmoc/recent.json", game:service("HttpService"):JSONEncode(kocmoc))
  5406.     end
  5407. end)
  5408.  
  5409.  
  5410. --[[ local CoreGui = game:GetService("CoreGui")
  5411.  
  5412. if type(gethui) == 'function' then
  5413.     CoreGui = gethui()
  5414. end
  5415.  
  5416. local RunService = game:GetService("RunService")
  5417. local UserInputService = game:GetService("UserInputService")
  5418.  
  5419. local GPUGUI = Instance.new("ScreenGui")
  5420. GPUGUI.Name = 'GPUSaver'
  5421. GPUGUI.Enabled = false
  5422. GPUGUI.Parent = CoreGui
  5423.  
  5424. local TextLabel = Instance.new("TextLabel")
  5425. TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  5426. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  5427. TextLabel.TextStrokeTransparency = 1
  5428. TextLabel.AnchorPoint = Vector2.new(.5, .5)
  5429. TextLabel.Position = UDim2.fromScale(.5, .5)
  5430. TextLabel.Size = UDim2.fromScale(1.5, 1.5)
  5431. TextLabel.Font = Enum.Font.RobotoMono
  5432. TextLabel.TextSize = 24
  5433. TextLabel.Text = "GPU Saver is enabled.\n\nPress any key to disable manually."
  5434. TextLabel.Parent = GPUGUI
  5435.  
  5436. local Connections = {}
  5437. local Signals = {RunService.Stepped, RunService.RenderStepped}
  5438.  
  5439. local cansetfpscap = type(setfpscap) == 'function'
  5440. local cangetconnections = type(getconnections) == 'function'
  5441. local caniswindowactive = type(iswindowactive) == 'function'
  5442.  
  5443. local function pause()
  5444.     if kocmoc.toggles.gpusaver then
  5445.     if cansetfpscap then
  5446.         setfpscap(10)
  5447.     end
  5448.     GPUGUI.Enabled = true
  5449.     RunService:Set3dRenderingEnabled(false)
  5450.     if cangetconnections then
  5451.         for _, x in pairs(Signals) do
  5452.             for _, v in pairs(getconnections(x)) do
  5453.                 v:Disable()
  5454.                 table.insert(Connections, v)
  5455.             end
  5456.         end
  5457.     end
  5458.     paused = true
  5459.     end
  5460. end
  5461.  
  5462. local function resume()
  5463.     if cansetfpscap then
  5464.         setfpscap(60)
  5465.     end
  5466.     GPUGUI.Enabled = false
  5467.     RunService:Set3dRenderingEnabled(true)
  5468.     if cangetconnections then
  5469.         for i, v in pairs(Connections) do
  5470.             v:Enable()
  5471.             Connections[i] = nil
  5472.         end
  5473.     end
  5474.     paused = false
  5475. end
  5476.  
  5477. local con0 = UserInputService.WindowFocusReleased:Connect(pause)
  5478. local con1 = UserInputService.WindowFocused:Connect(resume)
  5479. local con2 = UserInputService.InputBegan:Connect(function(input) if paused and input.UserInputState == Enum.UserInputState.Begin and input.UserInputType == Enum.UserInputType.Keyboard then resume(); end; end)
  5480.  
  5481. if caniswindowactive and iswindowactive() ~= true then
  5482.     pause()
  5483. end ]]
  5484.  
  5485.  
  5486. if getgenv().AutoLoad then
  5487.     if isfile("kocmoc/BSS_" .. getgenv().AutoLoad .. ".json") then
  5488.         kocmoc = game:service("HttpService"):JSONDecode(readfile("kocmoc/BSS_" .. getgenv().AutoLoad .. ".json"))
  5489.         for i,v in pairs(guiElements) do
  5490.             for j,k in pairs(v) do
  5491.                 local obj = k:GetObject()
  5492.                 local lastCharacters = obj.Name:reverse():sub(0, obj.Name:reverse():find(" ")):reverse()
  5493.                 if kocmoc[i][j] then
  5494.                     if lastCharacters == " Dropdown" then
  5495.                         obj.Container.Value.Text = kocmoc[i][j]
  5496.                     elseif lastCharacters == " Slider" then
  5497.                         task.spawn(function()
  5498.                             local Tween = game:GetService("TweenService"):Create(
  5499.                                 obj.Slider.Bar,
  5500.                                 TweenInfo.new(1),
  5501.                                 {Size = UDim2.new((tonumber(kocmoc[i][j]) - k:GetMin()) / (k:GetMax() - k:GetMin()), 0, 1, 0)}
  5502.                             )
  5503.                             Tween:Play()
  5504.                             local startStamp = tick()
  5505.                             local startValue = tonumber(obj.Value.PlaceholderText)
  5506.                             while tick() - startStamp < 1 do
  5507.                                 task.wait()
  5508.                                 local partial = tick() - startStamp
  5509.                                 local value = (startValue + ((tonumber(kocmoc[i][j]) - startValue) * partial))
  5510.                                 obj.Value.PlaceholderText = math.round(value * 100) / 100
  5511.                             end
  5512.                             obj.Value.PlaceholderText = tonumber(kocmoc[i][j])
  5513.                         end)
  5514.                     elseif lastCharacters == " Toggle" then
  5515.                         obj.Toggle.BackgroundColor3 = kocmoc[i][j] and Config.Color or Color3.fromRGB(50,50,50)
  5516.                     elseif lastCharacters == " TextBox" then
  5517.                         obj.Background.Input.Text = kocmoc[i][j]
  5518.                     end
  5519.                 end
  5520.             end
  5521.         end
  5522.     else
  5523.         api.notify("Rosemoc " .. temptable.version, "No such config file!", 2)
  5524.     end
  5525.  
  5526.     local menuTabs = player.PlayerGui.ScreenGui.Menus.ChildTabs
  5527.     local set_thread_identity = syn and syn.set_thread_identity or setthreadcontext or setidentity
  5528.  
  5529.     if not set_thread_identity then
  5530.         api.notify("Rosemoc " .. temptable.version, "your exploit only partially supports autoload!", 2)
  5531.     else
  5532.         for _,v in pairs(menuTabs:GetChildren()) do
  5533.             if v:FindFirstChild("Icon") and v.Icon.Image == "rbxassetid://1436835355" then
  5534.                 set_thread_identity(2)
  5535.                 firesignal(v.MouseButton1Click)
  5536.                 set_thread_identity(7)
  5537.             end
  5538.         end
  5539.     end
  5540. end
  5541.  
  5542.  
  5543.  
  5544. for _, part in next, workspace:FindFirstChild("FieldDecos"):GetDescendants() do
  5545.     if part:IsA("BasePart") then
  5546.         part.CanCollide = false
  5547.         part.Transparency = part.Transparency < 0.5 and 0.5 or part.Transparency
  5548.         task.wait()
  5549.     end
  5550. end
  5551. for _, part in next, workspace:FindFirstChild("Decorations"):GetDescendants() do
  5552.     if part:IsA("BasePart") and
  5553.         (part.Parent.Name == "Bush" or part.Parent.Name == "Blue Flower") then
  5554.         part.CanCollide = false
  5555.         part.Transparency = part.Transparency < 0.5 and 0.5 or part.Transparency
  5556.         task.wait()
  5557.     end
  5558. end
  5559. for i, v in next, workspace.Decorations.Misc:GetDescendants() do
  5560.     if v.Parent.Name == "Mushroom" then
  5561.         v.CanCollide = false
  5562.         v.Transparency = 0.5
  5563.     end
  5564. end
  5565. if workspace:FindFirstChild('Decorations') and workspace.Decorations:FindFirstChild('30BeeZone') and workspace.Decorations['30BeeZone']:FindFirstChild('Pit')  then
  5566.     game:GetService("Workspace").Decorations['30BeeZone'].Pit:Destroy()
  5567. end
  5568. if workspace:FindFirstChild("Gates") and workspace.Gates:FindFirstChild("15 Bee Gate") and workspace.Gates["15 Bee Gate"]:FindFirstChild("Frame") then
  5569.     game:GetService("Workspace").Gates["15 Bee Gate"].Frame:Destroy()
  5570. end
  5571.  
  5572.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement