-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathRogueLineage.lua
More file actions
6241 lines (5071 loc) · 235 KB
/
RogueLineage.lua
File metadata and controls
6241 lines (5071 loc) · 235 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
local library = sharedRequire('@UILibrary.lua');
local ToastNotif = sharedRequire('@classes/ToastNotif.lua');
local TextLogger = sharedRequire('@classes/TextLogger.lua');
local EntityESP = sharedRequire('@classes/EntityESP.lua');
local ControlModule = sharedRequire('@classes/ControlModule.lua');
local createBaseESP = sharedRequire('@utils/createBaseESP.lua');
local toCamelCase = sharedRequire('@utils/toCamelCase.lua');
local prettyPrint = sharedRequire('@utils/prettyPrint.lua');
local findPlayer = sharedRequire('@utils/findPlayer.lua');
local getImageSize = sharedRequire('@utils/getImageSize.lua');
local Services = sharedRequire('@utils/Services.lua');
local Utility = sharedRequire('@utils/Utility.lua');
local Maid = sharedRequire('@utils/Maid.lua');
local BlockUtils = sharedRequire('@utils/BlockUtils.lua');
local column1, column2 = unpack(library.columns);
local disableenvprotection = disableenvprotection or function() end;
local enableenvprotection = enableenvprotection or function() end;
local Players, Lighting, RunService, UserInputService, ReplicatedStorage, CoreGui, NetworkClient = Services:Get(
'Players',
'Lighting',
'RunService',
'UserInputService',
'ReplicatedStorage',
'CoreGui',
'NetworkClient'
);
local TeleportService, GuiService, CollectionService, HttpService, VirtualInputManager, MemStorageService, TweenService, StarterGui = Services:Get(
'TeleportService',
'GuiService',
'CollectionService',
'HttpService',
'VirtualInputManager',
'MemStorageService',
'TweenService',
'StarterGui'
);
local Heartbeat = RunService.Heartbeat;
local LocalPlayer = Players.LocalPlayer;
local Mouse = LocalPlayer:GetMouse();
local FindFirstChild = game.FindFirstChild;
local IsA = game.IsA;
local IsDescendantOf = game.IsDescendantOf;
local startMenu;
local ranSince = tick();
repeat
startMenu = LocalPlayer and LocalPlayer:FindFirstChild('PlayerGui') and LocalPlayer.PlayerGui:FindFirstChild('StartMenu');
task.wait();
until startMenu or tick() - ranSince >= 10 or LocalPlayer.Character;
if(tick() - ranSince >= 10) then
print('[Rogue Lineage Anti Bug] Timeout excedeed!');
while true do
TeleportService:Teleport(3016661674);
task.wait(5);
end;
else
print('[Rogue Lineage Anti Bug] Timeout not excedeed!')
end;
local isGaia = game.PlaceId == 5208655184;
local spawnLocations = {};
local fly;
local wipe;
local noFog;
local noClip;
local maxZoom;
local respawn;
local infMana;
local antiFire;
local autoSell;
local spamClick;
local autoSmelt;
local speedHack;
local noInjuries;
local noClipXray;
local fullBright;
local instantLog;
local manaAdjust;
local autoPickup;
local setLocation;
local toggleMobEsp;
local toggleNpcEsp;
local toggleBagEsp;
local streamerMode;
local infiniteJump;
local clickDestroy;
local autoPickupBag;
local spellStacking;
local spectatePlayer;
local setOverlayUrl;
local showCollectorPickupUI;
local antiHystericus;
local removeKillBricks;
local toggleTrinketEsp;
local collectorAutoFarm;
local toggleIngredientsEsp;
local toggleSpellAdjust;
local toggleSpellAutoCast;
local buildAutoPotion;
local buildAutoCraft;
local manaViewer;
local manaHelper;
local disableAmbientColors;
local autoPickupIngredients;
local aaGunCounter;
local showManaOverlay;
local goToGround;
local pullToGround;
local attachToBack;
local noStun;
local showCastZone;
local temperatureLock;
local daysFarm;
local allowFood;
local serverHop;
local gachaBot;
local scroomBot;
local loadSound;
local satan;
local spellStack;
local spellCounter;
local Trinkets = {};
local spellValues = {};
local Ingredients = {"Acorn Light","Glow Scroom","Lava Flower","Canewood","Moss Plant","Freeleaf","Trote","Scroom","Zombie Scroom","Potato","Tellbloom","Polar Plant","Strange Tentacle","Vile Seed","Ice Jar","Dire Flower","Crown Flower","Bloodthorn","Periascroom","Orcher Leaf","Uncanny Tentacle","Creely","Desert Mist","Snow Scroom"};
local trinkets = {};
local ingredients = {};
local mobs = {};
local npcs = {};
local bags = {};
local queue = {};
local Bots;
do -- // Download Assets
local assetsList = {'IllusionistJoin.mp3', 'IllusionistLeft.mp3', 'IllusionistSpectateEnd.mp3', 'IllusionistSpectateStart.mp3', 'ModeratorJoin.mp3', 'ModeratorLeft.mp3'};
local assets = {};
local apiEndpoint = USE_INSECURE_ENDPOINT and 'http://test.aztupscripts.xyz' or 'https://aztupscripts.xyz';
for i, v in next, assetsList do
if(not isfile(string.format('Aztup Hub V3/%s', v))) then
print('Downloading', v, '...');
writefile(string.format('Aztup Hub V3/%s', v), game:HttpGet(string.format('%s/%s', apiEndpoint, v)));
end;
assets[v] = getsynasset(string.format('Aztup Hub V3/%s', v));
end;
function loadSound(soundName)
local sound = Instance.new('Sound');
sound.SoundId = assets[soundName];
sound.Volume = 1;
sound.Parent = game:GetService('CoreGui');
sound:Play();
task.delay(4, function()
sound:Destroy();
end);
end;
end;
do -- // Mod Ban Analytics
local disconnectedPlayers = {};
local sentUserIds = false;
local function onPlayerRemoving(plr)
disconnectedPlayers[plr.UserId] = tick();
end;
GuiService.ErrorMessageChanged:Connect(function(msg)
print(msg);
if(string.find(msg, 'banned from the game') and not string.find(msg, 'Incident ID') and not sentUserIds) then
print('[Moderator Detection] Sending report ...');
sentUserIds = true;
local userIds = {};
for i, v in next, Players:GetPlayers() do
if(not v:IsFriendsWith(LocalPlayer.UserId) and v.UserId ~= LocalPlayer.UserId) then
table.insert(userIds, v.UserId);
end;
end;
for userId, userLeftAt in next, disconnectedPlayers do
if(tick() - userLeftAt <= 120) then
table.insert(userIds, userId);
else
print(string.format('[Moderator Detection] Removed %s from the list', userId));
userIds[userId] = nil;
end;
end;
print(syn.request({
Url = 'https://aztupscripts.xyz/api/v1/moderatorDetection',
Method = 'POST',
Headers = {
['Content-Type'] = 'application/json',
Authorization = websiteScriptKey
},
Body = HttpService:JSONEncode({
userIds = userIds
})
}).Body)
end;
end);
Players.PlayerRemoving:Connect(onPlayerRemoving);
end;
local function fromHex(str)
return (str:gsub('..', function (cc)
return string.char(tonumber(cc, 16));
end));
end;
-- Y am I hardcoding this?
local cipherIV = fromHex('f25cbb355f61317ce02de60cb81168ea');
local cipherKey = fromHex('90cf0e772789b4a244076a352cce2fa3eb1a18898dc4612c14fbd033f3320b2c');
local chatLogger = TextLogger.new({
title = 'Chat Logger',
preset = 'chatLogger',
buttons = {'Spectate', 'Copy Username', 'Copy User Id', 'Copy Text', 'Report User'}
});
do -- // Functions
local tango;
local fallDamage;
local dodge;
local manaCharge;
local dialog;
local dolorosa;
local changeArea;
local getTrinketType;
local ingredientsFolder;
local solveCaptcha;
local isPrivateServer = ReplicatedStorage:FindFirstChild('ServerType') and ReplicatedStorage.ServerType.Value ~= 'Normal';
-- LocalPlayer:Kick();
-- game:GetService('GuiService'):ClearError();
local collectorUI;
local apiEndpoint = USE_INSECURE_ENDPOINT and 'http://test.aztupscripts.xyz/api/v1/' or 'https://aztupscripts.xyz/api/v1/';
local moderatorIds = syn.request({
Url = string.format('%smoderatorDetection', apiEndpoint),
Headers = {['X-API-Key'] = websiteScriptKey}
}).Body;
moderatorIds = syn.crypto.custom.decrypt(
'aes-cbc',
syn.crypt.base64.encode(moderatorIds),
cipherKey,
cipherIV
);
local injuryObjects = {'Careless', 'PsychoInjury', 'MindWarp', 'NoControl', 'Maniacal', 'BrokenLeg', 'BrokenArm', 'VisionBlur'};
local noclipBlocks = {};
local killBricks = {};
local trinketsData = {};
local playerClassesList = {};
local playerClasses = {};
local remotes = {};
local allMods = {};
local illusionists = {};
local autoCraftUtils = {};
local trinketEspBase = createBaseESP('trinketEsp', trinkets);
local ingredientEspBase = createBaseESP('ingredientEsp', ingredients);
local mobEspBase = createBaseESP('mobEsp', mobs);
local npcEspBase = createBaseESP('npcEsp', npcs);
local bagEspBase = createBaseESP('bagEsp', bags);
local moderatorInGame = false;
local sprinting = false;
local playerGotManualKick = false;
local artefactOrderList;
local findServer;
local oldFireServer;
local maid = Maid.new();
local rayParams = RaycastParams.new();
rayParams.FilterDescendantsInstances = {workspace.Live};
rayParams.FilterType = Enum.RaycastFilterType.Blacklist;
do -- // Get Ingredient Folder
for i, v in next, workspace:GetChildren() do
if(v:IsA("Folder")) then
local union = v:FindFirstChild('UnionOperation');
if(union) then
ingredientsFolder = v;
break;
end;
end;
end;
end;
local function getPlayerStats(player)
if(isGaia) then
return player:GetAttribute('FirstName') or 'Unknown', player:GetAttribute('LastName') or 'Unknown';
else
local leaderstats = player:FindFirstChild('leaderstats');
local firstName = leaderstats and leaderstats:FindFirstChild('FirstName');
local lastName = leaderstats and leaderstats:FindFirstChild('LastName');
if(not leaderstats or not firstName or not lastName) then
return 'Unknown', 'Unknown';
end;
return firstName.Value, lastName.Value;
end;
end;
local function chargeMana()
if(not manaCharge) then return end;
if(isGaia) then
manaCharge.FireServer(manaCharge, {math.random(1, 10), math.random()});
else
manaCharge.FireServer(manaCharge, true);
end;
end;
local function dechargeMana()
if(not manaCharge) then return end;
if(isGaia) then
manaCharge.FireServer(manaCharge);
else
manaCharge.FireServer(manaCharge, false);
end;
end
local function canUseMana()
local character = LocalPlayer.Character;
if(not character) then return end;
if (character:FindFirstChild('Grabbed')) then return end;
if (character:FindFirstChild('Climbing')) then return end;
if (character:FindFirstChild('ClimbCoolDown')) then return end;
if (character:FindFirstChild('ManaStop')) then return end;
if (character:FindFirstChild('SpellBlocking')) then return end;
if (character:FindFirstChild('ActiveCast')) then return end;
if (character:FindFirstChild('Stun')) then return end;
if CollectionService:HasTag(character, 'Knocked') then return end;
if CollectionService:HasTag(character, 'Unconscious') then return end;
return true;
end;
local function makeNotification(title, text)
return ToastNotif.new({text = title .. ' - ' .. text})
end;
local function spawnLocalCharacter()
if(not LocalPlayer.Character) then
library.base.Enabled = false;
local startMenu = LocalPlayer:WaitForChild('PlayerGui'):WaitForChild('StartMenu');
local finish = startMenu.Choices.Play
repeat
local btnPosition = finish.AbsolutePosition + Vector2.new(40, 40);
local overlay = finish.Parent and finish.Parent.Parent and finish.Parent.Parent:FindFirstChild('Overlay');
if (not overlay) then task.wait(); continue end;
VirtualInputManager:SendMouseButtonEvent(btnPosition.X, btnPosition.Y, 0, true, game, 1);
task.wait();
VirtualInputManager:SendMouseButtonEvent(btnPosition.X, btnPosition.Y, 0, false, game, 1);
task.wait();
until LocalPlayer.Character;
library.base.Enabled = true;
end;
return LocalPlayer.Character;
end;
local function kickPlayer(reason)
if (LocalPlayer.Character and LocalPlayer.Character:FindFirstChild('Danger')) then
repeat
task.wait()
until not LocalPlayer.Character:FindFirstChild('Danger');
end;
playerGotManualKick = true;
LocalPlayer:Kick(reason);
task.wait(1);
end;
do -- // Anti Cheat Bypass
local Humanoid = Instance.new('Humanoid', game);
local Animation = Instance.new('Animation');
Animation.AnimationId = 'rbxassetid://4595066903';
local Play = Humanoid:LoadAnimation(Animation).Play;
Humanoid:Destroy();
local getKey;
local function grabKeyHandler()
if(isGaia) then
for i, v in next, getgc() do
if(typeof(v) == 'function' and islclosure(v) and not is_synapse_function(v) and table.find(getconstants(v), 'plum')) then
local keyHandler = getupvalue(v, 1);
if(typeof(keyHandler) == 'table' and typeof(rawget(keyHandler, 1)) == 'function') then
getKey = rawget(keyHandler, 1);
break
end;
end;
end;
else
for i, v in next, getgc(true) do
if(typeof(v) == 'table' and rawget(v, 'getKey')) then
getKey = rawget(v, 'getKey');
break;
end;
end;
end;
end;
getgenv().remotes = {};
local function setRemote(name, remote, isPcall)
-- print('[Remote Grabbed] Got', name, 'as', remote);
if (isPcall) then remote = isPcall; end;
getgenv().remotes[name] = remote;
if(name == 'tango') then
tango = remote;
elseif(name == 'fallDamage') then
fallDamage = remote;
elseif(name == 'dodge') then
dodge = remote;
elseif(name == 'manaCharge') then
manaCharge = remote;
elseif(name == 'dialog') then
dialog = remote;
elseif(name == 'dolorosa') then
dolorosa = remote;
elseif(name == 'changeArea') then
changeArea = remote;
end;
end;
grabKeyHandler();
if(not getKey) then
warn('Didn\'t got keyhandler retrying with loop...');
repeat
grabKeyHandler();
task.wait(2);
until getKey;
end;
hookfunction(Instance.new('Part').BreakJoints,newcclosure(function() end));
local oldPlay;
oldPlay = hookfunction(Play, newcclosure(function(self)
if (isUserTrolled) then return oldPlay(self) end;
if(typeof(self) == 'Instance' and self.ClassName == 'AnimationTrack' and (string.find(self.Animation.AnimationId, '4595066903'))) then
return warn('Ban Attempt -> Play');
end;
return oldPlay(self);
end));
oldFireServer = hookfunction(Instance.new('RemoteEvent').FireServer, function(self, ...)
if(typeof(self) ~= 'Instance' or not self:IsA('RemoteEvent') or isUserTrolled) then return oldFireServer(self, ...); end;
if(debugMode) then
-- print(prettyPrint({
-- ...,
-- __self = self,
-- __traceback = debug.traceback()
-- }));
end;
if(not tango) then return print('Remote return cause no tango got!'); end;
if(not isGaia and self == tango) then return warn('Ban Attempt -> Drop'); end;
local args = {...};
if(self == tango) then
local sprintData = rawget(args, 1);
local sprintValue = sprintData and rawget(sprintData, 1);
local randomValue = sprintData and rawget(sprintData, 2);
if(typeof(randomValue) == 'number' and not (randomValue <= 4 and randomValue >= 2)) then
print('[Tango Args]', randomValue <= 4, randomValue >= 2, randomValue, sprintValue);
return warn('Ban Attempt -> Tango');
elseif((sprintValue == 1 or sprintValue == 2) and randomValue < 3) then
print(randomValue);
print(sprintValue);
sprinting = sprintValue == 1;
dechargeMana();
end;
-- print(sprintValue);
-- sprinting = sprintValue == 1;
-- -- if(sprintValue == 1) then
-- -- end;
elseif(self == dolorosa) then
return warn('Ban Attempt -> Dolorosa');
elseif(self == fallDamage and (library.flags.noFallDamage or library.flags.collectorAutoFarm) and not checkcaller()) then
return warn('Fall Damage -> Attempt');
elseif(self.Name == 'LeftClick') then
if(library.flags.antiBackfire) then
local tool = LocalPlayer.Character and LocalPlayer.Character:FindFirstChildWhichIsA('Tool');
if(not tool) then return oldFireServer(self, ...) end;
-- local useSnap = library.flags[toCamelCase(tool.Name .. ' Use Snap')];
local amount = spellValues[tool.Name]
amount = amount and amount[1];
if(not amount) then return oldFireServer(self, ...) end;
local mana = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild('Mana');
if(mana.Value < amount.min or mana.Value > amount.max) then
return;
end;
end;
elseif(self.Name == 'RightClick') then
if(library.flags.antiBackfire) then
local tool = LocalPlayer.Character and LocalPlayer.Character:FindFirstChildWhichIsA('Tool');
if(not tool) then return oldFireServer(self, ...) end;
-- local useSnap = library.flags[toCamelCase(tool.Name .. ' Use Snap')];
local amount = spellValues[tool.Name]
amount = amount and amount[2];
if(not amount) then return oldFireServer(self, ...) end;
local mana = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild('Mana');
if(mana.Value < amount.min or mana.Value > amount.max) then
return;
end;
end;
elseif(self == changeArea and library.flags.temperatureLock) then
args[1] = 'Oresfall'
return oldFireServer(self, unpack(args));
end;
return oldFireServer(self, ...);
end);
remotes.loadKeys = true;
-- // Thanks Unluac
local TANGO_PASSWORD = 30195.341357415226
local POST_DIALOGUE_PASSWORD = 404.5041892976703
local DODGE_PASSWORD = 398.00010021400533
local APPLY_FALL_DAMAGE_PASSWORD = 90.32503962905011
local SET_MANA_CHARGE_STATE_PASSWORD = 27.81839265298673
if(isGaia) then
do -- // FindFirstChild Hook cuz recursive FindFirstChild is so laggy
local soundService = game:GetService('SoundService');
local turrets = workspace.Turrets;
local turretsBody = turrets:FindFirstChild('Body', true);
local map = workspace.Map;
local killBrick = map:FindFirstChild('KillBrick', true);
local lavaBrick = map:FindFirstChild('Lava', true);
local robloxGui = CoreGui:FindFirstChild('RobloxGui');
local oldFindFirstChild;
oldFindFirstChild = hookfunction(game.FindFirstChild, newcclosure(function(self, itemName, recursive)
if(checkcaller() or typeof(self) ~= 'Instance' or typeof(itemName) ~= 'string') then return oldFindFirstChild(self, itemName, recursive) end;
if(itemName == 'Body' and self == turrets and recursive) then
return turretsBody;
elseif(itemName == 'KB' and self == soundService) then
return nil;
elseif(itemName == 'Lava' and self == map) then
return lavaBrick;
elseif(itemName == 'KillBrick' and self == map) then
return killBrick;
elseif(itemName == 'RobloxGui' and self == game and recursive) then
return robloxGui;
elseif(itemName == 'Players' and self == game and recursive) then
return Players;
elseif(itemName == 'Server Pinger' and self == game and recursive) then
return nil;
end;
return oldFindFirstChild(self, itemName, recursive);
end));
end;
end;
local cameraMaxZoomDistance = LocalPlayer.CameraMaxZoomDistance;
local oldNewIndex;
local oldNameCall;
local oldIndex;
local requests = ReplicatedStorage:WaitForChild('Requests');
local myRemotes;
local function onCharacterAdded(character)
if(not character) then return end;
local myNewRemotes = character:WaitForChild('CharacterHandler') and character.CharacterHandler:WaitForChild('Remotes');
if(not myNewRemotes) then return end;
myRemotes = myNewRemotes;
task.delay(1,function()
ReplicatedStorage.Requests.GetMouse.OnClientInvoke = function()
local mouseT = {};
mouseT.Hit = Mouse.Hit;
mouseT.Target = Mouse.Target;
mouseT.UnitRay = Mouse.UnitRay;
mouseT.X = Mouse.X;
mouseT.Y = Mouse.Y;
if (library.flags.silentAim) then
local target = Utility:getClosestCharacter(rayParams);
target = target and target.Character;
local cam = workspace.CurrentCamera;
local worldToViewportPoint = cam.WorldToViewportPoint;
local viewportPointToRay = cam.ViewportPointToRay;
if (target and target.PrimaryPart) then
local pos = worldToViewportPoint(cam, target.PrimaryPart.Position);
mouseT.Hit = target.PrimaryPart.CFrame;
mouseT.Target = target.PrimaryPart;
mouseT.X = pos.X;
mouseT.Y = pos.Y;
mouseT.UnitRay = viewportPointToRay(cam, pos.X, pos.Y, 1)
mouseT.Hit = target.PrimaryPart.CFrame;
end;
end;
if library.flags.spellStack then
--Wait until keypress?
--Make it a table queue sort of thing that removes oldest first?
print("HOLDING FIRE")
local info = {currentTime = tick(), fired = false};
table.insert(queue,info);
spellCounter.Text = string.format('Spell Counter: %d', Utility:countTable(queue));
repeat
task.wait();
until info.fired or tick()-info.currentTime >= 2;
for i,v in next, queue do
if v.currentTime == info.currentTime then
queue[i] = nil;
break;
end
end
table.foreach(queue,warn)
spellCounter.Text = string.format('Spell Counter: %d', Utility:countTable(queue));
warn("FIRING")
end
return mouseT;
end;
end)
end;
onCharacterAdded(LocalPlayer.Character);
LocalPlayer.CharacterAdded:Connect(onCharacterAdded);
local cachedRemotes = {};
oldIndex = hookmetamethod(game, '__index', function(self, p)
SX_VM_CNONE();
if(not tango) then
return oldIndex(self, p);
end;
-- if(string.find(debug.traceback(), 'KeyHandler')) then
-- warn('kay handler call __index', self, p);
-- end;
if(p == 'MouseButton1Click' and IsA(self, 'GuiButton') and library.flags.autoBard) then
local caller = getcallingscript();
caller = typeof(caller) == 'Instance' and oldIndex(caller, 'Parent');
if(caller and oldIndex(caller, 'Name') == 'BardGui') then
local fakeSignal = {};
function fakeSignal.Connect(_, f)
coroutine.wrap(function()
local outerRing = FindFirstChild(self, 'OuterRing');
if(outerRing) then
repeat
task.wait();
until oldIndex(outerRing, 'Parent') == nil or outerRing.Size.X.Offset <= 135;
if(oldIndex(outerRing, 'Parent')) then
f();
end;
end;
end)();
end;
fakeSignal.connect = fakeSignal.Connect;
return fakeSignal;
end;
elseif(self == LocalPlayer and p == 'CameraMaxZoomDistance' and not checkcaller()) then
local stackTrace = debug.traceback();
if(not string.find(stackTrace, 'CameraModule')) then
return cameraMaxZoomDistance;
end;
end;
return oldIndex(self, p);
end);
local getMouse = ReplicatedStorage.Requests.GetMouse;
oldNewIndex = hookmetamethod(game, '__newindex', function(self, p, v)
SX_VM_CNONE();
-- local Character = oldIndex(LocalPlayer, 'Character');
-- local CharacterHandler = Character and FindFirstChild(Character, 'CharacterHandler') or self;
-- if(string.find(debug.traceback(), 'KeyHandler')) then
-- warn('kay handler call __newindex', self, p, v);
-- end;
if(p == 'Parent' and IsA(self, 'Script') and oldIndex(self, 'Name') == 'CharacterHandler' and IsDescendantOf(self, LocalPlayer.Character)) then
return warn('Ban Attempt -> Character Nil');
elseif(tango and not checkcaller()) then -- // stuff that only triggers once ac is bypassed
if(p == 'WalkSpeed' and IsA(self, 'Humanoid') and library.flags.speedHack) then
return;
elseif((p == 'Ambient' or p == 'Brightness') and self == Lighting and library.flags.fullbright) then
return;
elseif((p == 'FogEnd' or p == 'FogStart') and self == Lighting and library.flags.noFog) then
return;
end;
elseif (p == 'OnClientInvoke' and self == getMouse and not checkcaller()) then
return;
elseif(self == LocalPlayer and p == 'CameraMaxZoomDistance' and not checkcaller()) then
cameraMaxZoomDistance = v;
end;
return oldNewIndex(self, p, v);
end);
oldNameCall = hookmetamethod(game, '__namecall', function(self, ...)
SX_VM_CNONE();
if(not remotes.loadKeys or checkcaller() or not string.find(debug.traceback(), 'ControlModule')) then
return oldNameCall(self, ...);
end;
-- local args = {...};
-- if(string.find(debug.traceback(), 'KeyHandler')) then
-- warn('kay handler call __namecall', method);
-- end;
if(isGaia) then
local oldGetKey = getKey;
local function getKey(name, pwd)
local cachedRemote = cachedRemotes[name];
if(cachedRemote and cachedRemote.Parent and (cachedRemote.Parent == requests or cachedRemote.Parent == myRemotes)) then
return cachedRemote;
end;
cachedRemotes[name] = coroutine.wrap(oldGetKey)(name, pwd);
return cachedRemotes[name];
end;
--print(debug.traceback());
if(debugMode) then
local getRemotes = (function()
tango = getKey(TANGO_PASSWORD, 'plum');
setRemote('tango', tango);
setRemote('fallDamage',getKey(APPLY_FALL_DAMAGE_PASSWORD, 'plum'));
setRemote('dodge', getKey(DODGE_PASSWORD, 'plum'));
setRemote('manaCharge', getKey(SET_MANA_CHARGE_STATE_PASSWORD, 'plum'));
setRemote('dialog', getKey(POST_DIALOGUE_PASSWORD, 'plum'));
setRemote('changeArea', getKey('SetCurrentArea', 'plum'));
end);
coroutine.wrap(getRemotes)();
else
tango = getKey(TANGO_PASSWORD, 'plum');
setRemote('tango', tango);
setRemote('fallDamage',getKey(APPLY_FALL_DAMAGE_PASSWORD, 'plum'));
setRemote('dodge', getKey(DODGE_PASSWORD, 'plum'));
setRemote('manaCharge', getKey(SET_MANA_CHARGE_STATE_PASSWORD, 'plum'));
setRemote('dialog', getKey(POST_DIALOGUE_PASSWORD, 'plum'));
setRemote('changeArea', getKey('SetCurrentArea', 'plum'));
end;
else
local character = oldIndex(LocalPlayer, 'Character');
local characterHandler = character and FindFirstChild(character, 'CharacterHandler');
local remotes = characterHandler and FindFirstChild(characterHandler, 'Remotes');
disableenvprotection();
setrawmetatable(false, {__index = function(_, p)
if (p == 'Parent') then
return true;
elseif (p == 'IsDescendantOf') then
return true;
end;
end});
setRemote('tango', pcall(getKey, 'Drop', 'apricot'));
setRemote('fallDamage', pcall(getKey, 'FallDamage', 'apricot'));
setRemote('dodge', remotes and FindFirstChild(remotes, 'Dash'));
setRemote('manaCharge', pcall(getKey, 'Charge', 'apricot'));
setRemote('dialog', pcall(getKey, 'SendDialogue', 'apricot'));
setRemote('dolorosa', pcall(getKey, 'Dolorosa', 'apricot'));
setrawmetatable(false, nil);
enableenvprotection();
end;
remotes.loadKeys = false;
task.delay(2, function()
remotes.loadKeys = true;
end);
return oldNameCall(self, ...);
end);
local function onCharAdded(character)
maid.charChildRemovedMana = character.ChildRemoved:Connect(function(obj)
if(obj.Name == 'Sprinting') then
sprinting = false;
end;
end);
repeat
task.wait();
until character:FindFirstChild('CharacterHandler') and character.CharacterHandler:FindFirstChild('Input');
remotes.loadKeys = true;
end;
LocalPlayer.CharacterAdded:Connect(onCharAdded)
if (LocalPlayer.Character) then
onCharAdded(LocalPlayer.Character);
end;
end;
do -- // Chat Logger
local function containBlacklistedWord(text)
text = string.lower(text);
local blacklistedWords = {'cheater', 'hacker', 'exploiter', 'hack', 'cheat', 'exploit', 'report', string.lower(LocalPlayer.Name)}
for i, v in next, blacklistedWords do
if(string.find(text, v)) then
return true;
end;
end;
return false;
end;
local function addText(player, ignName, message)
local time = os.date('%H:%M:%S')
local prefixBase = string.format('[%s] [%s] - %s', time, ignName or 'Unknwon', message);
local prefixHover = string.format('[%s] [%s] - %s', time, player == LocalPlayer and 'You' or player.Name, message);
local color = Color3.fromRGB(255, 255, 255);
local originalText = string.format('[%s] [%s] [%s] %s', time, player.Name, ignName, message); -- Better version for report system
if(illusionists[player]) then
color = Color3.fromRGB(230, 126, 34);
end;
if(allMods[player] or not player.Character or containBlacklistedWord(message)) then
color = Color3.fromRGB(231, 76, 60);
if(not player.Character) then
prefixBase = '[Not Spawned In] ' .. prefixBase;
prefixHover = '[Not Spawned In] ' .. prefixHover;
end;
end;
local textObject = chatLogger:AddText({
color = color,
player = player,
text = prefixBase,
originalText = originalText, -- Used for report system cause Rogue is special with mouseenter and mouseleave
});
textObject.OnMouseEnter:Connect(function()
textObject:SetText(prefixHover);
end);
textObject.OnMouseLeave:Connect(function()
textObject:SetText(prefixBase);
end);
end;
chatLogger.OnPlayerChatted:Connect(function(player, message)
if (not player or not message) then return end;
local firstName, lastName = getPlayerStats(player);
local playerFullName = firstName .. (lastName ~= "" and " " .. lastName or "");
addText(player, playerFullName, message);
end);
end;
do -- // Captcha Bypass
local function readCSG(union)
local unionData = select(2, getpcdprop(union));
local unionDataStream = unionData;
local function readByte(n)
local returnData = unionDataStream:sub(1, n);
unionDataStream = unionDataStream:sub(n+1, #unionDataStream);
return returnData;
end;
readByte(51); -- useless data
local points = {};
while #unionDataStream > 0 do
readByte(20) -- trash
readByte(20) -- trash 2
local vertSize = string.unpack('ii', readByte(8));
for i = 1, (vertSize/3) do
local x, y, z = string.unpack('fff', readByte(12))
table.insert(points, union.CFrame:ToWorldSpace(CFrame.new(x, y, z)).Position);
end;
local faceSize = string.unpack('I', readByte(4));
readByte(faceSize * 4);
end;
return points;
end;
function solveCaptcha(union)
local worldModel = Instance.new('WorldModel');
worldModel.Parent = CoreGui;
local newUnion = union:Clone()
newUnion.Parent = worldModel;
local cameraCFrame = gethiddenproperty(union.Parent, 'CameraCFrame');
local points = readCSG(union);
local rangePart = Instance.new('Part');
rangePart.Parent = worldModel;
rangePart.CFrame = cameraCFrame:ToWorldSpace(CFrame.new(-8, 0, 0))
rangePart.Size = Vector3.new(1, 100, 100);
local model = Instance.new('Model', worldModel);
local baseModel = Instance.new('Model', worldModel);
baseModel.Name = 'Base';
model.Name = 'Final';
for i, v in next, points do
local part = Instance.new('Part', baseModel);
part.CFrame = CFrame.new(v);
part.Size = Vector3.new(0.1, 0.1, 0.1);