Zugriff auf Laufzeitumgebungen und durch Garbage Collection erfasste Objekte.
Verfügbare Funktionen
filtergc
Sucht live garbage-collected tables oder functions, die zu den angegebenen filters passen. filterType muss “table” oder “function” sein. options muss eine table sein.
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
Gibt die current executor environment table zurück, indem LUA_ENVIRONINDEX gepusht wird. Die function nimmt keine arguments, gibt exactly one value zurück und hat keinen registered alias. Call-sites im repository verwenden die returned table, um shared executor globals wie __siApiCache und saveinstance zu lesen und zu schreiben.
getrenv
Returns the Roblox global environment table. The function takes no arguments and returns exactly one value.
getscriptglobals
Gibt eine new table zurück, die die current LUA_GLOBALSINDEX values für _G und shared enthält. Die function nimmt keine arguments, erstellt eine fresh table, weist _G aus LUA_GLOBALSINDEX._G und shared aus LUA_GLOBALSINDEX.shared zu und gibt exactly one value zurück. Sie gibt nicht die full global table zurück, und für getscriptglobals ist kein alias registriert.
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.