Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Upon the very startip
- globalEnv = {}
- for k, v in pairs(getfenv(0)) do
- if type(v) == "table" then
- globalEnv[k] = {}
- for a,d in pairs(v) do
- globalEnv[k][a] = d
- end
- else globalEnv[k] = v end
- end
- for k, v in pairs(getfenv(1)) do
- if type(v) == "table" then
- globalEnv[k] = {}
- for a,d in pairs(v) do
- globalEnv[k][a] = d
- end
- else globalEnv[k] = v end
- end
- -- Running firewolf
- local fn = loadfile("firewolf")
- setfenv(fn, globalEnv)
- pcall(fn)
- setfenv(1, globalEnv)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement