Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local env = {
- _VERSION = _VERSION;
- assert = asset;
- getfenv = getfenv;
- setfenv = setfenv;
- bit = bit;
- rawset = rawset;
- tonumber = tonumber;
- tostring = tostring;
- loadstring = loadstring;
- error = error;
- type = type;
- coroutine = coroutine;
- next = next;
- unpack = unpack;
- pcall = pcall;
- sleep = sleep;
- loadfile = loadfile;
- math = math;
- pairs = pairs;
- rawget = rawget;
- _G = env;
- ipairs = ipairs;
- xpcall = xpcall;
- io = io;
- rawequal = rawequal;
- http = http;
- string = string;
- setmetatable = setmetatable;
- print = print;
- getmetatable = getmetatable;
- table = table;
- dofile = dofile;
- select = select;
- term = term;
- }
- env.fs = {}
- for i,v in pairs(fs) do
- env.fs[i] = v
- end
- shell.exit()
- local func = loadfile("/rom/startup")
- setfenv(func, env)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement