Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gameeditor = {};
- function gameeditor:getgcindex(sd)
- for i,v in next, getgc() do
- if typeof(v) == "function" then
- for i2, v2 in next, debug.getupvalues(v) do
- if typeof(v2) == "table" then
- if v2[sd] then
- return v2
- end
- end
- end
- end
- end
- end
- return gameeditor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement