This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
/
UniversalEspUI.lua
2789 lines (2710 loc) · 64.5 KB
/
UniversalEspUI.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
--[[
Custom Game Features
- Phantom Forces
- Dropped Weapon Esp
- Show Ammo
- Duration Indicator
- Grenade Esp
- Check Grenade Radius
- Dog Tag Esp
- Flag Esp
- a lil buggy
- Bad Business
- Grenade Esp
- Check Grenade Radius
- there arent that many things that i could add to bad business
- Rush Point
- Dropped Weapon Esp
- Show Ammo
- Show Skin
- Show Owner
- Ability Esp
- Enable specific abilities
- Ignore teammate abilities
- Bomb Esp
- also checks if the bomb is being defused!
- Murder Mystery 2
- Gun Esp
]]
repeat
task.wait(0.5)
until not UAIM_LOADING and not USCRIPT_LOADING
getgenv().UESP_LOADING = true
if not EspSettings then
getgenv().EspSettings = {
TeamCheck = false,
ToggleKey = "RightAlt",
RefreshRate = 10, -- how fast the esp updates (milliseconds)
MaximumDistance = 500, -- only renders players within this distance
FaceCamera = false, -- Makes esp appear 2D
AlignPoints = false, -- Improves 2D effect; only works while FaceCamera is enabled
-- AlignPoints: This may cause esp to have abnormal behavior when looking from certain angles
MouseVisibility = {
Enabled = true, -- makes any drawing objects transparent when they are near your mouse
Radius = 60,
Transparency = 0.3,
Method = "Hover", -- "Radius" or "Hover"
HoverRadius = 50,
Selected = { -- set any of these to false to ignore them
Boxes = true,
Tracers = true,
Names = true,
Skeletons = true,
HealthBars = true,
HeadDots = true,
LookTracers = true
}
},
Highlights = {
Enabled = false,
Players = {}, -- put player usernames into this table to 'highlight' them
Transparency = 1,
Color = Color3.fromRGB(255, 150, 0),
AlwaysOnTop = true
},
NPC = {
Color = Color3.fromRGB(150,150,150),
Transparency = 1,
RainbowColor = false,
Overrides = {
Boxes = true,
Tracers = true,
Names = true,
Skeletons = true,
HealthBars = true,
HeadDots = true,
LookTracers = true
}
},
Boxes = {
Enabled = true,
Transparency = 1,
Color = Color3.fromRGB(255,255,255),
UseTeamColor = true,
RainbowColor = false,
Outline = true,
OutlineColor = Color3.fromRGB(0,0,0),
OutlineThickness = 1,
Thickness = 1
},
Tracers = {
Enabled = true,
Transparency = 1,
Color = Color3.fromRGB(255,255,255),
UseTeamColor = true,
RainbowColor = false,
Outline = true,
OutlineColor = Color3.fromRGB(0,0,0),
OutlineThickness = 1,
Origin = "Top", -- "Top" or "Center" or "Bottom" or "Mouse"
Thickness = 1
},
Names = {
Enabled = true,
Transparency = 1,
Color = Color3.fromRGB(255,255,255),
UseTeamColor = true,
RainbowColor = false,
Outline = true,
OutlineColor = Color3.fromRGB(0,0,0),
Font = Drawing.Fonts.UI, -- UI or System or Plex or Monospace
Size = 18,
ShowDistance = false,
ShowHealth = true,
UseDisplayName = false,
DistanceDataType = "m", -- what it says after the distance (ex. 100m)
HealthDataType = "Percentage" -- "Percentage" or "Value"
},
Skeletons = {
Enabled = true,
Transparency = 1,
Color = Color3.fromRGB(255,255,255),
UseTeamColor = true,
RainbowColor = false,
Outline = true,
OutlineColor = Color3.fromRGB(0,0,0),
OutlineThickness = 1,
Thickness = 1
},
HealthBars = {
Enabled = true,
Transparency = 1,
Color = Color3.fromRGB(0,255,0),
UseTeamColor = true,
RainbowColor = false,
Outline = true,
OutlineColor = Color3.fromRGB(0,0,0),
OutlineThickness = 1,
Origin = "None", -- "None" or "Left" or "Right"
OutlineBarOnly = true
},
HeadDots = {
Enabled = true,
Transparency = 1,
Color = Color3.fromRGB(255,255,255),
UseTeamColor = true,
RainbowColor = false,
Outline = true,
OutlineColor = Color3.fromRGB(0,0,0),
OutlineThickness = 1,
Thickness = 1,
Filled = false,
Scale = 1
},
LookTracers = {
Enabled = true,
Transparency = 1,
Color = Color3.fromRGB(255,255,255),
UseTeamColor = true,
RainbowColor = false,
Outline = true,
OutlineColor = Color3.fromRGB(0,0,0),
OutlineThickness = 1,
Thickness = 1,
Length = 5
}
}
end
if UESP then
return
end
getgenv().OldInstance = nil
getgenv().EspSettings.Names.OutlineThickness = 0 -- prevent error
local function Load(file)
return loadstring(game:HttpGet(string.format("https://raw.githubusercontent.com/zzerexx/scripts/main/%s.lua", file)), file)()
end
local UI
--[[ old icons
local icons = {
['UI'] = "https://i.imgur.com/xW3CaYL.png",
['Boxes'] = "https://i.imgur.com/c62mH5p.png",
['Tracers'] = "https://i.imgur.com/MSNjSVv.png",
['Names'] = "https://i.imgur.com/HLiXuos.png",
['Skeletons'] = "https://i.imgur.com/kzwPzjl.png",
['Health Bars'] = "https://i.imgur.com/nD3lltT.png",
['Head Dots'] = "https://i.imgur.com/HGAgY9G.png",
['Look Tracers'] = "https://i.imgur.com/XZqC7pF.png",
['All'] = "https://i.imgur.com/JRo82rH.png",
['Mouse Visibility'] = "https://i.imgur.com/3FKHkB8.png",
['Other'] = "https://i.imgur.com/Lwl0iV7.png",
['Configs'] = "https://i.imgur.com/bcuIP5f.png",
['Players'] = "https://i.imgur.com/EB8OOKv.png",
['NPC'] = "",
['Statistics'] = "https://i.imgur.com/X0IblqN.png",
['Feedback'] = "https://i.imgur.com/FYbAIod.png"
}]]
local icons = {
['UI'] = "https://i.imgur.com/xW3CaYL.png",
['Boxes'] = "https://i.imgur.com/xSNPrjN.png",
['Tracers'] = "https://i.imgur.com/oshO9nY.png",
['Names'] = "https://i.imgur.com/dtVPsyX.png",
['Skeletons'] = "https://i.imgur.com/HL57Z76.png",
['Health Bars'] = "https://i.imgur.com/cPnbeKo.png",
['Head Dots'] = "https://i.imgur.com/AWvYuRI.png",
['Look Tracers'] = "https://i.imgur.com/GSBE57c.png",
['All'] = "https://i.imgur.com/ChRDF9E.png",
['Mouse Visibility'] = "https://i.imgur.com/YtB9EMq.png",
['Other'] = "https://i.imgur.com/2HCDHHU.png",
['Configs'] = "https://i.imgur.com/AAiWa00.png",
['Players'] = "https://i.imgur.com/rSSostV.png",
['NPC'] = "https://i.imgur.com/vnQqvnZ.png",
['Statistics'] = "https://i.imgur.com/l12YZmJ.png",
['Feedback'] = "https://i.imgur.com/rnLY3CC.png",
['Game'] = "https://i.imgur.com/GyzezXx.png"
}
for i,v in next, icons do
local folder = "UESP_Icons"
if not isfolder("UESP_Icons") then
makefolder("UESP_Icons")
end
local path = folder.."\\"..i..".png"
if not isfile(path) then
writefile(path, game:HttpGet(v))
end
end
function page(title)
return UI.new({Title = title, ImageId = "UESP_Icons\\"..title..".png", ImageSize = Vector2.new(20, 20)})
end
local version = "v1.7.1"
local esp = esp or Load("UniversalEsp")
local cfg = Load("ConfigManager")
local Material = Load("MaterialLuaRemake")
UI = Material.Load({
Title = "Universal Esp",
SubTitle = "zzerexx was here",
Icon = "UESP_Icons\\UI.png",
ShowInNavigator = true,
Style = 3,
SizeX = 400,
SizeY = 535,
Theme = "Dark"
})
local players = game:GetService("Players")
local camera = workspace.CurrentCamera
local RunService = game:GetService("RunService")
local uis = game:GetService("UserInputService")
local gids = { -- game ids
['arsenal'] = 111958650,
['pf'] = 113491250,
['pft'] = 115272207, -- pf test place
['pfu'] = 1256867479, -- pf unstable branch
['bb'] = 1168263273,
['rp'] = 2162282815, -- rush point
['mm2'] = 66654135
}
local gid = game.GameId
local Game, GamePage = nil, nil
if gid == (gids.pf or gids.pft or gids.pfu) then
Game = "Phantom Forces"
elseif gid == gids.bb then
Game = "Bad Business"
elseif gid == gids.rp then
Game = "Rush Point"
elseif gid == gids.mm2 then
Game = "Murder Mystery 2"
end
if Game then
GamePage = UI.new({Title = Game, ImageId = "UESP_Icons\\Game.png", ImageSize = Vector2.new(20, 20)})
end
local Boxes = page("Boxes")
local Tracers = page("Tracers")
local Names = page("Names")
local Skeletons = page("Skeletons")
local HealthBars = page("Health Bars")
local HeadDots = page("Head Dots")
local LookTracers = page("Look Tracers")
local All = page("All")
local MouseVisibility = page("Mouse Visibility")
local Other = page("Other")
local Configs = page("Configs")
local Players = page("Players")
local NPC = page("NPC")
local Stats = page("Statistics")
local Feedback = page("Feedback")
local ss = getgenv().EspSettings
local loaded = false
local connections = {}
local cfgname,selectedcfg = "",""
local addtonew = true
local addtonpcs = false
local togglekey = Enum.KeyCode.RightControl
local esptogglebtn, uitogglebtn
local SettingsLoaded = Instance.new("BindableEvent")
local gamesettings = {
['Phantom Forces'] = nil,
['Bad Business'] = nil,
['Rush Point'] = nil
}
local newsettings = {
FaceCamera = false,
AlignPoints = false,
HealthBars = {
Origin = "None",
OutlineBarOnly = true
},
HeadDots = {
Scale = 1
},
MouseVisibility = {
Method = "Hover",
HoverRadius = 50,
},
Highlights = {
Enabled = false,
Players = {},
Transparency = 1,
Color = Color3.fromRGB(255, 150, 0),
AlwaysOnTop = true
},
NPC = {
Color = Color3.fromRGB(150,150,150),
Transparency = 1,
RainbowColor = false,
Overrides = {
Boxes = true,
Tracers = true,
Names = true,
Skeletons = true,
HealthBars = true,
HeadDots = true,
LookTracers = true
}
},
}
for i,v in next, newsettings do
if ss[i] == nil then
ss[i] = v
end
if typeof(v) == "table" then
for i2,v2 in next, v do
if ss[i][i2] == nil then
ss[i][i2] = v2
end
end
end
end
local function newconn(signal, callback)
local conn = signal:Connect(callback)
table.insert(connections, conn)
return conn
end
local function save(a)
cfg.Save(a, {
settings = ss,
ui = {
ToggleKey = togglekey.Name,
AddToNew = addtonew
},
gamesettings = gamesettings
})
end
local function load(a)
local data = (a.Data or (a.settings ~= nil and a.settings)) or a
for i,v in next, data.settings do
if typeof(v) == "table" then
for i2,v2 in next, v do
esp:Set(i, i2, v2)
end
else
esp:Set("Other", i, v)
end
end
if data.gamesettings ~= nil then
gamesettings = data.gamesettings
SettingsLoaded:Fire(gamesettings)
end
task.spawn(function()
repeat task.wait(0.25) until esptogglebtn ~= nil and uitogglebtn ~= nil
local key = data.settings.ToggleKey
esptogglebtn:SetBind((typeof(key) == "EnumItem" and key) or Enum.KeyCode[key])
if a.Data ~= nil and a.Data.ui ~= nil then
local b,c = data.ui.ToggleKey, data.ui.AddToNew
if b then
togglekey = Enum.KeyCode[b]
uitogglebtn:SetBind(togglekey)
end
if c then
addtonew = c
end
end
end)
end
cfg.Init("UESP", {
settings = ss,
ui = {
ToggleKey = togglekey.Name,
AddToNew = addtonew
}
}, load)
function destroy()
for _,v in next, connections do
v:Disconnect()
end
esp:Destroy()
UI:Destroy()
getgenv().UESP = nil
end
local script = loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/zzerexx/scripts/main/UniversalEspUI.lua"), "UniversalEspUI")
function reload(safemode)
destroy()
task.wait(0.5)
if safemode then
pcall(script)
else
script()
end
end
do -- Game Specific
local objects = {}
local label = setmetatable({
Transparency = 1,
Color = Color3.new(1, 1, 1),
RainbowColor = false,
Size = 13,
Outline = true,
OutlineColor = Color3.new(0, 0, 0),
Font = (import and Drawing.Fonts.System) or Drawing.Fonts.Plex,
Offset = Vector2.zero
}, {
__call = function(self, obj, text, color)
local obj = esp.Label(obj, self)
table.insert(objects, obj)
obj:SetProp("Text", text)
if color then
obj:SetProp("Color", color)
end
return obj
end
})
local cham = setmetatable({
Transparency = 0.5,
Color = Color3.new(1, 1, 1),
RainbowColor = false,
Thickness = 1,
Filled = true
}, {
__call = function(self, obj, color)
local obj = esp.Cham(obj, self)
table.insert(objects, obj)
if color then
obj:SetProp("Color", color)
end
return obj
end
})
local white, red, orange, yellow, green = Color3.new(1, 1, 1), Color3.fromRGB(255, 0, 0), Color3.fromRGB(255, 150, 0), Color3.fromRGB(255, 255, 0), Color3.fromRGB(0, 255, 0)
local function SetProp(name, type, prop, value)
for _,v in next, objects do
if (name == "" or v.Part.Name:find(name)) and v.Type == type then
v:SetProp(prop, value)
end
end
end
local function Remove(name, type)
for _,v in next, objects do
if (name == "" or v.Part.Name:find(name)) and v.Type == type then
v:Remove()
end
end
end
if Game == "Phantom Forces" then
local content = game:GetService("ReplicatedStorage"):WaitForChild("Content")
local db = content:WaitForChild("ProductionContent"):WaitForChild("WeaponDatabase")
local tdb = content:WaitForChild("TestContent"):WaitForChild("WeaponDatabase")
local drops = workspace:WaitForChild("Ignore"):WaitForChild("GunDrop")
local misc = workspace:WaitForChild("Ignore"):WaitForChild("Misc")
local cache = {}
local settings = setmetatable({
Weapons = {
DroppedWeapons = false,
DroppedWeaponsChams = false,
ShowAmmo = false,
Duration = false,
Grenades = false,
CheckGrenadeRadius = false,
},
Misc = {
DogTags = false,
DogTagsChams = false,
Flags = false
},
Custom = {
LabelTransparency = 1,
ChamsTransparency = 1
}
}, {
__newindex = function(self)
gamesettings[Game] = self
end
})
gamesettings[Game] = settings
newconn(SettingsLoaded.Event, function(a)
local data = a[Game]
if data then
settings = a[Game]
end
end)
GamePage.Label({
Text = "━━ Weapons ━━",
Center = true,
Transparent = true
})
GamePage.Toggle({
Text = "Dropped Weapon Esp (Label)",
Callback = function(value)
settings.Weapons.DroppedWeapons = value
if value == false then
Remove("Dropped", "Labels")
end
end,
Enabled = settings.Weapons.DroppedWeapons
})
GamePage.Toggle({
Text = "Dropped Weapon Esp (Chams)",
Callback = function(value)
settings.Weapons.DroppedWeaponsChams = value
if value == false then
Remove("Dropped", "Chams")
end
end,
Enabled = settings.Weapons.DroppedWeaponsChams,
Menu = {
Info = function()
UI.Banner("You may experience performance drops with this enabled.")
end
}
})
GamePage.Toggle({
Text = "Show Ammo",
Callback = function(value)
settings.Weapons.ShowAmmo = value
end,
Enabled = settings.Weapons.ShowAmmo
})
GamePage.Toggle({
Text = "Duration Indicator",
Callback = function(value)
settings.Weapons.Duration = value
end,
Enabled = settings.Weapons.Duration,
Menu = {
Info = function()
UI.Banner("Visualizes how much time the weapon has left until it despawns.\n<font color='rgb(255, 0, 0)'>Red</font> = 5s left\n<font color='rgb(255, 150, 0)'>Orange</font> = 10s left\n<font color='rgb(255, 255, 0)'>Yellow</font> = 15s left\n<font color='rgb(0, 255, 0)'>Green</font> = More than 20s left")
end
}
})
GamePage.Toggle({
Text = "Grenade Esp",
Callback = function(value)
settings.Weapons.Grenades = value
if value == false then
Remove("Trigger", "Labels")
Remove("Trigger", "Chams")
end
end,
Enabled = settings.Weapons.Grenades
})
GamePage.Toggle({
Text = "Check Grenade Radius",
Callback = function(value)
settings.Weapons.CheckGrenadeRadius = value
end,
Enabled = settings.Weapons.CheckGrenadeRadius,
Menu = {
Info = function()
UI.Banner("When you're within a grenade's blast radius, the esp color will change to red.")
end
}
})
GamePage.Label({
Text = "━━ Misc ━━",
Center = true,
Transparent = true
})
GamePage.Toggle({
Text = "Dog Tag Esp (Label)",
Callback = function(value)
settings.Misc.DogTags = value
if value == false then
Remove("DogTag", "Labels")
end
end,
Enabled = settings.Misc.DogTags
})
GamePage.Toggle({
Text = "Dog Tag Esp (Chams)",
Callback = function(value)
settings.Misc.DogTagsChams = value
if value == false then
Remove("DogTag", "Chams")
end
end,
Enabled = settings.Misc.DogTagsChams
})
GamePage.Toggle({
Text = "Flag Esp (Label)",
Callback = function(value)
settings.Misc.Flags = value
end,
Enabled = settings.Misc.Flags
})
GamePage.Label({
Text = "━━ Customize ━━",
Center = true,
Transparent = true
})
GamePage.Slider({
Text = "Label Transparency",
Callback = function(value)
SetProp("Dropped", "Labels", "Transparency", value)
SetProp("DogTag", "Labels", "Transparency", value)
SetProp("FlagDrop", "Labels", "Transparency", value)
settings.Custom.LabelTransparency = value
label.Transparency = value
end,
Min = 0,
Max = 1,
Def = settings.Custom.LabelTransparency,
Decimals = 2
})
GamePage.Slider({
Text = "Chams Transparency",
Callback = function(value)
SetProp("Dropped", "Chams", "Transparency", value)
SetProp("DogTag", "Chams", "Transparency", value)
settings.Custom.ChamsTransparency = value
cham.Transparency = value
end,
Min = 0,
Max = 1,
Def = settings.Custom.ChamsTransparency,
Decimals = 2
})
newconn(drops.ChildAdded, function(v)
local dropped = settings.Weapons.DroppedWeapons
local droppedchams = settings.Weapons.DroppedWeaponsChams
local showammo = settings.Weapons.ShowAmmo
local duration = settings.Weapons.Duration
local tags = settings.Misc.DogTags
local tagschams = settings.Misc.DogTagsChams
local flags = settings.Misc.Flags
if v.Name == "Dropped" and (dropped or droppedchams) then
local gun = v:WaitForChild("Gun", 1)
local ammo = v:WaitForChild("Spare", 1)
if (not gun) or (not ammo) then return end
gun = gun.Value
ammo = ammo.Value
local module = db:FindFirstChild(gun, true) or tdb:FindFirstChild(gun, true)
local data = cache[gun] or require(module:FindFirstChildOfClass("ModuleScript"))
local totalammo = data.sparerounds + data.magsize
if not cache[gun] then
cache[gun] = data
end
if dropped then
local l = nil
local text = string.format("[ %s ]\n", gun)
if showammo then
text ..= string.format("[ %s/%s ]", ammo, totalammo)
end
if duration then
local timer = os.clock()
task.spawn(function()
repeat task.wait(0.1) until l ~= nil
repeat
local elapsed = os.clock() - timer
if elapsed <= 10 then
l:SetProp("Color", green)
elseif elapsed <= 15 then
l:SetProp("Color", yellow)
elseif elapsed <= 20 then
l:SetProp("Color", orange)
elseif elapsed >= 25 then
l:SetProp("Color", red)
end
task.wait(1)
until v == nil
end)
end
l = label(v, text)
end
if droppedchams then
cham(v)
end
elseif v.Name == "DogTag" and (tags or tagschams) then
local color = v:WaitForChild("TeamColor", 1).Value.Color
if not color then return end
if tags then
label(v.Tag, "[ Tag ]", color)
end
if tagschams then
cham(v.Tag, color)
end
elseif v.Name == "FlagDrop" and flags then
local color = v:WaitForChild("TeamColor", 1).Value.Color
if not color then return end
label(v, "[ Dropped Flag ]", color)
end
end)
newconn(misc.ChildAdded, function(v)
local grenades = settings.Weapons.Grenades
local flags = settings.Misc.Flags
local checkradius = settings.Weapons.CheckGrenadeRadius
if v.Name == "Trigger" and grenades then
v.Name ..= math.random(0, 999)
local meshid = v.MeshId
local radius = cache[meshid] or nil
if not cache[meshid] then
for _,v2 in next, db:GetDescendants() do
if v2:IsA("MeshPart") and meshid == v2.MeshId then
radius = require(v2.Parent.Parent:FindFirstChildOfClass("ModuleScript")).blastradius
cache[meshid] = radius
end
end
if not radius then
for _,v2 in next, tdb:GetDescendants() do
if v2:IsA("MeshPart") and meshid == v2.MeshId then
radius = require(v2.Parent.Parent:FindFirstChildOfClass("ModuleScript")).blastradius
cache[meshid] = radius
end
end
end
end
local l = label(v, "[ Grenade ]", green)
local c = cham(v, green)
if checkradius then
task.spawn(function()
repeat
local mag = (camera.CFrame.Position - v.Position).Magnitude
if mag <= radius then
l:SetProp("Color", red)
l:SetProp("Text", "[ Grenade ]\n[!]")
c:SetProp("Color", red)
else
l:SetProp("Color", green)
l:SetProp("Text", "[ Grenade ]")
c:SetProp("Color", green)
end
task.wait(0.1)
until v == nil
end)
end
elseif v.Name == "FlagCarry" and flags then
local color = v:WaitForChild("Base", 1):WaitForChild("PointLight", 1).Color
if not color then return end
label(v, "[ Flag Carry ]", color)
end
end)
elseif Game == "Bad Business" then
local throwables = workspace:WaitForChild("Throwables")
local items = game:GetService("ReplicatedStorage"):WaitForChild("Items")
local configs = items:WaitForChild("Base")
local equipment = configs:WaitForChild("Equipment")
local cache = {}
local settings = setmetatable({
Weapons = {
Grenades = false,
CheckGrenadeRadius = false,
},
Custom = {
LabelTransparency = 1,
ChamsTransparency = 1
}
}, {
__newindex = function(self)
gamesettings[Game] = self
end
})
gamesettings[Game] = settings
newconn(SettingsLoaded.Event, function(a)
local data = a[Game]
if data then
settings = a[Game]
end
end)
GamePage.Label({
Text = "━━ Weapons ━━",
Center = true,
Transparent = true
})
GamePage.Toggle({
Text = "Grenade Esp",
Callback = function(value)
settings.Weapons.Grenades = value
if value == false then
for _,v in next, equipment:GetChildren() do
Remove(v.Name, "Labels")
Remove(v.Name, "Chams")
end
end
end,
Enabled = settings.Weapons.Grenades
})
GamePage.Toggle({
Text = "Check Grenade Radius",
Callback = function(value)
settings.Weapons.CheckGrenadeRadius = value
end,
Enabled = settings.Weapons.CheckGrenadeRadius,
Menu = {
Info = function()
UI.Banner("When you're within a grenade's blast radius, the esp color will change to red.")
end
}
})
GamePage.Label({
Text = "━━ Customize ━━",
Center = true,
Transparent = true
})
GamePage.Slider({
Text = "Label Transparency",
Callback = function(value)
for _,v in next, equipment:GetChildren() do
SetProp(v.Name, "Labels", "Transparency", value)
end
settings.Custom.LabelTransparency = value
label.Transparency = value
end,
Min = 0,
Max = 1,
Def = settings.Custom.LabelTransparency,
Decimals = 2
})
GamePage.Slider({
Text = "Chams Transparency",
Callback = function(value)
for _,v in next, equipment:GetChildren() do
SetProp(v.Name, "Chams", "Transparency", value)
end
settings.Custom.ChamsTransparency = value
cham.Transparency = value
end,
Min = 0,
Max = 1,
Def = settings.Custom.ChamsTransparency,
Decimals = 2
})
newconn(throwables.ChildAdded, function(v)
local grenades = settings.Weapons.Grenades
local checkradius = settings.Weapons.CheckGrenadeRadius
local name = v.Name
local item = equipment:FindFirstChild(name)
if item and grenades then
v.Name ..= math.random(0, 999)
local radius = cache[name] or nil
if not cache[name] then
radius = require(item.Config).Damage.Radius
cache[name] = radius
end
local l = label(v, "[ Grenade ]", green)
local c = cham(v, green)
if checkradius then
task.spawn(function()
repeat
local mag = (camera.CFrame.Position - v:GetPivot().Position).Magnitude
if mag <= radius then
l:SetProp("Color", red)
l:SetProp("Text", "[ Grenade ]\n[!]")
c:SetProp("Color", red)
else
l:SetProp("Color", green)
l:SetProp("Text", "[ Grenade ]")
c:SetProp("Color", green)
end
task.wait(0.1)
until v == nil
end)
end
end
end)
elseif Game == "Rush Point" then
local weapons = workspace:WaitForChild("DroppedWeapons")
local mapfolder = workspace:WaitForChild("MapFolder")
local bombfolder = mapfolder:WaitForChild("Bomb", 1) if not bombfolder then bombfolder = game end
local raycastignore = workspace:WaitForChild("RaycastIgnore", 1)
local myname = players.LocalPlayer.Name
local settings = setmetatable({
Weapons = {
DroppedWeapons = false,
DroppedWeaponsChams = false,
DroppedWeaponsData = {
Ammo = false,
Skin = false,
Owner = false,
}
},
Misc = {
Abilities = false,
EnabledAbilities = {
Proto = true,
Zyla = true,
Kane = true,
Sentient = true
},
IgnoreTeamAbilities = false,
Bomb = false
},
Custom = {
LabelTransparency = 1,
ChamsTransparency = 1
}
}, {
__newindex = function(self)
gamesettings[Game] = self
end
})
gamesettings[Game] = settings
newconn(SettingsLoaded.Event, function(a)
local data = a[Game]
if data then
settings = a[Game]
end
end)
local function IsTeamAbility(v)
local myteam = players[myname]:WaitForChild("Team", 1) if not myteam then return "" end
local team = v:WaitForChild("Team", 1) if not team then return "" end
return myteam.Value == team.Value
end
local function GetTeamColor(v)
local owner = v:WaitForChild("Owner", 1) if not owner then return white end
local character = mapfolder.Players:FindFirstChild(owner.Value.Name) if not character then return white end
local outline = character:FindFirstChild("OutlineESP") if not outline then return white end
return outline.OutlineColor
end
GamePage.Label({
Text = "━━ Weapons ━━",
Center = true,
Transparent = true
})
GamePage.Toggle({
Text = "Dropped Weapon Esp (Labels)",
Callback = function(value)
settings.Weapons.DroppedWeapons = value
end,
Enabled = settings.Weapons.DroppedWeapons
})
GamePage.Toggle({
Text = "Dropped Weapon Esp (Chams)",
Callback = function(value)
settings.Weapons.DroppedWeaponsChams = value
end,
Enabled = settings.Weapons.DroppedWeaponsChams
})
GamePage.ChipSet({
Text = "Dropped Weapon Esp Data",
Callback = function(value)
settings.Weapons.DroppedWeaponsData = value
end,
Options = settings.Weapons.DroppedWeaponsData
})
GamePage.Label({
Text = "━━ Misc ━━",
Center = true,
Transparent = true
})
GamePage.Toggle({