-
Notifications
You must be signed in to change notification settings - Fork 0
/
H4x.lua
1685 lines (1385 loc) · 48.6 KB
/
H4x.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
--Game: Rememed meme game (https://www.roblox.com/games/6031035699/rememed-meme-game)
if game.PlaceId ~= 6031035699 then return end
if getfenv()._H4X then
return warn("Already running!")
end
getgenv()._H4X = true
game:GetService("ReplicatedFirst"):RemoveDefaultLoadingScreen()
repeat task.wait() until game:IsLoaded()
local Workspace = game:GetService("Workspace")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CoreGui = game:GetService("CoreGui")
local HttpService = game:GetService("HttpService")
local UserInputService = game:GetService("UserInputService")
local StarterGui = game:GetService("StarterGui")
local RunService = game:GetService("RunService")
local StarterPlayer = game:GetService("StarterPlayer")
local TeleportService = game:GetService("TeleportService")
local Chat = game:GetService("Chat")
local Stats = game:GetService("Stats")
local ContextActionService = game:GetService("ContextActionService")
local Lighting = game:GetService("Lighting")
local EmptyVector3 = Vector3.new()
local CurrentCamera = Workspace.CurrentCamera
local LocalPlayer = Players.LocalPlayer
local ShootEvent = ReplicatedStorage.visualBullets
local RespawnEvent = ReplicatedStorage.Respawn
local StartTauntEvent = ReplicatedStorage.startTaunt
local ServerHitReg = ReplicatedStorage.serverhitReg
local _GetPropertyChangedSignal = game.GetPropertyChangedSignal
local _FindFirstChild = game.FindFirstChild
local _WorldToScreenPoint = Workspace.CurrentCamera.WorldToScreenPoint
Workspace.FallenPartsDestroyHeight = 0/0
LocalPlayer.CameraMaxZoomDistance = 9999
--Read blacklist
if not (isfile("BlacklistedPpl.json")) then
writefile("BlacklistedPpl.json", "[]")
end
--Read whitelist
if not isfile("WhitelistedPpl.json") then
writefile("WhitelistedPpl.json", "[]")
end
local Blacklist = HttpService:JSONDecode(readfile("BlacklistedPpl.json"))
local Whitelist = HttpService:JSONDecode(readfile("WhitelistedPpl.json"))
local function SaveWhitelist()
writefile("WhitelistedPpl.json", HttpService:JSONEncode(Whitelist))
end
local function SaveBlacklist()
writefile("BlacklistedPpl.json", HttpService:JSONEncode(Blacklist))
end
local Events = newproxy(true)
local Toggles = newproxy(true)
do
local EventsTb = {}
local TogglesTb = {
["god"] = {
["Value"] = false,
["Connection"] = nil
},
["god2"] = {
["Value"] = false,
["Connection"] = nil
},
["hide"] = {
["Value"] = false,
["Connection"] = nil
},
["aimbot"] = true,
["hookchat"] = false,
["fly"] = false,
["AutoRefill"] = false,
["autorespawn"] = true,
["esp"] = true,
["2DEsp"] = false,
["AutoAim"] = true,
["AntiFeClaim"] = false,
["Range"] = 60
}
getmetatable(Toggles).__index = TogglesTb
getmetatable(Events).__index = EventsTb
getmetatable(Events).__newindex = function(_, index, value)
if typeof(value) ~= "function" then
return error("Events; Expected Function got "..typeof(value).." "..debug.traceback())
end
return rawset(EventsTb, index, function(...)
return coroutine.wrap(function(...)
return value(...)
end)(...)
end)
end
getmetatable(Toggles).__newindex = function(self, index, value)
if Events[index] then Events[index](self, index, value) end
return rawset(TogglesTb, index, value)
end
end
--// Esp settings
local _2DBoxEsp = true
local _3DBoxEsp = false
local Names = true
local Rainbow = false
--// Esp coloring settings
local PlayersColor = Color3.new(0,0.7,0.3)
local WhitelistedColor = Color3.new(0,0.5,1)
local Pvp_PlayersColor = Color3.new(0.9,0,0.3)
local Pvp_WhitelistedColor = Color3.new(0,1,1);
--// Esp
(coroutine.wrap(function()
local CharactersEsp = {}
local Checked = {}
local Magic = {
{0,1,0}, {1,1,0}, {0,0,0},
{1,0,0}, {0,1,1}, {1,1,1},
{0,0,1}, {1,0,1}
}
--// Index represents the base point
--// and the value represents all connected dots to {index} point
local Magic2 = {
[1] = {2,3,5}, [4] = {2,3,8},
[6] = {5,8,2}, [7] = {5,8,3}
}
--For 2D square
local Magic3 = {
[1] = {2,3},
[4] = {2,3}
}
--3D box
local function Calculate(Character, IgnoreList)
IgnoreList = (typeof(IgnoreList) == "table" and IgnoreList) or {}
local BaseCFrame = Character:FindFirstChild("HumanoidRootPart").CFrame
local AlignedVectors = {}
for i,v in pairs(Character:GetChildren()) do
if not v:IsA("BasePart") then continue end
if table.find(IgnoreList, v.Name) then continue end
local PartSize = v.Size
local PartCFrame = v.CFrame
for i,v in pairs(Magic) do
local SizeX = (((v[1] == 0) and -1) or 1) * PartSize.X
local SizeY = (((v[2] == 0) and -1) or 1) * PartSize.Y
local SizeZ = (((v[3] == 0) and -1) or 1) * PartSize.Z
local CurrentPos = (PartCFrame + Vector3.new(SizeX,SizeY,SizeZ)/2)
local Aligned = AlignedVectors[i]
if not Aligned then
AlignedVectors[i] = CurrentPos
else
local X = (((v[1] == 1) and math.max) or math.min)(Aligned.X, CurrentPos.X)
local Y = (((v[2] == 1) and math.max) or math.min)(Aligned.Y, CurrentPos.Y)
local Z = (((v[3] == 1) and math.max) or math.min)(Aligned.Z, CurrentPos.Z)
AlignedVectors[i] = Vector3.new(X,Y,Z)
end
end
end
return AlignedVectors
end
--2D Square
local function Calculate2(Character, IgnoreList)
if Character:FindFirstChild("RainPart") then
Character.RainPart:Destroy()
end
local ModelSize = Character:GetExtentsSize()
local BaseCFrame = Character:FindFirstChild("HumanoidRootPart").CFrame - Vector3.new(0,.3,0)
local Angles = {
BaseCFrame * (Vector3.new(-ModelSize.X,ModelSize.Y,0)/2),
BaseCFrame * (Vector3.new(ModelSize.X,ModelSize.Y,0)/2),
BaseCFrame * (Vector3.new(-ModelSize.X,-ModelSize.Y,0)/2),
BaseCFrame * (Vector3.new(ModelSize.X,-ModelSize.Y,0)/2)
}
return Angles
end
local RGBIndex = 0
while task.wait() do
RGBIndex += 1
local LinesColor = Color3.fromHSV(math.acos(math.cos(RGBIndex/1000 * (math.pi/2)))/(math.pi), 1, 1)
local Mouse = LocalPlayer:GetMouse()
local MousePosition = Vector2.new(Mouse.X, Mouse.Y)
for i,v in pairs(Checked) do
Checked[i] = false
end
for _,Plr in pairs(Players:GetPlayers()) do
if Plr.Character and Plr.Character:FindFirstChild("HumanoidRootPart") and Plr.Character:FindFirstChild("Humanoid") and Plr.Character:FindFirstChild("Humanoid").Health > 0 then
if not Plr:FindFirstChild("pvp") then continue end
if not _2DBoxEsp and not _3DBoxEsp then continue end
local IsWhitelisted = (table.find(Whitelist, Plr.Name) or Plr == LocalPlayer and true)
local PvpIsOn = Plr.pvp.Value
local EspColor = ((Rainbow and LinesColor) or (PvpIsOn and
(IsWhitelisted and Pvp_WhitelistedColor or Pvp_PlayersColor))
or (IsWhitelisted and WhitelistedColor) or PlayersColor
)
Checked[Plr.Character] = true
if not CharactersEsp[Plr.Character] then
CharactersEsp[Plr.Character] = {}
end
local Positions = (_3DBoxEsp and Calculate(Plr.Character, {"RainPart"})) or Calculate2(Plr.Character)
for i = 1, (_2DBoxEsp and 4) or 12 do
if not CharactersEsp[Plr.Character][i] then
CharactersEsp[Plr.Character][i] = Drawing.new("Line")
end
end
local LineIndex = 1
for Index, Table in pairs((_2DBoxEsp and Magic3) or Magic2) do
local From, FromIsVisible = workspace.CurrentCamera:WorldToScreenPoint(Positions[Index])
From = Vector2.new(From.X, From.Y)
for Index2, Value in pairs(Table) do
local Line = CharactersEsp[Plr.Character][LineIndex]
local To, ToIsVisible = workspace.CurrentCamera:WorldToScreenPoint(Positions[Value])
To = Vector2.new(To.X, To.Y)
Line.Transparency = 1
Line.From = From + Vector2.new(0, 38)
Line.To = To + Vector2.new(0, 38)
Line.Visible = (FromIsVisible or ToIsVisible) or false
Line.Color = EspColor
Line.Thickness = 3
LineIndex = LineIndex + 1
end
end
if Plr.Character:FindFirstChild("Head") then
if not CharactersEsp[Plr.Character]["Name"] then
CharactersEsp[Plr.Character]["Name"] = Drawing.new("Text")
end
local _2DHeadPosition, IsHeadVisible = workspace.CurrentCamera:WorldToScreenPoint(Plr.Character.Head.Position)
_2DHeadPosition = Vector2.new(_2DHeadPosition.X,_2DHeadPosition.Y + 16)
local NameText = CharactersEsp[Plr.Character]["Name"]
NameText.Visible = (Names and IsHeadVisible) or false
NameText.Text = Plr.Name
NameText.OutlineColor = Color3.new(0,0,0)
NameText.Outline = true
NameText.Size = 14
NameText.Center = true
NameText.Font = 3
NameText.Color = EspColor
NameText.Position = _2DHeadPosition
end
end
end
for i,v in pairs(CharactersEsp) do
if not Checked[i] then
for i,v in pairs(v) do
v:Remove()
end
CharactersEsp[i] = nil
end
end
end
end))()
local WeaponList = {
["Glock 17"] = {
Ammo = 17,
Damage = 13.5,
ReloadingTime = 1.7
},
["Revolver"] = {
Ammo = 6,
Damage = 52.5,
ReloadingTime = 1.7
},
["Shaggy's Shotgun"] = {
Ammo = 40,
Damage = 37.5,
ReloadingTime = 0.4
}
}
local WeaponBuyList = {
["grenade"] = Vector3.new(-28, 4, -20),
["Shaggy's Shotgun"] = Vector3.new(-26, 7, -27),
["Glock 17"] = Vector3.new(-29, 5, -27),
["Revolver"] = Vector3.new(-24, 5, -27),
["rocket launcher"] = Vector3.new(-19, 6, -27)
}
local function FindTb(tb, value)
for i,v in pairs(tb) do
if v == value then
return i,v
end
end
end
Workspace:WaitForChild("danweaponry"):WaitForChild("GunStorage"):WaitForChild("buy", 999)
wait(.1)
for i,v in pairs(Workspace.danweaponry.GunStorage:GetChildren()) do
if v.Name == "buy" then
local Vector = Vector3.new(math.floor(v.Position.X), math.floor(v.Position.Y), math.floor(v.Position.Z))
local Value = FindTb(WeaponBuyList, Vector)
print(Value)
WeaponBuyList[Value] = v
end
end
WeaponBuyList["Flamethrower"] = Workspace:WaitForChild("sewer", 999):WaitForChild("undergroundShop"):WaitForChild("clicktobuy")
local FoodTb = {
"hamburger", "cheeseburger", "cheemsburger", "Fatburger",
"booger", "milk", "orange juice", "Bonk! Atomic punch!"
}
local function BuyTool(Name)
if not table.find(FoodTb, Name) then
warn(Name)
local Inst = WeaponBuyList[Name]
if not Inst then return warn("Not found") end
fireclickdetector(Inst.ClickDetector, 0)
fireclickdetector(Inst.ClickDetector, 1)
else
ReplicatedStorage.mcdonald:FireServer(table.find(FoodTb, Name))
end
local Tool;
local Connection; Connection = LocalPlayer.Backpack.ChildAdded:Connect(function(obj)
if obj.Name == Name then
Tool = obj
end
end)
repeat task.wait() until Tool
Connection:Disconnect()
return Tool
end
--Autorefill
do
local Connections = {}
local function LocalCharacterAdded(Character)
Character.ChildAdded:Connect(function(obj)
if obj:IsA("Tool") and obj.Name == "grenade" and not table.find(Connections, obj) then
table.insert(Connections, obj)
obj.Activated:Connect(function()
if Toggles["AutoRefill"] then
obj:GetPropertyChangedSignal("Parent"):Wait()
local Tool = BuyTool("grenade")
Tool.Parent = LocalPlayer.Character
end
end)
end
end)
end
LocalPlayer.CharacterAdded:Connect(LocalCharacterAdded)
if LocalPlayer.Character then
LocalCharacterAdded(LocalPlayer.Character)
end
end
local AmmoLeft;
local Reload;
local ServerIsDown = false
task.spawn(function()
local Debounce = 0
local IsReloading = false
Reload = function(Weapon)
if tick() - Debounce >= .2 then
if ServerIsDown then repeat task.wait() until not ServerIsDown end
Debounce = tick()
local LastAmmo = Weapon.ammo.Value
if LastAmmo == WeaponList[Weapon.Name]["Ammo"] then return end
IsReloading = true
Weapon.Parent = LocalPlayer.Backpack
fireclickdetector(Workspace.danweaponry["Meshes/aaPile"].ClickDetector, 0)
fireclickdetector(Workspace.danweaponry["Meshes/aaPile"].ClickDetector, 1)
Weapon.ammo:GetPropertyChangedSignal("Value"):Wait()
IsReloading = false
Weapon.Parent = LocalPlayer.Character
end
end
--Leaderboard stats
do
task.spawn(function()
local NewTb = {};
local function NewPlayerAdded(Plr)
local Stats = Plr:WaitForChild("Stats")
local LeaderboardStats = {
Stats:WaitForChild("Kills"),
Stats:WaitForChild("Deaths"),
Stats:WaitForChild("MaxKillstreak"),
Stats:WaitForChild("Money"),
}
local NewFolder = Instance.new("Folder")
NewFolder.Name = "leaderstats"
NewFolder.Parent = Plr
for Index,Stat in pairs(LeaderboardStats) do
if not NewTb[Plr.Name] then NewTb[Plr.Name] = {} end
NewTb[Plr.Name][Stat.Name] = Stat.Value
local StatInstance = Stat
local Cloned = StatInstance:Clone()
Cloned.Parent = NewFolder
Cloned.Name = Stat.Name
local Connection; Connection = StatInstance:GetPropertyChangedSignal("Value"):Connect(function()
NewTb[Plr.Name][Stat.Name] = Stat.Value
Cloned.Value = StatInstance.Value
end)
end
end
Players.PlayerAdded:Connect(NewPlayerAdded)
for i,v in pairs(Players:GetPlayers()) do
task.spawn(NewPlayerAdded, v)
end
end)
end
--Players nicknames
do
StarterPlayer.NameDisplayDistance = 9999
local function NewCharacter(Character)
wait(.2)
local Humanoid = Character:WaitForChild("Humanoid")
Humanoid.NameDisplayDistance = 9999
Humanoid.DisplayName = Character.Name
end
local function NewPlayer(Player)
if Player.Character then
NewCharacter(Player.Character)
end
Player.CharacterAdded:Connect(NewCharacter)
end
local function NewCorpseAdded(Object)
if Object.Name == "Corpse" then
local Humanoid = Object:WaitForChild("Humanoid")
Humanoid.DisplayName = ""
end
end
Workspace.ChildAdded:Connect(NewCorpseAdded)
Players.PlayerAdded:Connect(NewPlayer)
for i,v in pairs(Players:GetPlayers()) do
task.spawn(NewPlayer,v)
end
for i,v in pairs(Workspace:GetChildren()) do
task.spawn(NewCorpseAdded,v)
end
end
--Fly
do
local RenderConnection;
local BodyVelocity;
Events["fly"] = function(self, index, value)
if value == true then
BodyVelocity = Instance.new("BodyVelocity")
BodyVelocity.Parent = LocalPlayer.Character.HumanoidRootPart
BodyVelocity.Velocity = Vector3.new()
local NewVector = Vector3.new()
local OldPosition = LocalPlayer.Character.HumanoidRootPart.CFrame
RenderConnection = RunService.RenderStepped:Connect(function()
local Character = LocalPlayer.Character
local HumanoidRootPart = Character.HumanoidRootPart
local PressedKeys = UserInputService:GetKeysPressed()
for i,Input in pairs(PressedKeys) do
if Input.UserInputType == Enum.UserInputType.Keyboard then
if Input.KeyCode == Enum.KeyCode.W then
NewVector = NewVector + Vector3.new(0, 0, -1)
elseif Input.KeyCode == Enum.KeyCode.S then
NewVector = NewVector + Vector3.new(0, 0, 1)
elseif Input.KeyCode == Enum.KeyCode.A then
NewVector = NewVector + Vector3.new(-1, 0, 0)
elseif Input.KeyCode == Enum.KeyCode.D then
NewVector = NewVector + Vector3.new(1, 0, 0)
end
end
end
Character.Humanoid.PlatformStand = true
local LookVector = Workspace.CurrentCamera.CFrame.LookVector
HumanoidRootPart.CFrame = HumanoidRootPart.CFrame + (Workspace.CurrentCamera.CFrame.Rotation * NewVector)
HumanoidRootPart.CFrame = CFrame.lookAt(HumanoidRootPart.Position, Workspace.CurrentCamera.CFrame * Vector3.new(0, 0, -9e9))
NewVector = Vector3.new()
end)
for i = 1,10 do
for i,v in pairs(LocalPlayer.Character:GetChildren()) do
if not v:IsA("BasePart") then continue end
v.RotVelocity = Vector3.new()
v.Velocity = Vector3.new()
end
task.wait()
end
else
if RenderConnection then
RenderConnection:Disconnect()
end
if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") and BodyVelocity then
LocalPlayer.Character.Humanoid.PlatformStand = false
BodyVelocity:Destroy()
end
end
end
game:GetService("ContextActionService"):BindAction("CamFly", function(Name, State, Object)
if State ~= Enum.UserInputState.Begin then return end
if UserInputService:IsKeyDown(Enum.KeyCode.F) then
LocalPlayer.Character.HumanoidRootPart.Anchored = false
else
LocalPlayer.Character.HumanoidRootPart.Anchored = not Toggles["fly"]
end
Toggles["fly"] = not Toggles["fly"]
end, false, Enum.KeyCode.C, Enum.KeyCode.F)
end
--Exploiter protection
do
do --Anti fe claim
local DangerousTools = {}
local function CharacterAdded(Character, Plr)
if not Plr then Plr = Players:FindFirstChild(Character.Name) end
if Plr == LocalPlayer then
local RightArm = Character:WaitForChild("Right Arm")
local Connection1; Connection1 = RightArm.ChildAdded:Connect(function(obj)
local OldPlrPos = Character.HumanoidRootPart.CFrame
if obj.Name == "RightGrip" and obj.Part1 and obj.Part1.Parent and obj.Part1.Parent:IsA("Tool") then
local NewTool = obj.Part1.Parent
if DangerousTools[NewTool] then
if Toggles["AntiFeClaim"] == false then return end
obj.Part1:Destroy()
obj.Part0 = nil
obj.Part1 = nil
task.spawn(function()
for i = 1,10 do
LocalPlayer.Character.HumanoidRootPart.CFrame = OldPlrPos + Vector3.new(0, 1, 0)
task.wait()
end
end)
task.wait()
obj:Destroy()
end
end
end)
local Connection2; Connection2 = Character:GetPropertyChangedSignal("Parent"):Connect(function()
Connection1:Disconnect()
Connection2:Disconnect()
end)
else
local Connection; Connection = Character.ChildRemoved:Connect(function(obj)
if obj.Name == "Humanoid" then
for i,v in pairs(Character:GetChildren()) do
if v:IsA("Tool") then
DangerousTools[v] = Plr
end
end
for i,v in pairs(Plr.Backpack:GetChildren()) do
if v:IsA("Tool") then
DangerousTools[v] = Plr
end
end
end
end)
local Connection2; Connection2 = Character:GetPropertyChangedSignal("Parent"):Connect(function()
Connection:Disconnect()
Connection2:Disconnect()
end)
end
end
local function PlayerAdded(Player)
if Player.Character then
CharacterAdded(Player.Character, Player)
end
Player.CharacterAdded:Connect(CharacterAdded)
end
for i,v in pairs(Players:GetPlayers()) do
PlayerAdded(v)
end
Players.PlayerAdded:Connect(PlayerAdded)
end
end
--Animation skipper
do
local BlacklistedAnimations = {
["rbxassetid://6363853424"] = "reload1",
["rbxassetid://6363813017"] = "reload2",
["rbxassetid://6363837728"] = "reload3",
["rbxassetid://6423737928"] = "reload4",
["rbxassetid://5267014967"] = "Bonk sniper juice",
["rbxassetid://5264760260"] = "Fatburger",
["rbxassetid://6363789118"] = "shot",
}
local function CharacterAdded(Character)
local Humanoid = Character:WaitForChild("Humanoid")
Humanoid.AnimationPlayed:Connect(function(Anim)
local Animation = Anim.Animation
if BlacklistedAnimations[Animation.AnimationId] then
Anim:AdjustSpeed(1300)
end
end)
end
LocalPlayer.CharacterAdded:Connect(CharacterAdded)
if LocalPlayer.Character then
CharacterAdded(LocalPlayer.Character)
end
end
--Leaderboard extra buttons
do task.spawn(function()
local CurrentSpectating = nil
local function Spectate(Plr)
CurrentSpectating = Plr
local Connection; Connection = Plr.CharacterAdded:Connect(function(Char)
if CurrentSpectating ~= Plr then
Connection:Disconnect()
return
else
local Humanoid = Char:WaitForChild("Humanoid")
Workspace.CurrentCamera.CameraSubject = Humanoid
end
end)
if Plr.Character and Plr.Character:FindFirstChild("Humanoid") then
Workspace.CurrentCamera.CameraSubject = Plr.Character.Humanoid
end
end
local function PlayerDropDownAdded(PlayerDropDown)
PlayerDropDown:WaitForChild("InnerFrame")
PlayerDropDown.InnerFrame:WaitForChild("BlockButton")
local SpectateButton = PlayerDropDown.InnerFrame.BlockButton:Clone()
SpectateButton.Name = "SpectateButton"
SpectateButton.HoverBackground.Text.Text = "Spectate"
SpectateButton.HoverBackground.Icon.Image = ""
SpectateButton.HoverBackground.Icon.ImageRectOffset = Vector2.new(380, 340)
SpectateButton.HoverBackground.Icon.ImageRectSize = Vector2.new(36, 36)
SpectateButton.Parent = PlayerDropDown.InnerFrame
local Connection1; Connection1 = SpectateButton.MouseEnter:Connect(function()
SpectateButton.HoverBackground.BackgroundTransparency = 0.9
end)
local Connection2; Connection2 = SpectateButton.MouseLeave:Connect(function()
SpectateButton.HoverBackground.BackgroundTransparency = 1
end)
local Connection3; Connection3 = SpectateButton.MouseButton1Down:Connect(function()
local CurrentPlr = PlayerDropDown.InnerFrame.PlayerHeader.Background.TextContainerFrame.PlayerName.Text
CurrentPlr = game.Players:FindFirstChild(CurrentPlr:sub(2, #CurrentPlr))
Spectate(CurrentPlr)
end)
local OldParent = PlayerDropDown.Parent
local Sizo = PlayerDropDown.Size + UDim2.new(0, 304, 0, PlayerDropDown.Size.Y.Offset + (304/4))
repeat task.wait()
if Sizo ~= PlayerDropDown.Size then
PlayerDropDown.Size = UDim2.new(0, 304, 0, PlayerDropDown.Size.Y.Offset + (304/4))
Sizo = UDim2.new(0, 304, 0, PlayerDropDown.Size.Y.Offset + (304/4))
end
until PlayerDropDown.Parent ~= OldParent
Connection1:Disconnect(); Connection2:Disconnect(); Connection3:Disconnect()
end
local UserIds = {}
for i,v in pairs(game.Players:GetPlayers()) do
UserIds[v.UserId] = v.Name
end
game.Players.PlayerAdded:Connect(function(Plr)
UserIds[Plr.UserId] = Plr.Name
end)
local function ScrollingFrameClippingFrameAdded(ScrollingFrameClippingFrame)
local ScollingFrame = ScrollingFrameClippingFrame:WaitForChild("ScollingFrame")
local OffsetUndoFrame = ScollingFrame:WaitForChild("OffsetUndoFrame")
local function NewPlrAdded(Frame)
local UserId = string.match(Frame.Name, "p_(%d+)")
local PlayerName = Frame:WaitForChild("ChildrenFrame").NameFrame.BGFrame.OverlayFrame.PlayerName.PlayerName
PlayerName.Text = UserIds[tonumber(UserId)]
end
for i,v in pairs(OffsetUndoFrame:GetChildren()) do
task.spawn(NewPlrAdded, v)
end
OffsetUndoFrame.ChildAdded:Connect(NewPlrAdded)
end
if CoreGui.PlayerList.PlayerListMaster.OffsetFrame.PlayerScrollList.SizeOffsetFrame.ScrollingFrameContainer:FindFirstChild("PlayerDropDown") then
PlayerDropDownAdded(CoreGui.PlayerList.PlayerListMaster.OffsetFrame.PlayerScrollList.SizeOffsetFrame.ScrollingFrameContainer.PlayerDropDown)
end
if CoreGui.PlayerList.PlayerListMaster.OffsetFrame.PlayerScrollList.SizeOffsetFrame.ScrollingFrameContainer:FindFirstChild("ScrollingFrameClippingFrame") then
ScrollingFrameClippingFrameAdded(CoreGui.PlayerList.PlayerListMaster.OffsetFrame.PlayerScrollList.SizeOffsetFrame.ScrollingFrameContainer.ScrollingFrameClippingFrame)
end
CoreGui.PlayerList.PlayerListMaster.OffsetFrame.PlayerScrollList.SizeOffsetFrame.ScrollingFrameContainer.ChildAdded:Connect(function(obj)
if obj.Name == "PlayerDropDown" then
PlayerDropDownAdded(obj)
elseif obj.Name == "ScrollingFrameClippingFrame" then
ScrollingFrameClippingFrameAdded(obj)
end
end)
end) end
--// I was forced to add this because stupid dev
--// Added useless feature to kick anybody whoever
--// Uses negative value of ammo
task.spawn(function()
local Combo = -1
local Last = -1
while wait(.1) do
local DataRecieveKbps = Stats.DataReceiveKbps
if DataRecieveKbps ~= Last then
Combo = (Combo <= 0 and Combo - 1) or -1
else
Combo = (Combo <= 0 and 1) or Combo + 1
end
Last = DataRecieveKbps
if Combo >= 13 then
print("The server is down!")
ServerIsDown = true
elseif Combo <= -13 then
ServerIsDown = false
end
end
end)
local Dead = {}
local function Shoot(Weapon,Character)
if Weapon.ammo.value <= 0 then Reload(Weapon) end
if ServerIsDown then repeat task.wait() until not ServerIsDown end
ServerHitReg:FireServer(Vector3.new(), Vector3.new())
local Arguments = {
LocalPlayer.Character.Head.Position - Vector3.new(0,100000,0),
Character.Head.Position,
--//* A small trick used to fool the remote event handling script
--//* To make it think we give it an actual instance
{
Position = LocalPlayer.Character.HumanoidRootPart.Position+Vector3.new(0,1,0),
Parent = Character,
Name = "Head"
},
Character.Head.Position,
Enum.Material.Plastic,
Vector3.new(),
true,
1, --Ammo value
LocalPlayer.Character.HumanoidRootPart.CFrame
}
ShootEvent:FireServer(table.unpack(Arguments))
return true
end
--Aimbot
task.spawn(function()
while task.wait() do
if Toggles["aimbot"] and not ServerIsDown then
if LocalPlayer.Character then
local Range = Toggles["Range"]
local Gun, Statistics;
for i,v in pairs(LocalPlayer.Character:GetChildren()) do
if WeaponList[v.Name] then
Gun, Statistics = v, WeaponList[v.Name]
end
end
if Gun then
xpcall(function()
for i,v in pairs(Players:GetPlayers()) do
if v == LocalPlayer or table.find(Whitelist, v.Name) or
not v:FindFirstChild("pvp") or Gun.ammo.Value <= 0 or
LocalPlayer.pvp.Value == false or v.pvp.Value == false
then continue end
if not v.Character:FindFirstChild("Head") then continue end
if v.Character and not v.Character:FindFirstChild("ForceField") then
if (v.Character.Head.Position - LocalPlayer.Character.Head.Position).Magnitude <= Range then
if v.Character:FindFirstChild("Humanoid") and (v.Character.Humanoid.Health > 0 and v.Character.Humanoid.Health < 9999) and (not Dead[v.Character] or tick() - Dead[v.Character] >= 1) then
if not v.Character:FindFirstChild("snowchecker") then continue end
Dead[v.Character] = tick()
for i = 1, math.ceil(v.Character.Humanoid.Health/Statistics["Damage"]) do
if v.Character:FindFirstChild("Head") then
Shoot(Gun, v.Character)
end
end
end
end
end
end
end, function(...)
warn("Aimbot error", debug.traceback(), "\n"..(...))
end)
end
end
end
local Total = 0
for i,v in pairs(Dead) do
if i.Parent ~= Workspace then
Dead[i] = nil
Total = Total + 1
end
end
end
end)
--Autoreload
task.spawn(function()
while task.wait() do
if LocalPlayer.Character and not IsReloading then
local Character = LocalPlayer.Character
local Weapon = (_FindFirstChild(Character, "Glock 17") or _FindFirstChild(Character, "Revolver") or _FindFirstChild(Character, "Shaggy's Shotgun"));
if not Weapon then continue end
local Ammo, ReserveAmmo = Weapon.ammo.Value, Weapon.reserveAmmo.Value
local Statistics = WeaponList[Weapon.Name]
if Ammo <= 1 and ReserveAmmo >= 1 then
IsReloading = true
local A_1 = ReserveAmmo
local A_2 = true
local Event = Weapon.reloadScript.reloadEvent
Event:FireServer(A_1, A_2)
IsReloading = false
elseif Ammo <= 1 and ReserveAmmo <= 1 then
Reload(Weapon)
end
end
end
end)
local Mouse = LocalPlayer:GetMouse()
--Infinity jump
UserInputService.JumpRequest:Connect(function()
LocalPlayer.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end)
--Disable collisions with part on Z
local CanCollide = {}
Mouse.Button1Down:Connect(function()
if UserInputService:IsKeyDown(Enum.KeyCode.Z) then
local Target = Mouse.Target
Target.Transparency = ((CanCollide[Target] and -.4) or .4)
Target.CanCollide = (CanCollide[Target] and true) or false
CanCollide[Target] = (CanCollide[Target] == nil and false) or not CanCollide[Target]
end
end)
do --Autorespawn
task.spawn(function()
--Destroy useless stuff
local _ = (LocalPlayer.PlayerGui:FindFirstChild("deathgui") and LocalPlayer.PlayerGui:FindFirstChild("deathgui"):Destroy())
_ = (StarterGui:FindFirstChild("deathgui") and StarterGui:FindFirstChild("deathgui"):Destroy())
_ = (LocalPlayer.PlayerScripts:FindFirstChild("screenShaker") and LocalPlayer.PlayerScripts:FindFirstChild("screenShaker"):Destroy())
_ = (StarterPlayer.StarterPlayerScripts:FindFirstChild("screenShaker") and StarterPlayer.StarterPlayerScripts:FindFirstChild("screenShaker"):Destroy())
local function NewChar(Char)
Char:WaitForChild("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Dead, false)
local Connection; Connection = Char.Humanoid:GetPropertyChangedSignal("Health"):Connect(function()
if Char.Humanoid.Health > 0 then return end
if Toggles["autorespawn"] then
local CurrentPosition = LocalPlayer.Character.HumanoidRootPart.CFrame
LocalPlayer.Character:ClearAllChildren()
local Event = ReplicatedStorage.Respawn
Event:FireServer()
LocalPlayer.CharacterAdded:Wait()
LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame = CurrentPosition
end
Connection:Disconnect()
end)
end
if LocalPlayer.Character then
NewChar(LocalPlayer.Character)
end
LocalPlayer.CharacterAdded:Connect(NewChar)
end)
end
--Check chat filter
task.spawn(function()
local ChatGUI = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("Chat")
local MessageToSend = ChatGUI.Frame.ChatBarParentFrame.Frame.BoxFrame.Frame.ChatBar
local debounce = 0
while task.wait() do
if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.F1) then
if (tick()-debounce) >= 0.2 then
print(MessageToSend.Text)
debounce = tick()
pcall(function()
local FilteredString = Chat:FilterStringForBroadcast(MessageToSend.Text, game:GetService("Players").LocalPlayer)