Zeppelin Wars Inf Ammo Script

Thank you for using our website
Your script:

--https://rbscripts.com
local gmt = getrawmetatable(game)
setreadonly(gmt, false)
local gindex = gmt.__index
local gnindex = gmt.__newindex
gmt.__index = function(tbl, idx)
   if tostring(tbl) == "Ammo" or tostring(tbl) == "Mag" then
           return 9999
   end
   return gindex(tbl, idx)
end

gmt.__newindex = function(tbl, idx, val)
   if (tostring(tbl) == "Ammo") or (tostring(tbl) == "Mag") then
       return gnindex(tbl, idx, 9999)
   end
   return gnindex(tbl, idx, val)
end