Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 612 Bytes

userinputservice.md

File metadata and controls

28 lines (18 loc) · 612 Bytes

UserInputService

{% hint style="warning" %} OnUserInput may act non-functional due to service revamp. {% endhint %}

Properties

Inherited from Dynamic Set.

Functions

Name Type Description
OnUserInput Void Fires when input is pressed
IsKeyDown Boolean Is current key down

Example

game.Universe.UserInputService.OnUserInput(function(Input)
    if input == Enum.UserInput.A then
    end
end)