local GunHandler for i,v in next, getgc(true) do if type(v) == "table" then if rawget(v, "setsprintdisable", "setequipped") then GunHandler = v end end if GunHandler then break end end if not GunHandler then return game.Players.LocalPlayer:Kick("Failed to find GunHandler") end game:GetService("RunService").RenderStepped:Connect(function() local Gun = GunHandler.currentgun if Gun and Gun.setequipped then local UpValues = debug.getupvalues(Gun.setequipped) local Magazine, CurrentAmmo = UpValues[11], UpValues[10] if Magazine ~= 0 then debug.setupvalue(Gun.setequipped, 10, (Magazine+CurrentAmmo)) debug.setupvalue(Gun.setequipped, 11, 0) end end end)