Library

gc

table

Reads the garbage collector of every remote Roblox Luau VM. Returns live RemoteGCObject handles you can read and (sometimes) write.

Functions

1

#gc.getgc(filterTypeName: string?) → { RemoteGCObject }

yieldssince 1.8.3-free

Enumerates every garbage-collectable object across all Roblox VMs, returning a list of them as RemoteGCObject handles. Pauses the remote GC for the duration of the walk and reads process memory, so it is expensive and yields the calling thread while it runs; prefer passing filterTypeName to narrow the result down natively.

Parameters

filterTypeNamestring?

If given, only objects whose type name matches are returned.