Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getupvalue(str)
- for _, a in next, getreg() do
- if type(a) == 'function' then
- for i, value in next, debug.getupvalues(a) do
- if i == str then
- return a, value
- end
- end
- end
- end
- end
- local func, logic = getupvalue("gamelogic")
- input.InputBegan:connect(function(i, g)
- if not g then
- if i.KeyCode == Enum.KeyCode.LeftAlt then
- if logic and logic.currentgun then
- debug.setupvalue(logic.currentgun.addammo, "spare", math.huge)
- debug.setupvalue(logic.currentgun.addammo, "mag", math.huge)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement