Advertisement
scripter99793

silent aim BP

Jul 2nd, 2021
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement