mouse2press Synchronous
Press and hold the secondary mouse button. Use this when the receiving interface distinguishes a held secondary action from a quick click.
Luau
mouse2press() -> ()Parameters
This function takes no arguments.
Returns
()No values.
Usage notes
Release it with mouse2release when the interaction ends.
Example
Luau
if isrbxactive() then
mouse2press()
task.wait(0.1)
mouse2release()
end