Advertisement
DoctorAnarchist

Base Battles | SILENT AIM

Aug 29th, 2021
11,925
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. local gettarget = loadstring(game:HttpGet(('https://raw.githubusercontent.com/yesok3877/Miscellaneous/master/Get-Closest-To-Cursor.lua')))();
  2. local libraries = game.ReplicatedStorage.Libraries;
  3. local weapon = require(libraries.Weapon);
  4. local fire = weapon.Fire;
  5.  
  6. weapon.Fire = function(self, ...)
  7. local args = {...};
  8. local player = self.player;
  9. local config = self.config;
  10. if (player == game.Players.LocalPlayer) then
  11. local target = gettarget();
  12. local char = (target ~= nil and target.Character);
  13. if (target and char.Humanoid.Health ~= 0) then
  14. local head = char.Head;
  15. local projectile = require(libraries.Projectile).new(player, args[1], args[2], config.gravityK);
  16. local id = (args[4] - 1);
  17. require(libraries.Gameplay).DoHit(id, head, head.Position, config.damage, projectile.velocity, id, projectile.pelletIdx, projectile.t);
  18. end
  19. self.maxAmmo = math.huge;
  20. self.ammo = math.huge;
  21. end
  22. return fire(self, ...);
  23. end;
Advertisement
Comments
  • Comment was deleted
Add Comment
Please, Sign In to add comment
Advertisement