mouse2click Synchronous

Send one secondary-button click wherever the pointer currently sits. It is useful for opening a context action in a focused interface.

Syntax
Luau
mouse2click() -> ()

Parameters

This function takes no arguments.

Returns

()

No values.

Usage notes

The target interface decides whether it has a secondary-click action.

Example

Example
Luau
if isrbxactive() then
    mouse2click()
end
Kawaii documentation