Utilities

GetObjects

Loads Roblox objects from an asset identifier or URL-like asset string.

Syntax

GetObjects(context: any, asset: string): table

Arguments

NameTypeDescription
contextanySelf or context argument supplied when calling method-style helpers.
assetstringAsset identifier, URL, or content string accepted by the Roblox loader.

Returns

NameTypeDescription
objectstableArray 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)