> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# GetObjects

> Loads a local Roblox asset and returns a one-item table containing the loaded Instance. Use the method-call form game:GetObjects(asset).

<div className="real-function-page">
  ```lua theme={null}
  GetObjects(context: DataModel, asset: string): { Instance }
  ```

  ## 인수

  <ParamField path={"context"} type={"DataModel"} required>
    Method-call self value. Use game:GetObjects(asset).
  </ParamField>

  <ParamField path={"asset"} type={"string"} required>
    Asset string passed to Roblox local asset loading.
  </ParamField>

  ## 반환값

  <ResponseField name={"objects"} type={"{ Instance }"}>
    Table whose first element is the loaded Instance.
  </ResponseField>

  ## 예제

  Load a local asset through Roblox local asset loading and return it in a one-item table.

  ```lua theme={null}
  local objects = game:GetObjects("rbxassetid://123456789")
  local object = objects[1]

  if object then
      print(object.Name)
  end
  ```
</div>
