UserInputService.InputBegan
Fire with an input object { KeyCode = { Name, Value }, UserInputType = { Name } }.
Syntax
UserInputService.InputBegan
Parameters
This function takes no parameters.
Returns
| Type | Description |
|---|---|
RBXScriptSignal | The returned RBXScriptSignal. |
Description
UserInputService.InputBegan is part of the Services library. Service shims are pumped by the external tick loop and expose the parts of Roblox services the VM supports.
This entry describes an object or signal exposed by the library rather than a standalone callable function.
The aliases UserInputService.InputEnded resolve to the same implementation.
Example
UserInputService.InputBegan:Connect(function(input)
print(input.KeyCode.Name, input.UserInputType.Name)
end)
Notes
- Aliases:
UserInputService.InputEnded. - Service signals are pumped by the external tick loop.