-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGhost Sim.lua
More file actions
1303 lines (1105 loc) · 44.1 KB
/
Ghost Sim.lua
File metadata and controls
1303 lines (1105 loc) · 44.1 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
-- Public
local repo = 'https://raw.githubusercontent.com/wally-rblx/LinoriaLib/main/'
local NotificationHolder =
loadstring(game:HttpGet("https://raw.githubusercontent.com/BocusLuke/UI/main/STX/Module.Lua"))()
local Notification = loadstring(game:HttpGet("https://raw.githubusercontent.com/BocusLuke/UI/main/STX/Client.Lua"))()
local Library = loadstring(game:HttpGet(repo .. 'Library.lua'))()
local ThemeManager = loadstring(game:HttpGet(repo .. 'addons/ThemeManager.lua'))()
local SaveManager = loadstring(game:HttpGet(repo .. 'addons/SaveManager.lua'))()
local player = game.Players.LocalPlayer
local function notif(title, des, time)
Notification:Notify({
Title = title,
Description = des
}, {
OutlineColor = Color3.fromRGB(0, 255, 139),
Time = time,
Type = "default"
})
end
local function nwarn(why, solve)
Notification:Notify({
Title = why,
Description = solve
}, {
OutlineColor = Color3.fromRGB(0, 255, 139),
Time = 5,
Type = "image"
}, {
Image = "http://www.roblox.com/asset/?id=6023426923",
ImageColor = Color3.fromRGB(255, 166, 0)
})
end
local function nerror(why)
Notification:Notify({
Title = "ERROR",
Description = why
}, {
OutlineColor = Color3.fromRGB(0, 255, 139),
Time = 5,
Type = "image"
}, {
Image = "http://www.roblox.com/asset/?id=6023426923",
ImageColor = Color3.fromRGB(255, 0, 0)
})
end
local function getgums(count)
local listwithcount = {}
local listwithout = {}
for i, v in pairs(player.PlayerGui.UI.MainGui.CharacterMenu.MainFrame.Pages.Items.ItemList.Container:GetChildren()) do
if v:FindFirstChild('Entry') and v.Title.Text:find('Gum') then
table.insert(listwithcount, v.Title.Text .. ' ' .. v.Quantity.Text)
table.insert(listwithout, v.Title.Text)
end
end
if count == 'yes' then
return listwithcount
elseif count == 'no' then
return listwithout
end
end
function getalllootandchest()
local tablelist = {}
for i, v in pairs(player.PlayerGui.UI.MainGui.CharacterMenu.MainFrame.Pages.Items.ItemList.Container:GetChildren()) do
if v:FindFirstChild('Entry') then
if v.Title.Text:find('Lootbag') or v.Title.Text:find('Chest') then
table.insert(tablelist, v.Name)
end
end
end
return tablelist
end
local function getdetails(item, type)
for i, v in pairs(player.PlayerGui.UI.MainGui.CharacterMenu.MainFrame.Pages.Items.ItemList.Container:GetChildren()) do
if type == 'id' then
if v:FindFirstChild('Entry') and v.Title.Text == item then
return tonumber(v.Name)
end
elseif type == 'count' then
if v:FindFirstChild('Entry') and v.Title.Text == item then
return v.Quantity.Text
end
end
end
end
local function check_vac()
if player.PlayerGui.UI.MainGui.VacuumBoardStatus.VacuumIcon.Light.ImageColor3 == Color3.fromRGB(255, 0, 0) then
local Event = game:GetService("ReplicatedStorage").Network.ToServer.Requests.StartUseVacuum
Event:FireServer()
elseif player.PlayerGui.UI.MainGui.VacuumBoardStatus.VacuumIcon.Light.ImageColor3 == Color3.fromRGB(0, 255, 0) then
end
return
end
local Window = Library:CreateWindow({
Title = 'Ghost Sim | FallAngle Hub | https://discord.gg/rq5fXGKWQY',
Center = false,
AutoShow = true
})
notif("Welcome " .. tostring(player),
'Thank you for using FallAngelHub make sure you join the server for updates https://discord.gg/rq5fXGKWQY', 5)
local vu = game:GetService("VirtualUser")
game:GetService("Players").LocalPlayer.Idled:connect(function()
vu:Button2Down(Vector2.new(0, 0), workspace.CurrentCamera.CFrame)
wait(1)
vu:Button2Up(Vector2.new(0, 0), workspace.CurrentCamera.CFrame)
end)
game.Players.LocalPlayer.Stats.BoardsUnlocked.Value = true
game.Players.LocalPlayer.Stats.ParachuteUnlocked.Value = true
game.Players.LocalPlayer.Stats.JetpackUnlocked.Value = true
game.Players.LocalPlayer.Stats.HeavyArmorUnlocked.Value = true
game.Players.LocalPlayer.Stats.MagnetismUnlocked.Value = true
game.Players.LocalPlayer.Stats.TurbochargerUnlocked.Value = true
game.Players.LocalPlayer.Stats.AppliedPasses.DoubleRems.Value = true
game.Players.LocalPlayer.Stats.AppliedPasses.DoubleTokens.Value = true
game.Players.LocalPlayer.Stats.AppliedPasses.Agility.Value = true
game.Players.LocalPlayer.Stats.AppliedPasses.DoubleRange.Value = true
game.Players.LocalPlayer.Stats.AppliedPasses.DoubleBossDrops.Value = true
game.Players.LocalPlayer.Stats.AppliedPasses.DoubleItems.Value = true
game.Players.LocalPlayer.Stats.AppliedPasses.DoubleGems.Value = true
game.Players.LocalPlayer.Stats.AppliedPasses.DoubleLuck.Value = true
game.Players.LocalPlayer.Stats.AppliedPasses.QuickUnbox.Value = true
game.Players.LocalPlayer.Stats.AppliedPasses.AutoUnbox.Value = true
game.Players.LocalPlayer.Stats.AppliedPasses.DoubleSouls.Value = true
game:GetService("ReplicatedStorage").Data.ServerDoubleDrops.Value = true
game:GetService("ReplicatedStorage").Data.ServerDoubleEvent.Value = true
game:GetService("ReplicatedStorage").Data.ServerDoubleGems.Value = true
game:GetService("ReplicatedStorage").Data.ServerDoubleLuck.Value = true
local bossN = nil
-- maps
local mainhub = 2685347741
local ghostworld = 4078003854
local backdoor = 4383092793
local thevoid = 6036368776
local remnant = 10252702151
local bloxbyte = 5061426732
local Tabs = {
Farm = Window:AddTab('Farm'),
BoxFarm = Window:AddTab('BoxFarm'),
Other = Window:AddTab('Other'),
['UI Settings'] = Window:AddTab('UI Settings')
}
local Farmingbox = Tabs.Farm:AddLeftGroupbox('Farming')
local otherfarmingbox = Tabs.Farm:AddRightGroupbox('Other')
local useitemsbox = Tabs.Farm:AddRightGroupbox('Use items')
useitemsbox:AddDropdown('gumlist', {
Values = getgums('no'),
Default = 1, -- number index of the value / string
Multi = false, -- true / false, allows multiple choices to be selected
Text = 'Gum list',
Tooltip = 'List of gums currently having' -- Information shown when you hover over the textbox
})
useitemsbox:AddToggle('autoeatgum', {
Text = 'Auto eat gum',
Default = false, -- Default value (true / false)
Tooltip = 'Eats gum selected' -- Information shown when you hover over the toggle
})
Toggles.autoeatgum:OnChanged(function()
task.spawn(function()
while task.wait(1) do
if not player.Stats.GumActive.Value and Toggles.autoeatgum.Value then
local str = getdetails(Options.gumlist.Value, 'id')
game:GetService("ReplicatedStorage").Network.ToServer.Requests.UseItem:FireServer(str)
end
end
end)
end)
useitemsbox:AddToggle('autolootbagandchest', {
Text = 'Auto open lootbag/chest',
Default = false, -- Default value (true / false)
Tooltip = 'opens all lootbags/chest' -- Information shown when you hover over the toggle
})
Toggles.autolootbagandchest:OnChanged(function()
task.spawn(function()
while task.wait() and Toggles.autolootbagandchest.Value do
for i, v in pairs(getalllootandchest()) do
game:GetService("ReplicatedStorage").Network.ToServer.Requests.UseItem:FireServer(tonumber(v))
end
end
end)
end)
Options.gumlist:OnChanged(function()
notif('Gum details:', Options.gumlist.Value .. ' ' .. getdetails(Options.gumlist.Value, 'count'), 3)
end)
local rebirths_has = player.Stats.Rebirth.Total.Value
local function ghost_todo()
local lvl = game.Players.LocalPlayer.Stats.AntennaLevel.Value
if lvl > 9 and lvl <= 10 and game.PlaceId ~= mainhub then
local A_1 = "GhostWorld"
local Event = game:GetService("ReplicatedStorage").Network.ToServer.Requests.TransportToPlace
Event:FireServer(A_1)
elseif lvl > 10 and lvl < 20 and game.PlaceId ~= backdoor then
local A_1 = "Backdoor"
local Event = game:GetService("ReplicatedStorage").Network.ToServer.Requests.TransportToPlace
Event:FireServer(A_1)
elseif lvl >= 20 and rebirths_has == 1 and game.PlaceId ~= remnant then
print("passed")
local A_1 = "RemnantZone"
local Event = game:GetService("ReplicatedStorage").Network.ToServer.Requests.TransportToPlace
Event:FireServer(A_1)
end
if game.PlaceId == mainhub then
if lvl == 1 then
return {"Fairy", "Owl"}
elseif lvl == 2 then
return {"Businessman", "Street Cat"}
elseif lvl == 3 then
return {"Mechanic", "Garbage Bin"}
elseif lvl == 4 then
return {"Paper Bag Man", "Rat"}
elseif lvl == 5 then
return {"Bandit", "Cowboy"}
elseif lvl == 6 then
return {"Scientist", "Zorg"}
elseif lvl == 7 then
return {"Miner", "Living rock"}
elseif lvl == 8 then
return {"Pirate", "Parrot"}
elseif lvl == 9 then
return {"Diver", "Magma Monster"}
end
elseif game.PlaceId == ghostworld then
if lvl > 10 and lvl < 10 then
return {"Jester", "Pinwheel", "Spooky", "Jelly", "Blue Ray", "Pixie", "Rogue", "Wizard", "Knight", "Horse",
"Bongo Man", "DJ", "Yellow Note", "Purple Note", "Viney", "Adventurer", "Blooming", "Dragonfly"}
end
elseif game.PlaceId == backdoor then
if lvl == 11 then
return {"Swamp Dweller", "Firefly"}
elseif lvl == 12 then
return {"Frost Spirit", "Snowstorm"}
elseif lvl == 13 then
return {"Flutter Spirit", "Mushroom"}
elseif lvl == 14 then
return {"Water Spirit", "Glitcher"}
elseif lvl == 15 then
return {"Farmer", "Crazy Cow"}
elseif lvl == 16 then
return {"Parasite", "Super Computer"}
elseif lvl == 17 then
return {"Digital Bandit", "Trojan Horse"}
elseif lvl == 18 then
return {"Web Surfer", "Binary"}
elseif lvl == 19 then
return {"Byte", "Digi Cat"}
elseif lvl == 20 and rebirths_has ~= 1 then
return {"Guardian", "Data Fury"}
end
elseif game.PlaceId == remnant then
if lvl == 20 then
return {"Autumn Jungler", "Durian Bunny"}
elseif lvl == 21 then
return {"Night Wizard", "Aqua Parrot"}
elseif lvl == 22 then
return {"Gem Troll", "Gryffin"}
elseif lvl == 23 then
return {"Village Raider", "Pig"}
elseif lvl == 24 then
return {"Scrap Hunter", "Floppy Slime"}
elseif lvl == 25 then
return {"Sea Walker", "Fish Footman"}
elseif lvl >= 26 then
return {"Cave Ninja", "Axolotl Princess"}
else
return nil
end
end
end
Farmingbox:AddToggle('smartfarm', {
Text = 'Smart farm',
Default = false, -- Default value (true / false)
Tooltip = 'Farms the correct level for you.' -- Information shown when you hover over the toggle
})
Toggles.smartfarm:OnChanged(function()
if Toggles.smartfarm.Value == true then
local Event = game:GetService("ReplicatedStorage").Network.ToServer.Requests.StartUseVacuum
Event:FireServer()
elseif Toggles.smartfarm.Value == false then
local Event = game:GetService("ReplicatedStorage").Network.ToServer.Requests.StopUseVacuum
Event:FireServer()
end
end)
Toggles.smartfarm:OnChanged(function()
task.spawn(function()
while task.wait(.1) and Toggles.smartfarm.Value do
for i, ghost in pairs(game:GetService("Workspace").Ghosts:GetChildren()) do
if table.find(ghost_todo(), ghost.Name) then
if not player.Character then
return
end
if ghost:FindFirstChild("HumanoidRootPart") and ghost:FindFirstChild("Health") then
repeat
check_vac()
player.Character.HumanoidRootPart.CFrame =
ghost.HumanoidRootPart.CFrame * CFrame.new(0, 0, 5)
game:GetService("ReplicatedStorage").Network.ToServer.Requests.VacuumEnemy:FireServer(ghost)
task.wait()
until ghost.Health.Value <= 0.1 or Toggles.smartfarm.Value == false
end
end
end
end
end)
end)
Farmingbox:AddDivider()
local mainhub_arealist = {"Forest", "BloxCity", "JunkYard", "Sewer", "WildWest", "Area51", "Mine", "Beach",
"UnderWater", "Volcano"}
local ghostworld_arealist = {"GhostlyIslandT1", "GhostlyIslandT2", "GhostlyIslandT3", "CastleBottom", "CastleTop",
"MusicMeadowsT1", "MusicMeadowsT2", "HauntedCastleT1", "HauntedCastleT2"}
local backdoor_arealist = {"Swamplands", "Winter_Tundra", "Mushroom_Forest", "Twisting_River", "Crystal_Cave", "Farm",
"Spaceship", "Barn", "Behive", "Data_Stream", "Reverse_City", "Agents_HQ"}
local thevoid_arealist = {"Covenk", "Didi", "Makkie", "Thex", "Goro"}
local rement_arealist = {"EnchantedJungle", "BlueForest", "CrystalCanyon", "FloatingBridge", "ScrapCity",
"UnderwaterRuins", "HiddenCaverns"}
if game.PlaceId == mainhub then
Farmingbox:AddDropdown('Areafarmbox', {
Values = mainhub_arealist,
Default = 1, -- number index of the value / string
Multi = true, -- true / false, allows multiple choices to be selected
Text = 'Select what area to farm',
Tooltip = 'Farm a area given' -- Information shown when you hover over the textbox
})
elseif game.PlaceId == ghostworld then
Farmingbox:AddDropdown('Areafarmbox', {
Values = ghostworld_arealist,
Default = 1, -- number index of the value / string
Multi = true, -- true / false, allows multiple choices to be selected
Text = 'Select what area to farm',
Tooltip = 'Farm a area given' -- Information shown when you hover over the textbox
})
elseif game.PlaceId == backdoor then
Farmingbox:AddDropdown('Areafarmbox', {
Values = backdoor_arealist,
Default = 1, -- number index of the value / string
Multi = true, -- true / false, allows multiple choices to be selected
Text = 'Select what area to farm',
Tooltip = 'Farm a area given' -- Information shown when you hover over the textbox
})
elseif game.PlaceId == thevoid then
Farmingbox:AddDropdown('Areafarmbox', {
Values = thevoid_arealist,
Default = 1, -- number index of the value / string
Multi = true, -- true / false, allows multiple choices to be selected
Text = 'Select what area to farm',
Tooltip = 'Farm a area given' -- Information shown when you hover over the textbox
})
elseif game.PlaceId == remnant then
Farmingbox:AddDropdown('Areafarmbox', {
Values = rement_arealist,
Default = 1, -- number index of the value / string
Multi = true, -- true / false, allows multiple choices to be selected
Text = 'Select what area to farm',
Tooltip = 'Farm a area given' -- Information shown when you hover over the textbox
})
end
local areasel = {}
Options.Areafarmbox:OnChanged(function()
areasel = {}
for key, value in next, Options.Areafarmbox.Value do
table.insert(areasel, key)
end
end)
local function ghost_list_giver(selarea)
-- MAINHUB
local Forest = { -- 1
"Fairy", "Owl"}
local BloxCity = { -- 2
"Businessman", "Street Cat"}
local JunkYard = { -- 3
"Mechanic", "Garbage Bin"}
local Sewer = { -- 4
"Paper Bag Man", "Rat"}
local WildWest = { -- 5
"Bandit", "Cowboy"}
local Area51 = { -- 6
"Scientist", "Zorg"}
local Mine = { -- 7
"Miner", "Living Rock"}
local Beach = { -- 8
"Pirate", "Parrot"}
local UnderWater = { -- 9
"Diver", "Mermaid"}
local Volcano = { -- 10
"Islander", "Magma Monster"}
-- GHOST WORLD
local GhostlyIslandT1 = { -- 10
"Jester", "Jelly"}
local GhostlyIslandT2 = { -- 10
"Pinwheel", "Blue Ray"}
local GhostlyIslandT3 = { -- 10
"Spooky", "Pixie"}
local CastleBottom = { -- 10
"Rogue", "Knight"}
local CastleTop = { -- 10
"Wizard", "Horse"}
local MusicMeadowsT1 = { -- 10
"Bongo man", "Yellow Note"}
local MusicMeadowsT2 = { -- 10
"DJ", "Purple Note"}
local HauntedCastleT1 = { -- 10
"Viney", "Blooming"}
local HauntedCastleT2 = { -- 10
"Adventurer", "Dragonfly"}
-- backdoor
local Swamplands = {"Swamp Dweller", "Firefly"}
local Winter_Tundra = {"Frost Spirit", "Snowstorm"}
local Mushroom_Forest = {"Flutter Spirit", "Mushroom"}
local Twisting_River = {"Water Spirit", "Glitcher"}
local Crystal_Cave = {"Error 404", "Rock Crystal"}
local Farm = {"Farmer", "Crazy Cow"}
local Spaceship = {"Parasite", "Super Computer"}
local Barn = {"Digital Bandit", "Trojan Horse"}
local Behive = {"Honeydrop", "Bee"}
local Data_Stream = {"Web Surfer", "Binary"}
local Reverse_City = {"Byte", "Digi Cat"}
local Agents_HQ = {"Programmer", "RAM"}
-- thevoid
local Covenk = {"Petal"}
local Didi = {"Heated"}
local Makkie = {"Slime"}
local Thex = {"Storm"}
local Goro = {"Tech"}
-- rement
local EnchantedJungle = { -- 20
"Autumn Jungler", "Durian Bunny"}
local BlueForest = { -- 21
"Night Wizard", "Aqua Parrot"}
local CrystalCanyon = { -- 22
"Gem Troll", "Gryffin"}
local FloatingBridge = { -- 23
"Village Raider", "Pig"}
local ScrapCity = { -- 24
"Scrap Hunter", "Floppy Slime"}
local UnderwaterRuins = { -- 25
"Sea Walker", "Fish Footman"}
local HiddenCaverns = { -- 26
"Cave Ninja", "Axolotl Princess"}
if selarea == "Forest" then
return Forest
elseif selarea == "BloxCity" then
return BloxCity
elseif selarea == "JunkYard" then
return JunkYard
elseif selarea == "Sewer" then
return Sewer
elseif selarea == "WildWest" then
return WildWest
elseif selarea == "Area51" then
return Area51
elseif selarea == "Mine" then
return Mine
elseif selarea == "Beach" then
return Beach
elseif selarea == "UnderWater" then
return UnderWater
elseif selarea == "Volcano" then
return Volcano
elseif selarea == "GhostlyIslandT1" then
return GhostlyIslandT1
elseif selarea == "GhostlyIslandT2" then
return GhostlyIslandT2
elseif selarea == "GhostlyIslandT3" then
return GhostlyIslandT3
elseif selarea == "CastleBottom" then
return CastleBottom
elseif selarea == "CastleTop" then
return CastleTop
elseif selarea == "MusicMeadowsT1" then
return MusicMeadowsT1
elseif selarea == "MusicMeadowsT2" then
return MusicMeadowsT2
elseif selarea == "HauntedCastleT1" then
return HauntedCastleT1
elseif selarea == "HauntedCastleT2" then
return HauntedCastleT2
elseif selarea == "Swamplands" then
return Swamplands
elseif selarea == "Winter_Tundra" then
return Winter_Tundra
elseif selarea == "Mushroom_Forest" then
return Mushroom_Forest
elseif selarea == "Twisting_River" then
return Twisting_River
elseif selarea == "Crystal_Cave" then
return Crystal_Cave
elseif selarea == "Farm" then
return Farm
elseif selarea == "Spaceship" then
return Spaceship
elseif selarea == "Barn" then
return Barn
elseif selarea == "Behive" then
return Behive
elseif selarea == "Data_Stream" then
return Data_Stream
elseif selarea == "Reverse_City" then
return Reverse_City
elseif selarea == "Agents_HQ" then
return Agents_HQ
elseif selarea == "Covenk" then
return Covenk
elseif selarea == "Didi" then
return Didi
elseif selarea == "Makkie" then
return Makkie
elseif selarea == "Thex" then
return Thex
elseif selarea == "Goro" then
return Goro
elseif selarea == "EnchantedJungle" then
return EnchantedJungle
elseif selarea == "BlueForest" then
return BlueForest
elseif selarea == "CrystalCanyon" then
return CrystalCanyon
elseif selarea == "FloatingBridge" then
return FloatingBridge
elseif selarea == "ScrapCity" then
return ScrapCity
elseif selarea == "UnderwaterRuins" then
return UnderwaterRuins
elseif selarea == "HiddenCaverns" then
return HiddenCaverns
end
end
local function area_combine()
local list = {}
for i, area in pairs(areasel) do
for i, ghost in pairs(ghost_list_giver(area)) do
table.insert(list, ghost)
end
end
return list
end
Farmingbox:AddToggle('areafarm', {
Text = 'Area farm',
Default = false, -- Default value (true / false)
Tooltip = 'Make sure you choice a area to farm' -- Information shown when you hover over the toggle
})
Toggles.areafarm:OnChanged(function()
local player = game.Players.LocalPlayer
if Toggles.areafarm.Value == true then
local Event = game:GetService("ReplicatedStorage").Network.ToServer.Requests.StartUseVacuum
Event:FireServer()
elseif Toggles.areafarm.Value == false then
local Event = game:GetService("ReplicatedStorage").Network.ToServer.Requests.StopUseVacuum
Event:FireServer()
end
spawn(function()
while Toggles.areafarm.Value == true do
for i, v in pairs(workspace.Ghosts:GetChildren()) do
for _, ghost in pairs(area_combine()) do
if v.Name == ghost and v:FindFirstChild("HumanoidRootPart") and Toggles.areafarm.Value == true and
v:FindFirstChild('Health') then
while v.Health.Value > 0.1 and Toggles.areafarm.Value == true do
player.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame * CFrame.new(0, 0, 5)
game:GetService("ReplicatedStorage").Network.ToServer.Requests.VacuumEnemy:FireServer(v)
task.wait()
end
end
end
end
task.wait()
end
end)
end)
Farmingbox:AddDivider()
Farmingbox:AddToggle('autofarmall', {
Text = 'Auto farm all ghosts',
Default = false, -- Default value (true / false)
Tooltip = 'Kills every ghost you' -- Information shown when you hover over the toggle
})
Toggles.autofarmall:OnChanged(function()
local player = game.Players.LocalPlayer
if Toggles.autofarmall.Value == true then
local Event = game:GetService("ReplicatedStorage").Network.ToServer.Requests.StartUseVacuum
Event:FireServer()
elseif Toggles.autofarmall.Value == false then
local Event = game:GetService("ReplicatedStorage").Network.ToServer.Requests.StopUseVacuum
Event:FireServer()
end
spawn(function()
while Toggles.autofarmall.Value == true do
for i, v in pairs(workspace.Ghosts:GetChildren()) do
if v:FindFirstChild("HumanoidRootPart") and Toggles.autofarmall.Value == true and
v:FindFirstChild('Health') and v.Name ~= "Lucky Cat" and v.Name ~= "Dino King" and v.Name ~=
"Jolly Roger" and v.Name ~= "Anonymous" then
while v.Health.Value > 0.1 and Toggles.autofarmall.Value == true do
player.Character.HumanoidRootPart.CFrame = v.HumanoidRootPart.CFrame * CFrame.new(0, 0, 5)
game:GetService("ReplicatedStorage").Network.ToServer.Requests.VacuumEnemy:FireServer(v)
task.wait()
end
end
end
end
task.wait()
end)
end)
otherfarmingbox:AddToggle('autokill', {
Text = 'Auto kill closest',
Default = false, -- Default value (true / false)
Tooltip = 'Kills every ghost near you' -- Information shown when you hover over the toggle
})
Toggles.autokill:OnChanged(function()
spawn(function()
local player = game.Players.LocalPlayer
local distance = player.Stats.VacuumRange.Value
while Toggles.autokill.Value == true do
for i, v in pairs(workspace.Ghosts:GetChildren()) do
if v:FindFirstChild("HumanoidRootPart") then
local magnitude =
(player.Character.HumanoidRootPart.Position - v.HumanoidRootPart.Position).magnitude
if magnitude > 50 and magnitude < distance then
local args = {
[1] = workspace.Ghosts:FindFirstChild(v)
}
game:GetService("ReplicatedStorage").Network.ToServer.Requests.VacuumFireHit:FireServer(unpack(
args))
elseif magnitude < distance then
game:GetService("ReplicatedStorage").Network.ToServer.Requests.VacuumEnemy:FireServer(v)
end
end
end
task.wait()
end
end)
end)
otherfarmingbox:AddToggle('autosell', {
Text = 'Auto sell',
Default = false, -- Default value (true / false)
Tooltip = 'Sells when pack is full/empty' -- Information shown when you hover over the toggle
})
function sell()
for i, folder in pairs(game:GetService("Workspace").ScriptParts:GetChildren()) do
if folder.Name:match('Converters') or folder.Name:match('Chargers') then
for i, part in pairs(folder:GetChildren()) do
if part:IsA('Part') then
firetouchinterest(player.Character.Head, part, 1)
firetouchinterest(player.Character.Head, part, 0)
end
end
end
end
end
Toggles.autosell:OnChanged(function()
spawn(function()
while task.wait() and Toggles.autosell.Value do
sell()
end
end)
end)
otherfarmingbox:AddToggle('autoantenna', {
Text = 'Auto Antenna upgrade',
Default = false, -- Default value (true / false)
Tooltip = 'Upgrades your antenna when all requiements are met' -- Information shown when you hover over the toggle
})
Toggles.autoantenna:OnChanged(function()
spawn(function()
while Toggles.autoantenna.Value == true do
game:GetService("ReplicatedStorage").Network.ToServer.Requests.UpgradeAntenna:FireServer()
task.wait()
end
end)
end)
if game.PlaceId == mainhub then
local MyButton = otherfarmingbox:AddButton('Quick Win Race', function()
local lp = game.Players.LocalPlayer
local char = lp.Character
local function bypassTP(cf, time)
local hrp = char.PrimaryPart
local ts = game:GetService("TweenService")
ts:Create(hrp, TweenInfo.new(time, Enum["EasingStyle"].Linear), {
CFrame = cf
}):Play()
end
bypassTP(CFrame.new(5330, -160, 1091), 14)
end)
end
--- BOXING FARM
local OpenPetCrate = Tabs.BoxFarm:AddLeftGroupbox('Pet Crate')
local list_of_pet_crates = {"Crate #1", "Crate #2", "Crate #3", "Crate #4", "Crate #5", "Crate #6", "Crate #7",
"Crate #8", "Crate #9", "Crate #10", "Crate #11", "Crate #13", "Crate #14", "Crate #15"}
OpenPetCrate:AddDropdown('autopetcratedrop', {
Values = list_of_pet_crates,
Default = 1, -- number index of the value / string
Multi = false, -- true / false, allows multiple choices to be selected
Text = 'Pet crates',
Tooltip = 'Select one and enable to auto buy' -- Information shown when you hover over the textbox
})
local petcratesel = nil
Options.autopetcratedrop:OnChanged(function()
local sel = Options.autopetcratedrop.Value
if sel == "Crate #1" then
petcratesel = 1
elseif sel == "Crate #2" then
petcratesel = 2
elseif sel == "Crate #3" then
petcratesel = 3
elseif sel == "Crate #4" then
petcratesel = 4
elseif sel == "Crate #5" then
petcratesel = 5
elseif sel == "Crate #6" then
petcratesel = 7
elseif sel == "Crate #7" then
petcratesel = 8
elseif sel == "Crate #8" then
petcratesel = 9
elseif sel == "Crate #9" then
petcratesel = 10
elseif sel == "Crate #10" then
petcratesel = 11
elseif sel == "Crate #11" then
petcratesel = 12
elseif sel == "Crate #13" then
petcratesel = 14
elseif sel == "Crate #14" then
petcratesel = 15
elseif sel == "Crate #15" then
petcratesel = 16
end
end)
OpenPetCrate:AddToggle('auto_pet_box', {
Text = 'Auto open pet create',
Default = false, -- Default value (true / false)
Tooltip = 'Will auto buy pet crates selected' -- Information shown when you hover over the toggle
})
Toggles.auto_pet_box:OnChanged(function()
spawn(function()
while Toggles.auto_pet_box.Value == true do
local A_1 = petcratesel
local A_2 = false
local Event = game:GetService("ReplicatedStorage").Network.ToServer.Requests.OpenPetCrate
Event:FireServer(A_1, A_2)
task.wait()
end
end)
end)
local OpenboardCrate = Tabs.BoxFarm:AddLeftGroupbox('Board Crate')
local list_of_board_crates = {"Board Crate #1", "Board Crate #2", "Board Crate #3", "Board Crate #4", "Board Crate #5",
"Board Crate #6"}
OpenboardCrate:AddDropdown('autoboardcratedrop', {
Values = list_of_board_crates,
Default = 1, -- number index of the value / string
Multi = false, -- true / false, allows multiple choices to be selected
Text = 'Select board create',
Tooltip = 'Select one and enable to auto buy' -- Information shown when you hover over the textbox
})
OpenboardCrate:AddToggle('auto_board_box', {
Text = 'Auto open board create',
Default = false, -- Default value (true / false)
Tooltip = 'Will auto buy board crates selected' -- Information shown when you hover over the toggle
})
local boardcratesel = nil
Options.autoboardcratedrop:OnChanged(function()
local sel = Options.autoboardcratedrop.Value
if sel == "Board Crate #1" then
boardcratesel = 1
elseif sel == "Board Crate #2" then
boardcratesel = 2
elseif sel == "Board Crate #3" then
boardcratesel = 3
elseif sel == "Board Crate #4" then
boardcratesel = 4
elseif sel == "Board Crate #5" then
boardcratesel = 5
elseif sel == "Board Crate #6" then
boardcratesel = 6
end
end)
Toggles.auto_board_box:OnChanged(function()
spawn(function()
while Toggles.auto_board_box.Value == true do
local A_1 = boardcratesel
local A_2 = false
local Event = game:GetService("ReplicatedStorage").Network.ToServer.Requests.OpenBoardCrate
Event:FireServer(A_1, A_2)
task.wait()
end
end)
end)
otherfarmingbox:AddDivider()
otherfarmingbox:AddToggle('autostartquest', {
Text = 'Auto start quests',
Default = false, -- Default value (true / false)
Tooltip = 'Starts all the quests' -- Information shown when you hover over the toggle
})
Toggles.autostartquest:OnChanged(function()
spawn(function()
while Toggles.autostartquest.Value == true do
for i = -50, 500 do
local args = {
[1] = i
}
game:GetService("ReplicatedStorage").Network.ToServer.Requests.StartQuest:FireServer(unpack(args))
task.wait()
end
end
end)
end)
otherfarmingbox:AddToggle('autoclaimquest', {
Text = 'Auto claim quests',
Default = false, -- Default value (true / false)
Tooltip = 'Starts all the quests' -- Information shown when you hover over the toggle
})
Toggles.autoclaimquest:OnChanged(function()
spawn(function()
while Toggles.autoclaimquest.Value == true do
for i = 1, 500 do
local args = {
[1] = i
}
game:GetService("ReplicatedStorage").Network.ToServer.Requests.AdvanceQuest:FireServer(unpack(args))
task.wait()
end
end
end)
end)
local currency_finder = {
[mainhub] = "Tokens",
[ghostworld] = "Souls",
[backdoor] = "Bits",
[remnant] = "Rems"
}
-- vacuum
local function find_best_current_vac()
local player = game.Players.LocalPlayer
local has_vaccum = player.Inventory.Vacuums:GetChildren()
local highestnumber = 0
for i, v in pairs(has_vaccum) do
local number = tonumber(v.Name)
if number > highestnumber then
highestnumber = number
end
end
return highestnumber
end
local function bestvac(highest)
local player = game.Players.LocalPlayer
local current_curr = currency_finder[game.PlaceId]
local bal = player.Stats[currency_finder[game.PlaceId]].Value
for i, v in pairs(game:GetService("ReplicatedStorage").Items.Vacuums:GetChildren()) do
if v.Name ~= "Module" then
local PurchaseCurrency = v.Info.PurchaseCurrency.Value
local price = v.Info.Price.Value
if tonumber(v.Name) > tonumber(highest) and PurchaseCurrency == current_curr and bal > price then
return v.Name
end
end
end