Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local nade_amount = math.huge
- local network;
- local funcs;
- local char;
- local gamelogic;
- local effects;
- for i,v in next, getgc() do
- if type(v) == "function" then
- for i2,v2 in next, debug.getupvalues(v) do
- if type(v2) == "table" and rawget(v2, 'send') then
- network = v2;
- end
- if type(v2) == "table" and rawget(v2, 'add') then
- funcs = v2;
- end
- if type(v2) == "table" and rawget(v2, 'addgun') then
- char = v2;
- end
- if type(v2) == "table" and rawget(v2, 'gammo') then
- gamelogic = v2;
- end
- if type(v2) == "table" and rawget(v2, 'breakwindow') then
- effects = v2;
- end
- end
- end
- end
- spawn(function()
- repeat wait()
- if gamelogic.gammo ~= nade_amount then
- gamelogic.gammo = nade_amount
- end
- until gamelogic.gammo == nade_amount
- end)
- print(string.format("You have been given %s grenades!", tostring(nade_amount)))
Add Comment
Please, Sign In to add comment