-
Notifications
You must be signed in to change notification settings - Fork 0
/
kocmoc.lua
1256 lines (1178 loc) · 68.6 KB
/
kocmoc.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- API CALLS
local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/LolekLiam/KocmocV2/main/library.lua"))()
local api = loadstring(game:HttpGet("https://raw.githubusercontent.com/LolekLiam/KocmocV2/main/api.lua"))()
local bssapi = loadstring(game:HttpGet("https://raw.githubusercontent.com/LolekLiam/KocmocV2/main/bssapi.lua"))()
if not isfolder("kocmoc") then makefolder("kocmoc") end
if isfile('kocmoc.txt') == false then (syn and syn.request or http_request)({ Url = "http://127.0.0.1:6463/rpc?v=1",Method = "POST",Headers = {["Content-Type"] = "application/json",["Origin"] = "https://discord.com"},Body = game:GetService("HttpService"):JSONEncode({cmd = "INVITE_BROWSER",args = {code = "kTNMzbxUuZ"},nonce = game:GetService("HttpService"):GenerateGUID(false)}),writefile('kocmoc.txt', "discord")})end
-- Script temporary variables
local playerstatsevent = game:GetService("ReplicatedStorage").Events.RetrievePlayerStats
local statstable = playerstatsevent:InvokeServer()
local monsterspawners = game:GetService("Workspace").MonsterSpawners
local rarename
function rtsg() tab = game.ReplicatedStorage.Events.RetrievePlayerStats:InvokeServer() return tab end
function maskequip(mask) local ohString1 = "Equip" local ohTable2 = { ["Mute"] = false, ["Type"] = mask, ["Category"] = "Accessory"} game:GetService("ReplicatedStorage").Events.ItemPackageEvent:InvokeServer(ohString1, ohTable2) end
local lasttouched = nil
local done = true
local hi = false
-- Script tables
local temptable = {
version = "3.0",
blackfield = "Ant Field",
redfields = {},
bluefields = {},
whitefields = {},
shouldiconvertballoonnow = false,
balloondetected = false,
puffshroomdetected = false,
magnitude = 70,
blacklist = {
"e_mrFluk2281"
},
running = false,
configname = "",
tokenpath = game:GetService("Workspace").Collectibles,
started = {
vicious = false,
mondo = false,
windy = false,
ant = false,
monsters = false
},
detected = {
vicious = false,
windy = false
},
tokensfarm = false,
converting = false,
honeystart = 0,
grib = nil,
gribpos = CFrame.new(0,0,0),
honeycurrent = statstable.Totals.Honey,
dead = false,
float = false,
pepsigodmode = false,
pepsiautodig = false,
alpha = false,
beta = false,
myhiveis = false,
invis = false,
windy = nil,
sprouts = {
detected = false,
coords
},
cache = {
autofarm = false,
killmondo = false,
vicious = false,
windy = false
},
allplanters = {},
planters = {
planter = {},
cframe = {},
activeplanters = {
type = {},
id = {}
}
},
monstertypes = {"Ladybug", "Rhino", "Spider", "Scorpion", "Mantis", "Werewolf"},
["stopapypa"] = function(path, part)
local Closest
for i,v in next, path:GetChildren() do
if v.Name ~= "PlanterBulb" then
if Closest == nil then
Closest = v.Soil
else
if (part.Position - v.Soil.Position).magnitude < (Closest.Position - part.Position).magnitude then
Closest = v.Soil
end
end
end
end
return Closest
end,
coconuts = {},
crosshairs = {},
crosshair = false,
coconut = false,
act = 0,
['touchedfunction'] = function(v)
if lasttouched ~= v then
if v.Parent.Name == "FlowerZones" then
if v:FindFirstChild("ColorGroup") then
if tostring(v.ColorGroup.Value) == "Red" then
maskequip("Demon Mask")
elseif tostring(v.ColorGroup.Value) == "Blue" then
maskequip("Diamond Mask")
end
else
maskequip("Gummy Mask")
end
lasttouched = v
end
end
end,
runningfor = 0,
oldtool = rtsg()["EquippedCollector"],
['gacf'] = function(part, st)
coordd = CFrame.new(part.Position.X, part.Position.Y+st, part.Position.Z)
return coordd
end
}
local planterst = {
plantername = {},
planterid = {}
}
for i,v in next, temptable.blacklist do if v == api.nickname then game.Players.LocalPlayer:Kick("You're blacklisted! Get clapped!") end end
if temptable.honeystart == 0 then temptable.honeystart = statstable.Totals.Honey end
for i,v in next, game:GetService("Workspace").MonsterSpawners:GetDescendants() do if v.Name == "TimerAttachment" then v.Name = "Attachment" end end
for i,v in next, game:GetService("Workspace").MonsterSpawners:GetChildren() do if v.Name == "RoseBush" then v.Name = "ScorpionBush" elseif v.Name == "RoseBush2" then v.Name = "ScorpionBush2" end end
for i,v in next, game:GetService("Workspace").FlowerZones:GetChildren() do if v:FindFirstChild("ColorGroup") then if v:FindFirstChild("ColorGroup").Value == "Red" then table.insert(temptable.redfields, v.Name) elseif v:FindFirstChild("ColorGroup").Value == "Blue" then table.insert(temptable.bluefields, v.Name) end else table.insert(temptable.whitefields, v.Name) end end
local flowertable = {}
for _,z in next, game:GetService("Workspace").Flowers:GetChildren() do table.insert(flowertable, z.Position) end
local masktable = {}
for _,v in next, game:GetService("ReplicatedStorage").Accessories:GetChildren() do if string.match(v.Name, "Mask") then table.insert(masktable, v.Name) end end
local collectorstable = {}
for _,v in next, getupvalues(require(game:GetService("ReplicatedStorage").Collectors).Exists) do for e,r in next, v do table.insert(collectorstable, e) end end
local fieldstable = {}
for _,v in next, game:GetService("Workspace").FlowerZones:GetChildren() do table.insert(fieldstable, v.Name) end
local toystable = {}
for _,v in next, game:GetService("Workspace").Toys:GetChildren() do table.insert(toystable, v.Name) end
local spawnerstable = {}
for _,v in next, game:GetService("Workspace").MonsterSpawners:GetChildren() do table.insert(spawnerstable, v.Name) end
local accesoriestable = {}
for _,v in next, game:GetService("ReplicatedStorage").Accessories:GetChildren() do if v.Name ~= "UpdateMeter" then table.insert(accesoriestable, v.Name) end end
for i,v in pairs(getupvalues(require(game:GetService("ReplicatedStorage").PlanterTypes).GetTypes)) do for e,z in pairs(v) do table.insert(temptable.allplanters, e) end end
table.sort(fieldstable)
table.sort(accesoriestable)
table.sort(toystable)
table.sort(spawnerstable)
table.sort(masktable)
table.sort(temptable.allplanters)
table.sort(collectorstable)
-- float pad
local floatpad = Instance.new("Part", game:GetService("Workspace"))
floatpad.CanCollide = false
floatpad.Anchored = true
floatpad.Transparency = 1
floatpad.Name = "FloatPad"
-- cococrab
local cocopad = Instance.new("Part", game:GetService("Workspace"))
cocopad.Name = "Coconut Part"
cocopad.Anchored = true
cocopad.Transparency = 1
cocopad.Size = Vector3.new(10, 1, 10)
cocopad.Position = Vector3.new(-307.52117919922, 105.91863250732, 467.86791992188)
-- antfarm
local antpart = Instance.new("Part", workspace)
antpart.Name = "Ant Autofarm Part"
antpart.Position = Vector3.new(96, 47, 553)
antpart.Anchored = true
antpart.Size = Vector3.new(128, 1, 50)
antpart.Transparency = 1
antpart.CanCollide = false
-- config
local kocmoc = {
rares = {},
priority = {},
bestfields = {
red = "Pepper Patch",
white = "Coconut Field",
blue = "Stump Field"
},
blacklistedfields = {},
killerkocmoc = {},
bltokens = {},
toggles = {
autofarm = false,
farmclosestleaf = false,
farmbubbles = false,
autodig = false,
farmrares = false,
rgbui = false,
farmflower = false,
farmfuzzy = false,
farmcoco = false,
farmflame = false,
farmclouds = false,
killmondo = false,
killvicious = false,
loopspeed = false,
loopjump = false,
autoquest = false,
autoboosters = false,
autodispense = false,
clock = false,
freeantpass = false,
honeystorm = false,
autodoquest = false,
disableseperators = false,
npctoggle = false,
loopfarmspeed = false,
mobquests = false,
traincrab = false,
avoidmobs = false,
farmsprouts = false,
enabletokenblacklisting = false,
farmunderballoons = false,
farmsnowflakes = false,
collectgingerbreads = false,
collectcrosshairs = false,
farmpuffshrooms = false,
tptonpc = false,
donotfarmtokens = false,
convertballoons = false,
autostockings = false,
autosamovar = false,
autoonettart = false,
autocandles = false,
autofeast = false,
autoplanters = false,
autokillmobs = false,
autoant = false,
killwindy = false,
godmode = false
},
vars = {
field = "Ant Field",
convertat = 100,
farmspeed = 60,
prefer = "Tokens",
walkspeed = 70,
jumppower = 70,
npcprefer = "All Quests",
farmtype = "Walk",
monstertimer = 3
},
dispensesettings = {
blub = false,
straw = false,
treat = false,
coconut = false,
glue = false,
rj = false,
white = false,
red = false,
blue = false
}
}
local defaultkocmoc = kocmoc
-- functions
function statsget() local StatCache = require(game.ReplicatedStorage.ClientStatCache) local stats = StatCache:Get() return stats end
function farm(trying)
if kocmoc.toggles.loopfarmspeed then game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = kocmoc.vars.farmspeed end
api.humanoid():MoveTo(trying.Position)
repeat task.wait() until (trying.Position-api.humanoidrootpart().Position).magnitude <=4 or not IsToken(trying) or not temptable.running
end
function disableall()
if kocmoc.toggles.autofarm and not temptable.converting then
temptable.cache.autofarm = true
kocmoc.toggles.autofarm = false
end
if kocmoc.toggles.killmondo and not temptable.started.mondo then
kocmoc.toggles.killmondo = false
temptable.cache.killmondo = true
end
if kocmoc.toggles.killvicious and not temptable.started.vicious then
kocmoc.toggles.killvicious = false
temptable.cache.vicious = true
end
if kocmoc.toggles.killwindy and not temptable.started.windy then
kocmoc.toggles.killwindy = false
temptable.cache.windy = true
end
end
function enableall()
if temptable.cache.autofarm then
kocmoc.toggles.autofarm = true
temptable.cache.autofarm = false
end
if temptable.cache.killmondo then
kocmoc.toggles.killmondo = true
temptable.cache.killmondo = false
end
if temptable.cache.vicious then
kocmoc.toggles.killvicious = true
temptable.cache.vicious = false
end
if temptable.cache.windy then
kocmoc.toggles.killwindy = true
temptable.cache.windy = false
end
end
function gettoken(v3)
if not v3 then
v3 = fieldposition
end
task.wait()
for e,r in next, game:GetService("Workspace").Collectibles:GetChildren() do
itb = false
if r:FindFirstChildOfClass("Decal") and kocmoc.toggles.enabletokenblacklisting then
if api.findvalue(kocmoc.bltokens, string.split(r:FindFirstChildOfClass("Decal").Texture, 'rbxassetid://')[2]) then
itb = true
end
end
if tonumber((r.Position - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude) <= temptable.magnitude/1.4 and not itb and (v3-r.Position).magnitude <= temptable.magnitude then
farm(r)
end
end
end
function makesprinklers()
sprinkler = rtsg().EquippedSprinkler
e = 1
if sprinkler == "Basic Sprinkler" or sprinkler == "The Supreme Saturator" then
e = 1
elseif sprinkler == "Silver Soakers" then
e = 2
elseif sprinkler == "Golden Gushers" then
e = 3
elseif sprinkler == "Diamond Drenchers" then
e = 4
end
for i = 1, e do
k = api.humanoid().JumpPower
if e ~= 1 then api.humanoid().JumpPower = 70 api.humanoid().Jump = true task.wait(.2) end
game.ReplicatedStorage.Events.PlayerActivesCommand:FireServer({["Name"] = "Sprinkler Builder"})
if e ~= 1 then api.humanoid().JumpPower = k task.wait(1) end
end
end
function killmobs()
for i,v in pairs(game:GetService("Workspace").MonsterSpawners:GetChildren()) do
if v:FindFirstChild("Territory") then
if v.Name ~= "Commando Chick" and v.Name ~= "CoconutCrab" and v.Name ~= "StumpSnail" and v.Name ~= "TunnelBear" and v.Name ~= "King Beetle Cave" and not v.Name:match("CaveMonster") and not v:FindFirstChild("TimerLabel", true).Visible then
if v.Name:match("Werewolf") then
monsterpart = game:GetService("Workspace").Territories.WerewolfPlateau.w
elseif v.Name:match("Mushroom") then
monsterpart = game:GetService("Workspace").Territories.MushroomZone.Part
else
monsterpart = v.Territory.Value
end
api.humanoidrootpart().CFrame = monsterpart.CFrame
repeat api.humanoidrootpart().CFrame = monsterpart.CFrame avoidmob() task.wait(1) until v:FindFirstChild("TimerLabel", true).Visible
for i = 1, 4 do gettoken(monsterpart.Position) end
end
end
end
end
function IsToken(token)
if not token then
return false
end
if not token.Parent then return false end
if token then
if token.Orientation.Z ~= 0 then
return false
end
if token:FindFirstChild("FrontDecal") then
else
return false
end
if not token.Name == "C" then
return false
end
if not token:IsA("Part") then
return false
end
return true
else
return false
end
end
function check(ok)
if not ok then
return false
end
if not ok.Parent then return false end
return true
end
function getplanters()
table.clear(planterst.plantername)
table.clear(planterst.planterid)
for i,v in pairs(debug.getupvalues(require(game:GetService("ReplicatedStorage").LocalPlanters).LoadPlanter)[4]) do
if v.GrowthPercent == 1 and v.IsMine then
table.insert(planterst.plantername, v.Type)
table.insert(planterst.planterid, v.ActorID)
end
end
end
function farmant()
antpart.CanCollide = true
temptable.started.ant = true
anttable = {left = true, right = false}
temptable.oldtool = rtsg()['EquippedCollector']
game.ReplicatedStorage.Events.ItemPackageEvent:InvokeServer("Equip",{["Mute"] = true,["Type"] = "Spark Staff",["Category"] = "Collector"})
game.ReplicatedStorage.Events.ToyEvent:FireServer("Ant Challenge")
kocmoc.toggles.autodig = true
acl = CFrame.new(127, 48, 547)
acr = CFrame.new(65, 48, 534)
task.wait(1)
game.ReplicatedStorage.Events.PlayerActivesCommand:FireServer({["Name"] = "Sprinkler Builder"})
api.humanoidrootpart().CFrame = api.humanoidrootpart().CFrame + Vector3.new(0, 15, 0)
task.wait(3)
repeat
task.wait()
for i,v in next, game.Workspace.Toys["Ant Challenge"].Obstacles:GetChildren() do
if v:FindFirstChild("Root") then
if (v.Root.Position-api.humanoidrootpart().Position).magnitude <= 40 and anttable.left then
api.humanoidrootpart().CFrame = acr
anttable.left = false anttable.right = true
wait(.1)
elseif (v.Root.Position-api.humanoidrootpart().Position).magnitude <= 40 and anttable.right then
api.humanoidrootpart().CFrame = acl
anttable.left = true anttable.right = false
wait(.1)
end
end
end
until game:GetService("Workspace").Toys["Ant Challenge"].Busy.Value == false
task.wait(1)
game.ReplicatedStorage.Events.ItemPackageEvent:InvokeServer("Equip",{["Mute"] = true,["Type"] = temptable.oldtool,["Category"] = "Collector"})
temptable.started.ant = false
antpart.CanCollide = false
end
function collectplanters()
getplanters()
for i,v in pairs(planterst.plantername) do
if api.partwithnamepart(v, game:GetService("Workspace").Planters) and api.partwithnamepart(v, game:GetService("Workspace").Planters):FindFirstChild("Soil") then
soil = api.partwithnamepart(v, game:GetService("Workspace").Planters).Soil
api.humanoidrootpart().CFrame = soil.CFrame
game:GetService("ReplicatedStorage").Events.PlanterModelCollect:FireServer(planterst.planterid[i])
task.wait(.5)
game:GetService("ReplicatedStorage").Events.PlayerActivesCommand:FireServer({["Name"] = v.." Planter"})
for i = 1, 5 do gettoken(soil.Position) end
task.wait(2)
end
end
end
function getprioritytokens()
task.wait()
if temptable.running == false then
for e,r in next, game:GetService("Workspace").Collectibles:GetChildren() do
if r:FindFirstChildOfClass("Decal") then
local aaaaaaaa = string.split(r:FindFirstChildOfClass("Decal").Texture, 'rbxassetid://')[2]
if aaaaaaaa ~= nil and api.findvalue(kocmoc.priority, aaaaaaaa) then
if r.Name == game.Players.LocalPlayer.Name and not r:FindFirstChild("got it") or tonumber((r.Position - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude) <= temptable.magnitude/1.4 and not r:FindFirstChild("got it") then
farm(r) local val = Instance.new("IntValue",r) val.Name = "got it" break
end
end
end
end
end
end
function gethiveballoon()
task.wait()
result = false
for i,hive in next, game:GetService("Workspace").Honeycombs:GetChildren() do
task.wait()
if hive:FindFirstChild("Owner") and hive:FindFirstChild("SpawnPos") then
if tostring(hive.Owner.Value) == game.Players.LocalPlayer.Name then
for e,balloon in next, game:GetService("Workspace").Balloons.HiveBalloons:GetChildren() do
task.wait()
if balloon:FindFirstChild("BalloonRoot") then
if (balloon.BalloonRoot.Position-hive.SpawnPos.Value.Position).magnitude < 15 then
result = true
break
end
end
end
end
end
end
return result
end
function converthoney()
task.wait(0)
if temptable.converting then
if game.Players.LocalPlayer.PlayerGui.ScreenGui.ActivateButton.TextBox.Text ~= "Stop Making Honey" and game.Players.LocalPlayer.PlayerGui.ScreenGui.ActivateButton.BackgroundColor3 ~= Color3.new(201, 39, 28) or (game:GetService("Players").LocalPlayer.SpawnPos.Value.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude > 10 then
api.tween(1, game:GetService("Players").LocalPlayer.SpawnPos.Value * CFrame.fromEulerAnglesXYZ(0, 110, 0) + Vector3.new(0, 0, 9))
task.wait(.9)
if game.Players.LocalPlayer.PlayerGui.ScreenGui.ActivateButton.TextBox.Text ~= "Stop Making Honey" and game.Players.LocalPlayer.PlayerGui.ScreenGui.ActivateButton.BackgroundColor3 ~= Color3.new(201, 39, 28) or (game:GetService("Players").LocalPlayer.SpawnPos.Value.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude > 10 then game:GetService("ReplicatedStorage").Events.PlayerHiveCommand:FireServer("ToggleHoneyMaking") end
task.wait(.1)
end
end
end
function closestleaf()
for i,v in next, game.Workspace.Flowers:GetChildren() do
if temptable.running == false and tonumber((v.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude) < temptable.magnitude/1.4 then
farm(v)
break
end
end
end
function getbubble()
for i,v in next, game.workspace.Particles:GetChildren() do
if string.find(v.Name, "Bubble") and temptable.running == false and tonumber((v.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude) < temptable.magnitude/1.4 then
farm(v)
break
end
end
end
function getballoons()
for i,v in next, game:GetService("Workspace").Balloons.FieldBalloons:GetChildren() do
if v:FindFirstChild("BalloonRoot") and v:FindFirstChild("PlayerName") then
if v:FindFirstChild("PlayerName").Value == game.Players.LocalPlayer.Name then
if tonumber((v.BalloonRoot.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude) < temptable.magnitude/1.4 then
api.walkTo(v.BalloonRoot.Position)
end
end
end
end
end
function getflower()
flowerrrr = flowertable[math.random(#flowertable)]
if tonumber((flowerrrr-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude) <= temptable.magnitude/1.4 and tonumber((flowerrrr-fieldposition).magnitude) <= temptable.magnitude/1.4 then
if temptable.running == false then
if kocmoc.toggles.loopfarmspeed then
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = kocmoc.vars.farmspeed
end
api.walkTo(flowerrrr)
end
end
end
function getcloud()
for i,v in next, game:GetService("Workspace").Clouds:GetChildren() do
e = v:FindFirstChild("Plane")
if e and tonumber((e.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude) < temptable.magnitude/1.4 then
api.walkTo(e.Position)
end
end
end
function getcoco(v)
if temptable.coconut then repeat task.wait() until not temptable.coconut end
temptable.coconut = true
api.tween(.1, v.CFrame)
repeat task.wait() api.walkTo(v.Position) until not v.Parent
task.wait(.1)
temptable.coconut = false
table.remove(temptable.coconuts, table.find(temptable.coconuts, v))
end
function getfuzzy()
pcall(function()
for i,v in next, game.workspace.Particles:GetChildren() do
if v.Name == "DustBunnyInstance" and temptable.running == false and tonumber((v.Plane.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude) < temptable.magnitude/1.4 then
if v:FindFirstChild("Plane") then
farm(v:FindFirstChild("Plane"))
break
end
end
end
end)
end
function getflame()
for i,v in next, game:GetService("Workspace").PlayerFlames:GetChildren() do
if tonumber((v.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude) < temptable.magnitude/1.4 then
farm(v)
break
end
end
end
function avoidmob()
for i,v in next, game:GetService("Workspace").Monsters:GetChildren() do
if v:FindFirstChild("Head") then
if (v.Head.Position-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude < 30 and api.humanoid():GetState() ~= Enum.HumanoidStateType.Freefall then
game.Players.LocalPlayer.Character.Humanoid.Jump = true
end
end
end
end
function getcrosshairs(v)
if v.BrickColor ~= BrickColor.new("Lime green") and v.BrickColor ~= BrickColor.new("Flint") then
if temptable.crosshair then repeat task.wait() until not temptable.crosshair end
temptable.crosshair = true
api.walkTo(v.Position)
repeat task.wait() api.walkTo(v.Position) until not v.Parent or v.BrickColor == BrickColor.new("Forest green")
task.wait(.1)
temptable.crosshair = false
table.remove(temptable.crosshairs, table.find(temptable.crosshairs, v))
else
table.remove(temptable.crosshairs, table.find(temptable.crosshairs, v))
end
end
function makequests()
for i,v in next, game:GetService("Workspace").NPCs:GetChildren() do
if v.Name ~= "Ant Challenge Info" and v.Name ~= "Bubble Bee Man 2" and v.Name ~= "Wind Shrine" and v.Name ~= "Gummy Bear" then if v:FindFirstChild("Platform") then if v.Platform:FindFirstChild("AlertPos") then if v.Platform.AlertPos:FindFirstChild("AlertGui") then if v.Platform.AlertPos.AlertGui:FindFirstChild("ImageLabel") then
image = v.Platform.AlertPos.AlertGui.ImageLabel
button = game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.ActivateButton.MouseButton1Click
if image.ImageTransparency == 0 then
if kocmoc.toggles.tptonpc then
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.Platform.Position.X, v.Platform.Position.Y+3, v.Platform.Position.Z)
task.wait(1)
else
api.tween(2,CFrame.new(v.Platform.Position.X, v.Platform.Position.Y+3, v.Platform.Position.Z))
task.wait(3)
end
for b,z in next, getconnections(button) do z.Function() end
task.wait(8)
if image.ImageTransparency == 0 then
for b,z in next, getconnections(button) do z.Function() end
end
task.wait(2)
end
end
end end end end end
end
local Config = { WindowName = "Kocmoc v"..temptable.version.." Remastered", Color = Color3.fromRGB(164, 84, 255), Keybind = Enum.KeyCode.Semicolon}
local Window = library:CreateWindow(Config, game:GetService("CoreGui"))
local hometab = Window:CreateTab("Home")
local farmtab = Window:CreateTab("Farming")
local combtab = Window:CreateTab("Combat")
local wayptab = Window:CreateTab("Waypoints")
local misctab = Window:CreateTab("Misc")
local extrtab = Window:CreateTab("Extra")
local setttab = Window:CreateTab("Settings")
local information = hometab:CreateSection("Information")
information:CreateLabel("Welcome, "..api.nickname.."!")
information:CreateLabel("Script version: "..temptable.version)
information:CreateLabel("Place version: "..game.PlaceVersion)
information:CreateLabel("⚠️ - Not Safe Function")
information:CreateLabel("⚙ - Configurable Function")
information:CreateLabel("Place version: "..game.PlaceVersion)
information:CreateLabel("Script by Boxking776")
information:CreateLabel("Originally by weuz_ and mrdevl")
local gainedhoneylabel = information:CreateLabel("Gained Honey: 0")
information:CreateButton("Discord Invite", function() setclipboard("https://discord.gg/kTNMzbxUuZ") end)
information:CreateButton("Donation", function() setclipboard("https://www.paypal.com/paypalme/GHubPay") end)
information:CreateLabel("")
information:CreateLabel("The script will continue to be updated")
information:CreateLabel("under new ownership.")
information:CreateLabel("")
local farmo = farmtab:CreateSection("Farming")
local fielddropdown = farmo:CreateDropdown("Field", fieldstable, function(String) kocmoc.vars.field = String end) fielddropdown:SetOption(fieldstable[1])
convertatslider = farmo:CreateSlider("Convert At", 0, 100, 100, false, function(Value) kocmoc.vars.convertat = Value end)
local autofarmtoggle = farmo:CreateToggle("Autofarm ⚙", nil, function(State) kocmoc.toggles.autofarm = State end) autofarmtoggle:CreateKeybind("U", function(Key) end)
farmo:CreateToggle("Autodig", nil, function(State) kocmoc.toggles.autodig = State end)
farmo:CreateToggle("Auto Sprinkler", nil, function(State) kocmoc.toggles.autosprinkler = State end)
farmo:CreateToggle("Farm Bubbles", nil, function(State) kocmoc.toggles.farmbubbles = State end)
farmo:CreateToggle("Farm Flames", nil, function(State) kocmoc.toggles.farmflame = State end)
farmo:CreateToggle("Farm Coconuts & Shower", nil, function(State) kocmoc.toggles.farmcoco = State end)
farmo:CreateToggle("Farm Precise Crosshairs", nil, function(State) kocmoc.toggles.collectcrosshairs = State end)
farmo:CreateToggle("Farm Fuzzy Bombs", nil, function(State) kocmoc.toggles.farmfuzzy = State end)
farmo:CreateToggle("Farm Under Balloons", nil, function(State) kocmoc.toggles.farmunderballoons = State end)
farmo:CreateToggle("Farm Under Clouds", nil, function(State) kocmoc.toggles.farmclouds = State end)
--farmo:CreateToggle("Farm Closest Leaves", nil, function(State) kocmoc.toggles.farmclosestleaf = State end)
local farmt = farmtab:CreateSection("Farming")
farmt:CreateToggle("Auto Dispenser ⚙", nil, function(State) kocmoc.toggles.autodispense = State end)
farmt:CreateToggle("Auto Field Boosters ⚙", nil, function(State) kocmoc.toggles.autoboosters = State end)
farmt:CreateToggle("Auto Wealth Clock", nil, function(State) kocmoc.toggles.clock = State end)
farmt:CreateToggle("Auto Gingerbread Bears", nil, function(State) kocmoc.toggles.collectgingerbreads = State end)
farmt:CreateToggle("Auto Samovar", nil, function(State) kocmoc.toggles.autosamovar = State end)
farmt:CreateToggle("Auto Stockings", nil, function(State) kocmoc.toggles.autostockings = State end)
farmt:CreateToggle("Auto Planters", nil, function(State) kocmoc.toggles.autoplanters = State end):AddToolTip("Will re-plant your planters after converting, if they hit 100%")
farmt:CreateToggle("Auto Honey Candles", nil, function(State) kocmoc.toggles.autocandles = State end)
farmt:CreateToggle("Auto Beesmas Feast", nil, function(State) kocmoc.toggles.autofeast = State end)
farmt:CreateToggle("Auto Onett's Lid Art", nil, function(State) kocmoc.toggles.autoonettart = State end)
farmt:CreateToggle("Auto Free Antpasses", nil, function(State) kocmoc.toggles.freeantpass = State end)
farmt:CreateToggle("Farm Sprouts", nil, function(State) kocmoc.toggles.farmsprouts = State end)
farmt:CreateToggle("Farm Puffshrooms", nil, function(State) kocmoc.toggles.farmpuffshrooms = State end)
farmt:CreateToggle("Farm Snowflakes ⚠️", nil, function(State) kocmoc.toggles.farmsnowflakes = State end)
farmt:CreateToggle("Teleport To Rares ⚠️", nil, function(State) kocmoc.toggles.farmrares = State end)
farmt:CreateToggle("Auto Accept/Confirm Quests ⚙", nil, function(State) kocmoc.toggles.autoquest = State end)
farmt:CreateToggle("Auto Do Quests ⚙", nil, function(State) kocmoc.toggles.autodoquest = State end)
farmt:CreateToggle("Auto Honeystorm", nil, function(State) kocmoc.toggles.honeystorm = State end)
local mobkill = combtab:CreateSection("Combat")
mobkill:CreateToggle("Train Crab", nil, function(State) if State then api.humanoidrootpart().CFrame = CFrame.new(-307.52117919922, 107.91863250732, 467.86791992188) end end)
mobkill:CreateToggle("Train Snail", nil, function(State) fd = game.Workspace.FlowerZones['Stump Field'] if State then api.humanoidrootpart().CFrame = CFrame.new(fd.Position.X, fd.Position.Y-6, fd.Position.Z) else api.humanoidrootpart().CFrame = CFrame.new(fd.Position.X, fd.Position.Y+2, fd.Position.Z) end end)
mobkill:CreateToggle("Kill Mondo", nil, function(State) kocmoc.toggles.killmondo = State end)
mobkill:CreateToggle("Kill Vicious", nil, function(State) kocmoc.toggles.killvicious = State end)
mobkill:CreateToggle("Kill Windy", nil, function(State) kocmoc.toggles.killwindy = State end)
mobkill:CreateToggle("Auto Kill Mobs", nil, function(State) kocmoc.toggles.autokillmobs = State end):AddToolTip("Kills mobs after x pollen converting")
mobkill:CreateToggle("Avoid Mobs", nil, function(State) kocmoc.toggles.avoidmobs = State end)
mobkill:CreateToggle("Auto Ant", nil, function(State) kocmoc.toggles.autoant = State end):AddToolTip("You Need Spark Stuff 😋; Goes to Ant Challenge after pollen converting")
local amks = combtab:CreateSection("Auto Kill Mobs Settings")
amks:CreateTextBox('Kill Mobs After x Convertions', 'default = 3', true, function(Value) kocmoc.vars.monstertimer = tonumber(Value) end)
local wayp = wayptab:CreateSection("Waypoints")
wayp:CreateDropdown("Field Teleports", fieldstable, function(Option) game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Workspace").FlowerZones:FindFirstChild(Option).CFrame end)
wayp:CreateDropdown("Monster Teleports", spawnerstable, function(Option) d = game:GetService("Workspace").MonsterSpawners:FindFirstChild(Option) game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(d.Position.X, d.Position.Y+3, d.Position.Z) end)
wayp:CreateDropdown("Toys Teleports", toystable, function(Option) d = game:GetService("Workspace").Toys:FindFirstChild(Option).Platform game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(d.Position.X, d.Position.Y+3, d.Position.Z) end)
wayp:CreateButton("Teleport to hive", function() game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Players").LocalPlayer.SpawnPos.Value end)
local miscc = misctab:CreateSection("Misc")
miscc:CreateButton("Ant Challenge Semi-Godmode", function() api.tween(1, CFrame.new(93.4228, 32.3983, 553.128)) task.wait(1) game.ReplicatedStorage.Events.ToyEvent:FireServer("Ant Challenge") game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Vector3.new(93.4228, 42.3983, 553.128) task.wait(2) game.Players.LocalPlayer.Character.Humanoid.Name = 1 local l = game.Players.LocalPlayer.Character["1"]:Clone() l.Parent = game.Players.LocalPlayer.Character l.Name = "Humanoid" task.wait() game.Players.LocalPlayer.Character["1"]:Destroy() api.tween(1, CFrame.new(93.4228, 32.3983, 553.128)) task.wait(8) api.tween(1, CFrame.new(93.4228, 32.3983, 553.128)) end)
local wstoggle = miscc:CreateToggle("Walk Speed", nil, function(State) kocmoc.toggles.loopspeed = State end) wstoggle:CreateKeybind("K", function(Key) end)
local jptoggle = miscc:CreateToggle("Jump Power", nil, function(State) kocmoc.toggles.loopjump = State end) jptoggle:CreateKeybind("L", function(Key) end)
miscc:CreateToggle("Godmode", nil, function(State) kocmoc.toggles.godmode = State if State then bssapi:Godmode(true) else bssapi:Godmode(false) end end)
local misco = misctab:CreateSection("Other")
misco:CreateDropdown("Equip Accesories", accesoriestable, function(Option) local ohString1 = "Equip" local ohTable2 = { ["Mute"] = false, ["Type"] = Option, ["Category"] = "Accessory" } game:GetService("ReplicatedStorage").Events.ItemPackageEvent:InvokeServer(ohString1, ohTable2) end)
misco:CreateDropdown("Equip Masks", masktable, function(Option) local ohString1 = "Equip" local ohTable2 = { ["Mute"] = false, ["Type"] = Option, ["Category"] = "Accessory" } game:GetService("ReplicatedStorage").Events.ItemPackageEvent:InvokeServer(ohString1, ohTable2) end)
misco:CreateDropdown("Equip Collectors", collectorstable, function(Option) local ohString1 = "Equip" local ohTable2 = { ["Mute"] = false, ["Type"] = Option, ["Category"] = "Collector" } game:GetService("ReplicatedStorage").Events.ItemPackageEvent:InvokeServer(ohString1, ohTable2) end)
misco:CreateDropdown("Generate Amulet", {"Supreme Star Amulet", "Diamond Star Amulet", "Gold Star Amulet","Silver Star Amulet","Bronze Star Amulet","Moon Amulet"}, function(Option) local A_1 = Option.." Generator" local Event = game:GetService("ReplicatedStorage").Events.ToyEvent Event:FireServer(A_1) end)
misco:CreateButton("Export Stats Table", function() local StatCache = require(game.ReplicatedStorage.ClientStatCache)writefile("Stats_"..api.nickname..".json", StatCache:Encode()) end)
local extras = extrtab:CreateSection("Extras")
extras:CreateButton("Boost FPS", function()loadstring(game:HttpGet("https://raw.githubusercontent.com/Boxking776/kocmoc-bss-archive/main/functions/boostfps.lua"))()end)
extras:CreateButton("Destroy Decals", function()
local g = game
for i, v in pairs(g:GetDescendants()) do
if v:IsA("Decal") then
v:Destroy()
end
end
end)
extras:CreateTextBox("Glider Speed", "", true, function(Value) local StatCache = require(game.ReplicatedStorage.ClientStatCache) local stats = StatCache:Get() stats.EquippedParachute = "Glider" local module = require(game:GetService("ReplicatedStorage").Parachutes) local st = module.GetStat local glidersTable = getupvalues(st) glidersTable[1]["Glider"].Speed = Value setupvalue(st, st[1]'Glider', glidersTable) end)
extras:CreateTextBox("Glider Float", "", true, function(Value) local StatCache = require(game.ReplicatedStorage.ClientStatCache) local stats = StatCache:Get() stats.EquippedParachute = "Glider" local module = require(game:GetService("ReplicatedStorage").Parachutes) local st = module.GetStat local glidersTable = getupvalues(st) glidersTable[1]["Glider"].Float = Value setupvalue(st, st[1]'Glider', glidersTable) end)
extras:CreateButton("Invisibility", function(State) api.teleport(CFrame.new(0,0,0)) wait(1) if game.Players.LocalPlayer.Character:FindFirstChild('LowerTorso') then Root = game.Players.LocalPlayer.Character.LowerTorso.Root:Clone() game.Players.LocalPlayer.Character.LowerTorso.Root:Destroy() Root.Parent = game.Players.LocalPlayer.Character.LowerTorso api.teleport(game:GetService("Players").LocalPlayer.SpawnPos.Value) end end)
extras:CreateToggle("Float", nil, function(State) temptable.float = State end)
local farmsettings = setttab:CreateSection("Autofarm Settings")
farmsettings:CreateTextBox("Autofarming Walkspeed", "Default Value = 60", true, function(Value) kocmoc.vars.farmspeed = Value end)
farmsettings:CreateToggle("^ Loop Speed On Autofarming",nil, function(State) kocmoc.toggles.loopfarmspeed = State end)
farmsettings:CreateToggle("Don't Walk In Field",nil, function(State) kocmoc.toggles.farmflower = State end)
farmsettings:CreateToggle("Convert Hive Balloon",nil, function(State) kocmoc.toggles.convertballoons = State end)
farmsettings:CreateToggle("Don't Farm Tokens",nil, function(State) kocmoc.toggles.donotfarmtokens = State end)
farmsettings:CreateToggle("Enable Token Blacklisting",nil, function(State) kocmoc.toggles.enabletokenblacklisting = State end)
farmsettings:CreateSlider("Walk Speed", 0, 120, 70, false, function(Value) kocmoc.vars.walkspeed = Value end)
farmsettings:CreateSlider("Jump Power", 0, 120, 70, false, function(Value) kocmoc.vars.jumppower = Value end)
local raresettings = setttab:CreateSection("Tokens Settings")
raresettings:CreateTextBox("Asset ID", 'rbxassetid', false, function(Value) rarename = Value end)
raresettings:CreateButton("Add Token To Rares List", function()
table.insert(kocmoc.rares, rarename)
game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main:FindFirstChild("Rares List D",true):Destroy()
raresettings:CreateDropdown("Rares List", kocmoc.rares, function(Option) end)
end)
raresettings:CreateButton("Remove Token From Rares List", function()
table.remove(kocmoc.rares, api.tablefind(kocmoc.rares, rarename))
game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main:FindFirstChild("Rares List D",true):Destroy()
raresettings:CreateDropdown("Rares List", kocmoc.rares, function(Option) end)
end)
raresettings:CreateButton("Add Token To Blacklist", function()
table.insert(kocmoc.bltokens, rarename)
game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main:FindFirstChild("Tokens Blacklist D",true):Destroy()
raresettings:CreateDropdown("Tokens Blacklist", kocmoc.bltokens, function(Option) end)
end)
raresettings:CreateButton("Remove Token From Blacklist", function()
table.remove(kocmoc.bltokens, api.tablefind(kocmoc.bltokens, rarename))
game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main:FindFirstChild("Tokens Blacklist D",true):Destroy()
raresettings:CreateDropdown("Tokens Blacklist", kocmoc.bltokens, function(Option) end)
end)
raresettings:CreateDropdown("Tokens Blacklist", kocmoc.bltokens, function(Option) end)
raresettings:CreateDropdown("Rares List", kocmoc.rares, function(Option) end)
local dispsettings = setttab:CreateSection("Auto Dispenser & Auto Boosters Settings")
dispsettings:CreateToggle("Royal Jelly Dispenser", nil, function(State) kocmoc.dispensesettings.rj = not kocmoc.dispensesettings.rj end)
dispsettings:CreateToggle("Blueberry Dispenser", nil, function(State) kocmoc.dispensesettings.blub = not kocmoc.dispensesettings.blub end)
dispsettings:CreateToggle("Strawberry Dispenser", nil, function(State) kocmoc.dispensesettings.straw = not kocmoc.dispensesettings.straw end)
dispsettings:CreateToggle("Treat Dispenser", nil, function(State) kocmoc.dispensesettings.treat = not kocmoc.dispensesettings.treat end)
dispsettings:CreateToggle("Coconut Dispenser", nil, function(State) kocmoc.dispensesettings.coconut = not kocmoc.dispensesettings.coconut end)
dispsettings:CreateToggle("Glue Dispenser", nil, function(State) kocmoc.dispensesettings.glue = not kocmoc.dispensesettings.glue end)
dispsettings:CreateToggle("Mountain Top Booster", nil, function(State) kocmoc.dispensesettings.white = not kocmoc.dispensesettings.white end)
dispsettings:CreateToggle("Blue Field Booster", nil, function(State) kocmoc.dispensesettings.blue = not kocmoc.dispensesettings.blue end)
dispsettings:CreateToggle("Red Field Booster", nil, function(State) kocmoc.dispensesettings.red = not kocmoc.dispensesettings.red end)
local guisettings = setttab:CreateSection("GUI Settings")
local uitoggle = guisettings:CreateToggle("UI Toggle", nil, function(State) Window:Toggle(State) end) uitoggle:CreateKeybind(tostring(Config.Keybind):gsub("Enum.KeyCode.", ""), function(Key) Config.Keybind = Enum.KeyCode[Key] end) uitoggle:SetState(true)
guisettings:CreateColorpicker("UI Color", function(Color) Window:ChangeColor(Color) end)
local themes = guisettings:CreateDropdown("Image", {"Default","Hearts","Abstract","Hexagon","Circles","Lace With Flowers","Floral"}, function(Name) if Name == "Default" then Window:SetBackground("2151741365") elseif Name == "Hearts" then Window:SetBackground("6073763717") elseif Name == "Abstract" then Window:SetBackground("6073743871") elseif Name == "Hexagon" then Window:SetBackground("6073628839") elseif Name == "Circles" then Window:SetBackground("6071579801") elseif Name == "Lace With Flowers" then Window:SetBackground("6071575925") elseif Name == "Floral" then Window:SetBackground("5553946656") end end)themes:SetOption("Default")
local kocmocs = setttab:CreateSection("Configs")
kocmocs:CreateTextBox("Config Name", 'ex: stumpconfig', false, function(Value) temptable.configname = Value end)
kocmocs:CreateButton("Load Config", function() kocmoc = game:service'HttpService':JSONDecode(readfile("kocmoc/BSS_"..temptable.configname..".json")) end)
kocmocs:CreateButton("Save Config", function() writefile("kocmoc/BSS_"..temptable.configname..".json",game:service'HttpService':JSONEncode(kocmoc)) end)
kocmocs:CreateButton("Reset Config", function() kocmoc = defaultkocmoc end)
local fieldsettings = setttab:CreateSection("Fields Settings")
fieldsettings:CreateDropdown("Best White Field", temptable.whitefields, function(Option) kocmoc.bestfields.white = Option end)
fieldsettings:CreateDropdown("Best Red Field", temptable.redfields, function(Option) kocmoc.bestfields.red = Option end)
fieldsettings:CreateDropdown("Best Blue Field", temptable.bluefields, function(Option) kocmoc.bestfields.blue = Option end)
fieldsettings:CreateDropdown("Field", fieldstable, function(Option) temptable.blackfield = Option end)
fieldsettings:CreateButton("Add Field To Blacklist", function() table.insert(kocmoc.blacklistedfields, temptable.blackfield) game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main:FindFirstChild("Blacklisted Fields D",true):Destroy() fieldsettings:CreateDropdown("Blacklisted Fields", kocmoc.blacklistedfields, function(Option) end) end)
fieldsettings:CreateButton("Remove Field From Blacklist", function() table.remove(kocmoc.blacklistedfields, api.tablefind(kocmoc.blacklistedfields, temptable.blackfield)) game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main:FindFirstChild("Blacklisted Fields D",true):Destroy() fieldsettings:CreateDropdown("Blacklisted Fields", kocmoc.blacklistedfields, function(Option) end) end)
fieldsettings:CreateDropdown("Blacklisted Fields", kocmoc.blacklistedfields, function(Option) end)
local aqs = setttab:CreateSection("Auto Quest Settings")
aqs:CreateDropdown("Do NPC Quests", {'All Quests', 'Bucko Bee', 'Brown Bear', 'Riley Bee', 'Polar Bear'}, function(Option) kocmoc.vars.npcprefer = Option end)
aqs:CreateToggle("Teleport To NPC", nil, function(State) kocmoc.toggles.tptonpc = State end)
local pts = setttab:CreateSection("Autofarm Priority Tokens")
pts:CreateTextBox("Asset ID", 'rbxassetid', false, function(Value) rarename = Value end)
pts:CreateButton("Add Token To Priority List", function() table.insert(kocmoc.priority, rarename) game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main:FindFirstChild("Priority List D",true):Destroy() pts:CreateDropdown("Priority List", kocmoc.priority, function(Option) end) end)
pts:CreateButton("Remove Token From Priority List", function() table.remove(kocmoc.priority, api.tablefind(kocmoc.priority, rarename)) game:GetService("CoreGui"):FindFirstChild(_G.windowname).Main:FindFirstChild("Priority List D",true):Destroy() pts:CreateDropdown("Priority List", kocmoc.priority, function(Option) end) end)
pts:CreateDropdown("Priority List", kocmoc.priority, function(Option) end)
-- script
task.spawn(function() while task.wait() do
if kocmoc.toggles.autofarm then
--if kocmoc.toggles.farmcoco then getcoco() end
--if kocmoc.toggles.collectcrosshairs then getcrosshairs() end
if kocmoc.toggles.farmflame then getflame() end
if kocmoc.toggles.farmfuzzy then getfuzzy() end
end
end end)
game.Workspace.Particles.ChildAdded:Connect(function(v)
if not temptable.started.vicious and not temptable.started.ant then
if v.Name == "WarningDisk" and not temptable.started.vicious and kocmoc.toggles.autofarm and not temptable.started.ant and kocmoc.toggles.farmcoco and (v.Position-api.humanoidrootpart().Position).magnitude < temptable.magnitude and not temptable.converting then
table.insert(temptable.coconuts, v)
getcoco(v)
gettoken()
elseif v.Name == "Crosshair" and v ~= nil and v.BrickColor ~= BrickColor.new("Forest green") and not temptable.started.ant and v.BrickColor ~= BrickColor.new("Flint") and (v.Position-api.humanoidrootpart().Position).magnitude < temptable.magnitude and kocmoc.toggles.autofarm and kocmoc.toggles.collectcrosshairs and not temptable.converting then
if #temptable.crosshairs <= 3 then
table.insert(temptable.crosshairs, v)
getcrosshairs(v)
gettoken()
end
end
end
end)
task.spawn(function() while task.wait() do
if kocmoc.toggles.autofarm then
temptable.magnitude = 70
if game.Players.LocalPlayer.Character:FindFirstChild("ProgressLabel",true) then
local pollenprglbl = game.Players.LocalPlayer.Character:FindFirstChild("ProgressLabel",true)
maxpollen = tonumber(pollenprglbl.Text:match("%d+$"))
local pollencount = game.Players.LocalPlayer.CoreStats.Pollen.Value
pollenpercentage = pollencount/maxpollen*100
fieldselected = game:GetService("Workspace").FlowerZones[kocmoc.vars.field]
if kocmoc.toggles.autodoquest and game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.Menus.Children.Quests.Content:FindFirstChild("Frame") then
for i,v in next, game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.Menus.Children.Quests:GetDescendants() do
if v.Name == "Description" then
if string.match(v.Parent.Parent.TitleBar.Text, kocmoc.vars.npcprefer) or kocmoc.vars.npcprefer == "All Quests" and not string.find(v.Text, "Puffshroom") then
pollentypes = {'White Pollen', "Red Pollen", "Blue Pollen", "Blue Flowers", "Red Flowers", "White Flowers"}
text = v.Text
if api.returnvalue(fieldstable, text) and not string.find(v.Text, "Complete!") and not api.findvalue(kocmoc.blacklistedfields, api.returnvalue(fieldstable, text)) then
d = api.returnvalue(fieldstable, text)
fieldselected = game:GetService("Workspace").FlowerZones[d]
break
elseif api.returnvalue(pollentypes, text) and not string.find(v.Text, 'Complete!') then
d = api.returnvalue(pollentypes, text)
if d == "Blue Flowers" or d == "Blue Pollen" then
fieldselected = game:GetService("Workspace").FlowerZones[kocmoc.bestfields.blue]
break
elseif d == "White Flowers" or d == "White Pollen" then
fieldselected = game:GetService("Workspace").FlowerZones[kocmoc.bestfields.white]
break
elseif d == "Red Flowers" or d == "Red Pollen" then
fieldselected = game:GetService("Workspace").FlowerZones[kocmoc.bestfields.red]
break
end
end
end
end
end
else
fieldselected = game:GetService("Workspace").FlowerZones[kocmoc.vars.field]
end
fieldpos = CFrame.new(fieldselected.Position.X, fieldselected.Position.Y+3, fieldselected.Position.Z)
fieldposition = fieldselected.Position
if temptable.sprouts.detected and temptable.sprouts.coords and kocmoc.toggles.farmsprouts then
fieldposition = temptable.sprouts.coords.Position
fieldpos = temptable.sprouts.coords
end
if kocmoc.toggles.farmpuffshrooms and game.Workspace.Happenings.Puffshrooms:FindFirstChildOfClass("Model") then
if api.partwithnamepart("Mythic", game.Workspace.Happenings.Puffshrooms) then
temptable.magnitude = 25
fieldpos = api.partwithnamepart("Mythic", game.Workspace.Happenings.Puffshrooms):FindFirstChild("Puffball Stem").CFrame
fieldposition = fieldpos.Position
elseif api.partwithnamepart("Legendary", game.Workspace.Happenings.Puffshrooms) then
temptable.magnitude = 25
fieldpos = api.partwithnamepart("Legendary", game.Workspace.Happenings.Puffshrooms):FindFirstChild("Puffball Stem").CFrame
fieldposition = fieldpos.Position
elseif api.partwithnamepart("Epic", game.Workspace.Happenings.Puffshrooms) then
temptable.magnitude = 25
fieldpos = api.partwithnamepart("Epic", game.Workspace.Happenings.Puffshrooms):FindFirstChild("Puffball Stem").CFrame
fieldposition = fieldpos.Position
elseif api.partwithnamepart("Rare", game.Workspace.Happenings.Puffshrooms) then
temptable.magnitude = 25
fieldpos = api.partwithnamepart("Rare", game.Workspace.Happenings.Puffshrooms):FindFirstChild("Puffball Stem").CFrame
fieldposition = fieldpos.Position
else
temptable.magnitude = 25
fieldpos = api.getbiggestmodel(game.Workspace.Happenings.Puffshrooms):FindFirstChild("Puffball Stem").CFrame
fieldposition = fieldpos.Position
end
end
if tonumber(pollenpercentage) < tonumber(kocmoc.vars.convertat) then
if not temptable.tokensfarm then
api.tween(2, fieldpos)
task.wait(2)
temptable.tokensfarm = true
if kocmoc.toggles.autosprinkler then makesprinklers() end
else
if kocmoc.toggles.killmondo then
while kocmoc.toggles.killmondo and game.Workspace.Monsters:FindFirstChild("Mondo Chick (Lvl 8)") and not temptable.started.vicious and not temptable.started.monsters do
temptable.started.mondo = true
while game.Workspace.Monsters:FindFirstChild("Mondo Chick (Lvl 8)") do
disableall()
game:GetService("Workspace").Map.Ground.HighBlock.CanCollide = false
mondopition = game.Workspace.Monsters["Mondo Chick (Lvl 8)"].Head.Position
api.tween(1, CFrame.new(mondopition.x, mondopition.y - 60, mondopition.z))
task.wait(1)
temptable.float = true
end
task.wait(.5) game:GetService("Workspace").Map.Ground.HighBlock.CanCollide = true temptable.float = false api.tween(.5, CFrame.new(73.2, 176.35, -167)) task.wait(1)
for i = 0, 50 do
gettoken(CFrame.new(73.2, 176.35, -167).Position)
end
enableall()
api.tween(2, fieldpos)
temptable.started.mondo = false
end
end
if (fieldposition-game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude > temptable.magnitude then
api.tween(2, fieldpos)
task.wait(2)
if kocmoc.toggles.autosprinkler then makesprinklers() end
end
getprioritytokens()
if kocmoc.toggles.avoidmobs then avoidmob() end
if kocmoc.toggles.farmclosestleaf then closestleaf() end
if kocmoc.toggles.farmbubbles then getbubble() end
if kocmoc.toggles.farmclouds then getcloud() end
if kocmoc.toggles.farmunderballoons then getballoons() end
if not kocmoc.toggles.donotfarmtokens and done then gettoken() end
if not kocmoc.toggles.farmflower then getflower() end
end
elseif tonumber(pollenpercentage) >= tonumber(kocmoc.vars.convertat) then
temptable.tokensfarm = false
api.tween(2, game:GetService("Players").LocalPlayer.SpawnPos.Value * CFrame.fromEulerAnglesXYZ(0, 110, 0) + Vector3.new(0, 0, 9))
task.wait(2)
temptable.converting = true
repeat
converthoney()
until game.Players.LocalPlayer.CoreStats.Pollen.Value == 0
if kocmoc.toggles.convertballoons and gethiveballoon() then
task.wait(6)
repeat
task.wait()
converthoney()
until gethiveballoon() == false or not kocmoc.toggles.convertballoons
end
temptable.converting = false
temptable.act = temptable.act + 1
task.wait(6)
if kocmoc.toggles.autoant and not game:GetService("Workspace").Toys["Ant Challenge"].Busy.Value and rtsg().Eggs.AntPass > 0 then farmant() end
if kocmoc.toggles.autoquest then makequests() end
if kocmoc.toggles.autoplanters then collectplanters() end
if kocmoc.toggles.autokillmobs then
if temptable.act >= kocmoc.vars.monstertimer then
temptable.started.monsters = true
temptable.act = 0