Advertisement
ItsMeMikeyyy

ROBLOX project lazarus one shot / inf ammo

May 16th, 2022
720
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. hookfunction(gcinfo, function()
  2. return math.random(200,350)
  3. end)
  4. -- // Constants \\ --
  5. -- [ Services ] --
  6. local Services = setmetatable({}, {__index = function(Self, Index)
  7. local NewService = game:GetService(Index)
  8. if NewService then
  9. Self[Index] = NewService
  10. end
  11. return NewService
  12. end})
  13. -- [ LocalPlayer ] --
  14. local LocalPlayer = Services.Players.LocalPlayer
  15. -- // Variables \\ --
  16. local Connections = {
  17. Weapon1 = nil;
  18. Weapon2 = nil;
  19. Weapon3 = nil;
  20. Backpack = nil;
  21. }
  22. local RoundNumber = workspace.RoundNum
  23. -- // Functions \\ --
  24. local function CharacterAdded(Character)
  25. local Backpack = LocalPlayer:WaitForChild('Backpack')
  26. local function ChildAdded(Child)
  27. if Child.Name == "Weapon1" or Child.Name == "Weapon2" or Child.Name == "Weapon3" then
  28. local Module = require(Child)
  29. if Connections[Child.Name] then
  30. Connections[Child.Name]:Disconnect()
  31. Connections[Child.Name] = nil
  32. end
  33. Connections[Child.Name] = Services.RunService.RenderStepped:Connect(function()
  34. Module.Ammo = Module.MagSize + 1
  35. Module.StoredAmmo = Module.MaxAmmo
  36. Module.HeadShot = 150 + (RoundNumber.Value * 150)
  37. Module.TorsoShot = 150 + (RoundNumber.Value * 150)
  38. Module.LimbShot = 150 + (RoundNumber.Value * 150)
  39. Module.BulletPenetration = 10
  40. end)
  41. end
  42. end
  43. if Connections.Backpack then
  44. Connections.Backpack:Disconnect()
  45. Connections.Backpack = nil
  46. end
  47. for i,v in ipairs(Backpack:GetChildren()) do
  48. ChildAdded(v)
  49. end
  50. Connections.Backpack = Backpack.ChildAdded:Connect(ChildAdded)
  51. end
  52. -- // Event Listeners \\ --
  53. LocalPlayer.CharacterAdded:Connect(CharacterAdded)
  54. CharacterAdded(LocalPlayer.Character)
  55. -- // Metatable \\ --
  56. local RawMetatable = getrawmetatable(game)
  57. local __Namecall = RawMetatable.__namecall
  58. setreadonly(RawMetatable, false)
  59. RawMetatable.__namecall = newcclosure(function(Object, ...)
  60. local NamecallMethod = getnamecallmethod()
  61. local Arguments = {...}
  62. if typeof(Object) == "Instance" and Object.IsA(Object, "RemoteEvent") then
  63. if tostring(Object) == "Damage" and NamecallMethod == "FireServer" then
  64. Arguments[1].Damage = Arguments[1].BodyPart.Parent.Humanoid.MaxHealth + 10
  65. end
  66. end
  67. return __Namecall(Object, unpack(Arguments))
  68. end)
  69. setreadonly(RawMetatable, true)
  70. -- // Actions \\ --
  71. --LocalPlayer.Character.Health:Destroy()
Advertisement
RAW Paste Data Copied
Advertisement