Reference/Datatypes/RemoteGCObject
Datatype · Userdata

RemoteGCObject

userdatasince 1.8.3-free

Opaque handle to a garbage-collected object inside a remote Roblox Luau VM, as enumerated by gc.getgc. It is not a live Luau value; it exposes only the object's remote address and Luau GC type.

Properties

4
NameTypeAccessDescription
Addressnumberread

Remote process address of the GC object.

since 1.8.3-free
TypeIdnumberread

Raw Luau GC type tag byte (tt) of the object.

since 1.8.3-free
TypeNamestringread

Human-readable name of the GC type: string, table, function, userdata, thread, buffer, proto, upvalue, or unknown.

since 1.8.3-free
ValueRemoteGCTableProxy | string | Instance | anyreadwrite

Reads the value the GC object holds out of the remote process: a table opens as a RemoteGCTableProxy you can index, assign, iterate, and query with ContainsKey / ContainsValue; reading a key whose value is itself a table yields another proxy opened on demand (nested tables are resolved lazily, one level at a time, never eagerly). A string becomes a string and an instance userdata becomes its Instance. Assigning a table writes each given key back into the remote table, overwriting the values of keys that already exist there (new keys are ignored); assigning to any other kind is a no-op. See RemoteGCTableProxy for the full proxy contract.

since 1.8.3-free