TypeKey (Method)
From Legacy Roblox Wiki
Jump to navigationJump to search
Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
TypeKey( String key ) | |
Returns | nil |
Description: | Simulates a press and release of a button on a given keyboard. |
Member of: | VirtualUser |
Example
Shows an example of using the VirtualUser service to simulate a key being typed.
local VU = game:GetService("VirtualUser") VU:TypeKey("a")