Advertisement
EarlyExploiter

ss

May 18th, 2021
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. local Players = game:GetService("Players"); --> Wally is sexy!
  2. local Player = Players.LocalPlayer;
  3.  
  4. -- Game Things
  5. local scriptEnv = require(game:GetService("ReplicatedStorage").Framework.Library);
  6. local network = scriptEnv.Network;
  7. local gunCmds = scriptEnv.GunCmds;
  8. local SilentAimTog = true;
  9. local UnlockAllTog = true;
  10.  
  11. -- Close Player Func
  12. local function getClosestPlayer()
  13. local shortestDistance, closestPlayer = math.huge;
  14.  
  15. for i, v in next, Players:GetPlayers() do
  16. if (v.Name ~= Player.Name and v.Team ~= Player.Team and Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") and v.Character and v.Character:FindFirstChild("HumanoidRootPart")) then
  17. local mag = (v.Character.HumanoidRootPart.Position - Player.Character.HumanoidRootPart.Position).magnitude;
  18.  
  19. if (mag < shortestDistance) then
  20. closestPlayer = v;
  21. shortestDistance = mag;
  22. end;
  23. end;
  24. end;
  25.  
  26. return closestPlayer;
  27. end;
  28.  
  29. -- Kill Function
  30. local function kill(code, plr)
  31. if (code and plr.Character and plr.Character:FindFirstChild("HumanoidRootPart")) then
  32. local data =
  33. {
  34. [1] =
  35. {
  36. [1] = plr.Character.Humanoid;
  37. [2] = code;
  38. [3] = 235;
  39. [4] = plr.Character.HumanoidRootPart.Position;
  40. [5] = false;
  41. };
  42. [2] =
  43. {
  44. [1] = false;
  45. [2] = false;
  46. [3] = false;
  47. [4] = false;
  48. [5] = false;
  49. };
  50. };
  51.  
  52. game:GetService("Workspace"):FindFirstChild("__THINGS"):FindFirstChild("__REMOTES"):FindFirstChild("do damage"):FireServer(data);
  53. end;
  54. end;
  55.  
  56. -- Unlock All Hook
  57. do
  58. -- Hook
  59. local oldUnlockAll = gunCmds.DoesOwnGun;
  60.  
  61. gunCmds.DoesOwnGun = newcclosure(function(...)
  62. if (UnlockAllTog) then
  63. return true;
  64. end;
  65.  
  66. return oldUnlockAll(...);
  67. end);
  68. end;
  69.  
  70. -- Network Hook
  71. do
  72. -- Hook
  73. local oldFire = network.Fire;
  74.  
  75. network.Fire = newcclosure(function(self, ...)
  76. local args = {...};
  77.  
  78. if (tostring(self) == "New Projectile" and SilentAimTog) then
  79. local closePlayer = getClosestPlayer();
  80.  
  81. if (closePlayer) then
  82. kill(args[2], closePlayer); --> Epic func
  83. end;
  84. elseif (tostring(self) == "Request Respawn" and UnlockAllTog) then
  85. args[1] = "1"; --> Easy peasy bypass :)
  86. end;
  87.  
  88. return oldFire(self, unpack(args));
  89. end);
  90. end;
  91.  
  92. print'running!'; --> Prints for when its done loading gg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement