Skip to main content
Dispatches a click or hover event on a ClickDetector.
The event argument names which signal on the detector fires. Pass one of "MouseClick", "RightMouseClick", "MouseHoverEnter", or "MouseHoverLeave". When omitted, it defaults to "MouseClick".

Parameters

Returns

void

Example

In a tycoon, every upgrade has a buy button you walk up to and click. Fire MouseClick on all of them and buy the whole tycoon from spawn.
Operates instantly regardless of player proximity restrictions.