getinstances
Returns every Instance tracked by the Luau garbage collector.
function getinstances(): {Instance}{Instance}Array of every Instance known to the GC.Usage
Find all RemoteEvents
for _, inst in ipairs(getinstances()) do
if inst:IsA("RemoteEvent") then
print(inst:GetFullName())
end
end