Simpel Inf Mag Ammo
Key Required

Simpel Inf Mag Ammo

AniPhobiaMoonDaityMoonDaity 1.7K views 350 executesUpdated Feb 2, 2026
5.0/ 5(4 votes)
40100% Positive
Lua Script•65 lines (1813 chars)
-- infinite mag pls dont skid
-- set getgenv().InfiniteMag = false before exec if u want it off

getgenv().InfiniteMag = true

local magSize = 100      -- can be 10, 50, 999 or whatever, loop will keep forcing it anyway
local plsWait = 0.1      -- dont touch this, controls how fast mag refreshes

local plrs = game:GetService("Players")
local lp = plrs.LocalPlayer

local function forceMag(gunClient)
    if not gunClient then return end

    local magTbl

    for _,v in pairs(getgc(true)) do
        if typeof(v) == "function" then
            local fenv = getfenv(v)
            if fenv and fenv.script == gunClient then
                local info = debug.getinfo(v)
                if info and info.name == "OnSwitching" then
                    local up = debug.getupvalue(v, 6) -- yes its 6, dont ask
                    if type(up) == "table" and up.Mag ~= nil then
                        magTbl = up
                        break
                    end
                end
            end
        end
    end
    if magTbl then
        task.spawn(function()
            while true do
                task.wait(plsWait)
                if getgenv().InfiniteMag then
                    magTbl.Mag = magSize
                end
            end
        end)
    end
end

local function onChar(char)
    for _,c in ipairs(char:GetChildren()) do
        local gc = c:FindFirstChild("GunClient")
        if gc then
            forceMag(gc)
        end
    end

    char.ChildAdded:Connect(function(c)
        task.wait(0.1) -- roblox moment
        local gc = c:FindFirstChild("GunClient")
        if gc then
            forceMag(gc)
        end
    end)
end

if lp.Character then
    onChar(lp.Character)
end

lp.CharacterAdded:Connect(onChar)

Features & Information

Gotcha! "Infinite mag" means you've got unlimited ammo, but it won't exceed the magazine's capacity. Play on, no worries about running out! Script By - pearman

Community Comments (4)

KILOmanKILOmanFeb 3, 2026

It's working well il used it when the bunni stopped crashing

Replying to @KILOman
raygudddraygudddFeb 25, 2026

@KILOman Oye como lo ejecutas ?

lackoklackokMar 12, 2026

dont work anymore

jaisonmendes454jaisonmendes454May 26, 2026

Great script.

More Scripts for AniPhobia