daily pastebin goal
76%
SHARE
TWEET

Untitled

NekoWaifu May 16th, 2018 1,078 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getupvalue(str)
  2.    for _, a in next, getreg() do
  3.        if type(a) == 'function'  then
  4.            for i, value in next, debug.getupvalues(a) do
  5.                if i == str then
  6.                    return a, value
  7.                end
  8.            end
  9.        end
  10.    end
  11. end
  12.  
  13. local func, logic = getupvalue("gamelogic")
  14. input.InputBegan:connect(function(i, g)
  15.    if not g then
  16.        if i.KeyCode == Enum.KeyCode.LeftAlt then
  17.            if logic and logic.currentgun then
  18.                debug.setupvalue(logic.currentgun.addammo, "spare", math.huge)
  19.                debug.setupvalue(logic.currentgun.addammo, "mag", math.huge)
  20.            end
  21.        end
  22.    end
  23. end)
RAW Paste Data
Top