Syntax
GetObjects(context: any, asset: string): tableArguments
| Name | Type | Description |
|---|---|---|
context | any | Self or context argument supplied when calling method-style helpers. |
asset | string | Asset identifier, URL, or content string accepted by the Roblox loader. |
Returns
| Name | Type | Description |
|---|---|---|
objects | table | Array table of objects returned by the loader or garbage collector. |
Description
Loads Roblox objects from an asset identifier or URL-like asset string.
Call it with 2 parameter(s): context, asset. The argument table explains which values are required and which ones only refine the behavior.
It returns objects (table). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Example call with placeholder values.
local result = GetObjects(nil, "example")
print(result)