-
Notifications
You must be signed in to change notification settings - Fork 1
/
Arpon_ALS.lua
7544 lines (6871 loc) · 345 KB
/
Arpon_ALS.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
---// Loading Section \\---
repeat task.wait() until game:IsLoaded()
if game.PlaceId == 12886143095 then
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCore("SendNotification", {
Title = "HOLY HUB",
Text = "Welcome to HOLY HUB !!!",
Duration = 6.5
})
wait(10)
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCore("SendNotification", {
Title = "HOLY Notify",
Text = "Wait Game is Loaded 10(s)...!!!",
Duration = 10
})
wait(10)
repeat task.wait() until game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name)
repeat task.wait() until game.Players.LocalPlayer.PlayerGui:FindFirstChild("collection"):FindFirstChild("grid"):FindFirstChild("List"):FindFirstChild("Outer"):FindFirstChild("UnitFrames")
repeat task.wait() until game.Players.LocalPlayer.PlayerGui:FindFirstChild("UpdateUI"):FindFirstChild("Main"):FindFirstChild("Top"):FindFirstChild("Title")
repeat task.wait() until game.Players.LocalPlayer.PlayerGui:FindFirstChild("BattlePass"):FindFirstChild("Main"):FindFirstChild("Level"):FindFirstChild("V")
repeat task.wait() until game.Players.LocalPlayer.PlayerGui:FindFirstChild("BattlePass"):FindFirstChild("Main"):FindFirstChild("FurthestRoom"):FindFirstChild("V")
UPDUI = tostring(game:GetService("Players").LocalPlayer.PlayerGui.UpdateUI.Main.Top.Title.text)
writefile(game:GetService('Players').LocalPlayer.Name .. 'UPD_name.txt', game:GetService('HttpService'):JSONEncode(UPDUI))
btplv = game:GetService("Players").LocalPlayer.PlayerGui.BattlePass.Main.Level.V.Text
writefile(game:GetService('Players').LocalPlayer.Name .. 'BTP_LV.txt', game:GetService('HttpService'):JSONEncode(btplv))
btpAlllv = game:GetService("Players").LocalPlayer.PlayerGui.BattlePass.Main.FurthestRoom.V.Text
writefile(game:GetService('Players').LocalPlayer.Name .. 'BTP_AllLV.txt', game:GetService('HttpService'):JSONEncode(btpAlllv))
repeat task.wait() until game.ReplicatedStorage.packages:FindFirstChild("assets")
repeat task.wait() until game.ReplicatedStorage.packages:FindFirstChild("StarterGui")
else
repeat task.wait() until game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name)
game:GetService("ReplicatedStorage").endpoints.client_to_server.vote_start:InvokeServer()
repeat task.wait() until game:GetService("Workspace")["_waves_started"].Value == true
end
--Version_UI
UPDUI2 = game:GetService('HttpService'):JSONDecode(readfile(game:GetService('Players').LocalPlayer.Name .. 'UPD_name.txt'))
local version = tostring(UPDUI2)
--local version = "16.0.0-1xx"
------------------------------
local a = 'V2_Anime_Adventures' --
local b = game:GetService('Players').LocalPlayer.Name .. '_AnimeAdventures.json'
Settings = {}
function saveSettings()
local HttpService = game:GetService('HttpService')
if not isfolder(a) then
makefolder(a)
end
writefile(a .. '/' .. b, HttpService:JSONEncode(Settings))
Settings = ReadSetting()
warn("Settings Saved!")
end
function ReadSetting()
local s, e = pcall(function()
local HttpService = game:GetService('HttpService')
if not isfolder(a) then
makefolder(a)
end
return HttpService:JSONDecode(readfile(a .. '/' .. b))
end)
if s then
return e
else
saveSettings()
return ReadSetting()
end
end
Settings = ReadSetting()
-- Start of Get Level Data of Map [Added by HOLYSHz]
function GLD()
local list = {}
for i,v in pairs(game.Workspace._MAP_CONFIG:WaitForChild("GetLevelData"):InvokeServer()) do
list[i] = v
end
return list
end
if game.PlaceId ~= 12886143095 then
GLD()
end
-- End of Get Level Data of Map
------------------------------
local HttpService = game:GetService("HttpService")
local Workspace = game:GetService("Workspace")
local plr = game:GetService("Players").LocalPlayer
local RunService = game:GetService("RunService")
local mouse = game.Players.LocalPlayer:GetMouse()
local UserInputService = game:GetService("UserInputService")
------------------------------
------------item drop result
local v5 = require(game.ReplicatedStorage.src.Loader)
local ItemInventoryServiceClient = v5.load_client_service(script, "ItemInventoryServiceClient")
function get_inventory_items_unique_items()
return ItemInventoryServiceClient["session"]['inventory']['inventory_profile_data']['unique_items']
end
function get_inventory_items()
return ItemInventoryServiceClient["session"]["inventory"]['inventory_profile_data']['normal_items']
end
function get_Units_Owner()
return ItemInventoryServiceClient["session"]["collection"]["collection_profile_data"]['owned_units']
end
local Count_Portal_list = 0
local Table_All_Items_Old_data = {}
local Table_All_Items_New_data = {}
for v2, v3 in pairs(game:GetService("ReplicatedStorage").src.Data.Items:GetDescendants()) do
if v3:IsA("ModuleScript") then
for v4, v5 in pairs(require(v3)) do
Table_All_Items_Old_data[v4] = {}
Table_All_Items_Old_data[v4]['Name'] = v5['name']
Table_All_Items_Old_data[v4]['Count'] = 0
Table_All_Items_New_data[v4] = {}
Table_All_Items_New_data[v4]['Name'] = v5['name']
Table_All_Items_New_data[v4]['Count'] = 0
end
end
end
local Data_Units_All_Games = require(game:GetService("ReplicatedStorage").src.Data.Units)
for i,v in pairs(Data_Units_All_Games) do
if v.rarity then
Table_All_Items_Old_data[i] = {}
Table_All_Items_Old_data[i]['Name'] = v['name']
Table_All_Items_Old_data[i]['Count'] = 0
Table_All_Items_Old_data[i]['Count Shiny'] = 0
Table_All_Items_New_data[i] = {}
Table_All_Items_New_data[i]['Name'] = v['name']
Table_All_Items_New_data[i]['Count'] = 0
Table_All_Items_New_data[i]['Count Shiny'] = 0
end
end
for i,v in pairs(get_inventory_items()) do
Table_All_Items_Old_data[i]['Count'] = v
end
for i,v in pairs(get_inventory_items_unique_items()) do
if string.find(v['item_id'],"portal") or string.find(v['item_id'],"disc") then
Count_Portal_list = Count_Portal_list + 1
Table_All_Items_Old_data[v['item_id']]['Count'] = Table_All_Items_Old_data[v['item_id']]['Count'] + 1
end
end
for i,v in pairs(get_Units_Owner()) do
Table_All_Items_Old_data[v["unit_id"]]['Count'] = Table_All_Items_Old_data[v["unit_id"]]['Count'] + 1
if v.shiny then
Table_All_Items_Old_data[v["unit_id"]]['Count'] = Table_All_Items_Old_data[v["unit_id"]]['Count'] - 1
Table_All_Items_Old_data[v["unit_id"]]['Count Shiny'] = Table_All_Items_Old_data[v["unit_id"]]['Count Shiny'] + 1
end
end
if game.Players.LocalPlayer._stats:FindFirstChild("_resourceCandies") then
SummerPearlsOld = game.Players.LocalPlayer._stats._resourceCandies.Value
end
----------------Map & ID Map
local function GetCurrentLevelId()
if game.Workspace._MAP_CONFIG then
return game:GetService("Workspace")._MAP_CONFIG.GetLevelData:InvokeServer()["id"]
end
end
local function GetCurrentLevelName()
if game.Workspace._MAP_CONFIG then
return game:GetService("Workspace")._MAP_CONFIG.GetLevelData:InvokeServer()["name"]
end
end
function comma_value(p1)
local value = p1;
while true do
local value2, value3 = string.gsub(value, "^(-?%d+)(%d%d%d)", "%1,%2");
value = value2;
if value3 ~= 0 then else
break;
end;
end;
return value;
end;
----------------endMap & ID Map
getgenv().item = "-"
plr.PlayerGui:FindFirstChild("HatchInfo"):FindFirstChild("holder"):FindFirstChild("info1"):FindFirstChild("UnitName").Text = getgenv().item
function webhook()
if Settings.WebhookEnabled then
local url = Settings.WebhookUrl
print("webhook?")
if url == "" then
warn("Webhook Url is empty!")
return
end
local Time = os.date('!*t', OSTime);
--local thumbnails_avatar = HttpService:JSONDecode(game:HttpGet("https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds=" .. game:GetService("Players").LocalPlayer.UserId .. "&size=150x150&format=Png&isCircular=true", true))
local exec = tostring(identifyexecutor())
userlevel = plr.PlayerGui:FindFirstChild("spawn_units"):FindFirstChild("Lives"):FindFirstChild("Main"):FindFirstChild("Desc"):FindFirstChild("Level").Text
totalgems = plr.PlayerGui:FindFirstChild("spawn_units"):FindFirstChild("Lives"):FindFirstChild("Frame"):FindFirstChild("Resource"):FindFirstChild("Gem"):FindFirstChild("Level").Text
ResultHolder = plr.PlayerGui:FindFirstChild("ResultsUI"):FindFirstChild("Holder")
if game.PlaceId ~= 12886143095 then
levelname = game:GetService("Workspace"):FindFirstChild("_MAP_CONFIG"):FindFirstChild("GetLevelData"):InvokeServer()["name"]
result = ResultHolder.Title.Text else levelname, result = "nil","nil" end
if result == "VICTORY" then result = "VICTORY" end
if result == "DEFEAT" then result = "DEFEAT" end
_map = game:GetService("Workspace")["_BASES"].player.base["fake_unit"]:WaitForChild("HumanoidRootPart")
---------------------------------
GetLevelData = game.workspace._MAP_CONFIG:WaitForChild("GetLevelData"):InvokeServer()
Mapname = GetLevelData.name
name = GetLevelData.id or GetLevelData.world or GetLevelData.map
world = GetLevelData.name
--New Mapname
local Loader = require(game.ReplicatedStorage.src.Loader)
local Maps = Loader.load_data(script, "Maps")
local v100 = Maps[Loader.LevelData.map]
MapsNameTEST = v100.name or GetLevelData.name
--Difficulty
MapDiff = game:GetService("Players").LocalPlayer.PlayerGui.ResultsUI.Holder.Difficulty.Text
MapDiff2 = game:GetService("Players").LocalPlayer.PlayerGui.ResultsUI.Holder.Difficulty.Text
MapDiff3 = MapDiff2
if Mapname == "Infinity Castle" then MapDiff3 = tostring(MapDiff2) end
if poratltierS ~= nil or poratltierS ~= " Not have Tier " then MapDiff3 = " Hard " end
if world == "Infinity Castle" then MapDiff3 = MapDiff2 end
if world == "Infinity Castle" then MapDiff3 = MapDiff end
if poratltierS == nil or poratltierS == " Not have Tier " then MapDiff3 = tostring(MapDiff2) end
if poratltierS == nil or poratltierS == " Not have Tier " then MapDiff3 = tostring(MapDiff) end
if poratChallengeS ~= nil or poratChallengeS ~= " Not have Challenge " then MapDiff3 = " Hard " end
if poratChallengeS ~= " Not have Challenge " then MapDiff3 = " Hard " end
-------------------------------
cwaves = game:GetService("Players").LocalPlayer.PlayerGui.ResultsUI.Holder.Middle.WavesCompleted.Text
ctime = game:GetService("Players").LocalPlayer.PlayerGui.ResultsUI.Holder.Middle.Timer.Text
btp = plr.PlayerGui:FindFirstChild("BattlePass"):FindFirstChild("Main"):FindFirstChild("Level"):FindFirstChild("V").Text
btp2 = game:GetService("Players").LocalPlayer.PlayerGui.BattlePass.Main.Level.Title.Text
btpAlllv = game:GetService("Players").LocalPlayer.PlayerGui.BattlePass.Main.Main.Rewards.Frame.Pages.Home.Amount.Text
btplv = game:GetService("Players").LocalPlayer.PlayerGui.BattlePass.Main.Level.V.Text
btplv2 = game:GetService('HttpService'):JSONDecode(readfile(game:GetService('Players').LocalPlayer.Name .. 'BTP_LV.txt'))
local btplv3 = tostring(btplv2)
if btplv3 == "99" then btplv3 = "50" end
btpAlllv2 = game:GetService('HttpService'):JSONDecode(readfile(game:GetService('Players').LocalPlayer.Name .. 'BTP_AllLV.txt'))
local btpAlllv3 = tostring(btpAlllv2)
if btpAlllv3 == "100000/100000" then btpAlllv3 = "Max" end
waves = cwaves:split(": ")
if waves ~= nil and waves[2] == "999" then waves[2] = "Use [Auto Leave at Wave] or [Test Webhook]" end
ttime = ctime:split(": ")
if waves ~= nil and ttime[2] == "22:55" then ttime[2] = "Use [Auto Leave at Wave] or [Test Webhook]" end
gold = ResultHolder:FindFirstChild("LevelRewards"):FindFirstChild("ScrollingFrame"):FindFirstChild("GoldReward"):FindFirstChild("Main"):FindFirstChild("Amount").Text
if gold == "+99999" then gold = "+0" end
gems = ResultHolder:FindFirstChild("LevelRewards"):FindFirstChild("ScrollingFrame"):FindFirstChild("GemReward"):FindFirstChild("Main"):FindFirstChild("Amount").Text
if gems == "+99999" then gems = "+0" end
if game.Players.LocalPlayer._stats:FindFirstChild("_resourceCandies") then
SummerPearls = game.Players.LocalPlayer._stats._resourceCandies.Value
end
xpx = ResultHolder:FindFirstChild("LevelRewards"):FindFirstChild("ScrollingFrame"):FindFirstChild("XPReward"):FindFirstChild("Main"):FindFirstChild("Amount").Text
xp = xpx:split(" ")
if xp[1] == "+99999" then xp[1] = "+0" end
trophy = ResultHolder:FindFirstChild("LevelRewards"):FindFirstChild("ScrollingFrame"):FindFirstChild("TrophyReward"):FindFirstChild("Main"):FindFirstChild("Amount").Text
if trophy == "+99999" then trophy = "+0" end
totaltime = ResultHolder:FindFirstChild("Middle"):FindFirstChild("Timer").Text
totalwaves = ResultHolder:FindFirstChild("Middle"):FindFirstChild("WavesCompleted").Text
------------------------------------------------
--Webhook Tier Challenge
local v5 = require(game.ReplicatedStorage.src.Loader)
local poratltierS = v5.LevelData._portal_depth
if poratltierS == nil then poratltierS = " Not have Tier " end
local v5 = require(game.ReplicatedStorage.src.Loader)
local poratChallengeS = v5.LevelData._challenge
if poratChallengeS == nil then poratChallengeS = " Not have Challenge " end
if poratChallengeS == "double_cost" then poratChallengeS = "High Cost" end
if poratChallengeS == "short_range" then poratChallengeS = "Short Range" end
if poratChallengeS == "fast_enemies" then poratChallengeS = "Fast Enemies" end
if poratChallengeS == "regen_enemies" then poratChallengeS = "Regen Enemies" end
if poratChallengeS == "tank_enemies" then poratChallengeS = "Tank Enemies" end
if poratChallengeS == "shield_enemies" then poratChallengeS = "Shield Enemies" end
if poratChallengeS == "triple_cost" then poratChallengeS = "Triple Cost" end
if poratChallengeS == "hyper_regen_enemies" then poratChallengeS = "Hyper-Regen Enemies" end
if poratChallengeS == "hyper_shield_enemies" then poratChallengeS = "Steel-Plated Enemies" end
if poratChallengeS == "godspeed_enemies" then poratChallengeS = "Godspeed Enemies" end
if poratChallengeS == "flying_enemies" then poratChallengeS = "Flying Enemies" end
if poratChallengeS == "mini_range" then poratChallengeS = "Mini-Range" end
--------------------------------------------------------------------
local TextDropLabel = ""
local CountAmount = 1
for i,v in pairs(get_inventory_items()) do
Table_All_Items_New_data[i]['Count'] = v
end
for i,v in pairs(get_inventory_items_unique_items()) do
if string.find(v['item_id'],"portal") or string.find(v['item_id'],"disc") then
Table_All_Items_New_data[v['item_id']]['Count'] = Table_All_Items_New_data[v['item_id']]['Count'] + 1
end
end
for i,v in pairs(get_Units_Owner()) do
Table_All_Items_New_data[v["unit_id"]]['Count'] = Table_All_Items_New_data[v["unit_id"]]['Count'] + 1
if v.shiny then
Table_All_Items_New_data[v["unit_id"]]['Count'] = Table_All_Items_New_data[v["unit_id"]]['Count'] - 1
Table_All_Items_New_data[v["unit_id"]]['Count Shiny'] = Table_All_Items_New_data[v["unit_id"]]['Count Shiny'] + 1
end
end
for i,v in pairs(Table_All_Items_New_data) do
if v['Count'] > 0 and (v['Count'] - Table_All_Items_Old_data[i]['Count']) > 0 then
if v['Count Shiny'] and v['Count'] then
if v['Count'] > 0 or v['Count Shiny'] > 0 then
if v['Count'] > 0 and (v['Count'] - Table_All_Items_Old_data[i]['Count']) > 0 then
TextDropLabel = TextDropLabel .. tostring(CountAmount) .. ". " .. tostring(v['Name']) .. " : x" .. tostring(v['Count'] - Table_All_Items_Old_data[i]['Count']) .. " [Total : " .. tostring(v['Count']) .. "]"
if v['Count Shiny'] > 0 and (v['Count Shiny'] - Table_All_Items_Old_data[i]['Count Shiny']) > 0 then
TextDropLabel = TextDropLabel .. " | " .. tostring(v['Name']) .. " (Shiny) : x" .. tostring(v['Count Shiny'] - Table_All_Items_Old_data[i]['Count Shiny']) .. " [Total : " .. tostring(v['Count Shiny']) .. "]\n"
CountAmount = CountAmount + 1
else
TextDropLabel = TextDropLabel .. "\n"
CountAmount = CountAmount + 1
end
end
end
end
elseif v['Count Shiny'] and v['Count Shiny'] > 0 and (v['Count Shiny'] - Table_All_Items_Old_data[i]['Count Shiny']) > 0 then
TextDropLabel = TextDropLabel .. tostring(CountAmount) .. ". " .. tostring(v['Name']) .. " (Shiny) : x" .. tostring(v['Count Shiny'] - Table_All_Items_Old_data[i]['Count Shiny']) .. " [Total : " .. tostring(v['Count Shiny']) .. "]\n"
CountAmount = CountAmount + 1
end
end
for i,v in pairs(Table_All_Items_New_data) do
if v['Count'] > 0 and (v['Count'] - Table_All_Items_Old_data[i]['Count']) > 0 then
--if v['Count'] > 0 and (v['Count'] == Table_All_Items_Old_data[i]['Count']) > 0 then
if v['Count Shiny'] and v['Count'] then
elseif string.find(i,"portal") or string.find(i,"disc") then
Count_Portal_list = Count_Portal_list + 1
if string.gsub(i, "%D", "") == "" then
TextDropLabel = TextDropLabel .. tostring(CountAmount) .. ". " .. tostring(v['Name']) .. " : x" .. tostring(v['Count'] - Table_All_Items_Old_data[i]['Count']) .. " [Total : " .. tostring(v['Count']) .. "]\n"
else
TextDropLabel = TextDropLabel .. tostring(CountAmount) .. ". " .. tostring(v['Name']) .. " Tier " .. tostring(string.gsub(i, "%D", "")) .. " : x" .. tostring(v['Count'] - Table_All_Items_Old_data[i]['Count']) .. " [Total : " .. tostring(v['Count']) .. "]\n"
end
CountAmount = CountAmount + 1
else
TextDropLabel = TextDropLabel .. tostring(CountAmount) .. ". " .. tostring(v['Name']) .. " : x" .. tostring(v['Count'] - Table_All_Items_Old_data[i]['Count']) .. " [Total : " .. tostring(v['Count']) .. "]\n"
CountAmount = CountAmount + 1
end
end
end
--end
if TextDropLabel == "" then
TextDropLabel = "Not Have Items Drops"
end
local data = {
["content"] = "",
["username"] = "Anime Adventures V2",
["avatar_url"] = "https://tr.rbxcdn.com/004babc7b7ab98294150c70d7ea7bf0d/150/150/Image/Png",
["embeds"] = {
{
["author"] = {
["name"] = "Anime Adventures | Results V2 ✔️",
["icon_url"] = "https://cdn.discordapp.com/emojis/997123585476927558.webp?size=96&quality=lossless"
},
--[[["thumbnail"] = {
['url'] = thumbnails_avatar.data[1].imageUrl,
},]]
["description"] = " Player Name : 🐱 ||**"..game:GetService("Players").LocalPlayer.Name.."**|| 🐱\nExecutors : 🎮 "..exec.." 🎮 ",
["color"] = 110335,
["timestamp"] = string.format('%d-%d-%dT%02d:%02d:%02dZ', Time.year, Time.month, Time.day, Time.hour, Time.min, Time.sec),
['footer'] = {
['text'] = "// Made by Negative & HOLYSHz",
['icon_url'] = "https://yt3.ggpht.com/mApbVVD8mT92f50OJuTObnBbc3j7nDCXMJFBk2SCDpSPcaoH9DB9rxVpJhsB5SxAQo1UN2GzyA=s48-c-k-c0x00ffffff-no-rj"
},
["fields"] = {
{
["name"] ="Current Level ✨ & Gems 💎 & Gold 💰 & Portals 🌀",
["value"] = "```ini\n"
..tostring(game.Players.LocalPlayer.PlayerGui.spawn_units.Lives.Main.Desc.Level.Text).. " ✨\nBTP Lv : "
..tostring(btplv3).. " [ "..tostring(btpAlllv3).." ] 🎟️\nCurrent Gold : "
..tostring(comma_value(game.Players.LocalPlayer._stats.gold_amount.Value)).. " 💰\nCurrent Gems : "
..tostring(comma_value(game.Players.LocalPlayer._stats.gem_amount.Value)).. " 💎\nCurrent Trophies : "
..tostring(comma_value(game.Players.LocalPlayer._stats.trophies.Value)).. " 🏆\nCurrent Portal : "
..tostring(Count_Portal_list) .." / 200 🌀\nCurrent Candies : "
..tostring(comma_value(game.Players.LocalPlayer._stats._resourceCandies.Value)).. " 🎃```",
},
{
["name"] ="Results :",
["value"] = "```ini\nWorld : "..world.. " 🌏\nMap Name : "..tostring(MapsNameTEST).. " 🗺️\nMap Id : "..name.. " 🗺️\nDifficulty : "..tostring(MapDiff3).. " 🎚️\nPortal Tier : " ..tostring(poratltierS).." 🌀\nChallenge : " ..tostring(poratChallengeS).." 🌀\nResults : "..result.. " ⚔️\nWave End : " ..tostring(waves[2]).." 🌊\nTime : " ..tostring(ttime[2]).." ⌛\nAll Kill Count : " ..tostring(comma_value(game.Players.LocalPlayer._stats.kills.Value)).. " ⚔️\nDMG Deal : " ..tostring(comma_value(game.Players.LocalPlayer._stats.damage_dealt.Value)).."⚔️```",
["inline"] = true
},
{
["name"] ="Rewards :",
["value"] = "```ini\n"
.. comma_value(gold) .." Gold 💰\n"
.. comma_value(gems) .." Gems 💎\n"
.. comma_value(xp[1]) .." XP 🧪\n+"
.. comma_value(SummerPearls - SummerPearlsOld) .." Candies 🎃\n"
.. trophy .." Trophy 🏆```",
},
{
["name"] ="Items Drop :",
["value"] = "```ini\n" .. TextDropLabel .. "```",
["inline"] = false
}
}
}
}
}
local porn = game:GetService("HttpService"):JSONEncode(data)
local headers = {["content-type"] = "application/json"}
local request = http_request or request or HttpPost or syn.request or http.request
local sex = {Url = url, Body = porn, Method = "POST", Headers = headers}
warn("Sending webhook notification...")
request(sex)
end
end
function BabyWebhook()
if Settings.BabyWebhookEnabled then
local url = Settings.BabyWebhookUrl
print("webhook baby?")
if url == "" then
warn("BabyWebhook Url is empty!")
return
end
local Time = os.date('!*t', OSTime);
--local thumbnails_avatar = HttpService:JSONDecode(game:HttpGet("https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds=" .. game:GetService("Players").LocalPlayer.UserId .. "&size=150x150&format=Png&isCircular=true", true))
local exec = tostring(identifyexecutor())
--BTP lv.
btplv = game:GetService("Players").LocalPlayer.PlayerGui.BattlePass.Main.Level.V.Text
--next ammo level
nextlvbtp = game:GetService("Players").LocalPlayer.PlayerGui.BattlePass.Main.FurthestRoom.V.Text
--room
rankroom = game:GetService("Players").LocalPlayer.PlayerGui.InfinityCastleRankingUI.Main.Main.Scroll.YourRanking.FurthestRoom.V.V.Text
if rankroom == "10" then rankroom = "Inf Castle Load Not Yet" end
--Rank title
ranktitle = game:GetService("Players").LocalPlayer.PlayerGui.InfinityCastleRankingUI.Main.Main.Scroll.YourRanking.RankTitle.V.V.Text
if ranktitle == "Grandmaster" then ranktitle = "Inf Castle Load Not Yet" end
--rank %
rankper = game:GetService("Players").LocalPlayer.PlayerGui.InfinityCastleRankingUI.Main.Main.Scroll.YourRanking.Ranking.V.V.Text
if rankper == "10%" then rankper = "Inf Castle Load Not Yet" end
--Current Rank
crt = game:GetService("Players").LocalPlayer.PlayerGui.TournamentRankingUI.Leaderboard.Ranking.Wrapper.CurrentRank.Ranking.V.Text
if crt == "10%" then crt = "Tournament Load Not Yet" end
--Current Prize%
cpp = game:GetService("Players").LocalPlayer.PlayerGui.TournamentRankingUI.Leaderboard.Ranking.Wrapper.CurrentPrize.V.Text
if cpp == "10%" then cpp = "Tournament Load Not Yet" end
--Current Prize
cp = game:GetService("Players").LocalPlayer.PlayerGui.TournamentRankingUI.Leaderboard.Ranking.Wrapper.CurrentPrize.Prize.Text
if cp == "0% ~ 49.99%" then cp = "Tournament Load Not Yet" end
--Current Place#
cpr = game:GetService("Players").LocalPlayer.PlayerGui.TournamentRankingUI.Leaderboard.Main.Wrapper.Container.YourRow.Place.Text
if cpr == "#123456" then cpr = "Tournament Load Not Yet" end
--Dmg or kill
cdk = game:GetService("Players").LocalPlayer.PlayerGui.TournamentRankingUI.Leaderboard.Main.Wrapper.Container.YourRow.Amount.Text
if cdk == "123456789000000" then cdk = "Tournament Load Not Yet" end
--Bracket
cubk = game:GetService("Players").LocalPlayer.PlayerGui.TournamentRankingUI.LevelSelect.InfoFrame.ScoreInfo.Bracket.V.Text
if cubk == "N" then cubk = "Tournament Load Not Yet" end
local data = {
["content"] = "",
["username"] = "Anime Adventures V2",
["avatar_url"] = "https://tr.rbxcdn.com/5c9e29b3953ec061286e76f08f1718b3/150/150/Image/Png",
["embeds"] = {
{
["author"] = {
["name"] = " Current BTP & Inf Castle & Tournament Results ✔️",
["icon_url"] = "https://cdn.discordapp.com/emojis/997123585476927558.webp?size=96&quality=lossless"
},
--[[["thumbnail"] = {
['url'] = thumbnails_avatar.data[1].imageUrl,
},]]
["description"] = " Player Name : 🐱 ||**"..game:GetService("Players").LocalPlayer.Name.."**|| 🐱",
["color"] = 110335,
["timestamp"] = string.format('%d-%d-%dT%02d:%02d:%02dZ', Time.year, Time.month, Time.day, Time.hour, Time.min, Time.sec),
["fields"] = {
{
["name"] ="Current Battle Pass Results 🔋 ",
["value"] = "```ini\nCurrent BTP Lv. : "..btplv.." 🔋\nNEED TO NEXT : "..nextlvbtp.. " 🔋```",
},
{
["name"] ="Current Tournament Results 🏆",
["value"] = "```ini\nYour Bracket: : "..cubk.." 🏆\nCurrent Rank : ["..cpr.." - "..crt.."] 🏆\nDMG or Kill : "..cdk.. " 🏆\nCurrent Prize : "..cpp.. " 🏆\nReward Prize : " ..cp.. " 🏆```",
},
{
["name"] ="Current Infinity Castle Results 🚪",
["value"] = "```ini\nCurrent Room : "..rankroom.." 🚪\nCurrent Rank : "..ranktitle.. " 📊\nCurrent Percent : " ..rankper.. " 🏅```",
}
}
}
}
}
local xd = game:GetService("HttpService"):JSONEncode(data)
local headers = {["content-type"] = "application/json"}
request = http_request or request or HttpPost or syn.request or http.request
local sex = {Url = url, Body = xd, Method = "POST", Headers = headers}
warn("Sending infcastle webhook notification...")
request(sex)
end
end
function SnipeShopNew()
if Settings.snipeWebhookEnabled then
pcall(function()
SpecialSummonSniperWebhook()
StandardSummonSniperWebhook()
ShopSniperWebhook()
end)
end
end
--special
function SpecialSummonSniperWebhook()
if Settings.snipeWebhookEnabled then
local url = Settings.SnipeWebhookUrl
print("webhook Special banner?")
if url == "" then
warn("SnipeWebhook Url is empty!")
return
end
local Time = os.date('!*t', OSTime);
--local thumbnails_avatar = HttpService:JSONDecode(game:HttpGet("https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds=" .. game:GetService("Players").LocalPlayer.UserId .. "&size=150x150&format=Png&isCircular=true", true))
local exec = tostring(identifyexecutor())
special_banner = game:GetService("Players").LocalPlayer.PlayerGui.HatchGuiNew.BannerFrames.EventClover.Main
units = {
special_banner["Featured_One"],
special_banner["Featured_Two"],
special_banner["Featured_Three"]
}
unitNamesForJson = {
special_banner["Featured_One"].name.Text,
special_banner["Featured_Two"].name.Text,
special_banner["Featured_Three"].name.Text
}
local data = {
["content"] = "",
["username"] = "Anime Adventures V2",
["avatar_url"] = "https://tr.rbxcdn.com/5c9e29b3953ec061286e76f08f1718b3/150/150/Image/Png",
["embeds"] = {
{
["author"] = {
["name"] = " Special Banner ",
["icon_url"] = "https://cdn.discordapp.com/emojis/997123585476927558.webp?size=96&quality=lossless"
},
--[[["thumbnail"] = {
['url'] = thumbnails_avatar.data[1].imageUrl,
},]]
["description"] = " Player Name : 🐱 ||**"..game:GetService("Players").LocalPlayer.Name.."**|| 🐱",
["color"] = 110335,
["timestamp"] = string.format('%d-%d-%dT%02d:%02d:%02dZ', Time.year, Time.month, Time.day, Time.hour, Time.min, Time.sec),
["fields"] = {
{
["name"] = "```" .. units[1].name.Text .. "```",
["value"] = "```(" .. units[1].Rarity.Text .. ") [Featured]```",
["inline"] = true
},
{
["name"] = "```" .. units[2].name.Text .. "```",
["value"] = "```(" .. units[2].Rarity.Text .. ")```",
["inline"] = true
},
{
["name"] = "```" .. units[3].name.Text .. "```",
["value"] = "```(" .. units[3].Rarity.Text .. ")```",
["inline"] = true
}
}
}
}
}
local xd = game:GetService("HttpService"):JSONEncode(data)
local headers = {["content-type"] = "application/json"}
request = http_request or request or HttpPost or syn.request or http.request
local sex = {Url = url, Body = xd, Method = "POST", Headers = headers}
warn("Sending special banner webhook notification...")
request(sex)
end
end
--Standar
function StandardSummonSniperWebhook()
if Settings.snipeWebhookEnabled then
local url = Settings.SnipeWebhookUrl
print("webhook Standard Banner?")
if url == "" then
warn("Webhook Url is empty!")
return
end
local Time = os.date('!*t', OSTime);
--local thumbnails_avatar = HttpService:JSONDecode(game:HttpGet("https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds=" .. game:GetService("Players").LocalPlayer.UserId .. "&size=150x150&format=Png&isCircular=true", true))
local exec = tostring(identifyexecutor())
units = {
game:GetService("Players").LocalPlayer.PlayerGui.HatchGuiNew.BannerFrames.Standard.Main.Scroll["1"].Main,
game:GetService("Players").LocalPlayer.PlayerGui.HatchGuiNew.BannerFrames.Standard.Main.Scroll["2"].Main,
game:GetService("Players").LocalPlayer.PlayerGui.HatchGuiNew.BannerFrames.Standard.Main.Scroll["3"].Main,
game:GetService("Players").LocalPlayer.PlayerGui.HatchGuiNew.BannerFrames.Standard.Main.Scroll["4"].Main,
game:GetService("Players").LocalPlayer.PlayerGui.HatchGuiNew.BannerFrames.Standard.Main.Scroll["5"].Main,
game:GetService("Players").LocalPlayer.PlayerGui.HatchGuiNew.BannerFrames.Standard.Main.Scroll["6"].Main
}
U1 = units[1].petimage.WorldModel:GetChildren()[1].Name
U2 = units[2].petimage.WorldModel:GetChildren()[1].Name
U3 = units[3].petimage.WorldModel:GetChildren()[1].Name
U4 = units[4].petimage.WorldModel:GetChildren()[1].Name
U5 = units[5].petimage.WorldModel:GetChildren()[1].Name
U6 = units[6].petimage.WorldModel:GetChildren()[1].Name
local data = {
["content"] = "",
["username"] = "Anime Adventures V2",
["avatar_url"] = "https://tr.rbxcdn.com/5c9e29b3953ec061286e76f08f1718b3/150/150/Image/Png",
["embeds"] = {
{
["author"] = {
["name"] = " Standard Banner ",
["icon_url"] = "https://cdn.discordapp.com/emojis/997123585476927558.webp?size=96&quality=lossless"
},
--[[["thumbnail"] = {
['url'] = thumbnails_avatar.data[1].imageUrl,
},]]
["description"] = " Player Name : 🐱 ||**"..game:GetService("Players").LocalPlayer.Name.."**|| 🐱",
["color"] = 110335,
["timestamp"] = string.format('%d-%d-%dT%02d:%02d:%02dZ', Time.year, Time.month, Time.day, Time.hour, Time.min, Time.sec),
["fields"] = {
}
}
}
}
for i, unit in pairs(units) do
unit_stats = {
["name"] = "```" .. unit.petimage.WorldModel:GetChildren()[1].Name .."```",
["value"] = "```(" ..unit.Rarity.Text ..")```",
["inline"] = true
}
table.insert(data["embeds"][1]["fields"], unit_stats)
end
local xd = game:GetService("HttpService"):JSONEncode(data)
local headers = {["content-type"] = "application/json"}
request = http_request or request or HttpPost or syn.request or http.request
local sex = {Url = url, Body = xd, Method = "POST", Headers = headers}
warn("Sending Standard banner webhook notification...")
request(sex)
end
end
--Bulma's Shop webhook
function ShopSniperWebhook()
if Settings.snipeWebhookEnabled then
local url = Settings.SnipeWebhookUrl
print("webhook Bulma's webhook?")
if url == "" then
warn("Webhook Url is empty!")
return
end
print(game:GetService("ReplicatedStorage").src.client.Services.TravellingMerchantServiceClient)
local Time = os.date('!*t', OSTime);
--local thumbnails_avatar = HttpService:JSONDecode(game:HttpGet("https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds=" .. game:GetService("Players").LocalPlayer.UserId .. "&size=150x150&format=Png&isCircular=true", true))
local exec = tostring(identifyexecutor())
shop_items = require(game:GetService("ReplicatedStorage").src.client.Services["TravellingMerchantServiceClient"]).SELLING_ITEMS
shop_item_ids = {}
print("exechere9")
local data = {
["content"] = "",
["username"] = "Anime Adventures V2",
["avatar_url"] = "https://tr.rbxcdn.com/5c9e29b3953ec061286e76f08f1718b3/150/150/Image/Png",
["embeds"] = {
{
["author"] = {
["name"] = " Bulma's Shop ",
["icon_url"] = "https://cdn.discordapp.com/emojis/997123585476927558.webp?size=96&quality=lossless"
},
--[[["thumbnail"] = {
['url'] = thumbnails_avatar.data[1].imageUrl,
},]]
["description"] = " Player Name : 🐱 ||**"..game:GetService("Players").LocalPlayer.Name.."**|| 🐱",
["color"] = 110335,
["timestamp"] = string.format('%d-%d-%dT%02d:%02d:%02dZ', Time.year, Time.month, Time.day, Time.hour, Time.min, Time.sec),
["fields"] = {
}
}
}
}
print("exechere4")
for i, item in pairs(shop_items) do
table.insert(shop_item_ids, item["id"])
if item["gem_cost"] then
table.insert(data["embeds"][1]["fields"], {
["name"] = "```" .. item["id"].."```",
["value"] = "```" .. item["gem_cost"] .. " 💎```",
["inline"] = true
})
else
table.insert(data["embeds"][1]["fields"], {
["name"] = "```" .. item["id"].. " ```",
["value"] = "```" .. item["gold_cost"] .. " 💰```",
["inline"] = true
})
end
end
--print(dump(data["embeds"][1]["fields"]))
if not game:GetService("Workspace")["travelling_merchant"]["is_open"].Value then
table.insert(data["embeds"][1]["fields"], {
["name"] = "SHOP CLOSED",
["value"] = "SHOP CLOSED",
["inline"] = true
})
end
print("exec1")
local xd = game:GetService("HttpService"):JSONEncode(data)
local headers = {["content-type"] = "application/json"}
request = http_request or request or HttpPost or syn.request or http.request
local sex = {Url = url, Body = xd, Method = "POST", Headers = headers}
warn("Sending Snipe Bulma's Shop webhook notification...")
request(sex)
end
end
------------------------------\
--[[if game.Players.LocalPlayer.PlayerGui:FindFirstChild("FinityUI") then
game.Players.LocalPlayer.PlayerGui["FinityUI"]:Destroy()
end]]
if game.CoreGui:FindFirstChild("FinityUI") then
game.CoreGui["FinityUI"]:Destroy()
end
local dir = "Anime_Adventures/"..game.Players.LocalPlayer.Name
local Uilib = loadstring(game:HttpGet("https://raw.githubusercontent.com/ArponAG/Scripts/main/finitylibTEST"))()
--local Uilib = loadstring(game:HttpGet("https://raw.githubusercontent.com/ArponAG/Scripts/main/finitylib"))()
local exec = tostring(identifyexecutor())
local Window = Uilib.new(true, "[Arpon_V2] Anime Adventures "..version.." - "..exec)
Window.ChangeToggleKey(Enum.KeyCode.P)
local Home = Window:Category("🏠 Home")
local Developers = Home:Sector("Anime Adventures")
local asdasd = Home:Sector(" ")
local UIUPDT = Home:Sector("⚙️ Challenge Config ⚙️")
local Farm = Window:Category("🤖 Auto Farm")
local SelectUnits = Farm:Sector("🧙 Select Units")
local SelectWorld = Farm:Sector("🌏 Select World")
local UnitPosition = Farm:Sector("🧙 Select Unit Position")
local castleconfig = Farm:Sector("🏯 Infinity Castle 🏯")
local AutoFarmConfig = Farm:Sector("⚙️ Auto Farm Config")
local ChallengeConfig = Farm:Sector("⌛ Challenge Config")
local bkackhole1 = Farm:Sector(" ")
local bkackhole2 = Farm:Sector(" ")
local bkackhole3 = Farm:Sector(" ")
local bkackhole4 = Farm:Sector(" ")
local bkackhole5 = Farm:Sector(" ")
local bkackhole6 = Farm:Sector(" ")
local UC = Window:Category("🧙 Unit Config")
local NDY = UC:Sector("Beta Unit Config ")
local NDY2 = UC:Sector(" ")
local emptyxx = UC:Sector(" ")
local emptyxx2 = UC:Sector(" ")
local Unit1 = UC:Sector("Unit 1")
local Unit2 = UC:Sector("Unit 2")
local Unit3 = UC:Sector("Unit 3")
local Unit4 = UC:Sector("Unit 4")
local Unit5 = UC:Sector("Unit 5")
local Unit6 = UC:Sector("Unit 6")
--- Unit AOE
local UA = Window:Category("⚔️ INF & KILL")
Unit = {}
for i = 1, 6 do
Unit["AOE"..i] = UA:Sector("Select Unit " .. i .. " Kill or INF Range")
end
local UnitAOE = UA:Sector("INF Range Config ")
local UnitAOE1 = UA:Sector("Kill Or TakeDown & Check Unit")
--- End of Unit AOE
local LG = Window:Category("🛠️ Misc [BETA]")
local LowCPU2 = LG:Sector("Low CPU Mode")
local LowCPU3 = LG:Sector("")
local LG1 = LG:Sector("Beta LAGGY Config ")
local DELMAP = LG:Sector("🗺️ New Function 🗺️")
local DELMAP1 = LG:Sector(" ")
local OtherSec = LG:Sector("⌛ Auto Load Script ⌛")
local OtherSec1 = LG:Sector("")
local OtherSec3 = LG:Sector("🐱 Hide Name Player 🐱")
local DelMapConfig = LG:Sector("")
local DelMapConfig2 = LG:Sector("⚙️ Other Config ⚙️")
local DelMapConfig3 = LG:Sector("")
local ETC = Window:Category("🌐 Discord & Shop")
local AutoSummonSec = ETC:Sector("💸 Auto Summon Units 💸")
local AutoSnipeMerchantSec = ETC:Sector("🏪 Auto Snipe Bulma 🏪")
local WebhookSec = ETC:Sector("🌐 Discord Webhook 🌐")
local OtherSec2 = ETC:Sector("")
local Summer = Window:Category("🦸🏽 Event & Skin ")
local SummerItem = Summer:Sector("🕵️♂️ Item BSD Event 🕵️♂️")
local SummerItem2 = Summer:Sector("🎃 Item Halloween Event 🎃")
local SummerItem0 = Summer:Sector("")
local SellPortals = Summer:Sector("🌀 Sell Challenge Portals 🌀")
local SummerSkin = Summer:Sector("💸 Auto Sell Events Skin 💸")
local SummerSkin0 = Summer:Sector("")
local SummerEgg = Summer:Sector("🥚 Auto Open Events Egg 🥚")
----------------------------------------------
---------------- Units Selection -------------
----------------------------------------------
if Settings.SelectedUnits == nil then
Settings.SelectedUnits = {
U1 = "nil",
U2 = "nil",
U3 = "nil",
U4 = "nil",
U5 = "nil",
U6 = "nil"
}
saveSettings()
end
local function UnitSec()
--#region Select Units Tab
local Units = {}
function Check()
local DataUnits = require(game:GetService("ReplicatedStorage").src.Data.Units)
for i, v in pairs(getgenv().profile_data.equipped_units) do
if DataUnits[v.unit_id] and v.equipped_slot then
Settings.SelectedUnits["U"..tostring(v.equipped_slot)] = tostring(DataUnits[v.unit_id].id) .. " #" .. tostring(v.uuid)
print("U"..tostring(v.equipped_slot).." "..tostring(DataUnits[v.unit_id].id).." #" .. tostring(v.uuid))
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCore("SendNotification", {
Title = "Equip Unit",
Text = "U"..tostring(v.equipped_slot).." : "..tostring(DataUnits[v.unit_id].name),
Duration = 10
})
end
end
saveSettings()
end
function LoadUnits()
local DataUnits = require(game:GetService("ReplicatedStorage").src.Data.Units)
table.clear(Units)
for i, v in pairs(getgenv().profile_data.equipped_units) do
if DataUnits[v.unit_id] then
table.insert(Units, DataUnits[v.unit_id].name .. " #" .. tostring(v.uuid))
end
end
Check()
end
function GetUnits()
if Settings.SelectedUnits == nil then
Settings.SelectedUnits = {
U1 = "nil",
U2 = "nil",
U3 = "nil",
U4 = "nil",
U5 = "nil",
U6 = "nil"
}
saveSettings()
end
getgenv().profile_data = { equipped_units = {} }; repeat
do
for i, v in pairs(getgc(true)) do
if type(v) == "table" and rawget(v, "xp") then wait()
table.insert(getgenv().profile_data.equipped_units, v)
end
end
end
until #getgenv().profile_data.equipped_units > 0
LoadUnits()
end
GetUnits()
SelectUnits:Cheat("Button", "🧙 Select Units", function() --Selects Currently Equipped Units!
Settings.SelectedUnits = {
U1 = "nil",
U2 = "nil",
U3 = "nil",
U4 = "nil",
U5 = "nil",
U6 = "nil"
}
saveSettings()
GetUnits()
end)
function switchteam(string)
local args = { [1] = string }
game:GetService("ReplicatedStorage").endpoints.client_to_server.switch_team_loadout:InvokeServer(unpack(args))
end
local a = SelectUnits:Cheat("Dropdown", "🧙 Select Team",function(preset)
Settings.SelectedPreset = preset
print(preset)
saveSettings()
end, {
options = { "Team 1", "Team 2", "Team 3", "Team 4","Team 5" },
default = Settings.SelectedPreset
})
SelectUnits:Cheat("Button", "⌛ Switch Team", function() --loads preset
preset = Settings.SelectedPreset
if preset == "Team 1" then
switchteam("1")
GetUnits()
elseif preset == "Team 2" then
switchteam("2")
GetUnits()
elseif preset == "Team 3" then
switchteam("3")
GetUnits()
elseif preset == "Team 4" then
switchteam("4")
GetUnits()
elseif preset == "Team 5" then
switchteam("5")
GetUnits()
end
print(preset)
end)
end
SelectUnits:Cheat("Checkbox","🦸 Auto Save Unit ", function(bool)
warn("Auto Save Unit set to " .. tostring(bool))
Settings.AutoSaveUnit = bool
saveSettings()
end,{enabled = Settings.AutoSaveUnit })
-- End of Unit Section Function
-- Start of Auto Save Unit Function
function AutoSaveUnit()
if Settings.AutoSaveUnit then
local function saveUnit()
-- Generate Selected Unit Parameters
if Settings.SelectedUnits == nil then
Settings.SelectedUnits = {}
for i = 1, 6, 1 do
Settings.SelectedUnits["UP" .. i] = "nil"
end
else
-- Reset Selected Unit List to nil
for i = 1, 6, 1 do
Settings.SelectedUnits["UP" .. i] = "nil"
end
end
-- Transfer Equipped Units to Selected Unit List and Save to JSON
for i, v in pairs(getgenv().profile_data.equipped_units) do
if v.equipped_slot then
Settings.SelectedUnits["UP" .. tostring(v.equipped_slot)] = tostring(v.unit_id) .. " #" .. tostring(v.uuid)
print("UP" .. tostring(v.equipped_slot) .. " " .. tostring(v.unit_id) .. " #" .. tostring(v.uuid))
end
end
saveSettings()
end
local function fetchUnit()
getgenv().profile_data = {
equipped_units = {}
}
table.clear(getgenv().profile_data.equipped_units)
-- Fetch Unit List
for i, v in pairs(getgc(true)) do
if type(v) == "table" and rawget(v, "xp") then
wait()
table.insert(getgenv().profile_data.equipped_units, v)
end
end