Advertisement
Guest User

L0L

a guest
Jan 19th, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local gameeditor = {};
  2. function gameeditor:getgcindex(sd)
  3. for i,v in next, getgc() do
  4. if typeof(v) == "function" then
  5. for i2, v2 in next, debug.getupvalues(v) do
  6. if typeof(v2) == "table" then
  7. if v2[sd] then
  8. return v2
  9. end
  10. end
  11. end
  12. end
  13. end
  14. end
  15. return gameeditor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement