-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathEsp_v3.lua
2575 lines (2237 loc) · 85 KB
/
Esp_v3.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
assert(Drawing, 'exploit not supported')
if not syn and not PROTOSMASHER_LOADED then print'Unnamed ESP only officially supports Synapse and Protosmasher! If you\'re an exploit developer and have added drawing API to your exploit, try setting syn as true then checking if that works, otherwise, DM me on discord @ cppbook.org#1968 or add an issue to the Unnamed ESP Github Repository and I\'ll see it through email!' end
local UserInputService = game:GetService'UserInputService';
local HttpService = game:GetService'HttpService';
local GUIService = game:GetService'GuiService';
local TweenService = game:GetService'TweenService';
local RunService = game:GetService'RunService';
local Players = game:GetService'Players';
local LocalPlayer = Players.LocalPlayer;
local Camera = workspace.CurrentCamera;
local Mouse = LocalPlayer:GetMouse();
local V2New = Vector2.new;
local V3New = Vector3.new;
local WTVP = Camera.WorldToViewportPoint;
local WorldToViewport = function(...) return WTVP(Camera, ...) end;
local Menu = {};
local MouseHeld = false;
local LastRefresh = 0;
local OptionsFile = 'IC3_ESP_SETTINGS.dat';
local Binding = false;
local BindedKey = nil;
local OIndex = 0;
local LineBox = {};
local UIButtons = {};
local Sliders = {};
local ColorPicker = { Loading = false; LastGenerated = 0 };
local Dragging = false;
local DraggingUI = false;
local Rainbow = false;
local DragOffset = V2New();
local DraggingWhat = nil;
local OldData = {};
local IgnoreList = {};
local EnemyColor = Color3.new(1, 0, 0);
local TeamColor = Color3.new(0, 1, 0);
local MenuLoaded = false;
local ErrorLogging = false;
local TracerPosition = V2New(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y - 135);
local DragTracerPosition= false;
local SubMenu = {};
local IsSynapse = syn and not PROTOSMASHER_LOADED;
local Connections = { Active = {} };
local Signal = {}; Signal.__index = Signal;
local GetCharacter;
local CurrentColorPicker;
local Spectating;
local Executor = (identifyexecutor or (function() return '' end))()
local SupportedExploits = { 'Synapse X', 'ScriptWare', 'Krnl', 'OxygenU', 'Temple' }
local QUAD_SUPPORTED_EXPLOIT = table.find(SupportedExploits, Executor) ~= nil
-- if not PROTOSMASHER_LOADED then Drawing.UseCompatTransparency = true; end -- For Elysian
shared.MenuDrawingData = shared.MenuDrawingData or { Instances = {} };
shared.InstanceData = shared.InstanceData or {};
shared.RSName = shared.RSName or ('UnnamedESP_by_ic3-' .. HttpService:GenerateGUID(false));
local GetDataName = shared.RSName .. '-GetData';
local UpdateName = shared.RSName .. '-Update';
local Debounce = setmetatable({}, {
__index = function(t, i)
return rawget(t, i) or false
end;
});
if shared.UESP_InputChangedCon then shared.UESP_InputChangedCon:Disconnect() end
if shared.UESP_InputBeganCon then shared.UESP_InputBeganCon:Disconnect() end
if shared.UESP_InputEndedCon then shared.UESP_InputEndedCon:Disconnect() end
if shared.CurrentColorPicker then shared.CurrentColorPicker:Dispose() end
local RealPrint, LastPrintTick = print, 0;
local LatestPrints = setmetatable({}, { __index = function(t, i) return rawget(t, i) or 0 end });
local function print(...)
local Content = unpack{...};
local print = RealPrint;
if tick() - LatestPrints[Content] > 5 then
LatestPrints[Content] = tick();
print(Content);
end
end
local function FromHex(HEX)
HEX = HEX:gsub('#', '');
return Color3.fromRGB(tonumber('0x' .. HEX:sub(1, 2)), tonumber('0x' .. HEX:sub(3, 4)), tonumber('0x' .. HEX:sub(5, 6)));
end
local function IsStringEmpty(String)
if type(String) == 'string' then
return String:match'^%s+$' ~= nil or #String == 0 or String == '' or false;
end
return false;
end
local function Set(t, i, v)
t[i] = v;
end
local Teams = {};
local CustomTeams = { -- Games that don't use roblox's team system
[2563455047] = {
Initialize = function()
Teams.Sheriffs = {}; -- prevent big error
Teams.Bandits = {}; -- prevent big error
local Func = game:GetService'ReplicatedStorage':WaitForChild('RogueFunc', 1);
local Event = game:GetService'ReplicatedStorage':WaitForChild('RogueEvent', 1);
local S, B = Func:InvokeServer'AllTeamData';
Teams.Sheriffs = S;
Teams.Bandits = B;
Event.OnClientEvent:Connect(function(id, PlayerName, Team, Remove) -- stolen straight from decompiled src lul
if id == 'UpdateTeam' then
local TeamTable, NotTeamTable
if Team == 'Bandits' then
TeamTable = TDM.Bandits
NotTeamTable = TDM.Sheriffs
else
TeamTable = TDM.Sheriffs
NotTeamTable = TDM.Bandits
end
if Remove then
TeamTable[PlayerName] = nil
else
TeamTable[PlayerName] = true
NotTeamTable[PlayerName] = nil
end
if PlayerName == LocalPlayer.Name then
TDM.Friendlys = TeamTable
TDM.Enemies = NotTeamTable
end
end
end)
end;
CheckTeam = function(Player)
local LocalTeam = Teams.Sheriffs[LocalPlayer.Name] and Teams.Sheriffs or Teams.Bandits;
return LocalTeam[Player.Name] and true or false;
end;
};
[5208655184] = {
CheckTeam = function(Player)
local LocalLastName = LocalPlayer:GetAttribute'LastName' if not LocalLastName or IsStringEmpty(LocalLastName) then return true end
local PlayerLastName = Player:GetAttribute'LastName' if not PlayerLastName then return false end
return PlayerLastName == LocalLastName
end
};
[3541987450] = {
CheckTeam = function(Player)
local LocalStats = LocalPlayer:FindFirstChild'leaderstats';
local LocalLastName = LocalStats and LocalStats:FindFirstChild'LastName'; if not LocalLastName or IsStringEmpty(LocalLastName.Value) then return true; end
local PlayerStats = Player:FindFirstChild'leaderstats';
local PlayerLastName = PlayerStats and PlayerStats:FindFirstChild'LastName'; if not PlayerLastName then return false; end
return PlayerLastName.Value == LocalLastName.Value;
end;
};
[6032399813] = {
CheckTeam = function(Player)
local LocalStats = LocalPlayer:FindFirstChild'leaderstats';
local LocalGuildName = LocalStats and LocalStats:FindFirstChild'Guild'; if not LocalGuildName or IsStringEmpty(LocalGuildName.Value) then return true; end
local PlayerStats = Player:FindFirstChild'leaderstats';
local PlayerGuildName = PlayerStats and PlayerStats:FindFirstChild'Guild'; if not PlayerGuildName then return false; end
return PlayerGuildName.Value == LocalGuildName.Value;
end;
};
[5735553160] = {
CheckTeam = function(Player)
local LocalStats = LocalPlayer:FindFirstChild'leaderstats';
local LocalGuildName = LocalStats and LocalStats:FindFirstChild'Guild'; if not LocalGuildName or IsStringEmpty(LocalGuildName.Value) then return true; end
local PlayerStats = Player:FindFirstChild'leaderstats';
local PlayerGuildName = PlayerStats and PlayerStats:FindFirstChild'Guild'; if not PlayerGuildName then return false; end
return PlayerGuildName.Value == LocalGuildName.Value;
end;
};
};
local RenderList = {Instances = {}};
function RenderList:AddOrUpdateInstance(Instance, Obj2Draw, Text, Color)
RenderList.Instances[Instance] = { ParentInstance = Instance; Instance = Obj2Draw; Text = Text; Color = Color };
return RenderList.Instances[Instance];
end
local CustomPlayerTag;
local CustomESP;
local CustomCharacter;
local GetHealth;
local GetAliveState;
local CustomRootPartName;
local Modules = {
[292439477] = {
CustomESP = function()
if type(shared.PF_Replication) ~= 'table' then
local lastScan = shared.pfReplicationScan
if (tick() - (lastScan or 0)) > 0.01 then
shared.pfReplicationScan = tick()
local gc = getgc(true)
for i = 1, #gc do
local gcObject = gc[i];
if type(gcObject) == 'table' and type(rawget(gcObject, 'getbodyparts')) == 'function' then
shared.PF_Replication = gcObject;
break
end
end
end
return
end
for Index, Player in pairs(Players:GetPlayers()) do
if Player == LocalPlayer then continue end
local Body = shared.PF_Replication.getbodyparts(Player);
if type(Body) == 'table' and typeof(rawget(Body, 'torso')) == 'Instance' then
Player.Character = Body.torso.Parent
continue
end
Player.Character = nil;
end
end,
GetHealth = function(Player)
if type(shared.pfHud) ~= 'table' then
return false
end
return shared.pfHud:getplayerhealth(Player)
end,
GetAliveState = function(Player)
if type(shared.pfHud) ~= 'table' then
local lastScan = shared.pfHudScan
if (tick() - (lastScan or 0)) > 0.1 then
shared.pfHudScan = tick()
local gc = getgc(true)
for i = 1, #gc do
local gcObject = gc[i];
if type(gcObject) == 'table' and type(rawget(gcObject, 'getplayerhealth')) == 'function' then
shared.pfHud = gcObject;
break
end
end
end
return
end
return shared.pfHud:isplayeralive(Player)
end,
CustomRootPartName = 'Torso',
};
[2950983942] = {
CustomCharacter = function(Player)
if workspace:FindFirstChild'Players' then
return workspace.Players:FindFirstChild(Player.Name);
end
end
};
[2262441883] = {
CustomPlayerTag = function(Player)
return Player:FindFirstChild'Job' and (' [' .. Player.Job.Value .. ']') or '';
end;
CustomESP = function()
if workspace:FindFirstChild'MoneyPrinters' then
for i, v in pairs(workspace.MoneyPrinters:GetChildren()) do
local Main = v:FindFirstChild'Main';
local Owner = v:FindFirstChild'TrueOwner';
local Money = v:FindFirstChild'Int' and v.Int:FindFirstChild'Money' or nil;
if Main and Owner and Money then
local O = tostring(Owner.Value);
local M = tostring(Money.Value);
pcall(RenderList.AddOrUpdateInstance, RenderList, v, Main, string.format('Money Printer\nOwned by %s\n[%s]', O, M), Color3.fromRGB(13, 255, 227));
end
end
end
end;
};
-- [4581966615] = {
-- CustomESP = function()
-- if workspace:FindFirstChild'Entities' then
-- for i, v in pairs(workspace.Entities:GetChildren()) do
-- if not v.Name:match'Printer' then continue end
-- local Properties = v:FindFirstChild'Properties' if not Properties then continue end
-- local Main = v:FindFirstChild'hitbox';
-- local Owner = Properties:FindFirstChild'Owner';
-- local Money = Properties:FindFirstChild'CurrentPrinted'
-- if Main and Owner and Money then
-- local O = Owner.Value and tostring(Owner.Value) or 'no one';
-- local M = tostring(Money.Value);
-- pcall(RenderList.AddOrUpdateInstance, RenderList, v, Main, string.format('Money Printer\nOwned by %s\n[%s]', O, M), Color3.fromRGB(13, 255, 227));
-- end
-- end
-- end
-- end;
-- };
[4801598506] = {
CustomESP = function()
if workspace:FindFirstChild'Mobs' and workspace.Mobs:FindFirstChild'Forest1' then
for i, v in pairs(workspace.Mobs.Forest1:GetChildren()) do
local Main = v:FindFirstChild'Head';
local Hum = v:FindFirstChild'Mob';
if Main and Hum then
pcall(RenderList.AddOrUpdateInstance, RenderList, v, Main, string.format('[%s] [%s/%s]', v.Name, Hum.Health, Hum.MaxHealth), Color3.fromRGB(13, 255, 227));
end
end
end
end;
};
[2555873122] = {
CustomESP = function()
if workspace:FindFirstChild'WoodPlanks' then
for i, v in pairs(workspace:GetChildren()) do
if v.Name == 'WoodPlanks' then
local Main = v:FindFirstChild'Wood';
if Main then
pcall(RenderList.AddOrUpdateInstance, RenderList, v, Main, 'Wood Planks', Color3.fromRGB(13, 255, 227));
end
end
end
end
end;
};
[5208655184] = {
CustomESP = function()
-- if workspace:FindFirstChild'Live' then
-- for i, v in pairs(workspace.Live:GetChildren()) do
-- if v.Name:sub(1, 1) == '.' then
-- local Main = v:FindFirstChild'Head';
-- if Main then
-- pcall(RenderList.AddOrUpdateInstance, RenderList, v, Main, v.Name:sub(2), Color3.fromRGB(250, 50, 40));
-- end
-- end
-- end
-- end
end;
CustomPlayerTag = function(Player)
if game.PlaceVersion < 457 then return '' end
local Name = '';
local FirstName = Player:GetAttribute'FirstName'
if typeof(FirstName) == 'string' and #FirstName > 0 then
local Prefix = '';
local Extra = {};
Name = Name .. '\n[';
if Player:GetAttribute'Prestige' > 0 then
Name = Name .. '#' .. tostring(Player:GetAttribute'Prestige') .. ' ';
end
if not IsStringEmpty(Player:GetAttribute'HouseRank') then
Prefix = Player:GetAttribute'HouseRank' == 'Owner' and (Player:GetAttribute'Gender' == 'Female' and 'Lady ' or 'Lord ') or '';
end
if not IsStringEmpty(FirstName) then
Name = Name .. '' .. Prefix .. FirstName;
end
if not IsStringEmpty(Player:GetAttribute'LastName') then
Name = Name .. ' ' .. Player:GetAttribute'LastName';
end
if not IsStringEmpty(Name) then Name = Name .. ']'; end
local Character = GetCharacter(Player);
if Character then
if Character and Character:FindFirstChild'Danger' then table.insert(Extra, 'D'); end
if Character:FindFirstChild'ManaAbilities' and Character.ManaAbilities:FindFirstChild'ManaSprint' then table.insert(Extra, 'D1'); end
if Character:FindFirstChild'Mana' then table.insert(Extra, 'M' .. math.floor(Character.Mana.Value)); end
if Character:FindFirstChild'Vampirism' then table.insert(Extra, 'V'); end
if Character:FindFirstChild'Observe' then table.insert(Extra, 'ILL'); end
if Character:FindFirstChild'Inferi' then table.insert(Extra, 'NEC'); end
if Character:FindFirstChild'World\'s Pulse' then table.insert(Extra, 'DZIN'); end
if Character:FindFirstChild'Shift' then table.insert(Extra, 'MAD'); end
if Character:FindFirstChild'Head' and Character.Head:FindFirstChild'FacialMarking' then
local FM = Character.Head:FindFirstChild'FacialMarking';
if FM.Texture == 'http://www.roblox.com/asset/?id=4072968006' then
table.insert(Extra, 'HEALER');
elseif FM.Texture == 'http://www.roblox.com/asset/?id=4072914434' then
table.insert(Extra, 'SEER');
elseif FM.Texture == 'http://www.roblox.com/asset/?id=4094417635' then
table.insert(Extra, 'JESTER');
elseif FM.Texture == 'http://www.roblox.com/asset/?id=4072968656' then
table.insert(Extra, 'BLADE');
end
end
end
if Player:FindFirstChild'Backpack' then
if Player.Backpack:FindFirstChild'Observe' then table.insert(Extra, 'ILL'); end
if Player.Backpack:FindFirstChild'Inferi' then table.insert(Extra, 'NEC'); end
if Player.Backpack:FindFirstChild'World\'s Pulse' then table.insert(Extra, 'DZIN'); end
if Player.Backpack:FindFirstChild'Shift' then table.insert(Extra, 'MAD'); end
end
if #Extra > 0 then Name = Name .. ' [' .. table.concat(Extra, '-') .. ']'; end
end
return Name;
end;
};
[3541987450] = {
CustomPlayerTag = function(Player)
local Name = '';
if Player:FindFirstChild'leaderstats' then
Name = Name .. '\n[';
local Prefix = '';
local Extra = {};
if Player.leaderstats:FindFirstChild'Prestige' and Player.leaderstats.Prestige.ClassName == 'IntValue' and Player.leaderstats.Prestige.Value > 0 then
Name = Name .. '#' .. tostring(Player.leaderstats.Prestige.Value) .. ' ';
end
if Player.leaderstats:FindFirstChild'HouseRank' and Player.leaderstats:FindFirstChild'Gender' and Player.leaderstats.HouseRank.ClassName == 'StringValue' and not IsStringEmpty(Player.leaderstats.HouseRank.Value) then
Prefix = Player.leaderstats.HouseRank.Value == 'Owner' and (Player.leaderstats.Gender.Value == 'Female' and 'Lady ' or 'Lord ') or '';
end
if Player.leaderstats:FindFirstChild'FirstName' and Player.leaderstats.FirstName.ClassName == 'StringValue' and not IsStringEmpty(Player.leaderstats.FirstName.Value) then
Name = Name .. '' .. Prefix .. Player.leaderstats.FirstName.Value;
end
if Player.leaderstats:FindFirstChild'LastName' and Player.leaderstats.LastName.ClassName == 'StringValue' and not IsStringEmpty(Player.leaderstats.LastName.Value) then
Name = Name .. ' ' .. Player.leaderstats.LastName.Value;
end
if Player.leaderstats:FindFirstChild'UberTitle' and Player.leaderstats.UberTitle.ClassName == 'StringValue' and not IsStringEmpty(Player.leaderstats.UberTitle.Value) then
Name = Name .. ', ' .. Player.leaderstats.UberTitle.Value;
end
if not IsStringEmpty(Name) then Name = Name .. ']'; end
local Character = GetCharacter(Player);
if Character then
if Character and Character:FindFirstChild'Danger' then table.insert(Extra, 'D'); end
if Character:FindFirstChild'ManaAbilities' and Character.ManaAbilities:FindFirstChild'ManaSprint' then table.insert(Extra, 'D1'); end
if Character:FindFirstChild'Mana' then table.insert(Extra, 'M' .. math.floor(Character.Mana.Value)); end
if Character:FindFirstChild'Vampirism' then table.insert(Extra, 'V'); end
if Character:FindFirstChild'Observe' then table.insert(Extra, 'ILL'); end
if Character:FindFirstChild'Inferi' then table.insert(Extra, 'NEC'); end
if Character:FindFirstChild'World\'s Pulse' then table.insert(Extra, 'DZIN'); end
if Character:FindFirstChild'Head' and Character.Head:FindFirstChild'FacialMarking' then
local FM = Character.Head:FindFirstChild'FacialMarking';
if FM.Texture == 'http://www.roblox.com/asset/?id=4072968006' then
table.insert(Extra, 'HEALER');
elseif FM.Texture == 'http://www.roblox.com/asset/?id=4072914434' then
table.insert(Extra, 'SEER');
elseif FM.Texture == 'http://www.roblox.com/asset/?id=4094417635' then
table.insert(Extra, 'JESTER');
end
end
end
if Player:FindFirstChild'Backpack' then
if Player.Backpack:FindFirstChild'Observe' then table.insert(Extra, 'ILL'); end
if Player.Backpack:FindFirstChild'Inferi' then table.insert(Extra, 'NEC'); end
if Player.Backpack:FindFirstChild'World\'s Pulse' then table.insert(Extra, 'DZIN'); end
end
if #Extra > 0 then Name = Name .. ' [' .. table.concat(Extra, '-') .. ']'; end
end
return Name;
end;
};
[4691401390] = { -- Vast Realm
CustomCharacter = function(Player)
if workspace:FindFirstChild'Players' then
return workspace.Players:FindFirstChild(Player.Name);
end
end
};
[6032399813] = { -- Deepwoken [Etrean]
CustomPlayerTag = function(Player)
local Name = '';
CharacterName = Player:GetAttribute'CharacterName'; -- could use leaderstats but lazy
if not IsStringEmpty(CharacterName) then
Name = ('\n[%s]'):format(CharacterName);
local Character = GetCharacter(Player);
local Extra = {};
if Character then
local Blood, Armor = Character:FindFirstChild('Blood'), Character:FindFirstChild('Armor');
if Blood and Blood.ClassName == 'DoubleConstrainedValue' then
table.insert(Extra, ('B%d'):format(Blood.Value));
end
if Armor and Armor.ClassName == 'DoubleConstrainedValue' then
table.insert(Extra, ('A%d'):format(math.floor(Armor.Value / 10)));
end
end
local BackpackChildren = Player.Backpack:GetChildren()
for index = 1, #BackpackChildren do
local Oath = BackpackChildren[index]
if Oath.ClassName == 'Folder' and Oath.Name:find('Talent:Oath') then
local OathName = Oath.Name:gsub('Talent:Oath: ', '')
table.insert(Extra, OathName);
end
end
if #Extra > 0 then Name = Name .. ' [' .. table.concat(Extra, '-') .. ']'; end
end
return Name;
end;
};
[5735553160] = { -- Deepwoken [Depths]
CustomPlayerTag = function(Player)
local Name = '';
CharacterName = Player:GetAttribute'CharacterName'; -- could use leaderstats but lazy
if not IsStringEmpty(CharacterName) then
Name = ('\n[%s]'):format(CharacterName);
local Character = GetCharacter(Player);
local Extra = {};
if Character then
local Blood, Armor = Character:FindFirstChild('Blood'), Character:FindFirstChild('Armor');
if Blood and Blood.ClassName == 'DoubleConstrainedValue' then
table.insert(Extra, ('B%d'):format(Blood.Value));
end
if Armor and Armor.ClassName == 'DoubleConstrainedValue' then
table.insert(Extra, ('A%d'):format(math.floor(Armor.Value / 10)));
end
end
local BackpackChildren = Player.Backpack:GetChildren()
for index = 1, #BackpackChildren do
local Oath = BackpackChildren[index]
if Oath.ClassName == 'Folder' and Oath.Name:find('Talent:Oath') then
local OathName = Oath.Name:gsub('Talent:Oath: ', '')
table.insert(Extra, OathName);
end
end
if #Extra > 0 then Name = Name .. ' [' .. table.concat(Extra, '-') .. ']'; end
end
return Name;
end;
};
};
if Modules[game.PlaceId] ~= nil then
local Module = Modules[game.PlaceId];
CustomPlayerTag = Module.CustomPlayerTag or nil;
CustomESP = Module.CustomESP or nil;
CustomCharacter = Module.CustomCharacter or nil;
GetHealth = Module.GetHealth or nil;
GetAliveState = Module.GetAliveState or nil;
CustomRootPartName = Module.CustomRootPartName or nil;
end
function GetCharacter(Player)
return Player.Character or (CustomCharacter and CustomCharacter(Player));
end
function GetMouseLocation()
return UserInputService:GetMouseLocation();
end
function MouseHoveringOver(Values)
local X1, Y1, X2, Y2 = Values[1], Values[2], Values[3], Values[4]
local MLocation = GetMouseLocation();
return (MLocation.x >= X1 and MLocation.x <= (X1 + (X2 - X1))) and (MLocation.y >= Y1 and MLocation.y <= (Y1 + (Y2 - Y1)));
end
function GetTableData(t) -- basically table.foreach i dont even know why i made this
if typeof(t) ~= 'table' then return end
return setmetatable(t, {
__call = function(t, func)
if typeof(func) ~= 'function' then return end;
for i, v in pairs(t) do
pcall(func, i, v);
end
end;
});
end
local function Format(format, ...)
return string.format(format, ...);
end
function CalculateValue(Min, Max, Percent)
return Min + math.floor(((Max - Min) * Percent) + .5);
end
function NewDrawing(InstanceName)
local Instance = Drawing.new(InstanceName);
-- pcall(Set, Instance, 'OutlineOpacity', 0.8)
return (function(Properties)
for i, v in pairs(Properties) do
pcall(Set, Instance, i, v);
end
return Instance;
end)
end
function Menu:AddMenuInstance(Name, DrawingType, Properties)
local Instance;
if shared.MenuDrawingData.Instances[Name] ~= nil then
Instance = shared.MenuDrawingData.Instances[Name];
for i, v in pairs(Properties) do
pcall(Set, Instance, i, v);
end
else
Instance = NewDrawing(DrawingType)(Properties);
end
shared.MenuDrawingData.Instances[Name] = Instance;
return Instance;
end
function Menu:UpdateMenuInstance(Name)
local Instance = shared.MenuDrawingData.Instances[Name];
if Instance ~= nil then
return (function(Properties)
for i, v in pairs(Properties) do
pcall(Set, Instance, i, v);
end
return Instance;
end)
end
end
function Menu:GetInstance(Name)
return shared.MenuDrawingData.Instances[Name];
end
local Options = setmetatable({}, {
__call = function(t, ...)
local Arguments = {...};
local Name = Arguments[1];
OIndex = OIndex + 1;
rawset(t, Name, setmetatable({
Name = Arguments[1];
Text = Arguments[2];
Value = Arguments[3];
DefaultValue = Arguments[3];
AllArgs = Arguments;
Index = OIndex;
}, {
__call = function(t, v, force)
local self = t;
if typeof(t.Value) == 'function' then
t.Value();
elseif typeof(t.Value) == 'EnumItem' then
local BT = Menu:GetInstance(Format('%s_BindText', t.Name));
if not force then
Binding = true;
local Val = 0
while Binding do
wait();
Val = (Val + 1) % 17;
BT.Text = Val <= 8 and '|' or '';
end
end
t.Value = force and v or BindedKey;
if BT and t.BasePosition and t.BaseSize then
BT.Text = tostring(t.Value):match'%w+%.%w+%.(.+)';
BT.Position = t.BasePosition + V2New(t.BaseSize.X - BT.TextBounds.X - 20, -10);
end
else
local NewValue = v;
if NewValue == nil then NewValue = not t.Value; end
rawset(t, 'Value', NewValue);
if Arguments[2] ~= nil and Menu:GetInstance'TopBar'.Visible then
if typeof(Arguments[3]) == 'number' then
local AMT = Menu:GetInstance(Format('%s_AmountText', t.Name));
if AMT then
AMT.Text = tostring(t.Value);
end
else
local Inner = Menu:GetInstance(Format('%s_InnerCircle', t.Name));
if Inner then Inner.Visible = t.Value; end
end
end
end
end;
}));
end;
})
function Load()
local _, Result = pcall(readfile, OptionsFile);
if _ then -- extremely ugly code yea i know but i dont care p.s. i hate pcall
local _, Table = pcall(HttpService.JSONDecode, HttpService, Result);
if _ and typeof(Table) == 'table' then
for i, v in pairs(Table) do
if typeof(Options[i]) == 'table' and Options[i].Value ~= nil and (typeof(Options[i].Value) == 'boolean' or typeof(Options[i].Value) == 'number') then
Options[i].Value = v.Value;
pcall(Options[i], v.Value);
end
end
if Table.TeamColor then TeamColor = Color3.new(Table.TeamColor.R, Table.TeamColor.G, Table.TeamColor.B) end
if Table.EnemyColor then EnemyColor = Color3.new(Table.EnemyColor.R, Table.EnemyColor.G, Table.EnemyColor.B) end
if typeof(Table.MenuKey) == 'string' then Options.MenuKey(Enum.KeyCode[Table.MenuKey], true) end
if typeof(Table.ToggleKey) == 'string' then Options.ToggleKey(Enum.KeyCode[Table.ToggleKey], true) end
end
end
end
Options('Enabled', 'ESP Enabled', true);
Options('ShowTeam', 'Show Team', true);
Options('ShowTeamColor', 'Show Team Color', false);
Options('ShowName', 'Show Names', true);
Options('ShowDistance', 'Show Distance', true);
Options('ShowHealth', 'Show Health', true);
Options('ShowBoxes', 'Show Boxes', true);
Options('ShowTracers', 'Show Tracers', true);
Options('ShowDot', 'Show Head Dot', false);
Options('VisCheck', 'Visibility Check', false);
Options('Crosshair', 'Crosshair', false);
Options('TextOutline', 'Text Outline', true);
-- Options('Rainbow', 'Rainbow Mode', false);
Options('TextSize', 'Text Size', syn and 18 or 14, 10, 24); -- cuz synapse fonts look weird???
Options('MaxDistance', 'Max Distance', 2500, 100, 25000);
Options('RefreshRate', 'Refresh Rate (ms)', 5, 1, 200);
Options('YOffset', 'Y Offset', 0, -200, 200);
Options('MenuKey', 'Menu Key', Enum.KeyCode.F4, 1);
Options('ToggleKey', 'Toggle Key', Enum.KeyCode.F3, 1);
Options('ChangeColors', SENTINEL_LOADED and 'Sentinel Unsupported' or 'Change Colors', function()
if SENTINEL_LOADED then return end
SubMenu:Show(GetMouseLocation(), 'Unnamed Colors', {
{
Type = 'Color'; Text = 'Team Color'; Color = TeamColor;
Function = function(Circ, Position)
if tick() - ColorPicker.LastGenerated < 1 then return; end
if shared.CurrentColorPicker then shared.CurrentColorPicker:Dispose() end
local ColorPicker = ColorPicker.new(Position - V2New(-10, 50));
CurrentColorPicker = ColorPicker;
shared.CurrentColorPicker = CurrentColorPicker;
ColorPicker.ColorChanged:Connect(function(Color) Circ.Color = Color TeamColor = Color Options.TeamColor = Color end);
end
};
{
Type = 'Color'; Text = 'Enemy Color'; Color = EnemyColor;
Function = function(Circ, Position)
if tick() - ColorPicker.LastGenerated < 1 then return; end
if shared.CurrentColorPicker then shared.CurrentColorPicker:Dispose() end
local ColorPicker = ColorPicker.new(Position - V2New(-10, 50));
CurrentColorPicker = ColorPicker;
shared.CurrentColorPicker = CurrentColorPicker;
ColorPicker.ColorChanged:Connect(function(Color) Circ.Color = Color EnemyColor = Color Options.EnemyColor = Color end);
end
};
{
Type = 'Button'; Text = 'Reset Colors';
Function = function()
EnemyColor = Color3.new(1, 0, 0);
TeamColor = Color3.new(0, 1, 0);
local C1 = Menu:GetInstance'Sub-ColorPreview.1'; if C1 then C1.Color = TeamColor end
local C2 = Menu:GetInstance'Sub-ColorPreview.2'; if C2 then C2.Color = EnemyColor end
end
};
{
Type = 'Button'; Text = 'Rainbow Mode';
Function = function()
Rainbow = not Rainbow;
end
};
});
end, 2);
Options('ResetSettings', 'Reset Settings', function()
for i, v in pairs(Options) do
if Options[i] ~= nil and Options[i].Value ~= nil and Options[i].Text ~= nil and (typeof(Options[i].Value) == 'boolean' or typeof(Options[i].Value) == 'number' or typeof(Options[i].Value) == 'EnumItem') then
Options[i](Options[i].DefaultValue, true);
end
end
end, 5);
Options('LoadSettings', 'Load Settings', Load, 4);
Options('SaveSettings', 'Save Settings', function()
local COptions = {};
for i, v in pairs(Options) do
COptions[i] = v;
end
if typeof(TeamColor) == 'Color3' then COptions.TeamColor = { R = TeamColor.R; G = TeamColor.G; B = TeamColor.B } end
if typeof(EnemyColor) == 'Color3' then COptions.EnemyColor = { R = EnemyColor.R; G = EnemyColor.G; B = EnemyColor.B } end
if typeof(COptions.MenuKey.Value) == 'EnumItem' then COptions.MenuKey = COptions.MenuKey.Value.Name end
if typeof(COptions.ToggleKey.Value) == 'EnumItem' then COptions.ToggleKey = COptions.ToggleKey.Value.Name end
writefile(OptionsFile, HttpService:JSONEncode(COptions));
end, 3);
Load(1);
Options('MenuOpen', nil, true);
local function Combine(...)
local Output = {};
for i, v in pairs{...} do
if typeof(v) == 'table' then
table.foreach(v, function(i, v)
Output[i] = v;
end)
end
end
return Output
end
function LineBox:Create(Properties)
local Box = { Visible = true }; -- prevent errors not really though dont worry bout the Visible = true thing
local Properties = Combine({
Transparency = 1;
Thickness = 3;
Visible = true;
}, Properties);
if shared.am_ic3 then -- sory just my preference, dynamic boxes will be optional in unnamed esp v2
Box['OutlineSquare']= NewDrawing'Square'(Properties);
Box['Square'] = NewDrawing'Square'(Properties);
elseif QUAD_SUPPORTED_EXPLOIT then
Box['Quad'] = NewDrawing'Quad'(Properties);
else
Box['TopLeft'] = NewDrawing'Line'(Properties);
Box['TopRight'] = NewDrawing'Line'(Properties);
Box['BottomLeft'] = NewDrawing'Line'(Properties);
Box['BottomRight'] = NewDrawing'Line'(Properties);
end
function Box:Update(CF, Size, Color, Properties, Parts)
if not CF or not Size then return end
if shared.am_ic3 and typeof(Parts) == 'table' then
local AllCorners = {};
for i, v in pairs(Parts) do
-- if not v:IsA'BasePart' then continue end
local CF, Size = v.CFrame, v.Size;
-- CF, Size = v.Parent:GetBoundingBox();
local Corners = {
Vector3.new(CF.X + Size.X / 2, CF.Y + Size.Y / 2, CF.Z + Size.Z / 2);
Vector3.new(CF.X - Size.X / 2, CF.Y + Size.Y / 2, CF.Z + Size.Z / 2);
Vector3.new(CF.X - Size.X / 2, CF.Y - Size.Y / 2, CF.Z - Size.Z / 2);
Vector3.new(CF.X + Size.X / 2, CF.Y - Size.Y / 2, CF.Z - Size.Z / 2);
Vector3.new(CF.X - Size.X / 2, CF.Y + Size.Y / 2, CF.Z - Size.Z / 2);
Vector3.new(CF.X + Size.X / 2, CF.Y + Size.Y / 2, CF.Z - Size.Z / 2);
Vector3.new(CF.X - Size.X / 2, CF.Y - Size.Y / 2, CF.Z + Size.Z / 2);
Vector3.new(CF.X + Size.X / 2, CF.Y - Size.Y / 2, CF.Z + Size.Z / 2);
};
for i, v in pairs(Corners) do
table.insert(AllCorners, v);
end
-- break
end
local xMin, yMin = Camera.ViewportSize.X, Camera.ViewportSize.Y;
local xMax, yMax = 0, 0;
local Vs = true;
for i, v in pairs(AllCorners) do
local Position, V = WorldToViewport(v);
if VS and not V then Vs = false break end
if Position.X > xMax then
xMax = Position.X;
end
if Position.X < xMin then
xMin = Position.X;
end
if Position.Y > yMax then
yMax = Position.Y;
end
if Position.Y < yMin then
yMin = Position.Y;
end
end
local xSize, ySize = xMax - xMin, yMax - yMin;
local Outline = Box['OutlineSquare'];
local Square = Box['Square'];
Outline.Visible = Vs;
Square.Visible = Vs;
Square.Position = V2New(xMin, yMin);
Square.Color = Color;
Square.Thickness = math.floor(Outline.Thickness * 0.3);
-- Square.Position = V2New(xMin, yMin);
Square.Size = V2New(xSize, ySize);
Outline.Position = Square.Position;
Outline.Size = Square.Size;
Outline.Color = Color3.new(0.12, 0.12, 0.12);
Outline.Transparency = 0.75;
return
end
local TLPos, Visible1 = WorldToViewport((CF * CFrame.new( Size.X, Size.Y, 0)).Position);
local TRPos, Visible2 = WorldToViewport((CF * CFrame.new(-Size.X, Size.Y, 0)).Position);
local BLPos, Visible3 = WorldToViewport((CF * CFrame.new( Size.X, -Size.Y, 0)).Position);
local BRPos, Visible4 = WorldToViewport((CF * CFrame.new(-Size.X, -Size.Y, 0)).Position);
local Quad = Box['Quad'];
if QUAD_SUPPORTED_EXPLOIT then
if Visible1 and Visible2 and Visible3 and Visible4 then
Quad.Visible = true;
Quad.Color = Color;
Quad.PointA = V2New(TLPos.X, TLPos.Y);
Quad.PointB = V2New(TRPos.X, TRPos.Y);
Quad.PointC = V2New(BRPos.X, BRPos.Y);
Quad.PointD = V2New(BLPos.X, BLPos.Y);
else
Box['Quad'].Visible = false;
end
else
Visible1 = TLPos.Z > 0 -- (commented | reason: random flashes);
Visible2 = TRPos.Z > 0 -- (commented | reason: random flashes);
Visible3 = BLPos.Z > 0 -- (commented | reason: random flashes);
Visible4 = BRPos.Z > 0 -- (commented | reason: random flashes);
-- ## BEGIN UGLY CODE
if Visible1 then
Box['TopLeft'].Visible = true;
Box['TopLeft'].Color = Color;
Box['TopLeft'].From = V2New(TLPos.X, TLPos.Y);
Box['TopLeft'].To = V2New(TRPos.X, TRPos.Y);
else
Box['TopLeft'].Visible = false;
end
if Visible2 then
Box['TopRight'].Visible = true;
Box['TopRight'].Color = Color;
Box['TopRight'].From = V2New(TRPos.X, TRPos.Y);
Box['TopRight'].To = V2New(BRPos.X, BRPos.Y);
else
Box['TopRight'].Visible = false;
end
if Visible3 then
Box['BottomLeft'].Visible = true;
Box['BottomLeft'].Color = Color;
Box['BottomLeft'].From = V2New(BLPos.X, BLPos.Y);
Box['BottomLeft'].To = V2New(TLPos.X, TLPos.Y);
else
Box['BottomLeft'].Visible = false;
end
if Visible4 then
Box['BottomRight'].Visible = true;
Box['BottomRight'].Color = Color;
Box['BottomRight'].From = V2New(BRPos.X, BRPos.Y);
Box['BottomRight'].To = V2New(BLPos.X, BLPos.Y);
else
Box['BottomRight'].Visible = false;
end
-- ## END UGLY CODE
if Properties and typeof(Properties) == 'table' then
GetTableData(Properties)(function(i, v)
pcall(Set, Box['TopLeft'], i, v);
pcall(Set, Box['TopRight'], i, v);