Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.17 KB | None | 0 0
  1. getrawmetatable
  2. table getrawmetatable(variant<table, userdata> obj)
  3. Returns the metatable from a table or userdata, even if its locked.
  4.  
  5.  
  6. setrawmetatable
  7. boolean setrawmetatable(variant<table, userdata> obj, table val)
  8. Sets the metatable of a table or userdata, even if its locked.
  9.  
  10.  
  11. isreadonly
  12. boolean isreadonly(table val)
  13. Returns true if the table is read-only, false if it isn't.
  14.  
  15.  
  16. setreadonly
  17. boolean setreadonly(table tab, boolean readonly)
  18. Sets the read-only flag of a table.
  19.  
  20.  
  21. printconsole
  22. boolean printconsole(string val [, number r, number g, number b])
  23. Prints val to Elysian's console with color r, g, b. Default color is 0, 0, 200.
  24.  
  25.  
  26. printdebug
  27. boolean printdebug(string val)
  28. Prints val to the console (View->Console->Toggle)
  29.  
  30.  
  31. getobjects
  32. Instance... getobjects(string content)
  33. Internal function used by DataModel::GetObjects (see init.lua)
  34.  
  35.  
  36. readfile
  37. string readfile(string filename)
  38. Returns the contents of the file in the workspace folder
  39.  
  40.  
  41. loadfile
  42. function loadfile(string filename)
  43. Loads a file from the workspace folder. Returns nil and an error on error. Similar to calling loadstring(readfile(filename)).
  44.  
  45.  
  46. getgenv
  47. table getgenv()
  48. Returns the global environment for Elysian.
  49.  
  50.  
  51. getrenv
  52. table getrenv()
  53. Returns the game's scripts' global environment.
  54.  
  55.  
  56. Clipboard::set
  57. boolean Clipboard.set(string data)
  58. Sets the clipboard to `data`.
  59.  
  60.  
  61. mouse1press
  62. void mouse1press()
  63. Presses the left mouse button.
  64.  
  65.  
  66. mouse1release
  67. void mouse1release()
  68. Releases the left mouse button.
  69.  
  70.  
  71. mouse1click
  72. void mouse1click([number delay])
  73. Clicks the left mouse button with an optional delay in between. Delay default is ~0.03 seconds.
  74.  
  75.  
  76. mouse2press
  77. void mouse2press()
  78. Presses the right mouse button.
  79.  
  80.  
  81. mouse2release
  82. void mouse2release()
  83. Releases the right mouse button.
  84.  
  85.  
  86. mouse2click
  87. void mouse2click([number delay])
  88. Clicks the right mouse button with an optional delay in between. Delay default is ~0.03 seconds.
  89.  
  90.  
  91. keypress
  92. void keypress(number virtualkey)
  93. Presses key `virtualkey`. Use this for reference.
  94.  
  95.  
  96. keyrelease
  97. void keyrelease(number virtualkey)
  98. Releases key `virtualkey`
  99.  
  100.  
  101. mousemoverel
  102. void mousemoverel(number x, number y)
  103. Moves the cursor relatively.
  104.  
  105.  
  106. mousescroll
  107. void mousescroll(number amount)
  108. A positive number scrolls the mouse up and a negative number scrolls the mouse down. Use this for reference.
  109.  
  110.  
  111. writefile
  112. boolean writefile(string filename, string data [, boolean binary])
  113. Writes `data` to a file in the workspace folder. Returns true if successful.
  114.  
  115.  
  116. saveinstance
  117. boolean saveinstance(string filename, Instance instance)
  118. Saves an instance to a file in the workspace folder which can be later opened in Studio. NOTE: This function is currently disabled.
  119.  
  120.  
  121. decompile
  122. string decompile(variant<Instance, function> script [, string option])
  123. Attempts to decompile `script` and returns the result. If `option` is provided and equal to "dump", lua bytecode will be returned (similar to string.dump). It should be noted that due to Roblox's changes to Lua's VM and parser this bytecode is not reliable to use with unmodified decompilers. Returns nil and an error message on error.
  124.  
  125.  
  126. decompile
  127. boolean decompile(variant<Instance, function> script, "unluac", function callback(string result, string error))
  128. If `option` is provided and equal to "unluac", decompile decompiles with unluac. If invalid parameters are passed, nil and an error is returned. If not, decompile returns with true and a (Windows) thread is created that spawns a java process and waits for its output. Once the process ends, the callback is called with the result. If Java is not installed or another error occurs, the callback is called with nil and the error. WARNING: A new java process is created every time this function is called. Calling decompile too quickly or in excessive amounts may cause some java processes to hang or exhaust your computer of resources.
  129.  
  130.  
  131. checkcaller
  132. boolean checkcaller()
  133. Returns true if the function calling the function calling checkcaller is an Elysian function.
  134.  
  135.  
  136. setfflag
  137. boolean setfflag(string fflag, string value)
  138. Sets an FFlag's value. Returns true if the flag was set succesfully or false if the flag doesn't exist. For more information on FFlag's and how to retrieve their values, see: http://wiki.roblox.com/index.php?title=API:Class/GlobalSettings/GetFFlag
  139.  
  140.  
  141. getreg
  142. table getreg()
  143. Returns Lua's registry (LUA_REGISTRYINDEX).
  144.  
  145.  
  146. getnilinstances
  147. table getnilinstances()
  148. Returns a list of nil instances.
  149.  
  150.  
  151. elysianexecute
  152. void elysianexecute(string script [, Instance localscript])
  153. Equivalent to executing a script through Elysian's interface (pressing the execute button, etc). If 'localscript' is provided, the script will be binded/linked to that instance. If not present, a new LocalScript will be created.
  154.  
  155.  
  156. newcclosure
  157. function newcclosure(function f)
  158. Disguises lua function 'f' as a C function. It is seen as a C function by other scripts and any errors produced inside 'f' are viewed as coming from the C function, not 'f' (the existence of 'f' can not be detected by viewing the error message or stack trace, etc.). 'f' is allowed to yield ( e.g. wait() ) but will resume outside of the C function.
  159.  
  160.  
  161. replaceclosure
  162. function replaceclosure(function target, function replacement)
  163. Replaces a function with another function and returns a clone of the original. Once a function is replaced it cannot be replaced with any other function except for its clone/original. For a better understanding, see this code. Warning: It should be noted that Lua doesn't like people modifying internal structures and improper or extensive use of this function may cause unexpected crashes or other issues.
  164.  
  165.  
  166. bit library
  167. functions: bit.tobit, bit.tohex, bit.bnot, bit.band, bit.bor, bit.bxor, bit.lshift, bit.rshift, bit.arshift, bit.rol, bit.ror
  168. Attempts to replicate LuaJIT's bit library
  169.  
  170.  
  171. getallthreads
  172. table getallthreads()
  173. Returns an array of all existing Lua threads.
  174.  
  175.  
  176. getthreadobject
  177. Instance getthreadobject([thread t])
  178. Returns the script associated with a Lua thread. If 't' is not provided, the current thread is used.
  179.  
  180.  
  181. gettenv
  182. table gettenv([thread t])
  183. Returns a thread's environment. If 't' is not provided, the current thread is used.
  184.  
  185.  
  186. getsenv
  187. table getsenv(Instance script)
  188. Searches for a thread associated with 'script' and returns its environment (see init.lua for implementation).
  189.  
  190.  
  191. getlocals
  192. table getlocals(number level)
  193. Returns a Lua function's local variables. The level parameter represents a function on the callstack, where 1 is the function calling getlocals, 2 is the function calling that function, and so on. The level provided cannot point to an Elysian or C function.
  194.  
  195.  
  196. setlocal
  197. boolean setlocal(number level, string i, variant v)
  198. Sets local variable 'i' to value 'v' in the function pointed to by 'level' (see getlocals). Like getlocals, the function cannot be an Elysian or C function. Returns true if the variable was set successfully.
  199.  
  200.  
  201. getupvals
  202. table getupvals(variant<number, function> f)
  203. Returns a Lua function's upvalues. If a number is passed for 'f', it is interpreted as a level (see getlocals and setlocal). The function cannot be an Elysian or C function.
  204.  
  205.  
  206. setupval
  207. boolean setupval(variant<number, function> f, string i, variant v)
  208. Sets upvalue 'i' to value 'v' in function 'f'. If a number is passed for 'f', it is interpreted as a level (see getlocals and setlocal). The function cannot be an Elysian or C function. Returns true if the upvalue was set successfully.
  209.  
  210.  
  211. getconsts
  212. table getconsts(variant<number, function> f)
  213. Returns a Lua function's constants. If a number is passed for 'f', it is interpreted as a level.
  214.  
  215.  
  216. setconst
  217. void setconst(variant<number, function> f, number i, variant v)
  218. Sets constant number 'i' to value 'v' in function 'f'. If a number is passed for 'f', it is interpreted as a level.
  219.  
  220.  
  221. getgc
  222. table getgc([boolean nomt])
  223. Returns an array of all existing allocated objects in Lua. This includes strings, functions, threads, userdata, and more across all Roblox and Elysian scripts. Unless 'nomt' is set, the returned table has a metatable with __mode set to "v".
  224.  
  225.  
  226. islclosure
  227. boolean islclosure(function f)
  228. Returns true if a function is a Lua function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement