-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathESP.lua
More file actions
1840 lines (1382 loc) · 59.8 KB
/
ESP.lua
File metadata and controls
1840 lines (1382 loc) · 59.8 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
--[[
Universal Extra-Sensory Perception (ESP) Module by Exunys © CC0 1.0 Universal (2023 - 2024)
https://github.com/Exunys
- ESP > [Players, NPCs & Parts]
- Tracer > [Players, NPCs & Parts]
- Head Dot > [Players & NPCs]
- Box > [Players, NPCs & Parts]
- Health Bar > [Players & NPCs]
- Chams (R6 & R15) > [Players, NPCs & Parts]
]]
--// Caching
local game = game
local assert, loadstring, select, next, type, typeof, pcall, xpcall, setmetatable, getmetatable, tick, warn = assert, loadstring, select, next, type, typeof, pcall, xpcall, setmetatable, getmetatable, tick, warn
local mathfloor, mathabs, mathcos, mathsin, mathrad, mathdeg, mathmin, mathmax, mathclamp, mathrandom = math.floor, math.abs, math.cos, math.sin, math.rad, math.deg, math.min, math.max, math.clamp, math.random
local stringformat, stringfind, stringchar = string.format, string.find, string.char
local unpack = table.unpack
local wait, spawn = task.wait, task.spawn
local getgenv, getrawmetatable, getupvalue, gethiddenproperty, cloneref, clonefunction = getgenv, getrawmetatable, debug.getupvalue, gethiddenproperty, cloneref or function(...)
return ...
end, clonefunction or function(...)
return ...
end
--// Custom Drawing Library
if not Drawing or not Drawing.new or not Drawing.Fonts then
loadstring(game.HttpGet(game, "https://pastebin.com/raw/huyiRsK0"))()
repeat
wait(0)
until Drawing and Drawing.new and type(Drawing.new) == "function" and Drawing.Fonts and type(Drawing.Fonts) == "table"
end
local ConfigLibrary = loadstring(game.HttpGet(game, "https://raw.githubusercontent.com/Exunys/Config-Library/main/Main.lua"))()
local Vector2new, Vector3zero, CFramenew = Vector2.new, Vector3.zero, CFrame.new
local Drawingnew, DrawingFonts = Drawing.new, Drawing.Fonts
local Color3fromRGB, Color3fromHSV = Color3.fromRGB, Color3.fromHSV
local GameMetatable = getrawmetatable and getrawmetatable(game) or {
-- Auxillary functions - if the executor doesn't support "getrawmetatable".
__index = function(self, Index)
return self[Index]
end,
__newindex = function(self, Index, Value)
self[Index] = Value
end
}
local __index = GameMetatable.__index
local __newindex = GameMetatable.__newindex
local getrenderproperty, setrenderproperty, cleardrawcache = getrenderproperty or __index, setrenderproperty or __newindex, cleardrawcache
local _get, _set = function(self, Index) -- For the custom "Quad" render object.
return self[Index]
end, function(self, Index, Value)
self[Index] = Value
end
if identifyexecutor() == "Solara" then -- Quads are broken on Solara.
local DrawQuad = loadstring(game.HttpGet(game, "https://raw.githubusercontent.com/Exunys/Custom-Quad-Render-Object/main/Main.lua"))() -- Custom Quad Drawing Object
local _Drawingnew = clonefunction(Drawing.new)
Drawingnew = function(...)
return ({...})[1] == "Quad" and DrawQuad(...) or _Drawingnew(...)
end
end
local _GetService = __index(game, "GetService")
local FindFirstChild, WaitForChild = __index(game, "FindFirstChild"), __index(game, "WaitForChild")
local IsA = __index(game, "IsA")
local GetService = function(Service)
return cloneref(_GetService(game, Service))
end
local Workspace = GetService("Workspace")
local Players = GetService("Players")
local RunService = GetService("RunService")
local UserInputService = GetService("UserInputService")
local CurrentCamera = __index(Workspace, "CurrentCamera")
local LocalPlayer = __index(Players, "LocalPlayer")
local FindFirstChildOfClass = function(self, ...)
return typeof(self) == "Instance" and self.FindFirstChildOfClass(self, ...)
end
local Cache = {
WorldToViewportPoint = __index(CurrentCamera, "WorldToViewportPoint"),
GetPlayers = __index(Players, "GetPlayers"),
GetPlayerFromCharacter = __index(Players, "GetPlayerFromCharacter"),
GetMouseLocation = __index(UserInputService, "GetMouseLocation")
}
local WorldToViewportPoint = function(...)
return Cache.WorldToViewportPoint(CurrentCamera, ...)
end
local GetPlayers = function()
return Cache.GetPlayers(Players)
end
local GetPlayerFromCharacter = function(...)
return Cache.GetPlayerFromCharacter(Players, ...)
end
local GetMouseLocation = function()
return Cache.GetMouseLocation(UserInputService)
end
local IsDescendantOf = function(self, ...)
return typeof(self) == "Instance" and self.IsDescendantOf(self, ...)
end
--// Optimized functions / methods
local Connect, Disconnect = __index(game, "DescendantAdded").Connect
--[=[
local Degrade = (function()
if getrawmetatable and getupvalue then
if not select(2, pcall(getrawmetatable(game).__index, Players, "LocalPlayer")) then
local TemporaryDrawing = Drawingnew("Line")
if TemporaryDrawing--[[._OBJECT]] then
local __index_render = getupvalue(getmetatable(TemporaryDrawing).__index, 4)
if __index_render and __index_render(TemporaryDrawing, "Thickness") == 1 then
return false -- No degrading, meaning the exploit fully supports the optimizations for the module.
end
end
end
end
return true
end)()
do
local TemporaryConnection = Connect(__index(game, "DescendantAdded"), function() end)
Disconnect = TemporaryConnection.Disconnect
Disconnect(TemporaryConnection)
end
if not Degrade then
local TemporaryDrawing = Drawingnew("Line")
getrenderproperty = getupvalue(getmetatable(TemporaryDrawing).__index, 4)
setrenderproperty = getupvalue(getmetatable(TemporaryDrawing).__newindex, 4)
TemporaryDrawing.Remove(TemporaryDrawing)
else
local DrawQuad = loadstring(game.HttpGet(game, "https://raw.githubusercontent.com/Exunys/Custom-Quad-Render-Object/main/Main.lua"))() -- Custom Quad Drawing Object
local _Drawingnew = clonefunction(Drawing.new)
local TemporaryDrawing = Drawingnew("Line")
local Executor = identifyexecutor()
local SupportsObject, RenderObjectMetatable = (stringfind(Executor, "Wave") or stringfind(Executor, "Synapse Z")) or TemporaryDrawing--[[._OBJECT]]
TemporaryDrawing.Remove(TemporaryDrawing)
Drawingnew = SupportsObject and _Drawingnew or function(...)
return ({...})[1] == "Quad" and DrawQuad(...) or setmetatable({
__OBJECT_EXISTS = true,
__OBJECT = _Drawingnew(...),
Remove = function(self)
self--[[._OBJECT]].Remove(self)
end
}, {
__index = function(self, Index)
return self[Index]
end,
__newindex = function(self, Index, Value)
self[Index] = Value
end
})
end
TemporaryDrawing = Drawingnew("Line")
RenderObjectMetatable = getmetatable(TemporaryDrawing)
getrenderproperty, setrenderproperty = RenderObjectMetatable.__index, RenderObjectMetatable.__newindex -- Must use the "__OBJECT" element for either of these functions otherwise you get a stack overflow.
TemporaryDrawing.Remove(TemporaryDrawing)
warn("EXUNYS_ESP > Your exploit does not support this module's optimizations! The visuals might be laggy and decrease performance.")
end
]=]
--// Variables
local Inf, Nan, Loaded, CrosshairParts = 1 / 0, 0 / 0, false, {
OutlineLeftLine = Drawingnew("Line"),
OutlineRightLine = Drawingnew("Line"),
OutlineTopLine = Drawingnew("Line"),
OutlineBottomLine = Drawingnew("Line"),
OutlineCenterDot = Drawingnew("Circle"),
LeftLine = Drawingnew("Line"),
RightLine = Drawingnew("Line"),
TopLine = Drawingnew("Line"),
BottomLine = Drawingnew("Line"),
CenterDot = Drawingnew("Circle")
}
--// Checking for multiple processes
if ExunysDeveloperESP and ExunysDeveloperESP.Exit then
ExunysDeveloperESP:Exit()
end
--// Settings
getgenv().ExunysDeveloperESP = {
DeveloperSettings = {
Path = "Exunys Developer/Exunys ESP/Configuration.cfg",
UnwrapOnCharacterAbsence = false,
UpdateMode = "RenderStepped",
TeamCheckOption = "TeamColor",
RainbowSpeed = 1, -- Bigger = Slower
WidthBoundary = 1.5 -- Divisor - Smaller Value = Bigger Width
},
Settings = {
Enabled = true,
PartsOnly = false,
TeamCheck = false,
AliveCheck = true,
LoadConfigOnLaunch = true,
EnableTeamColors = false,
TeamColor = Color3fromRGB(170, 170, 255)
},
Properties = {
ESP = {
Enabled = true,
RainbowColor = false,
RainbowOutlineColor = false,
Offset = 10,
Color = Color3fromRGB(255, 255, 255),
Transparency = 1,
Size = 14,
Font = DrawingFonts.Plex, -- UI, System, Plex, Monospace
OutlineColor = Color3fromRGB(0, 0, 0),
Outline = true,
DisplayDistance = true,
DisplayHealth = false,
DisplayName = false,
DisplayDisplayName = true,
DisplayTool = true
},
Tracer = {
Enabled = true,
RainbowColor = false,
RainbowOutlineColor = false,
Position = 1, -- 1 = Bottom; 2 = Center; 3 = Mouse
Transparency = 1,
Thickness = 1,
Color = Color3fromRGB(255, 255, 255),
Outline = true,
OutlineColor = Color3fromRGB(0, 0, 0)
},
HeadDot = {
Enabled = true,
RainbowColor = false,
RainbowOutlineColor = false,
Color = Color3fromRGB(255, 255, 255),
Transparency = 1,
Thickness = 1,
NumSides = 30,
Filled = false,
OutlineColor = Color3fromRGB(0, 0, 0),
Outline = true
},
Box = {
Enabled = true,
RainbowColor = false,
RainbowOutlineColor = false,
Color = Color3fromRGB(255, 255, 255),
Transparency = 1,
Thickness = 1,
Filled = false,
OutlineColor = Color3fromRGB(0, 0, 0),
Outline = true
},
HealthBar = {
Enabled = true,
RainbowOutlineColor = false,
Offset = 4,
Blue = 100,
Position = 3, -- 1 = Top; 2 = Bottom; 3 = Left; 4 = Right
Thickness = 1,
Transparency = 1,
OutlineColor = Color3fromRGB(0, 0, 0),
Outline = true
},
Chams = {
Enabled = false,
RainbowColor = false,
Color = Color3fromRGB(255, 255, 255),
Transparency = 0.2,
Thickness = 1,
Filled = false
},
Crosshair = {
Enabled = true,
RainbowColor = false,
RainbowOutlineColor = false,
TStyled = false,
Position = 1, -- 1 = Mouse; 2 = Center
Size = 12,
GapSize = 6,
Rotation = 0,
Rotate = false,
RotateClockwise = true,
RotationSpeed = 5,
PulseGap = false,
PulsingStep = 10,
PulsingSpeed = 5,
PulsingBounds = {4, 8}, -- {...}[1] => GapSize Min; {...}[2] => GapSize Max
Color = Color3fromRGB(0, 255, 0),
Thickness = 1,
Transparency = 1,
OutlineColor = Color3fromRGB(0, 0, 0),
Outline = true,
CenterDot = {
Enabled = true,
RainbowColor = false,
RainbowOutlineColor = false,
Radius = 2,
Color = Color3fromRGB(0, 255, 0),
Transparency = 1,
Thickness = 1,
NumSides = 60,
Filled = false,
OutlineColor = Color3fromRGB(0, 0, 0),
Outline = true
}
}
},
UtilityAssets = {
WrappedObjects = {},
ServiceConnections = {}
}
}
local Environment = getgenv().ExunysDeveloperESP
--// Functions
local function Recursive(Table, Callback)
for Index, Value in next, Table do
Callback(Index, Value)
if type(Value) == "table" then
Recursive(Value, Callback)
end
end
end
local CoreFunctions = {
ConvertVector = function(Vector)
return Vector2new(Vector.X, Vector.Y)
end,
GetColorFromHealth = function(Health, MaxHealth, Blue)
return Color3fromRGB(255 - mathfloor(Health / MaxHealth * 255), mathfloor(Health / MaxHealth * 255), Blue or 0)
end,
GetRainbowColor = function()
local RainbowSpeed = Environment.DeveloperSettings.RainbowSpeed
return Color3fromHSV(tick() % RainbowSpeed / RainbowSpeed, 1, 1)
end,
GetLocalCharacterPosition = function()
local LocalCharacter = __index(LocalPlayer, "Character")
local LocalPlayerCheckPart = LocalCharacter and (__index(LocalCharacter, "PrimaryPart") or FindFirstChild(LocalCharacter, "Head"))
return LocalPlayerCheckPart and __index(LocalPlayerCheckPart, "Position") or __index(CurrentCamera, "CFrame").Position
end,
GenerateHash = function(Bits)
local Result = ""
for _ = 1, Bits do
Result ..= ("EXUNYS_ESP")[mathrandom(1, 2) == 1 and "upper" or "lower"](stringchar(mathrandom(97, 122)))
end
return Result
end,
CalculateParameters = function(Object)
Object = type(Object) == "table" and Object.Object or Object
local DeveloperSettings = Environment.DeveloperSettings
local WidthBoundary = DeveloperSettings.WidthBoundary
local IsAPlayer = IsA(Object, "Player")
local Part = IsAPlayer and (FindFirstChild(Players, __index(Object, "Name")) and __index(Object, "Character"))
Part = IsAPlayer and Part and (__index(Part, "PrimaryPart") or FindFirstChild(Part, "HumanoidRootPart")) or Object
if not Part or IsA(Part, "Player") then
return nil, nil, false
end
local PartCFrame, PartPosition, PartUpVector = __index(Part, "CFrame"), __index(Part, "Position")
PartUpVector = PartCFrame.UpVector
local RigType = FindFirstChild(__index(Part, "Parent"), "Torso") and "R6" or "R15"
local CameraUpVector = __index(CurrentCamera, "CFrame").UpVector
local Top, TopOnScreen = WorldToViewportPoint(PartPosition + (PartUpVector * (RigType == "R6" and 0.5 or 1.8)) + CameraUpVector)
local Bottom, BottomOnScreen = WorldToViewportPoint(PartPosition - (PartUpVector * (RigType == "R6" and 4 or 2.5)) - CameraUpVector)
local TopX, TopY = Top.X, Top.Y
local BottomX, BottomY = Bottom.X, Bottom.Y
local Width = mathmax(mathfloor(mathabs(TopX - BottomX)), 3)
local Height = mathmax(mathfloor(mathmax(mathabs(BottomY - TopY), Width / 2)), 3)
local BoxSize = Vector2new(mathfloor(mathmax(Height / (IsAPlayer and WidthBoundary or 1), Width)), Height)
local BoxPosition = Vector2new(mathfloor(TopX / 2 + BottomX / 2 - BoxSize.X / 2), mathfloor(mathmin(TopY, BottomY)))
return BoxPosition, BoxSize, (TopOnScreen and BottomOnScreen)
end,
GetColor = function(Player, DefaultColor)
local Settings, TeamCheckOption = Environment.Settings, Environment.DeveloperSettings.TeamCheckOption
return Settings.EnableTeamColors and __index(Player, TeamCheckOption) == __index(LocalPlayer, TeamCheckOption) and Settings.TeamColor or DefaultColor
end,
Calculate3DQuad = function(_CFrame, SizeVector, YVector)
YVector = YVector or SizeVector
return {
--// Quad 1 - Front
{
WorldToViewportPoint(_CFrame * CFramenew(SizeVector.X, YVector.Y, SizeVector.Z).Position), -- Top Left
WorldToViewportPoint(_CFrame * CFramenew(-SizeVector.X, YVector.Y, SizeVector.Z).Position), -- Top Right
WorldToViewportPoint(_CFrame * CFramenew(SizeVector.X, -YVector.Y, SizeVector.Z).Position), -- Bottom Left
WorldToViewportPoint(_CFrame * CFramenew(-SizeVector.X, -YVector.Y, SizeVector.Z).Position) -- Bottom Right
},
--// Quad 2 - Back
{
WorldToViewportPoint(_CFrame * CFramenew(SizeVector.X, YVector.Y, -SizeVector.Z).Position), -- Top Left
WorldToViewportPoint(_CFrame * CFramenew(-SizeVector.X, YVector.Y, -SizeVector.Z).Position), -- Top Right
WorldToViewportPoint(_CFrame * CFramenew(SizeVector.X, -YVector.Y, -SizeVector.Z).Position), -- Bottom Left
WorldToViewportPoint(_CFrame * CFramenew(-SizeVector.X, -YVector.Y, -SizeVector.Z).Position) -- Bottom Right
},
--// Quad 3 - Top
{
WorldToViewportPoint(_CFrame * CFramenew(SizeVector.X, YVector.Y, SizeVector.Z).Position), -- Top Left
WorldToViewportPoint(_CFrame * CFramenew(-SizeVector.X, YVector.Y, SizeVector.Z).Position), -- Top Right
WorldToViewportPoint(_CFrame * CFramenew(SizeVector.X, YVector.Y, -SizeVector.Z).Position), -- Bottom Left
WorldToViewportPoint(_CFrame * CFramenew(-SizeVector.X, YVector.Y, -SizeVector.Z).Position) -- Bottom Right
},
--// Quad 4 - Bottom
{
WorldToViewportPoint(_CFrame * CFramenew(SizeVector.X, -YVector.Y, SizeVector.Z).Position), -- Top Left
WorldToViewportPoint(_CFrame * CFramenew(-SizeVector.X, -YVector.Y, SizeVector.Z).Position), -- Top Right
WorldToViewportPoint(_CFrame * CFramenew(SizeVector.X, -YVector.Y, -SizeVector.Z).Position), -- Bottom Left
WorldToViewportPoint(_CFrame * CFramenew(-SizeVector.X, -YVector.Y, -SizeVector.Z).Position) -- Bottom Right
},
--// Quad 5 - Right
{
WorldToViewportPoint(_CFrame * CFramenew(SizeVector.X, YVector.Y, SizeVector.Z).Position), -- Top Left
WorldToViewportPoint(_CFrame * CFramenew(SizeVector.X, YVector.Y, -SizeVector.Z).Position), -- Top Right
WorldToViewportPoint(_CFrame * CFramenew(SizeVector.X, -YVector.Y, SizeVector.Z).Position), -- Bottom Left
WorldToViewportPoint(_CFrame * CFramenew(SizeVector.X, -YVector.Y, -SizeVector.Z).Position) -- Bottom Right
},
--// Quad 6 - Left
{
WorldToViewportPoint(_CFrame * CFramenew(-SizeVector.X, YVector.Y, SizeVector.Z).Position), -- Top Left
WorldToViewportPoint(_CFrame * CFramenew(-SizeVector.X, YVector.Y, -SizeVector.Z).Position), -- Top Right
WorldToViewportPoint(_CFrame * CFramenew(-SizeVector.X, -YVector.Y, SizeVector.Z).Position), -- Bottom Left
WorldToViewportPoint(_CFrame * CFramenew(-SizeVector.X, -YVector.Y, -SizeVector.Z).Position) -- Bottom Right
}
}
end
}
local UpdatingFunctions = {
ESP = function(Entry, TopTextObject, BottomTextObject)
local Settings = Environment.Properties.ESP
local Position, Size, OnScreen = CoreFunctions.CalculateParameters(Entry)
setrenderproperty(TopTextObject, "Visible", OnScreen)
setrenderproperty(BottomTextObject, "Visible", OnScreen)
if getrenderproperty(TopTextObject, "Visible") then
for Index, Value in next, Settings do
if stringfind(Index, "Color") or stringfind(Index, "Display") then
continue
end
if not pcall(getrenderproperty, TopTextObject, Index) then
continue
end
setrenderproperty(TopTextObject, Index, Value)
setrenderproperty(BottomTextObject, Index, Value)
end
local GetColor = CoreFunctions.GetColor
setrenderproperty(TopTextObject, "Color", GetColor(Entry.Object, Settings.RainbowColor and CoreFunctions.GetRainbowColor() or Settings.Color))
setrenderproperty(TopTextObject, "OutlineColor", Settings.RainbowOutlineColor and CoreFunctions.GetRainbowColor() or Settings.OutlineColor)
setrenderproperty(BottomTextObject, "Color", GetColor(Entry.Object, Settings.RainbowColor and CoreFunctions.GetRainbowColor() or Settings.Color))
setrenderproperty(BottomTextObject, "OutlineColor", Settings.RainbowOutlineColor and CoreFunctions.GetRainbowColor() or Settings.OutlineColor)
local Offset = mathclamp(Settings.Offset, 10, 30)
local PositionX, PositionY = Position.X, Position.Y
local SizeX, SizeY = Size.X, Size.Y
setrenderproperty(TopTextObject, "Position", Vector2new(PositionX + (SizeX / 2), PositionY - Offset * 2))
setrenderproperty(BottomTextObject, "Position", Vector2new(PositionX + (SizeX / 2), PositionY + SizeY + Offset / 2))
local Content, Player, IsAPlayer = "", Entry.Object, Entry.IsAPlayer
local Name, DisplayName = Entry.Name, Entry.DisplayName
local Character = IsAPlayer and __index(Player, "Character") or Player
local Humanoid = FindFirstChildOfClass(Character, "Humanoid")
local Health, MaxHealth = Humanoid and __index(Humanoid, "Health") or Nan, Humanoid and __index(Humanoid, "MaxHealth") or Nan
local Tool = Settings.DisplayTool and FindFirstChildOfClass(Character, "Tool")
Content = ((Settings.DisplayDisplayName and Settings.DisplayName and DisplayName ~= Name) and stringformat("%s (%s)", DisplayName, Name) or (Settings.DisplayDisplayName and not Settings.DisplayName) and DisplayName or (not Settings.DisplayDisplayName and Settings.DisplayName) and Name or (Settings.DisplayName and Settings.DisplayDisplayName and DisplayName == Name) and Name) or Content
Content = Settings.DisplayHealth and IsAPlayer and stringformat("[%s / %s] ", mathfloor(Health), MaxHealth)..Content or Content
setrenderproperty(TopTextObject, "Text", Content)
local PlayerPosition = __index((IsAPlayer and (__index(Character, "PrimaryPart") or __index(Character, "Head")) or Character), "Position") or Vector3zero
local Distance = Settings.DisplayDistance and mathfloor((PlayerPosition - CoreFunctions.GetLocalCharacterPosition()).Magnitude)
Content = Distance and stringformat("%s Studs", Distance) or ""
setrenderproperty(BottomTextObject, "Text", Content..(Tool and ((Distance and "\n" or "")..__index(Tool, "Name")) or ""))
end
end,
Tracer = function(Entry, TracerObject, TracerOutlineObject)
local Settings = Environment.Properties.Tracer
local Position, Size, OnScreen = CoreFunctions.CalculateParameters(Entry)
setrenderproperty(TracerObject, "Visible", OnScreen)
setrenderproperty(TracerOutlineObject, "Visible", OnScreen and Settings.Outline)
if getrenderproperty(TracerObject, "Visible") then
for Index, Value in next, Settings do
if Index == "Color" then
continue
end
if not pcall(getrenderproperty, TracerObject, Index) then
continue
end
setrenderproperty(TracerObject, Index, Value)
end
setrenderproperty(TracerObject, "Color", CoreFunctions.GetColor(Entry.Object, Settings.RainbowColor and CoreFunctions.GetRainbowColor() or Settings.Color))
local CameraViewportSize = __index(CurrentCamera, "ViewportSize")
if Settings.Position == 1 then
setrenderproperty(TracerObject, "From", Vector2new(CameraViewportSize.X / 2, CameraViewportSize.Y))
elseif Settings.Position == 2 then
setrenderproperty(TracerObject, "From", CameraViewportSize / 2)
elseif Settings.Position == 3 then
setrenderproperty(TracerObject, "From", GetMouseLocation())
else
Settings.Position = 1
end
setrenderproperty(TracerObject, "To", Vector2new(Position.X + (Size.X / 2), Position.Y + Size.Y))
if Settings.Outline then
setrenderproperty(TracerOutlineObject, "Color", Settings.RainbowOutlineColor and CoreFunctions.GetRainbowColor() or Settings.OutlineColor)
setrenderproperty(TracerOutlineObject, "Thickness", Settings.Thickness + 1)
setrenderproperty(TracerOutlineObject, "Transparency", Settings.Transparency)
setrenderproperty(TracerOutlineObject, "From", getrenderproperty(TracerObject, "From"))
setrenderproperty(TracerOutlineObject, "To", getrenderproperty(TracerObject, "To"))
end
end
end,
HeadDot = function(Entry, CircleObject, CircleOutlineObject)
local Settings = Environment.Properties.HeadDot
local Character = Entry.IsAPlayer and __index(Entry.Object, "Character") or __index(Entry.Object, "Parent")
local Head = Character and FindFirstChild(Character, "Head")
if not Head then
setrenderproperty(CircleObject, "Visible", false)
setrenderproperty(CircleOutlineObject, "Visible", false)
return
end
local HeadCFrame, HeadSize = __index(Head, "CFrame"), __index(Head, "Size")
local Vector, OnScreen = WorldToViewportPoint(HeadCFrame.Position)
local Top, Bottom = WorldToViewportPoint((HeadCFrame * CFramenew(0, HeadSize.Y / 2, 0)).Position), WorldToViewportPoint((HeadCFrame * CFramenew(0, -HeadSize.Y / 2, 0)).Position)
setrenderproperty(CircleObject, "Visible", OnScreen)
setrenderproperty(CircleOutlineObject, "Visible", OnScreen and Settings.Outline)
if getrenderproperty(CircleObject, "Visible") then
for Index, Value in next, Settings do
if stringfind(Index, "Color") then
continue
end
if not pcall(getrenderproperty, CircleObject, Index) then
continue
end
setrenderproperty(CircleObject, Index, Value)
if Settings.Outline then
setrenderproperty(CircleOutlineObject, Index, Value)
end
end
setrenderproperty(CircleObject, "Color", CoreFunctions.GetColor(Entry.Object, Settings.RainbowColor and CoreFunctions.GetRainbowColor() or Settings.Color))
setrenderproperty(CircleObject, "Position", CoreFunctions.ConvertVector(Vector))
setrenderproperty(CircleObject, "Radius", mathabs((Top - Bottom).Y) - 3)
if Settings.Outline then
setrenderproperty(CircleOutlineObject, "Color", Settings.RainbowOutlineColor and CoreFunctions.GetRainbowColor() or Settings.OutlineColor)
setrenderproperty(CircleOutlineObject, "Thickness", Settings.Thickness + 1)
setrenderproperty(CircleOutlineObject, "Transparency", Settings.Transparency)
setrenderproperty(CircleOutlineObject, "Position", getrenderproperty(CircleObject, "Position"))
setrenderproperty(CircleOutlineObject, "Radius", getrenderproperty(CircleObject, "Radius"))
end
end
end,
Box = function(Entry, BoxObject, BoxOutlineObject)
local Settings = Environment.Properties.Box
local Position, Size, OnScreen = CoreFunctions.CalculateParameters(Entry)
setrenderproperty(BoxObject, "Visible", OnScreen)
setrenderproperty(BoxOutlineObject, "Visible", OnScreen and Settings.Outline)
if getrenderproperty(BoxObject, "Visible") then
setrenderproperty(BoxObject, "Position", Position)
setrenderproperty(BoxObject, "Size", Size)
for Index, Value in next, Settings do
if Index == "Color" then
continue
end
if not pcall(getrenderproperty, BoxObject, Index) then
continue
end
setrenderproperty(BoxObject, Index, Value)
end
setrenderproperty(BoxObject, "Color", CoreFunctions.GetColor(Entry.Object, Settings.RainbowColor and CoreFunctions.GetRainbowColor() or Settings.Color))
if Settings.Outline then
setrenderproperty(BoxOutlineObject, "Position", Position)
setrenderproperty(BoxOutlineObject, "Size", Size)
setrenderproperty(BoxOutlineObject, "Color", Settings.RainbowOutlineColor and CoreFunctions.GetRainbowColor() or Settings.OutlineColor)
setrenderproperty(BoxOutlineObject, "Thickness", Settings.Thickness + 1)
setrenderproperty(BoxOutlineObject, "Transparency", Settings.Transparency)
end
end
end,
HealthBar = function(Entry, MainObject, OutlineObject, Humanoid)
local Settings = Environment.Properties.HealthBar
local Position, Size, OnScreen = CoreFunctions.CalculateParameters(Entry)
setrenderproperty(MainObject, "Visible", OnScreen)
setrenderproperty(OutlineObject, "Visible", OnScreen and Settings.Outline)
if getrenderproperty(MainObject, "Visible") then
for Index, Value in next, Settings do
if Index == "Color" then
continue
end
if not pcall(getrenderproperty, MainObject, Index) then
continue
end
setrenderproperty(MainObject, Index, Value)
end
Humanoid = Humanoid or FindFirstChildOfClass(__index(Entry.Object, "Character"), "Humanoid")
local MaxHealth = Humanoid and __index(Humanoid, "MaxHealth") or 100
local Health = Humanoid and mathclamp(__index(Humanoid, "Health"), 0, MaxHealth) or 0
local Offset = mathclamp(Settings.Offset, 4, 12)
setrenderproperty(MainObject, "Color", CoreFunctions.GetColorFromHealth(Health, MaxHealth, Settings.Blue))
if Settings.Position == 1 then
setrenderproperty(MainObject, "From", Vector2new(Position.X, Position.Y - Offset))
setrenderproperty(MainObject, "To", Vector2new(Position.X + (Health / MaxHealth) * Size.X, Position.Y - Offset))
if Settings.Outline then
setrenderproperty(OutlineObject, "From", Vector2new(Position.X - 1, Position.Y - Offset))
setrenderproperty(OutlineObject, "To", Vector2new(Position.X + Size.X + 1, Position.Y - Offset))
end
elseif Settings.Position == 2 then
setrenderproperty(MainObject, "From", Vector2new(Position.X, Position.Y + Size.Y + Offset))
setrenderproperty(MainObject, "To", Vector2new(Position.X + (Health / MaxHealth) * Size.X, Position.Y + Size.Y + Offset))
if Settings.Outline then
setrenderproperty(OutlineObject, "From", Vector2new(Position.X - 1, Position.Y + Size.Y + Offset))
setrenderproperty(OutlineObject, "To", Vector2new(Position.X + Size.X + 1, Position.Y + Size.Y + Offset))
end
elseif Settings.Position == 3 then
setrenderproperty(MainObject, "From", Vector2new(Position.X - Offset, Position.Y + Size.Y))
setrenderproperty(MainObject, "To", Vector2new(Position.X - Offset, getrenderproperty(MainObject, "From").Y - (Health / MaxHealth) * Size.Y))
if Settings.Outline then
setrenderproperty(OutlineObject, "From", Vector2new(Position.X - Offset, Position.Y + Size.Y + 1))
setrenderproperty(OutlineObject, "To", Vector2new(Position.X - Offset, (getrenderproperty(OutlineObject, "From").Y - 1 * Size.Y) - 2))
end
elseif Settings.Position == 4 then
setrenderproperty(MainObject, "From", Vector2new(Position.X + Size.X + Offset, Position.Y + Size.Y))
setrenderproperty(MainObject, "To", Vector2new(Position.X + Size.X + Offset, getrenderproperty(MainObject, "From").Y - (Health / MaxHealth) * Size.Y))
if Settings.Outline then
setrenderproperty(OutlineObject, "From", Vector2new(Position.X + Size.X + Offset, Position.Y + Size.Y + 1))
setrenderproperty(OutlineObject, "To", Vector2new(Position.X + Size.X + Offset, (getrenderproperty(OutlineObject, "From").Y - 1 * Size.Y) - 2))
end
else
Settings.Position = 3
end
if Settings.Outline then
setrenderproperty(OutlineObject, "Color", Settings.RainbowOutlineColor and CoreFunctions.GetRainbowColor() or Settings.OutlineColor)
setrenderproperty(OutlineObject, "Thickness", Settings.Thickness + 1)
setrenderproperty(OutlineObject, "Transparency", Settings.Transparency)
end
end
end,
Chams = function(Entry, Part, Cham)
local Settings = Environment.Properties.Chams
if not (Part and Cham and Entry) then
return
end
local ChamsEnabled, ESPEnabled = Settings.Enabled, Environment.Settings.Enabled
local IsReady = Entry.Checks.Ready
local ConvertVector = CoreFunctions.ConvertVector
local _CFrame, PartSize = select(2, pcall(function()
return __index(Part, "CFrame"), __index(Part, "Size") / 2
end))
if not (ChamsEnabled and ESPEnabled and IsReady and _CFrame and PartSize and select(2, WorldToViewportPoint(_CFrame.Position))) then
for Index = 1, 6 do
_set(Cham["Quad"..Index], "Visible", false)
end
return
end
local Quads = {
Quad1Object = Cham.Quad1,
Quad2Object = Cham.Quad2,
Quad3Object = Cham.Quad3,
Quad4Object = Cham.Quad4,
Quad5Object = Cham.Quad5,
Quad6Object = Cham.Quad6
}
for Index, Value in next, Settings do
if Index == "Enabled" then
Index, Value = "Visible", ChamsEnabled and ESPEnabled and IsReady
elseif Index == "Color" then
Value = CoreFunctions.GetColor(Entry.Object, Settings.RainbowColor and CoreFunctions.GetRainbowColor() or Settings.Color)
end
if not pcall(_get, Quads.Quad1Object, Index) then
continue
end
for _, RenderObject in next, Quads do
_set(RenderObject, Index, Value)
end
end
local Indexes, Positions = {1, 3, 4, 2}, CoreFunctions.Calculate3DQuad(_CFrame, PartSize)
for Index = 1, 6 do
local RenderObject = Quads["Quad"..Index.."Object"]
for _Index = 1, 4 do
_set(RenderObject, "Point"..stringchar(_Index + 64), ConvertVector(Positions[Index][Indexes[_Index]]))
end
end
end
}
local CreatingFunctions = {
ESP = function(Entry)
local Allowed = Entry.Allowed
if type(Allowed) == "table" and type(Allowed.ESP) == "boolean" and not Allowed.ESP then
return
end
local Settings = Environment.Properties.ESP
local TopText = Drawingnew("Text")
local TopTextObject = TopText--[[._OBJECT]]
setrenderproperty(TopTextObject, "Center", true)
local BottomText = Drawingnew("Text")
local BottomTextObject = BottomText--[[._OBJECT]]
setrenderproperty(BottomTextObject, "Center", true)
Entry.Visuals.ESP[1] = TopText
Entry.Visuals.ESP[2] = BottomText
Entry.Connections.ESP = Connect(__index(RunService, Environment.DeveloperSettings.UpdateMode), function()
local Functionable, Ready = pcall(function()
return Environment.Settings.Enabled and Settings.Enabled and Entry.Checks.Ready
end)
if not Functionable then
pcall(TopText.Remove, TopText)
pcall(BottomText.Remove, BottomText)
return Disconnect(Entry.Connections.ESP)
end
if Ready then
UpdatingFunctions.ESP(Entry, TopTextObject, BottomTextObject)
else
setrenderproperty(TopTextObject, "Visible", false)
setrenderproperty(BottomTextObject, "Visible", false)
end
end)
end,
Tracer = function(Entry)
local Allowed = Entry.Allowed
if type(Allowed) == "table" and type(Allowed.Tracer) == "boolean" and not Allowed.Tracer then
return
end
local Settings = Environment.Properties.Tracer
local TracerOutline = Drawingnew("Line")
local TracerOutlineObject = TracerOutline--[[._OBJECT]]
local Tracer = Drawingnew("Line")
local TracerObject = Tracer--[[._OBJECT]]
Entry.Visuals.Tracer[1] = Tracer
Entry.Visuals.Tracer[2] = TracerOutline
Entry.Connections.Tracer = Connect(__index(RunService, Environment.DeveloperSettings.UpdateMode), function()
local Functionable, Ready = pcall(function()
return Environment.Settings.Enabled and Settings.Enabled and Entry.Checks.Ready
end)
if not Functionable then
pcall(Tracer.Remove, Tracer)
pcall(TracerOutline.Remove, TracerOutline)
return Disconnect(Entry.Connections.Tracer)
end
if Ready then
UpdatingFunctions.Tracer(Entry, TracerObject, TracerOutlineObject)
else
setrenderproperty(TracerObject, "Visible", false)
setrenderproperty(TracerOutlineObject, "Visible", false)
end
end)
end,
HeadDot = function(Entry)
local Allowed = Entry.Allowed
if type(Allowed) == "table" and type(Allowed.HeadDot) == "boolean" and not Allowed.HeadDot then
return
end
if not Entry.IsAPlayer and not Entry.PartHasCharacter then
if not FindFirstChild(__index(Entry.Object, "Parent"), "Head") then
return
end
end
local Settings = Environment.Properties.HeadDot
local CircleOutline = Drawingnew("Circle")
local CircleOutlineObject = CircleOutline--[[._OBJECT]]
local Circle = Drawingnew("Circle")
local CircleObject = Circle--[[._OBJECT]]
Entry.Visuals.HeadDot[1] = Circle
Entry.Visuals.HeadDot[2] = CircleOutline
Entry.Connections.HeadDot = Connect(__index(RunService, Environment.DeveloperSettings.UpdateMode), function()
local Functionable, Ready = pcall(function()
return Environment.Settings.Enabled and Settings.Enabled and Entry.Checks.Ready
end)
if not Functionable then
pcall(Circle.Remove, Circle)
pcall(CircleOutline.Remove, CircleOutline)
return Disconnect(Entry.Connections.HeadDot)
end
if Ready then
UpdatingFunctions.HeadDot(Entry, CircleObject, CircleOutlineObject)
else
setrenderproperty(CircleObject, "Visible", false)
setrenderproperty(CircleOutlineObject, "Visible", false)
end
end)
end,