TouchHoldpress

Constructor:

TouchHoldpress(Touch.position, touchState, false)

Description

This event is triggered when the user touches for a long time and stays at the same position.

Parameters

Variable name Type Default Description
Touch.position Vector2 Coordinates of touch point
touchState Enum.UserInputState Input type state

Examples

When the user touches for a long time and stays at the same position, observe whether the event is printed or not.

UserInputService.TouchHoldpress:Connect(function() 
    print("This event that the user touches for a long time and stays at the same position is triggered")
end)