mouse2press Synchronous

Press and hold the secondary mouse button. Use this when the receiving interface distinguishes a held secondary action from a quick click.

Syntax
Luau
mouse2press() -> ()

Parameters

This function takes no arguments.

Returns

()

No values.

Usage notes

Release it with mouse2release when the interaction ends.

Example

Example
Luau
if isrbxactive() then
    mouse2press()
    task.wait(0.1)
    mouse2release()
end
Kawaii documentation