mouse2release Synchronous

Send the button-up event for the secondary mouse button. This ends a hold begun with mouse2press.

Syntax
Luau
mouse2release() -> ()

Parameters

This function takes no arguments.

Returns

()

No values.

Usage notes

If you want a complete short secondary click, use mouse2click.

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

Example

Example
Luau
if isrbxactive() then
    mouse2press()
    mousemoverel(10, 0)
    mouse2release()
end