Advertisement
LuckyScripters

Infinite Ammo

Apr 18th, 2024
691
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. -- Roblox - SharkBite - Infinite Ammo
  2. -- Made by LuckyScripters
  3.  
  4. for index, closure in getgc() do
  5.     if type(closure) == "function" and not checkclosure(closure) then
  6.         if getinfo(closure).name == "reload" then
  7.             hookfunction(closure, function()
  8.                 return
  9.             end)
  10.         end
  11.         if getinfo(closure).name == "reload" or getinfo(closure).name == "fireWeapon" then
  12.             for index, upValue in getupvalues(closure) do
  13.                 if typeof(upValue) == "number" then
  14.                     setupvalue(closure, index, math.huge)
  15.                 end
  16.             end
  17.         end
  18.     end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement