Advertisement
NekoWaifu

Untitled

May 16th, 2018
1,521
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement