Advertisement
NateCheats

BIG Paintball!

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