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.

Synthetic input goes to the Roblox game surface, not to Android dialogs or other app views.

Example

Example
Luau
if isrbxactive() then
    mouse2click()
end