forked from TrixAde/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBss-Kocmoc-Lastest-V2.lua
More file actions
1639 lines (1554 loc) · 81.2 KB
/
Copy pathBss-Kocmoc-Lastest-V2.lua
File metadata and controls
1639 lines (1554 loc) · 81.2 KB
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://pastebin.com/raw/VZjAq6Lw"))()
local api = {
["log"] = function(text) -- just print() who tf will use this
print(text)
end,
["div"] = function(v1, v2) -- divide int :D
return v1/v2
end,
["humanoidrootpart"] = function()
return game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
end,
["humanoid"] = function()
return game:GetService("Players").LocalPlayer.Character.Humanoid
end,
["tween"] = function(time, pos) -- tween to position by (time) + (cframe)
game:GetService("TweenService"):Create(game.Players.LocalPlayer.Character.HumanoidRootPart, TweenInfo.new(time, Enum.EasingStyle.Linear), {CFrame = pos}):Play() task.wait(time)
end,
["walkTo"] = function(v3) -- walk to position (not pathfinding)
game:GetService("Players").LocalPlayer.Character.Humanoid:MoveTo(v3)
end,
["isExist"] = function(obj) -- check for object, if it is exist then returnes true
if obj ~= nil then
return true
end
end,
["notify"] = function(title, description, duration)
pcall(function()
game.StarterGui:SetCore("SendNotification", {
Title = title;
Text = description;
Duration = duration;
})
end)
end,
["isSynapse"] = function()
if syn then
return true
else
return false
end
end,
['isKrnl'] = function()
if Krnl then
return true
else
return false
end
end,
['tableVReturn'] = function(table)
for i,v in pairs(table) do
print(i,v)
end
end,
['nickname'] = game.Players.LocalPlayer.Name,
['placeid'] = game.PlaceId,
['placeversion'] = game.PlaceVersion,
['plrico'] = function(userid)
return "https://www.roblox.com/headshot-thumbnail/image?userId="..userid.."&width=420&height=420&format=png"
end,
['lplrid'] = game.Players.LocalPlayer.UserId,
['getsitebody'] = function(link)
local Response = syn.request({Url = link, Method = "GET"})
return Response.Body
end,
['killroblox'] = function()
game:Shutdown()
end,
['rmagnitude'] = function(v1, v2)
return (v1-v2).magnitude
end,
['varExchange'] = function(v,v2)
v,v2 = v2,v
local vartable = {v,v2}
return vartable
end,
['enabled'] = true,
['player'] = game:GetService("Players").LocalPlayer,
['camera'] = function()
return game:GetService("Workspace").Camera
end,
['search'] = {
['byName'] = function(a,b)
for _,v in pairs(a:GetDescendants()) do
if v.Name == b then
return v
end
end
warn("Can't find object")
end,
["byMaterial"] = function(a, b, c)
pcall(function()
local size = c
if c+1-1 == nil or c < 1 or c == nil then
size = 1
elseif c == 0 then
size = math.huge
end
for _, v in pairs(a:GetDescendants()) do
if v:IsA(b) then
local objects = {}
table.insert(objects, v)
if #objects == size then
return objects
end
end
end
warn("Can't find object")
end)
end
},
['childTable'] = function(path)
local rtable = {}
for _,v in pairs(path:GetChildren()) do
table.insert(rtable, v)
end
return rtable
end,
['afunc'] = function(f)
--[[
f = function
function functiontest()
task.wait(3) -- you can do task.wait(), it will be async
print("test")
end
api.afunc(functiontest)
]]
local wa = coroutine.create(
function()
f()
end
)
coroutine.resume(wa)
end,
['getclosestpart'] = function(path, t)
local root = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
if root == nil then return end
local studs = math.huge
local part;
if not t then
t = "descendants"
end
if t == "descendants" then
for _, obj in ipairs(path:GetDescendants()) do
if obj:IsA('BasePart') then
local distance = (root.Position - obj.Position).Magnitude
if distance < studs then
studs = distance
part = obj
end
end
end
else
for _, obj in ipairs(path:GetDescendants()) do
if obj:IsA('BasePart') then
local distance = (root.Position - obj.Position).Magnitude
if distance < studs then
studs = distance
part = obj
end
end
end
end
return part
end,
['getsmallestpart'] = function(path, typee, magnitude)
if not typee then
typee = "BasePart"
end
if typee ~= "BasePart" and typee ~= "MeshPart" then
typee = "BasePart"
end
if not magnitude then
magnitude = math.huge
end
local root = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
if root == nil then return end
local size = Vector3.new(math.huge,math.huge,math.huge)
local part;
for _, obj in ipairs(path:GetDescendants()) do
if obj:IsA(typee) then
local objsize = obj.Size
if objsize.X < size.X and objsize.Y < size.Y and (obj.Position-root.Position).magnitude < magnitude then
size = objsize
part = obj
end
end
end
return part
end,
['generaterandomstring'] = function(a)
local let = ('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890'):split('')
local string = ''
for i = 1, a do
string = string..let[math.random(1, #let)]
end
return string
end,
['request'] = syn and syn.request or http and http.request or http_request or httprequest or request,
['pathfindserv'] = game:GetService('PathfindingService'),
['toHMS'] = function(t)
Minutes = (t - t%60)/60
t = t - Minutes*60
Hours = (Minutes - Minutes%60)/60
Minutes = Minutes - Hours*60
return string.format("%02i", Hours)..":"..string.format("%02i", Minutes)..":"..string.format("%02i", t)
end,
['tablefind'] = function(tt, va)
for i,v in pairs(tt) do
if v == va then
return i
end
end
end,
['suffixstring'] = function(st)
local suffixes = {"k", "m", "b", "t", "q", "Q", "sx", "sp", "o", "n", "d"}
for i = #suffixes, 1, -1 do
local mp = math.pow(10, i * 3)
if st >= mp then
return ("%.1f"):format(st / mp) .. suffixes[i]
end
end
return tostring(st)
end,
['teleport'] = function(cf)
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = cf
end,
['findvalue'] = function(Table, Value)
if type(Table) == "table" then
for index, value in pairs(Table) do
if value == Value then
return true
end
end
else
return false
end
return false
end,
['webhook'] = function(hook, color, title, description)
pcall(function()
local OSTime = os.time();
local Time = os.date('!*t', OSTime);
local Embed = {
color = color;
title = title;
description = description;
};
(syn and syn.request or http_request) {
Url = hook;
Method = 'POST';
Headers = {
['Content-Type'] = 'application/json';
};
Body = game:GetService'HttpService':JSONEncode( { content = Content; embeds = { Embed } } );
};
end)
end,
['returnvalue'] = function(tab, val)
ok = false
for i,v in pairs(tab) do
if string.match(val, v) then
ok = v
break
end
end
return ok
end,
['pathfind'] = function(target)
local PathfindingService = game:GetService("PathfindingService")
local Humanoid = game.Players.LocalPlayer.Character.Humanoid
local Root = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
local path = PathfindingService:CreatePath({
AgentCanJump = true,
WaypointSpacing = 1
})
path:ComputeAsync(Root.Position, target)
local waypoints = path:GetWaypoints()
for i, waypoint in ipairs(waypoints) do
game:GetService("Players").LocalPlayer.Character.Humanoid:MoveTo(waypoint.Position)
game:GetService("Players").LocalPlayer.Character.Humanoid.MoveToFinished:wait()
if waypoint.Action == Enum.PathWaypointAction.Jump then
Humanoid.Jump = true
end
end
end,
['getcpnew'] = function(path)
local Closest
for i,v in next, path:GetChildren() do
if Closest == nil then
Closest = v
else
if (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.Position).magnitude < (Closest.Position - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude then
Closest = v
end
end
end
return Closest
end,
['getcpfrompart'] = function(path, part)
local Closest
for i,v in next, path:GetChildren() do
if v:IsA("MeshPart") or v:IsA("Part") then
if Closest == nil then
Closest = v
else
if (part.Position - v.Position).magnitude < (Closest.Position - part.Position).magnitude then
Closest = v
end
end
end
end
return Closest
end,
['partwithnamepart'] = function(name, path)
for i,v in next, path:GetChildren() do
if (v.Name:match(name)) then
return v
end
end
end,
['getbiggestmodel'] = function(path)
local part
for i,v in next, path:GetChildren() do
if v:IsA("Model") then
if part == nil then
part = v
end
if v:GetExtentsSize().Y > part:GetExtentsSize().Y then
part = v
end
end
end
return part
end,
['imagehook'] = function(hook, description, title, image, duration)
pcall(function()
local OSTime = os.time();
local Time = os.date('!*t', OSTime);
local Embed = {
color = '3454955';
title = title;
description = description;
thumbnail = {
url = image;
};
author = {
name = game.Players.LocalPlayer.Name;
};
};
(syn and syn.request or http_request) {
Url = hook;
Method = 'POST';
Headers = {
['Content-Type'] = 'application/json';
};
Body = game:GetService'HttpService':JSONEncode( { content = Content; embeds = { Embed } } );
};
end)
end
}
function Godmode(boolean)
local camera = workspace.CurrentCamera
local lp = game.Players.LocalPlayer
local camerapos = camera.CFrame
local character = lp.Character or workspace:FindFirstChild(lp.Name)
local humanoid = character.Humanoid
local copy = humanoid:Clone()
if boolean == true then
lp.Character = nil
copy:SetStateEnabled(15, false)
copy:SetStateEnabled(0, false)
copy:SetStateEnabled(1, false)
copy.Parent = character
humanoid:Destroy()
lp.Character = character
camera.CameraSubject = copy
camera.CFrame = camerapos
copy.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
character:FindFirstChild("Animate").Disabled = true
character:FindFirstChild("Animate").Disabled = false
else
humanoid:SetStateEnabled(15, true)
copy:SetStateEnabled(0, true)
copy:SetStateEnabled(1, true)
lp.Character = nil
humanoid:ChangeState(15)
lp.Character = character
humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.Viewer
end
end
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 = "9vG8UJXuNf"},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 = "2.14.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