mouse2click Synchronous

Press and release the secondary mouse button. Use it for a single secondary click at the current pointer position. Move the pointer separately when a specific location is required.

Syntax
Luau
mouse2click() -> ()

Parameters

This function takes no arguments.

Returns

()

This function returns no values.

Example

Example
Luau
-- Position the pointer over a harmless control in your own test UI.
task.wait(3)
if isrbxactive() then
    mouse2click()
end
Kawaii documentation