Daniel555ok

BAD BUSINESS SILENT AIM

May 20th, 2020
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. --[[
  2. [!] Created by Greekazo@v3rm.net (https://v3rmillion.net/member.php?action=profile&uid=1604735)
  3. [!] Please be sure to give credits to the author of this script (^)
  4. ]]
  5. local ModuleScriptsPath = game.ReplicatedStorage[""]:GetChildren();
  6. local NetworkManager;
  7. for I, V in next, ModuleScriptsPath do
  8. if V:IsA("ModuleScript") then
  9. local temp_var_1 = require(V);
  10. for I2, _ in next, temp_var_1 do
  11. if I2 == "FireProjectile" then
  12. V.Name = "==[NETWORK]==" --; There was no reason to rename, but i did it while testing some new features.
  13. NetworkManager = V;
  14. end
  15. end
  16. end
  17. end
  18.  
  19. --; These variables are only for the ClosestPlayer function.
  20. local temp_var_1 = game:GetService("Players").LocalPlayer
  21. local temp_var_2 = game:GetService("Workspace").CurrentCamera
  22. local temp_var_3 = temp_var_1:GetMouse()
  23.  
  24. local function getClosestPlayerToCursor()
  25. local temp_var_4 = nil
  26. local temp_var_5 = math.huge
  27. for i, v in pairs(game:GetService("Workspace")["Characters"]:GetChildren()) do
  28. if v:FindFirstChild("Health") and v.Health.Value > 0 and v:FindFirstChild("Root") then
  29. local temp_var_6 = game:GetService("Workspace").CurrentCamera:WorldToViewportPoint(v.Root.Position)
  30. local temp_var_7 = (Vector2.new(temp_var_6.X, temp_var_6.Y) - Vector2.new(temp_var_3.X, temp_var_3.Y)).magnitude
  31.  
  32. if temp_var_7 < temp_var_5 then
  33. temp_var_4 = v
  34. temp_var_5 = temp_var_7
  35. end
  36. end
  37. end
  38. return temp_var_4
  39. end
  40.  
  41. local unpacked = require(NetworkManager);
  42. local BulletHandler_from_module_script = unpacked["FireProjectile"];
  43. local my_character_name = game.Players.LocalPlayer.Name;
  44.  
  45. --; Could've hooked it, but as it's just a ModuleScript function let's keep it like this! If you wish you could hook it, wouldn't make any difference.
  46. unpacked["FireProjectile"] = function(self, ...)
  47. local arguments = {...};
  48. if tostring(arguments[4]) == my_character_name then
  49. local the_current_closest_player_to_me = getClosestPlayerToCursor()
  50. if the_current_closest_player_to_me and the_current_closest_player_to_me:FindFirstChild("Health") and the_current_closest_player_to_me.Health.Value > 0 then
  51. arguments[2] = the_current_closest_player_to_me.Hitbox.Head.Position;
  52. end
  53. end
  54. return BulletHandler_from_module_script(self, unpack(arguments))
  55. end
Add Comment
Please, Sign In to add comment