Yuari
Documentation
Docs/Signals/fireclickdetector

fireclickdetector

Fires a ClickDetector event.

Syntax

fireclickdetector(clickDetector: Instance, distance?: number, eventName?: string) -> nil

Parameters

ParameterTypeDescription
clickDetectorInstanceThe click detector value used by the call.
distance?numberA distance value used by the interaction.
eventName?stringThe ClickDetector event to simulate.

Returns

TypeDescription
nilThis 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.