Syntax
getnilinstances(): { Instance }Returns
| Name | Type | Description |
|---|---|---|
instances | { Instance } | Array table of cached Instance values whose Parent field is nil. |
Description
Returns a new array table containing cached Instance values whose Parent field is nil. The function takes no arguments. It does not sort the returned entries.
Call it without parameters. The function reads the needed context from the current runtime state.
It returns instances ({ Instance }). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Example call with placeholder values.
local result = getnilinstances()
print(result)