API:Class/VirtualUser

Internal: This object has been marked as internal. It currently serves no significant use to developers.
Filtered-inheritance mode: While this class technically inherits all Instance class members, some (if not all) have been hidden because they serve no purpose for this object.
Service: This class is a service. It is a top-level singleton which can be obtained with the GetService method.
Uncreatable: This object cannot be created with Instance.new.

InternalClass.pngVirtualUser : Object Icon.pngInstance

VirtualUser is a service that allows you to record the inputs of a user, and then play it back to a limited extent. This service hasn't been maintained in several years, so it doesn't work very well anymore.

Functions

Functions [toggle]

voidButton1Down ( Vector2 position, CFrame camera = Identity ) [LocalUserSecurity]

Simulates the user holding the left mouse button down.

|RMD member="API:Class/VirtualUser/Button1Down"|Simulates the user holding the left mouse button down.|/RMD|
voidButton1Up ( Vector2 position, CFrame camera = Identity ) [LocalUserSecurity]

Simulates the user releasing the left mouse button.

|RMD member="API:Class/VirtualUser/Button1Up"|Simulates the user releasing the left mouse button.|/RMD|
voidButton2Down ( Vector2 position, CFrame camera = Identity ) [LocalUserSecurity]

Simulates the user holding the right mouse button down.

|RMD member="API:Class/VirtualUser/Button2Down"|Simulates the user holding the right mouse button down.|/RMD|
voidButton2Up ( Vector2 position, CFrame camera = Identity ) [LocalUserSecurity]

Simulates the user releasing the right mouse button.

|RMD member="API:Class/VirtualUser/Button2Up"|Simulates the user releasing the right mouse button.|/RMD|
voidCaptureController ( ) [LocalUserSecurity]

Attempts to gain priority over the hardware controller's input, in favor of the VirtualUser's simulated input.

|RMD member="API:Class/VirtualUser/CaptureController"|Attempts to gain priority over the hardware controller's input, in favor of the VirtualUser's simulated input.|/RMD|
voidClickButton1 ( Vector2 position, CFrame camera = Identity ) [LocalUserSecurity]

Simulates the user clicking the left mouse button.

|RMD member="API:Class/VirtualUser/ClickButton1"|Simulates the user clicking the left mouse button.|/RMD|
voidClickButton2 ( Vector2 position, CFrame camera = Identity ) [LocalUserSecurity]

Simulates the user clicking the right mouse button.

|RMD member="API:Class/VirtualUser/ClickButton2"|Simulates the user clicking the right mouse button.|/RMD|
voidMoveMouse ( Vector2 position, CFrame camera = Identity ) [LocalUserSecurity]

Simulates the user moving the mouse cursor to a specific position.

|RMD member="API:Class/VirtualUser/MoveMouse"|Simulates the user moving the mouse cursor to a specific position.|/RMD|
voidSetKeyDown ( string key ) [LocalUserSecurity]

Simulates the user holding a key down.

|RMD member="API:Class/VirtualUser/SetKeyDown"|Simulates the user holding a key down.|/RMD|
voidSetKeyUp ( string key ) [LocalUserSecurity]

Simulates the user releasing a key.

|RMD member="API:Class/VirtualUser/SetKeyUp"|Simulates the user releasing a key.|/RMD|
voidStartRecording ( ) [LocalUserSecurity]

Starts recording the user's input.

|RMD member="API:Class/VirtualUser/StartRecording"|Starts recording the user's input.|/RMD|
stringStopRecording ( ) [LocalUserSecurity]

Stops recording the user's input. Returns a Lua script as a string, that allows you to playback the inputs that were recorded.

|RMD member="API:Class/VirtualUser/StopRecording"|Stops recording the user's input. Returns a Lua script as a string, that allows you to playback the inputs that were recorded.|/RMD|
voidTypeKey ( string key ) [LocalUserSecurity]

Simulates the user typing a key.

|RMD member="API:Class/VirtualUser/TypeKey"|Simulates the user typing a key.|/RMD|
Button1Down ( Vector2 position, CFrame camera = Identity ) [LocalUserSecurity]
Simulates the user holding the left mouse button down.
Button1Up ( Vector2 position, CFrame camera = Identity ) [LocalUserSecurity]
Simulates the user releasing the left mouse button.
Button2Down ( Vector2 position, CFrame camera = Identity ) [LocalUserSecurity]
Simulates the user holding the right mouse button down.
Button2Up ( Vector2 position, CFrame camera = Identity ) [LocalUserSecurity]
Simulates the user releasing the right mouse button.
CaptureController ( ) [LocalUserSecurity]
Attempts to gain priority over the hardware controller's input, in favor of the VirtualUser's simulated input.
ClickButton1 ( Vector2 position, CFrame camera = Identity ) [LocalUserSecurity]
Simulates the user clicking the left mouse button.
ClickButton2 ( Vector2 position, CFrame camera = Identity ) [LocalUserSecurity]
Simulates the user clicking the right mouse button.
MoveMouse ( Vector2 position, CFrame camera = Identity ) [LocalUserSecurity]
Simulates the user moving the mouse cursor to a specific position.
SetKeyDown ( string key ) [LocalUserSecurity]
Simulates the user holding a key down.
SetKeyUp ( string key ) [LocalUserSecurity]
Simulates the user releasing a key.
StartRecording ( ) [LocalUserSecurity]
Starts recording the user's input.
StopRecording ( ) [LocalUserSecurity]
Stops recording the user's input. Returns a Lua script as a string, that allows you to playback the inputs that were recorded.
TypeKey ( string key ) [LocalUserSecurity]
Simulates the user typing a key.


|RMD member="API:Class/VirtualUser"|VirtualUser is a service that allows you to record the inputs of a user, and then play it back to a limited extent. This service hasn't been maintained in several years, so it doesn't work very well anymore. |/RMD|