脚本

getreferencedby

返回引用所提供实例的对象或脚本。

语法

getreferencedby(instance: userdata): table
别名 getreferences

参数

名称类型描述
instanceuserdata要检查或更新的 Roblox 实例。

返回值

名称类型描述
instancestable匹配实例的数组表。

说明

返回引用所提供实例的对象或脚本。

使用 1 个参数调用: instance。参数表会说明哪些值必填,哪些值只用于细化行为。

返回 instances (table)。使用返回表区分成功值、nil 结果和可恢复错误。

示例

使用占位值的示例调用。

local result = getreferencedby(game)
print(result)