VirtualUser

Show Deprecated
Not Creatable
Service
Not Replicated

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.

Summary

Properties

Events

Methods

Button1Down(position: Vector2, camera: CFrame): void  

Simulates the user holding the left mouse button down.

Button1Up(position: Vector2, camera: CFrame): void  

Simulates the user releasing the left mouse button.

Button2Down(position: Vector2, camera: CFrame): void  

Simulates the user holding the right mouse button down.

Button2Up(position: Vector2, camera: CFrame): void  

Simulates the user releasing the right mouse button.

CaptureController(): void  

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

ClickButton1(position: Vector2, camera: CFrame): void  

Simulates the user clicking the left mouse button.

ClickButton2(position: Vector2, camera: CFrame): void  

Simulates the user clicking the right mouse button.

MoveMouse(position: Vector2, camera: CFrame): void  

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

SetKeyDown(key: string): void  

Simulates the user holding a key down.

SetKeyUp(key: string): void  

Simulates the user releasing a key.

StartRecording(): void  

Starts recording the user's input.


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

TypeKey(key: string): void  

Simulates the user typing a key.

Properties

Events

Methods

Button1Down

void
Local User Security

Simulates the user holding the left mouse button down.

Parameters

position: Vector2
camera: CFrame
Default Value: "Identity"

Returns

void

Button1Up

void
Local User Security

Simulates the user releasing the left mouse button.

Parameters

position: Vector2
camera: CFrame
Default Value: "Identity"

Returns

void

Button2Down

void
Local User Security

Simulates the user holding the right mouse button down.

Parameters

position: Vector2
camera: CFrame
Default Value: "Identity"

Returns

void

Button2Up

void
Local User Security

Simulates the user releasing the right mouse button.

Parameters

position: Vector2
camera: CFrame
Default Value: "Identity"

Returns

void

CaptureController

void
Local User Security

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


Returns

void

No return.

ClickButton1

void
Local User Security

Simulates the user clicking the left mouse button.

Parameters

position: Vector2
camera: CFrame
Default Value: "Identity"

Returns

void

ClickButton2

void
Local User Security

Simulates the user clicking the right mouse button.

Parameters

position: Vector2
camera: CFrame
Default Value: "Identity"

Returns

void

MoveMouse

void
Local User Security

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

Parameters

position: Vector2
camera: CFrame
Default Value: "Identity"

Returns

void

SetKeyDown

void
Local User Security

Simulates the user holding a key down.

Parameters

key: string

Returns

void

SetKeyUp

void
Local User Security

Simulates the user releasing a key.

Parameters

key: string

Returns

void

StartRecording

void
Local User Security

Starts recording the user's input.


Returns

void

StopRecording

Local User Security

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


Returns

TypeKey

void
Local User Security

Simulates the user typing a key.

Parameters

key: string

Returns

void