#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
| filterTypeName | string? | If given, only objects whose type name matches are returned. |