런타임 환경 및 가비지 수집된 개체에 대한 액세스입니다.
사용 가능한 함수
filtergc
제공된 filters와 일치하는 live garbage-collected tables 또는 functions를 검색합니다. filterType은 “table” 또는 “function”이어야 합니다. options는 table이어야 합니다.
getgc
Returns an array table of live Luau garbage-collected objects visible to the API. Functions and userdata-like objects are included by default. Tables are included only when includeTables is true. get_gc_objects is an alias.
getgenv
LUA_ENVIRONINDEX를 push하여 current executor environment table을 반환합니다. 이 function은 arguments를 받지 않고 exactly one value를 반환하며 registered alias가 없습니다. repository의 call-sites는 returned table을 사용해 __siApiCache 및 saveinstance 같은 shared executor globals를 읽고 씁니다.
getrenv
Returns the Roblox global environment table. The function takes no arguments and returns exactly one value.
getscriptglobals
_G 및 shared의 current LUA_GLOBALSINDEX values가 담긴 new table을 반환합니다. 이 function은 arguments를 받지 않고 fresh table을 만들며, _G를 LUA_GLOBALSINDEX._G에서, shared를 LUA_GLOBALSINDEX.shared에서 할당한 뒤 exactly one value를 반환합니다. full global table은 반환하지 않으며 getscriptglobals에 등록된 alias는 없습니다.
gettenv
Returns the environment table stored on a Luau thread. getstateenv is an alias.
setclipboard
Writes one value to the Windows system clipboard as text. The value is converted to a string. The function returns no status value, whether the clipboard write succeeds or fails. toclipboard is an alias.
setrbxclipboard
Writes a required string to the Windows clipboard using Roblox Studio clipboard data format. The function returns no status value, whether the clipboard write succeeds or fails.