getsignals Synchronous
List the Roblox events exposed by an Instance, so you can explore its signal surface without guessing event names. The list contains event objects you can pass to other signal APIs.
Luau
getsignals(instance: Instance) -> {RBXScriptSignal}Parameters
| Parameter | Type | Description |
|---|---|---|
instance | Instance | Instance whose reflected events you want to enumerate. |
Returns
{RBXScriptSignal}An array of RBXScriptSignal values sorted by event name.
Usage notes
Kawaii resolves each reflected event through normal Instance access. Events that the current context cannot access are skipped; an Instance with no accessible events returns an empty array.
getsignal uses this same enumeration when resolving an index.
Example
Luau
local part = Instance.new("Part")
for index, signal in ipairs(getsignals(part)) do
print(index, signal)
end
part:Destroy()