forked from retpirato/Roblox-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Aimbot For All Games.lua
2946 lines (2700 loc) · 95.7 KB
/
Aimbot For All Games.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
-- Issues:
-- I'm still working on Tracers, I know they can cause huge frame rate drops. (I think I got it running as smooth as it's going to get.)
-- Phantom Forces: Weird positioning bug with tracers? Tracer positions a bit behind localplayer. (Maybe make the update faster? > RenderPriority.First ?
-- Settings can be found on line: 51
-- Don't change anything if you don't understand.
local Plrs = game:GetService("Players")
local Run = game:GetService("RunService")
local CoreGui = game:GetService("CoreGui")
local StartGui = game:GetService("StarterGui")
local Teams = game:GetService("Teams")
local UserInput = game:GetService("UserInputService")
local Light = game:GetService("Lighting")
local HTTP = game:GetService("HttpService")
local RepStor = game:GetService("ReplicatedStorage")
function GetCamera() -- Just in case some game renames the player's camera.
return workspace:FindFirstChildOfClass("Camera")
end
local ChamsFolder = Instance.new("Folder", CoreGui)
ChamsFolder.Name = "Chams"
local PlayerChams = Instance.new("Folder", ChamsFolder)
PlayerChams.Name = "PlayerChams"
local ItemChams = Instance.new("Folder", ChamsFolder)
ItemChams.Name = "ItemChams"
local ESPFolder = Instance.new("Folder", CoreGui)
ESPFolder.Name = "ESP Stuff"
local PlayerESP = Instance.new("Folder", ESPFolder)
PlayerESP.Name = "PlayerESP"
local ItemESP = Instance.new("Folder", ESPFolder)
ItemESP.Name = "ItemESP"
local MyPlr = Plrs.LocalPlayer
local MyChar = MyPlr.Character
local MyMouse = MyPlr:GetMouse()
local MyCam = GetCamera()
if MyCam == nil then
error("WHAT KIND OF BLACK MAGIC IS THIS, CAMERA NOT FOUND.")
return
end
local Tracers = Instance.new("Folder", MyCam)
Tracers.Name = "Tracers"
local TracerData = { }
local TracerMT = setmetatable(TracerData, {
__newindex = function(tab, index, val)
rawset(tab, index, val)
end
})
function RemoveSpacesFromString(Str)
local newstr = ""
for i = 1, #Str do
if Str:sub(i, i) ~= " " then
newstr = newstr .. Str:sub(i, i)
end
end
return newstr
end
function CloneTable(T)
local temp = { }
for i,v in next, T do
if type(v) == "table" then
temp[i] = CloneTable(v)
else
temp[i] = v
end
end
return temp
end
local Bullshit = {
ESPEnabled = false, -- Self explanatory. LEAVE OFF BY DEFAULT.
CHAMSEnabled = false, -- Self explanatory. LEAVE OFF BY DEFAULT.
TracersEnabled = false, -- Self explanatory. LEAVE OFF BY DEFAULT.
DebugInfo = false, -- Self explanatory. LEAVE OFF BY DEFAULT.
OutlinesEnabled = false,
FullbrightEnabled = false,
CrosshairEnabled = false,
AimbotEnabled = false,
Aimbot = false,
TracersLength = 500, -- MAX DISTANCE IS 2048 DO NOT GO ABOVE OR YOU'LL ENCOUNTER PROBLEMS.
ESPLength = 10000,
CHAMSLength = 500,
PlaceTracersUnderCharacter = false, -- Change to true if you want tracers to be placed under your character instead of at the bottom of your camera.
FreeForAll = false, -- use for games that don't have teams (Apocalypse Rising)
AutoFire = false,
MobChams = false,
MobESP = false,
AimbotKey = "Enum.UserInputType.MouseButton2", -- Doesn't do anything yet.
Colors = {
Enemy = Color3.new(1, 0, 0),
Ally = Color3.new(0, 1, 0),
Friend = Color3.new(1, 1, 0),
Neutral = Color3.new(1, 1, 1),
Crosshair = Color3.new(1, 0, 0),
ColorOverride = nil, -- Every player will have the chosen color regardless of enemy or ally.
},
-- VVVV DON'T EDIT BELOW VVVV --
ClosestEnemy = nil,
CharAddedEvent = { },
OutlinedParts = { },
WorkspaceChildAddedEvent = nil,
LightingEvent = nil,
AmbientBackup = Light.Ambient,
ColorShiftBotBackup = Light.ColorShift_Bottom,
ColorShiftTopBackup = Light.ColorShift_Top,
FPSAverage = { },
Blacklist = { },
FriendList = { },
CameraModeBackup = MyPlr.CameraMode,
GameSpecificCrap = {
},
Mob_ESP_CHAMS_Ran_Once = false,
}
function SaveBullshitSettings()
local temp = { }
local succ, out = pcall(function()
temp.TracersLength = Bullshit.TracersLength
temp.ESPLength = Bullshit.ESPLength
temp.CHAMSLength = Bullshit.CHAMSLength
temp.PlaceTracersUnderCharacter = Bullshit.PlaceTracersUnderCharacter
temp.FreeForAll = Bullshit.FreeForAll
temp.AutoFire = Bullshit.AutoFire
temp.AimbotKey = tostring(Bullshit.AimbotKey)
temp.MobChams = Bullshit.MobChams
temp.MobESP = Bullshit.MobESP
temp.Colors = { }
for i, v in next, Bullshit.Colors do
temp.Colors[i] = tostring(v)
end
writefile("ProjectBullshit.txt", HTTP:JSONEncode(temp))
end)
if not succ then
error(out)
end
end
fuck = pcall(function()
local temp = HTTP:JSONDecode(readfile("ProjectBullshit.txt"))
if temp.MobChams ~= nil and temp.MobESP ~= nil then
for i, v in next, temp do
if i ~= "Colors" then
Bullshit[i] = v
end
end
for i, v in next, temp.Colors do
local r, g, b = string.match(RemoveSpacesFromString(v), "(%d+),(%d+),(%d+)")
r = tonumber(r)
g = tonumber(g)
b = tonumber(b)
temp.Colors[i] = Color3.new(r, g, b)
end
Bullshit.Colors = temp.Colors
else
spawn(function()
SaveBullshitSettings()
local hint = Instance.new("Hint", CoreGui)
hint.Text = "Major update requried your settings to be wiped! Sorry!"
wait(5)
hint:Destroy()
end)
end
Bullshit.AutoFire = false
end)
-- Load blacklist file if it exists
fuck2 = pcall(function()
Bullshit.Blacklist = HTTP:JSONDecode(readfile("Blacklist.txt"))
end)
fuck3 = pcall(function()
Bullshit.FriendList = HTTP:JSONDecode(readfile("Whitelist.txt"))
end)
local DebugMenu = { }
DebugMenu["SC"] = Instance.new("ScreenGui", CoreGui)
DebugMenu["SC"].Name = "Debug"
DebugMenu["Main"] = Instance.new("Frame", DebugMenu["SC"])
DebugMenu["Main"].Name = "Debug Menu"
DebugMenu["Main"].Position = UDim2.new(0, 20, 1, -220)
DebugMenu["Main"].Size = UDim2.new(1, 0, 0, 200)
DebugMenu["Main"].BackgroundTransparency = 1
DebugMenu["Main"].Visible = false
if game.PlaceId == 606849621 then
DebugMenu["Main"].Position = UDim2.new(0, 230, 1, -220)
end
DebugMenu["Main"].Draggable = true
DebugMenu["Main"].Active = true
DebugMenu["Position"] = Instance.new("TextLabel", DebugMenu["Main"])
DebugMenu["Position"].BackgroundTransparency = 1
DebugMenu["Position"].Position = UDim2.new(0, 0, 0, 0)
DebugMenu["Position"].Size = UDim2.new(1, 0, 0, 15)
DebugMenu["Position"].Font = "Arcade"
DebugMenu["Position"].Text = ""
DebugMenu["Position"].TextColor3 = Color3.new(1, 1, 1)
DebugMenu["Position"].TextSize = 15
DebugMenu["Position"].TextStrokeColor3 = Color3.new(0, 0, 0)
DebugMenu["Position"].TextStrokeTransparency = 0.3
DebugMenu["Position"].TextXAlignment = "Left"
DebugMenu["FPS"] = Instance.new("TextLabel", DebugMenu["Main"])
DebugMenu["FPS"].BackgroundTransparency = 1
DebugMenu["FPS"].Position = UDim2.new(0, 0, 0, 15)
DebugMenu["FPS"].Size = UDim2.new(1, 0, 0, 15)
DebugMenu["FPS"].Font = "Arcade"
DebugMenu["FPS"].Text = ""
DebugMenu["FPS"].TextColor3 = Color3.new(1, 1, 1)
DebugMenu["FPS"].TextSize = 15
DebugMenu["FPS"].TextStrokeColor3 = Color3.new(0, 0, 0)
DebugMenu["FPS"].TextStrokeTransparency = 0.3
DebugMenu["FPS"].TextXAlignment = "Left"
DebugMenu["PlayerSelected"] = Instance.new("TextLabel", DebugMenu["Main"])
DebugMenu["PlayerSelected"].BackgroundTransparency = 1
DebugMenu["PlayerSelected"].Position = UDim2.new(0, 0, 0, 35)
DebugMenu["PlayerSelected"].Size = UDim2.new(1, 0, 0, 15)
DebugMenu["PlayerSelected"].Font = "Arcade"
DebugMenu["PlayerSelected"].Text = ""
DebugMenu["PlayerSelected"].TextColor3 = Color3.new(1, 1, 1)
DebugMenu["PlayerSelected"].TextSize = 15
DebugMenu["PlayerSelected"].TextStrokeColor3 = Color3.new(0, 0, 0)
DebugMenu["PlayerSelected"].TextStrokeTransparency = 0.3
DebugMenu["PlayerSelected"].TextXAlignment = "Left"
DebugMenu["PlayerTeam"] = Instance.new("TextLabel", DebugMenu["Main"])
DebugMenu["PlayerTeam"].BackgroundTransparency = 1
DebugMenu["PlayerTeam"].Position = UDim2.new(0, 0, 0, 50)
DebugMenu["PlayerTeam"].Size = UDim2.new(1, 0, 0, 15)
DebugMenu["PlayerTeam"].Font = "Arcade"
DebugMenu["PlayerTeam"].Text = ""
DebugMenu["PlayerTeam"].TextColor3 = Color3.new(1, 1, 1)
DebugMenu["PlayerTeam"].TextSize = 15
DebugMenu["PlayerTeam"].TextStrokeColor3 = Color3.new(0, 0, 0)
DebugMenu["PlayerTeam"].TextStrokeTransparency = 0.3
DebugMenu["PlayerTeam"].TextXAlignment = "Left"
DebugMenu["PlayerHealth"] = Instance.new("TextLabel", DebugMenu["Main"])
DebugMenu["PlayerHealth"].BackgroundTransparency = 1
DebugMenu["PlayerHealth"].Position = UDim2.new(0, 0, 0, 65)
DebugMenu["PlayerHealth"].Size = UDim2.new(1, 0, 0, 15)
DebugMenu["PlayerHealth"].Font = "Arcade"
DebugMenu["PlayerHealth"].Text = ""
DebugMenu["PlayerHealth"].TextColor3 = Color3.new(1, 1, 1)
DebugMenu["PlayerHealth"].TextSize = 15
DebugMenu["PlayerHealth"].TextStrokeColor3 = Color3.new(0, 0, 0)
DebugMenu["PlayerHealth"].TextStrokeTransparency = 0.3
DebugMenu["PlayerHealth"].TextXAlignment = "Left"
DebugMenu["PlayerPosition"] = Instance.new("TextLabel", DebugMenu["Main"])
DebugMenu["PlayerPosition"].BackgroundTransparency = 1
DebugMenu["PlayerPosition"].Position = UDim2.new(0, 0, 0, 80)
DebugMenu["PlayerPosition"].Size = UDim2.new(1, 0, 0, 15)
DebugMenu["PlayerPosition"].Font = "Arcade"
DebugMenu["PlayerPosition"].Text = ""
DebugMenu["PlayerPosition"].TextColor3 = Color3.new(1, 1, 1)
DebugMenu["PlayerPosition"].TextSize = 15
DebugMenu["PlayerPosition"].TextStrokeColor3 = Color3.new(0, 0, 0)
DebugMenu["PlayerPosition"].TextStrokeTransparency = 0.3
DebugMenu["PlayerPosition"].TextXAlignment = "Left"
DebugMenu["BehindWall"] = Instance.new("TextLabel", DebugMenu["Main"])
DebugMenu["BehindWall"].BackgroundTransparency = 1
DebugMenu["BehindWall"].Position = UDim2.new(0, 0, 0, 95)
DebugMenu["BehindWall"].Size = UDim2.new(1, 0, 0, 15)
DebugMenu["BehindWall"].Font = "Arcade"
DebugMenu["BehindWall"].Text = ""
DebugMenu["BehindWall"].TextColor3 = Color3.new(1, 1, 1)
DebugMenu["BehindWall"].TextSize = 15
DebugMenu["BehindWall"].TextStrokeColor3 = Color3.new(0, 0, 0)
DebugMenu["BehindWall"].TextStrokeTransparency = 0.3
DebugMenu["BehindWall"].TextXAlignment = "Left"
local LastTick = tick()
local FPSTick = tick()
if #Teams:GetChildren() <= 0 then
Bullshit.FreeForAll = true
end
if Bullshit.TracersLength > 2048 then
Bullshit.TracersLength = 2048
end
if Bullshit.CHAMSLength > 2048 then
Bullshit.CHAMSLength = 2048
end
local wildrevolvertick = tick()
local wildrevolverteamdata = nil
function GetTeamColor(Plr)
if Plr == nil then return nil end
if not Plr:IsA("Player") then
return nil
end
local PickedColor = Bullshit.Colors.Enemy
if Plr ~= nil then
if game.PlaceId == 606849621 then
if Bullshit.Colors.ColorOverride == nil then
if not Bullshit.FreeForAll then
if MyPlr.Team ~= nil and Plr.Team ~= nil then
if Bullshit.FriendList[Plr.Name] == nil then
if MyPlr.Team.Name == "Prisoner" then
if Plr.Team == MyPlr.Team or Plr.Team.Name == "Criminal" then
PickedColor = Bullshit.Colors.Ally
else
PickedColor = Bullshit.Colors.Enemy
end
elseif MyPlr.Team.Name == "Criminal" then
if Plr.Team == MyPlr.Team or Plr.Team.Name == "Prisoner" then
PickedColor = Bullshit.Colors.Ally
else
PickedColor = Bullshit.Colors.Enemy
end
elseif MyPlr.Team.Name == "Police" then
if Plr.Team == MyPlr.Team then
PickedColor = Bullshit.Colors.Ally
else
if Plr.Team.Name == "Criminal" then
PickedColor = Bullshit.Colors.Enemy
elseif Plr.Team.Name == "Prisoner" then
PickedColor = Bullshit.Colors.Neutral
end
end
end
else
PickedColor = Bullshit.Colors.Friend
end
end
else
if Bullshit.FriendList[Plr.Name] ~= nil then
PickedColor = Bullshit.Colors.Friend
else
PickedColor = Bullshit.Colors.Enemy
end
end
else
PickedColor = Bullshit.Colors.ColorOverride
end
elseif game.PlaceId == 155615604 then
if Bullshit.Colors.ColorOverride == nil then
if MyPlr.Team ~= nil and Plr.Team ~= nil then
if Bullshit.FriendList[Plr.Name] == nil then
if MyPlr.Team.Name == "Inmates" then
if Plr.Team.Name == "Inmates" then
PickedColor = Bullshit.Colors.Ally
elseif Plr.Team.Name == "Guards" or Plr.Team.Name == "Criminals" then
PickedColor = Bullshit.Colors.Enemy
else
PickedColor = Bullshit.Colors.Neutral
end
elseif MyPlr.Team.Name == "Guards" then
if Plr.Team.Name == "Inmates" then
PickedColor = Bullshit.Colors.Neutral
elseif Plr.Team.Name == "Criminals" then
PickedColor = Bullshit.Colors.Enemy
elseif Plr.Team.Name == "Guards" then
PickColor = Bullshit.Colors.Ally
end
elseif MyPlr.Team.Name == "Criminals" then
if Plr.Team.Name == "Inmates" then
PickedColor = Bullshit.Colors.Ally
elseif Plr.Team.Name == "Guards" then
PickedColor = Bullshit.Colors.Enemy
else
PickedColor = Bullshit.Colors.Neutral
end
end
else
PickedColor = Bullshit.Colors.Friend
end
end
else
PickedColor = Bullshit.Colors.ColorOverride
end
elseif game.PlaceId == 746820961 then
if Bullshit.Colors.ColorOverride == nil then
if MyPlr:FindFirstChild("TeamC") and Plr:FindFirstChild("TeamC") then
if Plr.TeamC.Value == MyPlr.TeamC.Value then
PickedColor = Bullshit.Colors.Ally
else
PickedColor = Bullshit.Colors.Enemy
end
end
else
PickedColor = Bullshit.Colors.ColorOverride
end
elseif game.PlaceId == 1382113806 then
if Bullshit.Colors.ColorOverride == nil then
if MyPlr:FindFirstChild("role") and Plr:FindFirstChild("role") then
if MyPlr.role.Value == "assassin" then
if Plr.role.Value == "target" then
PickedColor = Bullshit.Colors.Enemy
elseif Plr.role.Value == "guard" then
PickedColor = Color3.new(1, 135 / 255, 0)
else
PickedColor = Bullshit.Colors.Neutral
end
elseif MyPlr.role.Value == "target" then
if Plr.role.Value == "guard" then
PickedColor = Bullshit.Colors.Ally
elseif Plr.role.Value == "assassin" then
PickedColor = Bullshit.Colors.Enemy
else
PickedColor = Bullshit.Colors.Neutral
end
elseif MyPlr.role.Value == "guard" then
if Plr.role.Value == "target" then
PickedColor = Bullshit.Colors.Friend
elseif Plr.role.Value == "guard" then
PickedColor = Bullshit.Colors.Ally
elseif Plr.role.Value == "assassin" then
PickedColor = Bullshit.Colors.Enemy
else
PickedColor = Bullshit.Colors.Neutral
end
else
if MyPlr.role.Value == "none" then
PickedColor = Bullshit.Colors.Neutral
end
end
end
else
PickedColor = Bullshit.Colors.ColorOverride
end
elseif game.PlaceId == 1072809192 then
if MyPlr:FindFirstChild("Backpack") and Plr:FindFirstChild("Backpack") then
if MyPlr.Backpack:FindFirstChild("Knife") or MyChar:FindFirstChild("Knife") then
if Plr.Backpack:FindFirstChild("Revolver") or Plr.Character:FindFirstChild("Revolver") then
PickedColor = Bullshit.Colors.Enemy
else
PickedColor = Color3.new(1, 135 / 255, 0)
end
elseif MyPlr.Backpack:FindFirstChild("Revolver") or MyChar:FindFirstChild("Revolver") then
if Plr.Backpack:FindFirstChild("Knife") or Plr.Character:FindFirstChild("Knife") then
PickedColor = Bullshit.Colors.Enemy
elseif Plr.Backpack:FindFirstChild("Revolver") or Plr.Character:FindFirstChild("Revolver") then
PickedColor = Bullshit.Colors.Enemy
else
PickedColor = Bullshit.Colors.Ally
end
else
if Plr.Backpack:FindFirstChild("Knife") or Plr.Character:FindFirstChild("Knife") then
PickedColor = Bullshit.Colors.Enemy
elseif Plr.Backpack:FindFirstChild("Revolver") or Plr.Character:FindFirstChild("Revolver") then
PickedColor = Bullshit.Colors.Ally
else
PickedColor = Bullshit.Colors.Neutral
end
end
end
elseif game.PlaceId == 142823291 or game.PlaceId == 1122507250 then
if MyPlr:FindFirstChild("Backpack") and Plr:FindFirstChild("Backpack") then
if MyPlr.Backpack:FindFirstChild("Knife") or MyChar:FindFirstChild("Knife") then
if (Plr.Backpack:FindFirstChild("Gun") or Plr.Backpack:FindFirstChild("Revolver")) or (Plr.Character:FindFirstChild("Gun") or Plr.Character:FindFirstChild("Revolver")) then
PickedColor = Bullshit.Colors.Enemy
else
PickedColor = Color3.new(1, 135 / 255, 0)
end
elseif (MyPlr.Backpack:FindFirstChild("Gun") or MyPlr.Backpack:FindFirstChild("Revolver")) or (MyChar:FindFirstChild("Gun") or MyChar:FindFirstChild("Revolver")) then
if Plr.Backpack:FindFirstChild("Knife") or Plr.Character:FindFirstChild("Knife") then
PickedColor = Bullshit.Colors.Enemy
else
PickedColor = Bullshit.Colors.Ally
end
else
if Plr.Backpack:FindFirstChild("Knife") or Plr.Character:FindFirstChild("Knife") then
PickedColor = Bullshit.Colors.Enemy
elseif (Plr.Backpack:FindFirstChild("Gun") or Plr.Backpack:FindFirstChild("Revolver")) or (Plr.Character:FindFirstChild("Gun") or Plr.Character:FindFirstChild("Revolver")) then
PickedColor = Bullshit.Colors.Ally
else
PickedColor = Bullshit.Colors.Neutral
end
end
end
elseif game.PlaceId == 379614936 then
if Bullshit.Colors.ColorOverride == nil then
if not Bullshit.FriendList[Plr.Name] then
local targ = MyPlr:FindFirstChild("PlayerGui"):FindFirstChild("ScreenGui"):FindFirstChild("UI"):FindFirstChild("Target"):FindFirstChild("Img"):FindFirstChild("PlayerText")
if targ then
if Plr.Name:lower() == targ.Text:lower() then
PickedColor = Bullshit.Colors.Enemy
else
PickedColor = Bullshit.Colors.Neutral
end
else
PickedColor = Bullshit.Colors.Neutral
end
else
PickedColor = Bullshit.Colors.Friend
end
else
PickedColor = Bullshit.Colors.ColorOverride
end
elseif game.PlaceId == 983224898 then
if (tick() - wildrevolvertick) > 10 or wildrevolverteamdata == nil then
wildrevolverteamdata = RepStor.Functions.RequestGameData:InvokeServer()
wildrevolvertick = tick()
return Bullshit.Colors.Neutral
end
local succ = pcall(function()
if wildrevolverteamdata[Plr.Name] ~= nil then
if Bullshit.Colors.ColorOverride == nil then
if not Bullshit.FriendList[Plr.Name] then
if wildrevolverteamdata[Plr.Name]["TeamName"] == wildrevolverteamdata[MyPlr.Name]["TeamName"] then
PickedColor = Bullshit.Colors.Ally
else
PickedColor = Bullshit.Colors.Enemy
end
else
PickedColor = Bullshit.Colors.Friend
end
else
PickedColor = Bullshit.Colors.ColorOverride
end
else
PickedColor = Bullshit.Colors.Neutral
end
end)
if not succ then
wildrevolverteamdata = RepStor.Functions.RequestGameData:InvokeServer()
wildrevolvertick = tick()
return Bullshit.Colors.Neutral
end
else
if Bullshit.Colors.ColorOverride == nil then
if not Bullshit.FreeForAll then
if MyPlr.Team ~= Plr.Team and not Bullshit.FriendList[Plr.Name] then
PickedColor = Bullshit.Colors.Enemy
elseif MyPlr.Team == Plr.Team and not Bullshit.FriendList[Plr.Name] then
PickedColor = Bullshit.Colors.Ally
else
PickedColor = Bullshit.Colors.Friend
end
else
if Bullshit.FriendList[Plr.Name] ~= nil then
PickedColor = Bullshit.Colors.Friend
else
PickedColor = Bullshit.Colors.Enemy
end
end
else
PickedColor = Bullshit.Colors.ColorOverride
end
end
end
return PickedColor
end
function FindCham(Obj)
for i, v in next, ItemChams:GetChildren() do
if v.className == "ObjectValue" then
if v.Value == Obj then
return v.Parent
end
end
end
return nil
end
function FindESP(Obj)
for i, v in next, ItemESP:GetChildren() do
if v.className == "ObjectValue" then
if v.Value == Obj then
return v.Parent
end
end
end
return nil
end
function GetFirstPart(Obj)
for i, v in next, Obj:GetDescendants() do
if v:IsA("BasePart") then
return v
end
end
return nil
end
function GetSizeOfObject(Obj)
if Obj:IsA("BasePart") then
return Obj.Size
elseif Obj:IsA("Model") then
return Obj:GetExtentsSize()
end
end
function GetClosestPlayerNotBehindWall()
local Players = { }
local CurrentClosePlayer = nil
local SelectedPlr = nil
for _, v in next, Plrs:GetPlayers() do
if v ~= MyPlr and not Bullshit.Blacklist[v.Name] then
local IsAlly = GetTeamColor(v)
if IsAlly ~= Bullshit.Colors.Ally and IsAlly ~= Bullshit.Colors.Friend and IsAlly ~= Bullshit.Colors.Neutral then
local GetChar = v.Character
if MyChar and GetChar then
local MyHead, MyTor = MyChar:FindFirstChild("Head"), MyChar:FindFirstChild("HumanoidRootPart")
local GetHead, GetTor, GetHum = GetChar:FindFirstChild("Head"), GetChar:FindFirstChild("HumanoidRootPart"), GetChar:FindFirstChild("Humanoid")
if MyHead and MyTor and GetHead and GetTor and GetHum then
if game.PlaceId == 455366377 then
if not GetChar:FindFirstChild("KO") and GetHum.Health > 1 then
local Ray = Ray.new(MyCam.CFrame.p, (GetHead.Position - MyCam.CFrame.p).unit * 2048)
local part = workspace:FindPartOnRayWithIgnoreList(Ray, {MyChar})
if part ~= nil then
if part:IsDescendantOf(GetChar) then
local Dist = (MyTor.Position - GetTor.Position).magnitude
Players[v] = Dist
end
end
end
elseif game.PlaceId == 746820961 then
if GetHum.Health > 1 then
local Ray = Ray.new(MyCam.CFrame.p, (GetHead.Position - MyCam.CFrame.p).unit * 2048)
local part = workspace:FindPartOnRayWithIgnoreList(Ray, {MyChar, MyCam})
if part ~= nil then
if part:IsDescendantOf(GetChar) then
local Dist = (MyTor.Position - GetTor.Position).magnitude
Players[v] = Dist
end
end
end
else
if GetHum.Health > 1 then
local Ray = Ray.new(MyCam.CFrame.p, (GetHead.Position - MyCam.CFrame.p).unit * 2048)
local part = workspace:FindPartOnRayWithIgnoreList(Ray, {MyChar})
if part ~= nil then
if part:IsDescendantOf(GetChar) then
local Dist = (MyTor.Position - GetTor.Position).magnitude
Players[v] = Dist
end
end
end
end
end
end
end
end
end
for i, v in next, Players do
if CurrentClosePlayer ~= nil then
if v <= CurrentClosePlayer then
CurrentClosePlayer = v
SelectedPlr = i
end
else
CurrentClosePlayer = v
SelectedPlr = i
end
end
return SelectedPlr
end
function GetClosestPlayer()
local Players = { }
local CurrentClosePlayer = nil
local SelectedPlr = nil
for _, v in next, Plrs:GetPlayers() do
if v ~= MyPlr then
local IsAlly = GetTeamColor(v)
if IsAlly ~= Bullshit.Colors.Ally and IsAlly ~= Bullshit.Colors.Friend and IsAlly ~= Bullshit.Colors.Neutral then
local GetChar = v.Character
if MyChar and GetChar then
local MyTor = MyChar:FindFirstChild("HumanoidRootPart")
local GetTor = GetChar:FindFirstChild("HumanoidRootPart")
local GetHum = GetChar:FindFirstChild("Humanoid")
if MyTor and GetTor and GetHum then
if game.PlaceId == 455366377 then
if not GetChar:FindFirstChild("KO") and GetHum.Health > 1 then
local Dist = (MyTor.Position - GetTor.Position).magnitude
Players[v] = Dist
end
else
if GetHum.Health > 1 then
local Dist = (MyTor.Position - GetTor.Position).magnitude
Players[v] = Dist
end
end
end
end
end
end
end
for i, v in next, Players do
if CurrentClosePlayer ~= nil then
if v <= CurrentClosePlayer then
CurrentClosePlayer = v
SelectedPlr = i
end
else
CurrentClosePlayer = v
SelectedPlr = i
end
end
return SelectedPlr
end
function FindPlayer(Txt)
local ps = { }
for _, v in next, Plrs:GetPlayers() do
if string.lower(string.sub(v.Name, 1, string.len(Txt))) == string.lower(Txt) then
table.insert(ps, v)
end
end
if #ps == 1 then
if ps[1] ~= MyPlr then
return ps[1]
else
return nil
end
else
return nil
end
end
function UpdateESP(Plr)
if Plr ~= nil then
local Find = PlayerESP:FindFirstChild("ESP Crap_" .. Plr.Name)
if Find then
local PickColor = GetTeamColor(Plr)
Find.Frame.Names.TextColor3 = PickColor
Find.Frame.Dist.TextColor3 = PickColor
Find.Frame.Health.TextColor3 = PickColor
--Find.Frame.Pos.TextColor3 = PickColor
local GetChar = Plr.Character
if MyChar and GetChar then
local Find2 = MyChar:FindFirstChild("HumanoidRootPart")
local Find3 = GetChar:FindFirstChild("HumanoidRootPart")
local Find4 = GetChar:FindFirstChildOfClass("Humanoid")
if Find2 and Find3 then
local pos = Find3.Position
local Dist = (Find2.Position - pos).magnitude
if Dist > Bullshit.ESPLength or Bullshit.Blacklist[Plr.Name] then
Find.Frame.Names.Visible = false
Find.Frame.Dist.Visible = false
Find.Frame.Health.Visible = false
return
else
Find.Frame.Names.Visible = true
Find.Frame.Dist.Visible = true
Find.Frame.Health.Visible = true
end
Find.Frame.Dist.Text = "Distance: " .. string.format("%.0f", Dist)
--Find.Frame.Pos.Text = "(X: " .. string.format("%.0f", pos.X) .. ", Y: " .. string.format("%.0f", pos.Y) .. ", Z: " .. string.format("%.0f", pos.Z) .. ")"
if Find4 then
Find.Frame.Health.Text = "Health: " .. string.format("%.0f", Find4.Health)
else
Find.Frame.Health.Text = ""
end
end
end
end
end
end
function RemoveESP(Obj)
if Obj ~= nil then
local IsPlr = Obj:IsA("Player")
local UseFolder = ItemESP
if IsPlr then UseFolder = PlayerESP end
local FindESP = ((IsPlr) and UseFolder:FindFirstChild("ESP Crap_" .. Obj.Name)) or FindESP(Obj)
if FindESP then
FindESP:Destroy()
end
end
end
function CreateESP(Obj)
if Obj ~= nil then
local IsPlr = Obj:IsA("Player")
local UseFolder = ItemESP
local GetChar = ((IsPlr) and Obj.Character) or Obj
local Head = GetChar:FindFirstChild("Head")
local t = tick()
if IsPlr then UseFolder = PlayerESP end
if Head == nil then
repeat
Head = GetChar:FindFirstChild("Head")
wait()
until Head ~= nil or (tick() - t) >= 10
end
if Head == nil then return end
local bb = Instance.new("BillboardGui")
bb.Adornee = Head
bb.ExtentsOffset = Vector3.new(0, 1, 0)
bb.AlwaysOnTop = true
bb.Size = UDim2.new(0, 5, 0, 5)
bb.StudsOffset = Vector3.new(0, 3, 0)
bb.Name = "ESP Crap_" .. Obj.Name
bb.Parent = UseFolder
local frame = Instance.new("Frame", bb)
frame.ZIndex = 10
frame.BackgroundTransparency = 1
frame.Size = UDim2.new(1, 0, 1, 0)
local TxtName = Instance.new("TextLabel", frame)
TxtName.Name = "Names"
TxtName.ZIndex = 10
TxtName.Text = Obj.Name
TxtName.BackgroundTransparency = 1
TxtName.Position = UDim2.new(0, 0, 0, -45)
TxtName.Size = UDim2.new(1, 0, 10, 0)
TxtName.Font = "SourceSansBold"
TxtName.TextSize = 13
TxtName.TextStrokeTransparency = 0.5
local TxtDist = nil
local TxtHealth = nil
if IsPlr then
TxtDist = Instance.new("TextLabel", frame)
TxtDist.Name = "Dist"
TxtDist.ZIndex = 10
TxtDist.Text = ""
TxtDist.BackgroundTransparency = 1
TxtDist.Position = UDim2.new(0, 0, 0, -35)
TxtDist.Size = UDim2.new(1, 0, 10, 0)
TxtDist.Font = "SourceSansBold"
TxtDist.TextSize = 13
TxtDist.TextStrokeTransparency = 0.5
TxtHealth = Instance.new("TextLabel", frame)
TxtHealth.Name = "Health"
TxtHealth.ZIndex = 10
TxtHealth.Text = ""
TxtHealth.BackgroundTransparency = 1
TxtHealth.Position = UDim2.new(0, 0, 0, -25)
TxtHealth.Size = UDim2.new(1, 0, 10, 0)
TxtHealth.Font = "SourceSansBold"
TxtHealth.TextSize = 13
TxtHealth.TextStrokeTransparency = 0.5
else
local ObjVal = Instance.new("ObjectValue", bb)
ObjVal.Value = Obj
end
local PickColor = GetTeamColor(Obj) or Bullshit.Colors.Neutral
TxtName.TextColor3 = PickColor
if IsPlr then
TxtDist.TextColor3 = PickColor
TxtHealth.TextColor3 = PickColor
end
end
end
function UpdateTracer(Plr)
if Bullshit.TracersEnabled then
if MyChar then
local MyTor = MyChar:FindFirstChild("HumanoidRootPart")
local GetTor = TracerData[Plr.Name]
if MyTor and GetTor ~= nil and GetTor.Parent ~= nil then
local Dist = (MyTor.Position - GetTor.Position).magnitude
if (Dist < Bullshit.TracersLength and not Bullshit.Blacklist[Plr.Name]) and not (MyChar:FindFirstChild("InVehicle") or GetTor.Parent:FindFirstChild("InVehicle")) then
if not Bullshit.PlaceTracersUnderCharacter then
local R = MyCam:ScreenPointToRay(MyCam.ViewportSize.X / 2, MyCam.ViewportSize.Y, 0)
Dist = (R.Origin - (GetTor.Position - Vector3.new(0, 3, 0))).magnitude
Tracers[Plr.Name].Transparency = 1
Tracers[Plr.Name].Size = Vector3.new(0.05, 0.05, Dist)
Tracers[Plr.Name].CFrame = CFrame.new(R.Origin, (GetTor.Position - Vector3.new(0, 4.5, 0))) * CFrame.new(0, 0, -Dist / 2)
Tracers[Plr.Name].BrickColor = BrickColor.new(GetTeamColor(Plr))
Tracers[Plr.Name].BoxHandleAdornment.Transparency = 0
Tracers[Plr.Name].BoxHandleAdornment.Size = Vector3.new(0.001, 0.001, Dist)
Tracers[Plr.Name].BoxHandleAdornment.Color3 = GetTeamColor(Plr)
else
Dist = (MyTor.Position - (GetTor.Position - Vector3.new(0, 3, 0))).magnitude
Tracers[Plr.Name].Transparency = 1
Tracers[Plr.Name].Size = Vector3.new(0.3, 0.3, Dist)
Tracers[Plr.Name].CFrame = CFrame.new(MyTor.Position - Vector3.new(0, 3, 0), (GetTor.Position - Vector3.new(0, 4.5, 0))) * CFrame.new(0, 0, -Dist / 2)
Tracers[Plr.Name].BrickColor = BrickColor.new(GetTeamColor(Plr))
Tracers[Plr.Name].BoxHandleAdornment.Transparency = 0
Tracers[Plr.Name].BoxHandleAdornment.Size = Vector3.new(0.05, 0.05, Dist)
Tracers[Plr.Name].BoxHandleAdornment.Color3 = GetTeamColor(Plr)
end
else
Tracers[Plr.Name].Transparency = 1
Tracers[Plr.Name].BoxHandleAdornment.Transparency = 1
end
end
end
end
end
function RemoveTracers(Plr)
local Find = Tracers:FindFirstChild(Plr.Name)
if Find then
Find:Destroy()
end
end
function CreateTracers(Plr)
local Find = Tracers:FindFirstChild(Plr.Name)
if not Find then
local P = Instance.new("Part")
P.Name = Plr.Name
P.Material = "Neon"
P.Transparency = 1
P.Anchored = true
P.Locked = true
P.CanCollide = false
local B = Instance.new("BoxHandleAdornment", P)
B.Adornee = P
B.Size = GetSizeOfObject(P)
B.AlwaysOnTop = true
B.ZIndex = 5
B.Transparency = 0
B.Color3 = GetTeamColor(Plr) or Bullshit.Colors.Neutral
P.Parent = Tracers
coroutine.resume(coroutine.create(function()
while Tracers:FindFirstChild(Plr.Name) do
UpdateTracer(Plr)
Run.RenderStepped:wait()
end
end))
end
end
function UpdateChams(Obj)
if Obj == nil then return end
if Obj:IsA("Player") then
local Find = PlayerChams:FindFirstChild(Obj.Name)
local GetChar = Obj.Character
local Trans = 0
if GetChar and MyChar then
local GetHead = GetChar:FindFirstChild("Head")
local GetTor = GetChar:FindFirstChild("HumanoidRootPart")
local MyHead = MyChar:FindFirstChild("Head")
local MyTor = MyChar:FindFirstChild("HumanoidRootPart")
if GetHead and GetTor and MyHead and MyTor then
if (MyTor.Position - GetTor.Position).magnitude > Bullshit.CHAMSLength or Bullshit.Blacklist[Obj.Name] then
Trans = 1
else
--local MyCharStuff = MyChar:GetDescendants()
local Ray = Ray.new(MyCam.CFrame.p, (GetTor.Position - MyCam.CFrame.p).unit * 2048)
local part = workspace:FindPartOnRayWithIgnoreList(Ray, {MyChar})
if part ~= nil then
if part:IsDescendantOf(GetChar) then
Trans = 0.9
else
Trans = 0
end
end
end
end
end
if Find then
for i, v in next, Find:GetChildren() do
if v.className ~= "ObjectValue" then
v.Color3 = GetTeamColor(Obj) or Bullshit.Colors.Neutral
v.Transparency = Trans
end
end
end
end
end
function RemoveChams(Obj)
if Obj ~= nil then
local IsPlr = Obj:IsA("Player")
local UseFolder = ItemChams
if IsPlr then UseFolder = PlayerChams end
local FindC = UseFolder:FindFirstChild(tostring(Obj)) or FindCham(Obj)
if FindC then
FindC:Destroy()
end
end
end
function CreateChams(Obj)
if Obj ~= nil then
local IsPlr = Obj:IsA("Player")
local UseFolder = ItemChams
local Crap = nil
local GetTor = nil
local t = tick()
if IsPlr then