getnilinstances
Returns instances whose parent is nil.
Syntax
getnilinstances() -> table
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
table | Instances whose parent is nil |
Description
getnilinstances is part of the Instances library. Instance helpers traverse the live DataModel and return instance proxies tied to the current game session.
The call is read-only: it resolves the current value when invoked and does not change the underlying state.
Example
for _, instance in ipairs(getnilinstances()) do
print(instance)
end
Notes
- Returned instances are live proxies; they can become invalid if the object is destroyed.