メインコンテンツへスキップ
ランタイム環境およびガベージ コレクションされたオブジェクトへのアクセス。

利用できる関数

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.