Аргументы
DataModel
обязательно
Method-call self value. Use game:GetObjects(asset).
string
обязательно
Asset string passed to Roblox local asset loading.
Возвраты
{ Instance }
Table whose first element is the loaded Instance.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Loads a local Roblox asset and returns a one-item table containing the loaded Instance. Use the method-call form game:GetObjects(asset).
GetObjects(context: DataModel, asset: string): { Instance }
local objects = game:GetObjects("rbxassetid://123456789")
local object = objects[1]
if object then
print(object.Name)
end