IntroductionAccount ManagerDecompiler

Scripting

Closures
Debug
Reflection
Metatable
Environment
Bit
Scripts
LuaStateProxy
oth

Instances & Events

Instances
Cache
Signals
VoltSignal
Actors

System

Filesystem
Input
iswindowactivekeyclickkeypresskeyreleasemouse1clickmouse1pressmouse1releasemouse2clickmouse2pressmouse2releasemousemoveabsmousemoverelmousescroll
Console
Crypt
Encoding
Miscellaneous

Graphics & Network

Drawing
WebSocket
RakNet
DocsGuidesRelease Notes
Input

mouse2press

Simulates pressing the right mouse button.

Syntax

mouse2press() -> ()

Returns

This function does not return a value.

Description

mouse2press simulates pressing down the right mouse button. Use mouse2release to release it.

Example

mouse2press()
task.wait(0.5)
mouse2release()

Related Functions

  • mouse2release - Release right mouse
  • mouse2click - Click right mouse

mouse2click

Previous Page

mouse2release

Next Page

On this page

SyntaxReturnsDescriptionExampleRelated Functions