mouse2press Synchronous
Press and hold the secondary mouse button. Use it to begin a held secondary mouse-button interaction. Pair it with mouse2release so the button is not left held.
Luau
mouse2press() -> ()Parameters
This function takes no arguments.
Returns
()This function returns no values.
Example
Luau
-- Position the pointer over a harmless control in your own test UI.
task.wait(3)
if isrbxactive() then
mouse2press()
mouse2release()
end