1mp3r14l1nt3ll1g3nc3

ProtoSmasher Documentation

Sep 28th, 2019
696
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.11 KB | None | 0 0
  1. let me just point out that this is official , just posted here
  2. i did not make this , slappy did
  3. ProtoSmasher Documentation
  4. Base Environment
  5. getgenv
  6. getrenv
  7. getrawmetatable
  8. getsenv
  9. getmenv
  10. getscriptenvs
  11. loadstring
  12. loadfile
  13. dofile
  14. make_writeable
  15. make_readonly
  16. is_writeable
  17. is_readonly
  18. is_protosmasher_caller
  19. is_protosmasher_closure
  20. getobjects
  21. get_nil_instances
  22. get_thread_context
  23. dump_function
  24. get_script_function
  25. bytecode_to_lua
  26. writefile
  27. readfile
  28. decompile
  29. setclipboard
  30. pebc_create
  31. pebc_load
  32. saveinstance
  33. disconnect_all
  34. unlock_modulescript
  35. printoutput
  36. get_renderstep_list
  37. setfflag
  38. DebuggerManager
  39. get_calling_script
  40. protect_function
  41. is_protected_closure
  42. get_loaded_modules
  43. detour_function
  44. parse_url
  45.  
  46. -- CONSTANTS --
  47. PROTOSMASHER_LOADED
  48. MOUSE_CLICK
  49. MOUSE_DOWN
  50. MOUSE_UP
  51. getgenv
  52. getrenv
  53. getrawmetatable
  54. getsenv
  55. getmenv
  56. getscriptenvs
  57. loadstring
  58. loadfile
  59. dofile
  60. make_writeable
  61. make_readonly
  62. is_writeable
  63. is_readonly
  64. is_protosmasher_caller
  65. is_protosmasher_closure
  66. getobjects
  67. get_nil_instances
  68. get_thread_context
  69. dump_function
  70. get_script_function
  71. bytecode_to_lua
  72. writefile
  73. readfile
  74. decompile
  75. setclipboard
  76. pebc_create
  77. pebc_load
  78. saveinstance
  79. disconnect_all
  80. unlock_modulescript
  81. printoutput
  82. get_renderstep_list
  83. setfflag
  84. DebuggerManager
  85. get_calling_script
  86. protect_function
  87. is_protected_closure
  88. get_loaded_modules
  89. detour_function
  90. parse_url
  91.  
  92. -- CONSTANTS --
  93. PROTOSMASHER_LOADED
  94. MOUSE_CLICK
  95. MOUSE_DOWN
  96. MOUSE_UP
  97. Debug
  98. getregistry
  99. setmetatable
  100. getfenv
  101. setfenv
  102. getmetatable
  103. getlocal
  104. getlocals
  105. setlocal
  106. getupvalue
  107. getupvalues
  108. setupvalue
  109. getconstants
  110. setconstant
  111. getregistry
  112. setmetatable
  113. getfenv
  114. setfenv
  115. getmetatable
  116. getlocal
  117. getlocals
  118. setlocal
  119. getupvalue
  120. getupvalues
  121. setupvalue
  122. getconstants
  123. setconstant
  124. AES
  125. GenerateIV
  126. Encrypt
  127. Decrypt
  128. GenerateIV
  129. Encrypt
  130. Decrypt
  131. Base64
  132. Encode
  133. Decode
  134. Encode
  135. Decode
  136. Input
  137. LeftClick
  138. RightClick
  139. MoveMouse
  140. ScrollMouse
  141. KeyPress
  142. KeyDown
  143. KeyUp
  144. LeftClick
  145. RightClick
  146. MoveMouse
  147. ScrollMouse
  148. KeyPress
  149. KeyDown
  150. KeyUp
  151. Bit
  152. tobit
  153. bnot
  154. band
  155. bor
  156. bxor
  157. lshift
  158. rshift
  159. arshift
  160. rol
  161. ror
  162. bswap
  163. tohex
  164. tobit
  165. bnot
  166. band
  167. bor
  168. bxor
  169. lshift
  170. rshift
  171. arshift
  172. rol
  173. ror
  174. bswap
  175. tohex
  176. Drawing
  177. new
  178. new
  179. Base
  180. table getgenv(<none>)
  181. Returns the global environment table for ProtoSmasher.
  182.  
  183. table getrenv(<none>)
  184. Returns the table of all roblox globals.
  185.  
  186. table getrawmetatable(variant<Userdata, string, table> object)
  187. Returns the metatable of the passed object, ignores __metatable metafield. Could be locked, check with is_readonly and is_writeable or change with make_readonly and make_writeable.
  188.  
  189. table getsenv(Object<LocalScript> script)
  190. Returns the global environment of the given script.
  191.  
  192. table getmenv(Object<ModuleScript> script)
  193. Returns the global environment of the given ModuleScript.
  194.  
  195. table getscriptenvs(<none>)
  196. Returns a table of all scripts and their global environments. (key = script, value = environment)
  197.  
  198. variant<function, (nil, string)> loadstring(string sourceCode, string chunkName = "@(Random String)")
  199. Converts plain lua source code into a function. Returns nil and a string on error. Will follow the set execution method.
  200.  
  201. function loadfile(string filePath)
  202. Returns a function from the file, the equivalent of "loadstring(readfile(filePath))", except more efficient. Will follow the set execution method.
  203.  
  204. function dofile(string filePath)
  205. Executes the lua source code from the file, the equivalent of "loadstring(readfile(filePath))()", Will follow the set execution method.
  206.  
  207. void make_writeable(table tbl)
  208. Changes the readonly flag of a table.
  209.  
  210. void make_readonly(table tbl)
  211. Changes the readonly flag of a table.
  212.  
  213. bool is_writeable(table tbl)
  214. Returns weather or not the table is writeable.
  215.  
  216. bool is_readonly(table tbl)
  217. Returns weather or not the table is read only.
  218.  
  219. boolean is_protosmasher_caller(<none>)
  220. This checks if the current caller is a protosmasher thread. (used internally for getobjects)
  221.  
  222. boolean is_protosmasher_closure(function f)
  223. Returns a boolean based on whether or not the function was created by protosmasher.
  224.  
  225. Array<Object> getobjects(Object<DataModel> dataModel, string ContentString)
  226. Internal function used by protosmasher for DataModel::GetObjects.
  227.  
  228. table<Object> get_nil_instances(<none>)
  229. Returns all nil parented instances from the localscript state.
  230.  
  231. int get_thread_context(<none>)
  232. Returns the current context of the caller.
  233.  
  234. string dump_function(function f)
  235. Returns the regular lua bytecode of the given function.
  236.  
  237. function get_script_function(Object<ModuleScript, LocalScript> script)
  238. Returns a function of the script (cannot be called but can be passed to dump_function).
  239.  
  240. string bytecode_to_lua(string byteCode)
  241. Used to convert lua 5.1 bytecode into lua sourcecode (requires unluac.jar in workspace and java be installed)
  242.  
  243. void writefile(string filePath, string contentsToWrite, boolean isBinary = false)
  244. Writes the contents of "contentsToWrite" to the provided file (sandboxed to workspace).
  245.  
  246. string readfile(string pathToFile)
  247. Returns the files contents (sandboxed to workspace).
  248.  
  249. string decompile(variant<Object, function> obj, string optionalArg = nil)
  250. Returns the decompiled source code of a script or function. (if you want bytecode put optionalArg as "dumponly")
  251.  
  252. void setclipboard(string strToCopy)
  253. Sets the clipboard text to the contents of strToCopy
  254.  
  255. string pebc_create(function toEncrypt)
  256. Returns ProtoSmasher Encrypted Bytecode (TM) of the given function (can only be used by people i select, otherwise it will just throw an error.)
  257.  
  258. function pebc_load(string pebc)
  259. Loads ProtoSmasher Encrypted Bytecode (TM) and returns it in a function form
  260.  
  261. void saveinstance(Object instanceToSave, string fileName, bool enableScriptDecompiling)
  262. Converts the given instance into roblox's xml instance format and saves it to the saved under the given file name. When enableScriptDecompiling is enabled it will automatically decompile any modulescript or localscript it encounters (beware: this is buggy and may cause you to crash).
  263.  
  264. void disconnect_all(RBXScriptSignal signal)
  265. Disconnects all connections from a given signal. (should note this **might** not work for events on datamodel, same for get_signal_connections)
  266.  
  267. void unlock_modulescript(Object<ModuleScript> signal)
  268. Unlocks a given ModuleScript so it can be required via ProtoSmasher (Used by require now)
  269.  
  270. void printoutput(string text, Color3 color = Color3(1, 1, 1), bool newLine = true)
  271. Prints the output of protosmasher, with optional formatting.
  272.  
  273. table get_renderstep_list(<none>)
  274. Return a table of everything thats connected to RenderStep via BindToRenderStepEarly. The table is as following: key 1 is the priority, key 2 is the name, key 3 is the function.
  275.  
  276. bool setfflag(string flag, string value)
  277. Set's the value of an FFlag and returns whether it was successfully set or not. Click here to view most if not all FFlags for the client.
  278.  
  279. Object<DebuggerManager> DebuggerManager(<none>)
  280. Returns the object interface for roblox's script debugger. You can view its documentation here
  281.  
  282. Object<LocalScript, ModuleScript> get_calling_script(int level)
  283. Returns the script object from the specificed stack level.
  284.  
  285. function protect_function(function f)
  286. Returns a proxy function that will aide in making the function undetectable via stack trace errors. Function must be a ProtoSmasher closure.
  287.  
  288. bool is_protected_closure(function f)
  289. Returns a boolean whether or not the function is protected. Will return false instead of erroring with C closures.
  290.  
  291. table<Object> get_loaded_modules(<none>)
  292. Returns a table populated with all loaded ModuleScript's in the game. Automatically filters out CoreGui modules.
  293.  
  294. void detour_function(function f, function detour, bool ignoreSizeChecks = false)
  295. Detour's the given function to the passed detour function, meaning everytime the function is called, your function will be called instead. This replaces the function and therfore does not change the value of tostringing it. Detour functions that are lua will have a new global variable called 'original_function' that you can call to use to call the original function like before it was detoured. Will error if the detour function is larger than the original function, size increases are caused by upvalues. The parameter "ignoreSizeChecks" will not throw an error if the detour function is bigger than the function to be detoured. This can cause a crash and should be used with caution.
  296.  
  297. array<string, string> parse_url(string url)
  298. Returns a table populated with various information about the passed url. Current information: protocol, domain, port, resource, query
  299.  
  300. PROTOSMASHER_LOADED = true
  301.  
  302. MOUSE_CLICK = 0
  303.  
  304. MOUSE_DOWN = 1
  305.  
  306. MOUSE_UP = 2
  307.  
  308. table getgenv(<none>)
  309. Returns the global environment table for ProtoSmasher.
  310.  
  311. table getrenv(<none>)
  312. Returns the table of all roblox globals.
  313.  
  314. table getrawmetatable(variant<Userdata, string, table> object)
  315. Returns the metatable of the passed object, ignores __metatable metafield. Could be locked, check with is_readonly and is_writeable or change with make_readonly and make_writeable.
  316.  
  317. table getsenv(Object<LocalScript> script)
  318. Returns the global environment of the given script.
  319.  
  320. table getmenv(Object<ModuleScript> script)
  321. Returns the global environment of the given ModuleScript.
  322.  
  323. table getscriptenvs(<none>)
  324. Returns a table of all scripts and their global environments. (key = script, value = environment)
  325.  
  326. variant<function, (nil, string)> loadstring(string sourceCode, string chunkName = "@(Random String)")
  327. Converts plain lua source code into a function. Returns nil and a string on error. Will follow the set execution method.
  328.  
  329. function loadfile(string filePath)
  330. Returns a function from the file, the equivalent of "loadstring(readfile(filePath))", except more efficient. Will follow the set execution method.
  331.  
  332. function dofile(string filePath)
  333. Executes the lua source code from the file, the equivalent of "loadstring(readfile(filePath))()", Will follow the set execution method.
  334.  
  335. void make_writeable(table tbl)
  336. Changes the readonly flag of a table.
  337.  
  338. void make_readonly(table tbl)
  339. Changes the readonly flag of a table.
  340.  
  341. bool is_writeable(table tbl)
  342. Returns weather or not the table is writeable.
  343.  
  344. bool is_readonly(table tbl)
  345. Returns weather or not the table is read only.
  346.  
  347. boolean is_protosmasher_caller(<none>)
  348. This checks if the current caller is a protosmasher thread. (used internally for getobjects)
  349.  
  350. boolean is_protosmasher_closure(function f)
  351. Returns a boolean based on whether or not the function was created by protosmasher.
  352.  
  353. Array<Object> getobjects(Object<DataModel> dataModel, string ContentString)
  354. Internal function used by protosmasher for DataModel::GetObjects.
  355.  
  356. table<Object> get_nil_instances(<none>)
  357. Returns all nil parented instances from the localscript state.
  358.  
  359. int get_thread_context(<none>)
  360. Returns the current context of the caller.
  361.  
  362. string dump_function(function f)
  363. Returns the regular lua bytecode of the given function.
  364.  
  365. function get_script_function(Object<ModuleScript, LocalScript> script)
  366. Returns a function of the script (cannot be called but can be passed to dump_function).
  367.  
  368. string bytecode_to_lua(string byteCode)
  369. Used to convert lua 5.1 bytecode into lua sourcecode (requires unluac.jar in workspace and java be installed)
  370.  
  371. void writefile(string filePath, string contentsToWrite, boolean isBinary = false)
  372. Writes the contents of "contentsToWrite" to the provided file (sandboxed to workspace).
  373.  
  374. string readfile(string pathToFile)
  375. Returns the files contents (sandboxed to workspace).
  376.  
  377. string decompile(variant<Object, function> obj, string optionalArg = nil)
  378. Returns the decompiled source code of a script or function. (if you want bytecode put optionalArg as "dumponly")
  379.  
  380. void setclipboard(string strToCopy)
  381. Sets the clipboard text to the contents of strToCopy
  382.  
  383. string pebc_create(function toEncrypt)
  384. Returns ProtoSmasher Encrypted Bytecode (TM) of the given function (can only be used by people i select, otherwise it will just throw an error.)
  385.  
  386. function pebc_load(string pebc)
  387. Loads ProtoSmasher Encrypted Bytecode (TM) and returns it in a function form
  388.  
  389. void saveinstance(Object instanceToSave, string fileName, bool enableScriptDecompiling)
  390. Converts the given instance into roblox's xml instance format and saves it to the saved under the given file name. When enableScriptDecompiling is enabled it will automatically decompile any modulescript or localscript it encounters (beware: this is buggy and may cause you to crash).
  391.  
  392. void disconnect_all(RBXScriptSignal signal)
  393. Disconnects all connections from a given signal. (should note this **might** not work for events on datamodel, same for get_signal_connections)
  394.  
  395. void unlock_modulescript(Object<ModuleScript> signal)
  396. Unlocks a given ModuleScript so it can be required via ProtoSmasher (Used by require now)
  397.  
  398. void printoutput(string text, Color3 color = Color3(1, 1, 1), bool newLine = true)
  399. Prints the output of protosmasher, with optional formatting.
  400.  
  401. table get_renderstep_list(<none>)
  402. Return a table of everything thats connected to RenderStep via BindToRenderStepEarly. The table is as following: key 1 is the priority, key 2 is the name, key 3 is the function.
  403.  
  404. bool setfflag(string flag, string value)
  405. Set's the value of an FFlag and returns whether it was successfully set or not. Click here to view most if not all FFlags for the client.
  406.  
  407. Object<DebuggerManager> DebuggerManager(<none>)
  408. Returns the object interface for roblox's script debugger. You can view its documentation here
  409.  
  410. Object<LocalScript, ModuleScript> get_calling_script(int level)
  411. Returns the script object from the specificed stack level.
  412.  
  413. function protect_function(function f)
  414. Returns a proxy function that will aide in making the function undetectable via stack trace errors. Function must be a ProtoSmasher closure.
  415.  
  416. bool is_protected_closure(function f)
  417. Returns a boolean whether or not the function is protected. Will return false instead of erroring with C closures.
  418.  
  419. table<Object> get_loaded_modules(<none>)
  420. Returns a table populated with all loaded ModuleScript's in the game. Automatically filters out CoreGui modules.
  421.  
  422. void detour_function(function f, function detour, bool ignoreSizeChecks = false)
  423. Detour's the given function to the passed detour function, meaning everytime the function is called, your function will be called instead. This replaces the function and therfore does not change the value of tostringing it. Detour functions that are lua will have a new global variable called 'original_function' that you can call to use to call the original function like before it was detoured. Will error if the detour function is larger than the original function, size increases are caused by upvalues. The parameter "ignoreSizeChecks" will not throw an error if the detour function is bigger than the function to be detoured. This can cause a crash and should be used with caution.
  424.  
  425. array<string, string> parse_url(string url)
  426. Returns a table populated with various information about the passed url. Current information: protocol, domain, port, resource, query
  427.  
  428. PROTOSMASHER_LOADED = true
  429.  
  430. MOUSE_CLICK = 0
  431.  
  432. MOUSE_DOWN = 1
  433.  
  434. MOUSE_UP = 2
  435.  
  436. Debug
  437. table debug.getregistry(<none>)
  438. Returns the registry table.
  439.  
  440. void debug.setmetatable(Variant object, table mt)
  441. Sets the metatable for the given object to the given table. (mt can be nil)
  442.  
  443. table debug.getfenv(Variant object)
  444. Returns the environment of object.
  445.  
  446. Variant debug.setfenv(Variant object, table env)
  447. Sets the environment of the given object, returns object.
  448.  
  449. table debug.getmetatable(Variant object)
  450. Returns the metatable of given object. (functions exactly like getrawmetatable)
  451.  
  452. variant debug.getlocal(int stackIndex, string localName)
  453. Returns the value of a local from the selected stack based on the name.
  454.  
  455. table<variant> debug.getlocals(int stackLevel)
  456. Returns a table of all locals from the selected stack.
  457.  
  458. variant debug.setlocal(int stackIndex, string localName, Variant value)
  459. Sets the value of a local from the selected stack based on the name. Returns boolean "true" on success.
  460.  
  461. variant debug.getupvalue(Variant<int, function> container, string upvalName)
  462. Returns the value of a upvalue from the selected container based on the name.
  463.  
  464. table<variant> debug.getupvalues(Variant<int, function> container)
  465. Returns a table of all upvalues from the selected container.
  466.  
  467. variant debug.setupvalue(Variant<int, function> container, string upvalName, Variant value)
  468. Sets the value of the upvalue from the selected container based on the name. Returns boolean based on whether the upvalue was set successfully or not.
  469.  
  470. table<variant> debug.getconstants(function f)
  471. Return's the constants of the given function. Function must be a lua function.
  472.  
  473. void debug.setconstant(function f, int index, variant val)
  474. Set's the constant at the given index for the given function. Index's are 1-based. Function must be a lua function.
  475.  
  476. table debug.getregistry(<none>)
  477. Returns the registry table.
  478.  
  479. void debug.setmetatable(Variant object, table mt)
  480. Sets the metatable for the given object to the given table. (mt can be nil)
  481.  
  482. table debug.getfenv(Variant object)
  483. Returns the environment of object.
  484.  
  485. Variant debug.setfenv(Variant object, table env)
  486. Sets the environment of the given object, returns object.
  487.  
  488. table debug.getmetatable(Variant object)
  489. Returns the metatable of given object. (functions exactly like getrawmetatable)
  490.  
  491. variant debug.getlocal(int stackIndex, string localName)
  492. Returns the value of a local from the selected stack based on the name.
  493.  
  494. table<variant> debug.getlocals(int stackLevel)
  495. Returns a table of all locals from the selected stack.
  496.  
  497. variant debug.setlocal(int stackIndex, string localName, Variant value)
  498. Sets the value of a local from the selected stack based on the name. Returns boolean "true" on success.
  499.  
  500. variant debug.getupvalue(Variant<int, function> container, string upvalName)
  501. Returns the value of a upvalue from the selected container based on the name.
  502.  
  503. table<variant> debug.getupvalues(Variant<int, function> container)
  504. Returns a table of all upvalues from the selected container.
  505.  
  506. variant debug.setupvalue(Variant<int, function> container, string upvalName, Variant value)
  507. Sets the value of the upvalue from the selected container based on the name. Returns boolean based on whether the upvalue was set successfully or not.
  508.  
  509. table<variant> debug.getconstants(function f)
  510. Return's the constants of the given function. Function must be a lua function.
  511.  
  512. void debug.setconstant(function f, int index, variant val)
  513. Set's the constant at the given index for the given function. Index's are 1-based. Function must be a lua function.
  514.  
  515. AES
  516. string AES.GenerateIV(<none>)
  517. Returns a randomly generated 16 character string that can be used as an IV for encryption.
  518.  
  519. string AES.Encrypt(string Secret, string Key, string IV = "n@*fjakAnf983jF")
  520. Returns the secret "message" encrypted via AES-128, AES-192, and AES-256. AES mode is dependent on key length. Key length of 16 will use AES-128, length of 24 will use AES-192, and length of 32 will use AES-192. Only those key lengths are accepted.
  521.  
  522. string AES.Decrypt(string Secret, string Key, string IV = "n@*fjakAnf983jF")
  523. Returns the encrypted secret in a decrypted form. Follows the same rules as encrypt (see above).
  524.  
  525. string AES.GenerateIV(<none>)
  526. Returns a randomly generated 16 character string that can be used as an IV for encryption.
  527.  
  528. string AES.Encrypt(string Secret, string Key, string IV = "n@*fjakAnf983jF")
  529. Returns the secret "message" encrypted via AES-128, AES-192, and AES-256. AES mode is dependent on key length. Key length of 16 will use AES-128, length of 24 will use AES-192, and length of 32 will use AES-192. Only those key lengths are accepted.
  530.  
  531. string AES.Decrypt(string Secret, string Key, string IV = "n@*fjakAnf983jF")
  532. Returns the encrypted secret in a decrypted form. Follows the same rules as encrypt (see above).
  533.  
  534. Base64
  535. string Base64.Encode(string Input)
  536. Returns the base64 encoded version of Input.
  537.  
  538. string Base64.Decode(string Input)
  539. Returns the base64 decoded version of Input.
  540.  
  541. string Base64.Encode(string Input)
  542. Returns the base64 encoded version of Input.
  543.  
  544. string Base64.Decode(string Input)
  545. Returns the base64 decoded version of Input.
  546.  
  547. Input
  548. void Input.LeftClick(int Action)
  549. Performs a left click of the mouse when called. Use MOUSE_DOWN or MOUSE_UP as Action to do something other than a click. (Defaults to MOUSE_CLICK if no Action is provided)
  550.  
  551. void Input.RightClick(int Action)
  552. Performs a right click of the mouse when called. Use MOUSE_DOWN or MOUSE_UP as Action to do something other than a click. (Defaults to MOUSE_CLICK if no Action is provided)
  553.  
  554. void Input.MoveMouse(int x, int y)
  555. Moves the mouse from its current position by the given amounts.
  556.  
  557. void Input.ScrollMouse(int ScrollAmount)
  558. Scrolls the mouse by the given amount. (amount is negative for up, positive for down.)
  559.  
  560. void Input.KeyPress(int VirtualKeyCode)
  561. Performs a key press of the given key when called. Key codes can be found here.
  562.  
  563. void Input.KeyDown(int VirtualKeyCode)
  564. "Holds" a key down when called. Key codes can be found here.
  565.  
  566. void Input.KeyUp(int VirtualKeyCode)
  567. "Releases" a key when called. Key codes can be found here.
  568.  
  569. void Input.LeftClick(int Action)
  570. Performs a left click of the mouse when called. Use MOUSE_DOWN or MOUSE_UP as Action to do something other than a click. (Defaults to MOUSE_CLICK if no Action is provided)
  571.  
  572. void Input.RightClick(int Action)
  573. Performs a right click of the mouse when called. Use MOUSE_DOWN or MOUSE_UP as Action to do something other than a click. (Defaults to MOUSE_CLICK if no Action is provided)
  574.  
  575. void Input.MoveMouse(int x, int y)
  576. Moves the mouse from its current position by the given amounts.
  577.  
  578. void Input.ScrollMouse(int ScrollAmount)
  579. Scrolls the mouse by the given amount. (amount is negative for up, positive for down.)
  580.  
  581. void Input.KeyPress(int VirtualKeyCode)
  582. Performs a key press of the given key when called. Key codes can be found here.
  583.  
  584. void Input.KeyDown(int VirtualKeyCode)
  585. "Holds" a key down when called. Key codes can be found here.
  586.  
  587. void Input.KeyUp(int VirtualKeyCode)
  588. "Releases" a key when called. Key codes can be found here.
  589.  
  590. Bit
  591. int bit.tobit(int num)
  592. Returns the input as a bit number? (in my testing it just returns the number without a decimal)
  593.  
  594. int bit.bnot(int num)
  595. Performs a bit negate on the input.
  596.  
  597. int bit.band(int n1, int n2)
  598. Performs a bit and operation on the given inputs.
  599.  
  600. int bit.bor(int n1, int n2)
  601. Performs a bit or operation on the given inputs.
  602.  
  603. int bit.bxor(int n1, int n2)
  604. Performs a bit xor operation on the given inputs.
  605.  
  606. int bit.lshift(int num, int ShiftAmount)
  607. Shifts the input left by the given amount.
  608.  
  609. int bit.rshift(int num, int ShiftAmount)
  610. Shifts the input right by the given amount.
  611.  
  612. int bit.arshift(int num, int ShiftAmount)
  613. Performs a arithmetic right shift on the given input by the given amount.
  614.  
  615. int bit.rol(int num, int ShiftAmount)
  616. Circular shifts the input left by the given amount.
  617.  
  618. int bit.ror(int num, int ShiftAmount)
  619. Circular shifts the input right by the given amount.
  620.  
  621. int bit.bswap(int num)
  622. Performs a byte swap on the given input. (basicly reverses the bits)
  623.  
  624. string bit.tohex(int num)
  625. Returns the input as a hexidecimal string.
  626.  
  627. int bit.tobit(int num)
  628. Returns the input as a bit number? (in my testing it just returns the number without a decimal)
  629.  
  630. int bit.bnot(int num)
  631. Performs a bit negate on the input.
  632.  
  633. int bit.band(int n1, int n2)
  634. Performs a bit and operation on the given inputs.
  635.  
  636. int bit.bor(int n1, int n2)
  637. Performs a bit or operation on the given inputs.
  638.  
  639. int bit.bxor(int n1, int n2)
  640. Performs a bit xor operation on the given inputs.
  641.  
  642. int bit.lshift(int num, int ShiftAmount)
  643. Shifts the input left by the given amount.
  644.  
  645. int bit.rshift(int num, int ShiftAmount)
  646. Shifts the input right by the given amount.
  647.  
  648. int bit.arshift(int num, int ShiftAmount)
  649. Performs a arithmetic right shift on the given input by the given amount.
  650.  
  651. int bit.rol(int num, int ShiftAmount)
  652. Circular shifts the input left by the given amount.
  653.  
  654. int bit.ror(int num, int ShiftAmount)
  655. Circular shifts the input right by the given amount.
  656.  
  657. int bit.bswap(int num)
  658. Performs a byte swap on the given input. (basicly reverses the bits)
  659.  
  660. string bit.tohex(int num)
  661. Returns the input as a hexidecimal string.
  662.  
  663. Drawing
  664. variant Drawing.new(string ClassName)
  665. Creates a new DrawObject based on the given class name and returns it.
  666.  
  667. variant Drawing.new(string ClassName)
  668. Creates a new DrawObject based on the given class name and returns it.
  669.  
  670. Classes:
  671. Base
  672. Side note: every class inherits functions and properties from this class.
  673. bool Visible
  674. int ZIndex
  675. void Remove()
  676.  
  677. Line
  678. Vector2 From
  679. Vector2 To
  680. Color3 Color
  681. float Thickness
  682. float Transparency
  683.  
  684. Text
  685. string Text
  686. Vector2 Position
  687. float Size
  688. Color3 Color
  689. bool Center
  690. bool Outline
  691. float Transparency
  692. Vector2 TextBounds [readonly]
  693.  
  694. Square
  695. Vector2 Position
  696. Vector2 Size
  697. Color3 Color
  698. float Thickness
  699. bool Filled
  700. float Transparency
  701.  
  702. Circle
  703. Vector2 Position
  704. float Radius
  705. Color3 Color
  706. float Thickness
  707. bool Filled
  708. float Transparency
  709.  
  710. int NumSides
  711. Triangle
  712. Vector2 PointA
  713. Vector2 PointB
  714. Vector2 PointC
  715. Color3 Color
  716. float Thickness
  717. bool Filled
  718. float Transparency
  719.  
  720. Image
  721. string Uri
  722. Vector2 Position
  723. Vector2 Size [readonly]
  724. bool Loaded
  725. float Transparency
Advertisement
Add Comment
Please, Sign In to add comment