TouchPinch

Constructor:

TouchPinch({ newtouch1.position, newtouch2.position }, scale , pinchspeed, touchState)

Description

This event is triggered when two fingers are pinched or pulled apart on the touch device

Parameters

Variable name Type Default Description
table table{TouchPoint1 position, TouchPoint2 position}
float Zoom factor. >1: zoom in; <1: zoom out
nil
UserInputState Enum.UserInputState Input type state

Examples

When the user pinches or pulls apart fingers on the touch device, observe whether the event is printed or not

UserInputService.TouchPinch:Connect(function() 
    print("The event that the user pinches or pulls apart two fingers is triggered")
end)