InputBegan

Constructor:

InputBegan(inputobject,bool)

Description

This event is triggered when the user input (e.g. mouse, touch pad, keyboard, etc.) starts.

Parameters

Variable name Type Default Description
inputobject RWObject Inputobject object

Examples

Start the user input (e.g. mouse, touch pad, keyboard, etc.) and observe whether the event is printed or not.

UserInputService.InputBegan:Connect(function(inputobject) 
    print("The event of input is triggered")
    print(tostring(inputobject.InputType))
    print(tostring(inputobject.InputState))
    print(tostring(inputobject.InputKeyCode))
end)