This function returns an
InputObject and a
DataType/CFrame describing the device’s current rotation vector.
This is fired with an InputObject. The Position property of the input object is a
Enum/InputType|Enum.InputType.Gyroscope that tracks the total rotation in each local device axis.
Device rotation can only be tracked on devices with a `UserInputService/GyroscopeEnabled|gyroscope.
As this function fires locally, it can only be used in a
A tuple containing two properties:
Print Device Rotation
This example prints the current CFrame of a players device. Note that this will only work as expected if the player’s device has an enabled gyroscope. If not, the example prints:
Cannot get device rotation because device does not have an enabled gyroscope!