VINDICTA
Input · Function
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

mouse2click

Dispatches a right mouse button click (press + release).

function mouse2click(): ()

Synopsis

How it works

Simulates a right mouse button click (press + release). Sends two INPUT structs in a single SendInput call:
inputs[0].mi.dwFlags = MOUSEEVENTF_RIGHTDOWN;  // 0x0008
inputs[1].mi.dwFlags = MOUSEEVENTF_RIGHTUP;    // 0x0010
SendInput(2, inputs, sizeof(INPUT));
In Roblox, right-click typically controls camera rotation or opens context menus depending on the game's input bindings.

Usage

Right-click
mouse2click()