-- infinite amoo detects ammo-related tables in the game, freezes their values _G.InfiniteAmmoEnabled = true task.spawn(function() local AmmoTables = {} for i, v in next, getreg() do if typeof(v) == "table" and v.Ammo then table.insert(AmmoTables, v) end end local CurrentAmmoValues = {} for _, v in pairs(AmmoTables) do table.insert(CurrentAmmoValues, { Ammo = v.Ammo, StoredAmmo = v.StoredAmmo, MagSize = v.MagSize, MaxAmmo = v.MaxAmmo }) end while _G.InfiniteAmmoEnabled do for i, v in pairs(AmmoTables) do v.Ammo = CurrentAmmoValues[i].Ammo v.StoredAmmo = CurrentAmmoValues[i].StoredAmmo v.MagSize = CurrentAmmoValues[i].MagSize v.MaxAmmo = CurrentAmmoValues[i].MaxAmmo end task.wait(0.1) end end) -- insta-kill script intercepts damage events, and sets all damage values to infinite OldNamecall = hookmetamethod(game, "__namecall", function(self, ...) local args = {...} if getnamecallmethod() == "FireServer" and self.Name == "Damage" then if args[1]["Damage"] > 0 then args[1]["Damage"] = math.huge end end return OldNamecall(self, unpack(args)) end)