语法
getreferencedby(instance: userdata): table别名
getreferences参数
| 名称 | 类型 | 描述 |
|---|---|---|
instance | userdata | 要检查或更新的 Roblox 实例。 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
instances | table | 匹配实例的数组表。 |
说明
返回引用所提供实例的对象或脚本。
使用 1 个参数调用: instance。参数表会说明哪些值必填,哪些值只用于细化行为。
返回 instances (table)。使用返回表区分成功值、nil 结果和可恢复错误。
示例
使用占位值的示例调用。
local result = getreferencedby(game)
print(result)