fireclickdetector
Fires a ClickDetector event.
Syntax
fireclickdetector(clickDetector: Instance, distance?: number, eventName?: string) -> nil
Parameters
| Parameter | Type | Description |
|---|---|---|
clickDetector | Instance | The click detector value used by the call. |
distance? | number | A distance value used by the interaction. |
eventName? | string | The ClickDetector event to simulate. |
Returns
| Type | Description |
|---|---|
nil | This function does not return a value. |
Description
fireclickdetector is part of the Signals library. Signal helpers resolve live RBXScriptSignal objects and their connection lists. Firing and replication use the client's real signal paths.
The operation is performed immediately using the arguments supplied at the call site.
Example
local detector = workspace:FindFirstChildWhichIsA("ClickDetector", true)
if detector then
fireclickdetector(detector)
end
Notes
- Signal helpers operate on the live RBXScriptSignal and its connection list.