-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPrisonX.lua
More file actions
3670 lines (3094 loc) · 96.7 KB
/
PrisonX.lua
File metadata and controls
3670 lines (3094 loc) · 96.7 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
-- PrisonX v1.25 by TS2021
-- OPEN-SOURCE (so you can edit this script and add stuff, rather than starting from scratch)
-- Discontinued
--[[
Features: All implemented in a UI as well!
Gun Obtainer (-gun (GUN NAME))
TP to Locations (-lc (LOCATION))
Kill Feed (-killfeed / -unkillfeed)
Trespassing/Hostile Player Detector (-htdetect / -unhtdetect)
Anti Arrest (-antiar / -unantiar)
Anti Tase (-antitase / -unantitase)
Kill Aura (-killaura / -unkillaura)
Kill Aura Radius (-karadius (NUMBER))
Kill Aura Team Check + Options
Kill Aura Whitelist (-kawl / -unkawl)
Kill Aura Visibility (-kasphere / -unkasphere)
Arrest Aura (-araura/-unaraura)
Arrest Aura Radius (-aaradius)
Arrest Aura Team Check + Options
Arrest Aura Whitelist (-aawl / -unaawl)
Auto Respawn (spawn in the same place upon death) (-autore / -unautore)
Quick Respawn (does a neat trick to spawn you faster for inmates/guards when possible, part of auto respawn)
Fast Guns (you can also change the rate, default is 0) (-fastguns / -unfastguns / -firerate)
Auto guns (automatically pick up all guns you can when you respawn) (-autoguns / -unautoguns)
Remove doors (-nodoors) / Add doors (-adddoors) - CLIENT-SIDE!
Destroy doors (-ddoors) - CLIENT-SIDE!
Spam open doors (must be a guard/have a keycard) (-sodoors / -unsodoors) - Patched
Toilet Breaker (must have hammer) (-btoilets)
Auto Toilet Breaker (-abtoilets / -unabtoilets)
Remove jump cooldown (anti-jump removal) (-rjc)
Auto anti-jump removal (-aajr/-unajr)
Unkillable Fence (if you step on top of it, you won't die) (-nkfence)
Hide/Show Trees (-htrees / -strees)
Remove Team Indicators
Destroy Prison Fences (-dfences) - CLIENT-SIDE!
Destroy Prison Gates (-dgates) - CLIENT-SIDE!
ESP (distance from you + health + team colour) (+ teams allowed) (-esp/-unesp)
Aimbot/Aimlock (+ teams allowed + torso/head targetting + guns allowed)
Noclip / Snack Noclip
FOV Changer
Spin
Infinite Jump
Auto Sprint / Speed Changer
Auto Keycard
Credits to github.com/tomatotxt for some stuff
Credits to github.com/NewMatheusDC for some of the GUI
]]
--[[
MISSING FEATURES:
-> More Silent Aim/Aimlock Features
(use https://scriptblox.com/script/Prison-Life-Silent-Aim-And-ESP-With-UI-SRC-78055)
-> Invisibility
(use https://scriptblox.com/script/Prison-Life-Keyless-72569 or https://scriptblox.com/script/MP5-Prison-Life-PLH-75263 or https://scriptblox.com/script/Prison-Life-Best-PL-Script-UNDETECTED-SILENT-AIM-INSTANT-KILL-AND-MORE-72300)
-> C4 ESP [coming not very soon]
(use https://scriptblox.com/script/Prison-Life-Silent-Aim-And-ESP-With-UI-SRC-78055)
]]
-- Infinite yield for speed, jump power
loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))()
if getgenv().plx_executed then
warn("PrisonX is already executed.")
return
end
getgenv().plx_executed = true
local prefix = "-"
-- Settings
local settings = {
-- When a player dies, it tells you
killfeed = true,
-- Respawn in the same place upon arrest, and make you a criminal if you were one
antiarrest = false,
-- Remove tased effects
antitase = true,
-- Respawn in your previous position if you die (sucks because of tp update)
autorespawn = false,
-- Auto guns
autoguns = false,
autoguns_list = {},
-- Auto-Mod all guns to shoot really fast (fg = fast gun)
auto_fg = false,
auto_fgrate = 0, -- if you want to make it slower...
-- Remove doors (CAUSES 1 SEC OF LAG WHENEVER YOU RESPAWN)
nodoors = false,
-- Transparent doors
tdoors = false,
-- Spam open doors (must be guard / have a keycard)
-- sodoors = false,
-- Kill aura
killaura = false,
killaura_radius = 10,
killaura_sphere = false, -- visual sphere
katc = false, -- team check
katype = "All", -- target types
katype_allowed = {}, -- table for allowed teams
-- Arrest aura
arrestaura = false,
arrestaura_radius = 15,
aatc = false, -- arrest aura team check
aatype = "Both", -- what players it can arrest
-- Stop tases from disabling the reset button
enablere = true,
-- Auto anti-jump removal
aajr = true,
-- Auto break toilets when you have a hammer
abtoilets = false,
-- Auto keycard
akeycard = true,
-- Trespassing/Hostile Inmate detector
htdetect = true,
-- Old gun sounds (neat ig)
oldsounds = true,
oldsoundsmeonly = false, -- if you want it to just be you
-- Hide trees
htrees = false,
-- Auto sprint
autosprint = false,
-- Speed changer
speedc = false,
-- Speed changer value
sval = 25,
-- Infinite jump
ijump = false,
-- Noclip
noclip = false,
-- Temp Noclip ONLY when jumping with the Snack item equipped
ncglitch = false,
-- Keep PrisonX after serverhop/rejoin
KeepPX = true
}
getgenv().espsettings = false -- ESP toggle
getgenv().aimlock = false -- Aimlock toggle
-- arrest aura wl
aa_wl = {"ScriptingProgrammer", "kohlslitedev"}
-- kill aura wl
ka_wl = {"ScriptingProgrammer", "kohlslitedev"}
-- Notifications
local StarterGui = game:GetService("StarterGui")
local function Notify(text, time)
pcall(function()
StarterGui:SetCore("SendNotification", {
Title = "PrisonX";
Text = text;
Duration = time or 2;
})
end)
end
local version = "v1.25"
-- GUI Setup
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
local Window = Rayfield:CreateWindow({
Name = "PrisonX",
Icon = nil,
LoadingTitle = "PrisonX v1.25",
LoadingSubtitle = "Created by TS2021",
ConfigurationSaving = {
Enabled = false,
},
Discord = {
Enabled = false,
},
KeySystem = false,
})
-- Tabs
local MainTab = Window:CreateTab("Main Features", nil)
local CombatTab = Window:CreateTab("Combat", nil)
local TeleportTab = Window:CreateTab("Teleport", nil)
local AutoTab = Window:CreateTab("Automation", nil)
local ProtectTab = Window:CreateTab("Protection", nil)
local PlayerTab = Window:CreateTab("Player", nil)
local ESPTab = Window:CreateTab("ESP", nil)
local AimbotTab = Window:CreateTab("Aimlock", nil)
local LCTab = Window:CreateTab("Lists + Checks", nil)
local OtherTab = Window:CreateTab("Other", nil)
-- Variables
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local hbeat = RunService.Heartbeat
local rstepped = RunService.RenderStepped
local stepped = RunService.Stepped
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Killfeed = ReplicatedStorage:WaitForChild("Killfeed")
local CharacterCollision = ReplicatedStorage.Scripts:FindFirstChild("CharacterCollision")
local PlayerGui = LocalPlayer.PlayerGui
local HomeGUI = PlayerGui:WaitForChild("Home")
local Camera = workspace.Camera
local Teams = game:GetService("Teams")
--local TeamEvent = ReplicatedStorage.Remotes:WaitForChild("RequestTeamChange")
--local meleeEvent = ReplicatedStorage.meleeEvent
local TeamList = {"Criminals", "Inmates", "Guards"}
-- Pass checks
function checkRIOT()
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(LocalPlayer.UserId, 643697197) then
return true, "NEW"
end
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(LocalPlayer.UserId, 96651) then
return true, "LEGACY"
end
return false, "N/A"
end
function checkMAFIA()
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(LocalPlayer.UserId, 1443271) then
return true
end
return false
end
function checkSniper()
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(LocalPlayer.UserId, 699360089) then
return true
end
return false
end
riot_pass, type = checkRIOT()
mafia_pass = checkMAFIA()
sniper_pass = checkSniper()
-- Teleport Locations
local Teleports = {
neutral_spawn = {
name = "Neutral Spawn",
cframe = CFrame.new(879.2, 36.09, 2349.8)
},
cell_block = {
name = "(P) Cell Block",
cframe = CFrame.new(918.9735107421875, 99.98998260498047, 2451.423583984375)
},
nexus = {
name = "(P) Nexus",
cframe = CFrame.new(877.929688, 99.9899826, 2373.57031, 0.989495575, 1.64841456e-08, 0.144563332, -3.13438235e-08, 1, 1.00512544e-07, -0.144563332, -1.0398788e-07, 0.989495575)
},
armory = {
name = "(P) Armory",
cframe = CFrame.new(836.130432, 99.9899826, 2284.55908, 0.999849498, 5.64007507e-08, -0.0173475463, -5.636889e-08, 1, 2.3254485e-09, 0.0173475463, -1.34723666e-09, 0.999849498)
},
yard = {
name = "(P) Yard",
cframe = CFrame.new(787.560425, 97.9999237, 2468.32056, -0.999741256, -7.32754017e-08, -0.0227459427, -7.49895506e-08, 1, 7.45077955e-08, 0.0227459427, 7.6194226e-08, -0.999741256)
},
criminal_base = {
name = "Criminal Base / Warehouse",
cframe = CFrame.new(-864.760071, 94.4760284, 2085.87671, 0.999284029, 1.78674284e-08, 0.0378339142, -1.85715123e-08, 1, 1.82584365e-08, -0.0378339142, -1.89479969e-08, 0.999284029)
},
cafeteria = {
name = "(P) Cafeteria",
cframe = CFrame.new(884.492798, 99.9899368, 2293.54907, -0.0628612712, -2.14097344e-08, -0.998022258, -9.52544568e-08, 1, -1.54524784e-08, 0.998022258, 9.40947018e-08, -0.0628612712)
},
kitchen = {
name = "(P) Kitchen",
cframe = CFrame.new(936.633118, 99.9899368, 2224.77148, -0.00265917974, -9.30829671e-08, 0.999996483, -3.28682326e-08, 1, 9.29958901e-08, -0.999996483, -3.26208252e-08, -0.00265917974)
},
prison_roof = {
name = "(P) Roof",
cframe = CFrame.new(918.694092, 139.709427, 2266.60986, -0.998788536, -7.55880691e-08, -0.0492084064, -7.8453354e-08, 1, 5.62961198e-08, 0.0492084064, 6.00884817e-08, -0.998788536)
},
vents = {
name = "(P) Vents",
cframe = CFrame.new(933.55376574342, 121.534234671875, 2232.7952174975)
},
secret_room = {
name = "(P) Secret Room / Office",
cframe = CFrame.new(706.1928465, 103.14982749, 2344.3957382525)
},
yard_tower = {
name = "(P) Yard Tower",
cframe = CFrame.new(786.731873, 125.039917, 2587.79834, -0.0578307845, 8.82393678e-08, 0.998326421, 6.09781523e-08, 1, -8.48549675e-08, -0.998326421, 5.59688687e-08, -0.0578307845)
},
prison_wall = {
name = "(P) Left Front Wall",
cframe = CFrame.new(505.551605, 125.039917, 2127.41138, -0.99910152, 5.44945458e-08, 0.0423811078, 5.36830491e-08, 1, -2.02856469e-08, -0.0423811078, -1.79922726e-08, -0.99910152)
},
garage = {
name = "(P) Garage",
cframe = CFrame.new(618.705566, 98.039917, 2469.14136, 0.997341573, 1.85835844e-08, -0.0728682056, -1.79448154e-08, 1, 9.42077172e-09, 0.0728682056, -8.0881204e-09, 0.997341573)
},
sewers = {
name = "(P) Sewers",
cframe = CFrame.new(917.123657, 78.6990509, 2297.05298, -0.999281704, -9.98203404e-08, -0.0378962979, -1.01324503e-07, 1, 3.77708638e-08, 0.0378962979, 4.15835579e-08, -0.999281704)
},
neighborhood = {
name = "Neighbourhood",
cframe = CFrame.new(-281.254669, 54.1751289, 2484.75513, 0.0408788249, 3.26279768e-08, 0.999164104, -3.88249717e-08, 1, -3.10668256e-08, -0.999164104, -3.75225433e-08, 0.0408788249)
},
gas_station = {
name = "Gas Station",
cframe = CFrame.new(-497.284821, 54.3937759, 1686.3175, 0.585129559, -4.33374865e-08, -0.810939848, 5.33533938e-13, 1, -5.34406759e-08, 0.810939848, 3.12692876e-08, 0.585129559)
},
roadend_by_warehouse = {
name = "Roadend by Warehouse",
cframe = CFrame.new(-979.852478, 54.1750259, 1382.78967, 0.0152699631, 8.88235174e-09, 0.999883413, 6.75286884e-08, 1, -9.9146682e-09, -0.999883413, 6.76722109e-08, 0.0152699631)
},
lakeside_grocer = {
name = "Lakeside Grocer / Armory+",
cframe =CFrame.new(455.089508, 11.4253607, 1222.89746, 0.99995482, -3.92535604e-09, 0.00950394664, 2.84450263e-09, 1, 1.1374032e-07, -0.00950394664, -1.13708147e-07, 0.99995482)
},
roadend_by_prison = {
name = "Roadend by Prison",
cframe = CFrame.new(1060.81995, 67.5668106, 1847.08923, 0.0752086118, -1.01192255e-08, -0.997167826, 4.30985886e-10, 1, -1.01154605e-08, 0.997167826, 3.31004502e-10, 0.0752086118)
},
big_building_trap = {
name = "Inside Big Building (Trap)",
cframe = CFrame.new(-306.715485, 84.2401199, 1984.13367, -0.802221119, 5.70582088e-08, -0.597027004, 4.81801123e-08, 1, 3.08312771e-08, 0.597027004, -4.0313255e-09, -0.802221119)
},
trapped_in_shops = {
name = "Inside Top of Shops (Trap)",
cframe = CFrame.new(-315.790436, 64.5724411, 1840.83521, 0.80697298, -4.47871713e-08, 0.590588331, 1.14004006e-08, 1, 6.02574701e-08, -0.590588331, -4.18932053e-08, 0.80697298)
},
warehouse_trap = {
name = "Inside Other Warehouse (Trap)",
cframe = CFrame.new(-943.973145, 94.1287613, 1919.73694, 0.025614135, -1.48015129e-08, 0.999671876, 1.00375175e-07, 1, 1.22345032e-08, -0.999671876, 1.00028863e-07, 0.025614135)
},
big_building_roof = {
name = "Top of Big Building",
cframe = CFrame.new(-317.689331, 118.838821, 2009.28186, 0.749499857, 2.48145682e-09, 0.662004471, 3.51757373e-10, 1, -4.14664703e-09, -0.662004471, 3.34077632e-09, 0.749499857)
}
}
local TeleportAliases = {
["neutral spawn"] = "neutral_spawn",
["spawn"] = "neutral_spawn",
["nspawn"] = "neutral_spawn",
["cell block"] = "cell_block",
["cells"] = "cell_block",
["nexus"] = "nexus",
["armory"] = "armory",
["armoury"] = "armory",
["yard"] = "yard",
["courtyard"] = "yard",
["cbase"] = "criminal_base",
["crimbase"] = "criminal_base",
["crim base"] = "criminal_base",
["crim spawn"] = "criminal_base",
["criminal base"] = "criminal_base",
["warehouse"] = "criminal_base",
["cafe"] = "cafeteria",
["cafeteria"] = "cafeteria",
["canteen"] = "cafeteria",
["kitchen"] = "kitchen",
["prison roof"] = "prison_roof",
["proof"] = "prison_roof",
["roof"] = "prison_roof",
["vent"] = "vents",
["vents"] = "vents",
["secret room"] = "secret_room",
["secret"] = "secret_room",
["glitch room"] = "secret_room",
["area 52"] = "secret_room",
["office"] = "secret_room",
["ytower"] = "yard_tower",
["yard tower"] = "yard_tower",
["tower"] = "yard_tower",
["prison wall"] = "prison_wall",
["prison front"] = "prison_wall",
["pwall"] = "prison_wall",
["wall"] = "prison_wall",
["pfront"] = "prison_wall",
["front"] = "prison_wall",
["garage"] = "garage",
["garage"] = "garages",
["sewer"] = "sewers",
["sewers"] = "sewers",
["housing"] = "neighborhood",
["houses"] = "neighborhood",
["homes"] = "neighborhood",
["neighborhood"] = "neighborhood",
["neighbourhood"] = "neighborhood",
["gas"] = "gas_station",
["petrol"] = "gas_station",
["gas station"] = "gas_station",
["petrol station"] = "gas_station",
["wroadend"] = "roadend_by_warehouse",
["wdeadend"] = "roadend_by_warehouse",
["deadend"] = "roadend_by_warehouse",
["armory+"] = "lakeside_grocer",
["armory plus"] = "lakeside_grocer",
["lakeside"] = "lakeside_grocer",
["lakeside grocer"] = "lakeside_grocer",
["grocer"] = "lakeside_grocer",
["proadend"] = "roadend_by_prison",
["pdeadend"] = "roadend_by_prison",
["roadend"] = "roadend_by_prison",
["bbt"] = "big_building_trap",
["bigtrap"] = "big_building_trap",
["buildtrap"] = "big_building_trap",
["bbtrap"] = "big_building_trap",
["shop trap"] = "trapped_in_shops",
["shops trap"] = "trapped_in_shops",
["shoptrap"] = "trapped_in_shops",
["shopstrap"] = "trapped_in_shops",
["warehouse trap"] = "warehouse_trap",
["wtrap"] = "warehouse_trap",
["whtrap"] = "warehouse_trap",
["bbroof"] = "big_building_roof",
["broof"] = "big_building_roof",
["bigroof"] = "big_building_roof",
}
local TeleportDisplayNames = {}
local DisplayToId = {}
for id, data in pairs(Teleports) do
table.insert(TeleportDisplayNames, data.name)
DisplayToId[data.name] = id
end
table.sort(TeleportDisplayNames)
-- Teleport to location
local function teleportTo(id)
local data = Teleports[id]
if not data then
warn("Teleport ID not found:", id)
return
end
local char = LocalPlayer.Character
local hrp = char and char:FindFirstChild("HumanoidRootPart")
if not hrp then return end
hrp.CFrame = data.cframe
Notify("Teleported to: " .. data.name)
end
local gunAliases = {
-- ["m9"] = "M9",
["ak-47"] = "AK-47",
["mp5"] = "MP5",
["ak"] = "AK-47",
["ak47"] = "AK-47",
["remington"] = "Remington 870",
["rem"] = "Remington 870",
["shotgun"] = "Remington 870",
["m4"] = "M4A1",
["m4a1"] = "M4A1",
["fal"] = "FAL"
}
local allGuns
-- Guns in the game
allGuns = {"AK-47", "Remington 870", "MP5"}
if riot_pass then
table.insert(allGuns, "M4A1")
end
if mafia_pass then
table.insert(allGuns, "FAL")
end
if sniper_pass then
table.insert(allGuns, "M700")
--table.insert(allGuns, "Revolver")
end
local allGuns2 = {}
for _, gun in ipairs(allGuns) do
table.insert(allGuns2, gun)
end
table.insert(allGuns2, "Taser")
table.insert(allGuns2, "M9")
table.insert(allGuns2, "Revolver")
local AlreadyFound = {}
local function FindGunSpawner(GunName)
if AlreadyFound[GunName] then
return AlreadyFound[GunName], true
end
for _, v in ipairs(workspace:GetDescendants()) do
if v.Name == "TouchGiver" then
-- get the "actual" giver
local ActualGiver = v:FindFirstChild("TouchGiver") or v
-- check attribute on v (normal guns)
if v:GetAttribute("ToolName") == GunName then
--print("A CHECK")
AlreadyFound[GunName] = ActualGiver
return ActualGiver, false
end
-- check attribute on parent (FAL case)
if v.Parent and v.Parent:GetAttribute("ToolName") == GunName then
--print("B CHECK")
AlreadyFound[GunName] = ActualGiver
return ActualGiver, false
end
end
end
warn("Can't find", GunName)
return nil, nil
end
local function GetTool(ToolName)
return LocalPlayer:FindFirstChild("Backpack") and LocalPlayer.Backpack:FindFirstChild(ToolName) or LocalPlayer.Character and LocalPlayer.Character:FindFirstChild(ToolName)
end
local function GetGun(GunName)
local Giver, Found = FindGunSpawner(GunName)
if not Giver then return end
if not Found then
local CloneGiver = Giver:Clone()
CloneGiver.Parent = Giver.Parent
Giver.Parent = workspace.Folder
Giver.CanCollide = false
Giver.Transparency = 1
end
local hrp = LocalPlayer.Character:WaitForChild("HumanoidRootPart")
hrp.CFrame = Giver.CFrame * CFrame.new(math.random(-2, 2),0,0)
repeat task.wait()
until GetTool(GunName)
end
-- Fix camera
local function fixcam()
HomeGUI.hud.Visible = true
-- HomeGUI.intro.Visible = false
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)
Camera.CameraType = Enum.CameraType.Custom
if LocalPlayer.Character then
Camera.CameraSubject = LocalPlayer.Character:WaitForChild("Humanoid")
end
end
-- Check if you already have the gun
local function hasGun(name)
local backpack = LocalPlayer:WaitForChild("Backpack")
local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
return backpack:FindFirstChild(name) or char:FindFirstChild(name)
end
local fugging = false
local function SwitchToCriminalAndReturn(dih, ocf)
fugging = true
local crimPad = workspace["Criminals Spawn"].SpawnLocation
local char = LocalPlayer.Character
if not char then return end
hrp = char:WaitForChild("HumanoidRootPart")
oldCFrame = nil
if dih == true then
oldCFrame = hrp.CFrame -- store original position
--print(oldCFrame)
else
oldCFrame = ocf
--print(oldCFrame)
end
-- teleport to crim spawn pad
hrp.CFrame = crimPad.CFrame
Notify("Teleported to Criminal Spawn...")
-- wait until team actually changes
repeat task.wait() until LocalPlayer.Team == Teams.Criminals
Notify("Now a Criminal!")
-- return to original position
hrp.CFrame = oldCFrame
Notify("Teleported back to original position.")
fugging = false
end
-- Grab All Guns
function GrabGuns(gunsToGrab)
local obtained = {}
for _, gun in ipairs(gunsToGrab) do
if not hasGun(gun) then
if GetGun(gun) then
table.insert(obtained, gun)
end
task.wait(0.35)
end
end
if #obtained == 0 then
Notify("All guns already in inventory!")
elseif #obtained == 1 then
Notify("Obtained " .. obtained[1])
else
Notify("Obtained all guns!")
end
end
function unequip()
LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
end
function equip(tool)
LocalPlayer.Character:FindFirstChild("Humanoid"):EquipTool(tool)
end
-- PLAYER CHECK
function PLAYERCHECK(plr, rt)
plr = plr:lower()
for _, v in pairs(game.Players:GetPlayers()) do
if string.sub(v.Name:lower(), 1, #plr) == plr or string.sub(v.DisplayName:lower(), 1, #plr) == plr then
Notify("Found "..v.Name)
if rt then
return v -- only return Player instance
else
return v, v.Name -- return both
end
end
end
return nil, nil
end
----------------------------------------------------------------------------------------
-- Hook __namecall
local namecall
if hookmetamethod then
namecall = hookmetamethod(game, "__namecall", function(self, ...)
local method = getnamecallmethod()
if method == "GetAttributes" then
local result = namecall(self, ...)
if settings.auto_fg then
result.AutoFire = true
result.FireRate = auto_fgrate
end
-- print(self, "modded")
return result
end
return namecall(self, ...)
end)
else
warn("Executor does not support hookmetamethod; gun mods unavailable.")
end
----------------------------------------------------------------------------------------
TeleportService = game:GetService("TeleportService")
PlaceId, JobId = game.PlaceId, game.JobId
-- rejoin server
function rj()
if #Players:GetPlayers() <= 1 then
LocalPlayer:Kick("\nRejoining...")
wait()
TeleportService:Teleport(PlaceId, Players.LocalPlayer)
else
TeleportService:TeleportToPlaceInstance(PlaceId, JobId, Players.LocalPlayer)
end
end
-- serverhop (iy)
function shop()
local servers = {}
local req = game:HttpGet("https://games.roblox.com/v1/games/" .. PlaceId .. "/servers/Public?sortOrder=Desc&limit=100&excludeFullGames=true")
local body = HttpService:JSONDecode(req)
if body and body.data then
for i, v in next, body.data do
if type(v) == "table" and tonumber(v.playing) and tonumber(v.maxPlayers) and v.playing < v.maxPlayers and v.id ~= JobId then
table.insert(servers, 1, v.id)
end
end
end
if #servers > 0 then
TeleportService:TeleportToPlaceInstance(PlaceId, servers[math.random(1, #servers)], Players.LocalPlayer)
else
Notify("No servers could be found.")
end
end
----------------------------------------------------------------------------------------
-- kill aura whitelist
function kill_aura_wl(lcplayer, lcplayerN)
if not lcplayer then
warn("No player selected")
return
end
local playerName = lcplayerN
local index = table.find(ka_wl, playerName)
if index then
table.remove(ka_wl, index)
print(playerName .. " unwhitelisted from kill aura.")
Notify(playerName .. " unwhitelisted from kill aura.")
else
table.insert(ka_wl, playerName)
print(playerName .. " whitelisted from kill aura.")
Notify(playerName .. " whitelisted from kill aura.")
end
end
-- arrest aura whitelist
function arrest_aura_wl(lcplayer, lcplayerN)
if not lcplayer then
warn("No player selected")
return
end
local playerName = lcplayerN
local index = table.find(aa_wl, playerName)
if index then
table.remove(aa_wl, index)
print(playerName .. " unwhitelisted from arrest aura.")
Notify(playerName .. " unwhitelisted from arrest aura.")
else
table.insert(aa_wl, playerName)
print(playerName .. " whitelisted from arrest aura.")
Notify(playerName .. " whitelisted from arrest aura.")
end
end
----------------------------------------------------------------------------------------
-- Kill aura (PATCHED)
katypes = {
"All",
"Criminals",
"Inmates",
"Guards",
"Criminals + Inmates",
"Criminals + Guards",
"Inmates + Guards",
"Other Teams"
}
local function UpdateKillableTeams(v)
-- print("UpdateKillableTeams called with:", v)
local lteam = LocalPlayer.Team.Name
settings.katype = v
local allowed = {}
if settings.katype == "All" then
allowed = {"Criminals", "Inmates", "Guards"}
elseif settings.katype == "Criminals" then
allowed = {"Criminals"}
elseif settings.katype == "Inmates" then
allowed = {"Inmates"}
elseif settings.katype == "Guards" then
allowed = {"Guards"}
elseif settings.katype == "Criminals + Inmates" then
allowed = {"Criminals", "Inmates"}
elseif settings.katype == "Criminals + Guards" then
allowed = {"Criminals", "Guards"}
elseif settings.katype == "Inmates + Guards" then
allowed = {"Inmates", "Guards"}
elseif settings.katype == "Other Teams" then
if lteam == "Inmates" then allowed = {"Criminals", "Guards"}
elseif lteam == "Criminals" then allowed = {"Inmates", "Guards"}
elseif lteam == "Guards" then allowed = {"Criminals", "Inmates"}
end
-- else
-- print("ERROR: Unknown katype!", settings.katype)
end
settings.katype_allowed = allowed
end
local function IsKillable(plr)
local char = plr.Character
-- Can't kill yourself
if plr == LocalPlayer then
return false
end
-- do not kill innocent inmates as a guard
if LocalPlayer.Team.Name == "Guards" and plr.Team.Name == "Inmates" then
if not char:GetAttribute("Hostile") then
return false
end
end
-- If team check is disabled, anyone else is killable
if not settings.katc then
-- print("Team check is disabled, killing")
return true
end
-- Target's team
local ttname = plr.Team.Name
-- print("Target team is".. ttname)
for _, teamName in ipairs(settings.katype_allowed) do
-- print("Finding " .. teamName)
if ttname == teamName then
-- print("Return it")
return true
end
end
end
settings.katype = settings.katype or "All"
UpdateKillableTeams(settings.katype)
-- Sphere visual
local sphere = Instance.new("Part")
sphere.Shape = Enum.PartType.Ball
sphere.Size = Vector3.new(settings.killaura_radius * 2, settings.killaura_radius * 2, settings.killaura_radius * 2)
sphere.Anchored = true
sphere.CanCollide = false
sphere.Material = Enum.Material.ForceField
sphere.Color = Color3.fromRGB(255, 0, 50)
sphere.Transparency = settings.killaura_sphere and 0.6 or 1
sphere.Parent = workspace
RunService.Heartbeat:Connect(function()
if not settings.killaura then
sphere.Transparency = 1
return
end
local char = LocalPlayer.Character
local hrp = char and char:FindFirstChild("HumanoidRootPart")
if not hrp then return end
-- Update sphere visuals
sphere.Size = Vector3.new(settings.killaura_radius * 2, settings.killaura_radius * 2, settings.killaura_radius * 2)
sphere.Transparency = settings.killaura_sphere and 0.6 or 1
sphere.Position = hrp.Position
-- Get targets in radius
local touching = workspace:GetPartBoundsInRadius(hrp.Position, settings.killaura_radius)
local hitList = {}
for _, part in ipairs(touching) do
local model = part.Parent
local hum = model and model:FindFirstChild("Humanoid")
if hum then
local targetPlayer = Players:GetPlayerFromCharacter(model)
if targetPlayer and targetPlayer ~= player and not hitList[targetPlayer] then
if table.find(ka_wl, targetPlayer.Name) then
--
else
if not IsKillable(targetPlayer) then
--
else
hitList[targetPlayer] = true
meleeEvent:FireServer(targetPlayer)
end
end
end
end
end
end)
----------------------------------------------------------------------------------------
-- Arrest Aura (PATCHED)
aatypes = {
"Criminals",
"Inmates",
"Both"
}
local function IsArrestable(plr)
local char = plr.Character
-- Can't arrest yourself
if plr == LocalPlayer then
return false
end
-- Must be a Guard to arrest
if LocalPlayer.Team.Name ~= "Guards" then
return false
end
-- Can't arrest other Guards
if plr.Team.Name == "Guards" then
return false
end
-- Can't arrest innocent Inmates
if plr.Team.Name == "Inmates" and not char:GetAttribute("Trespassing") then
return false
end