The GetDeviceRotation function returns an
InputObject and a
DataType/CFrame that describes the device’s current rotation vector.
This is fired with an InputObject, which has type Enum.InputType.Gyroscope (
Enum/InputType), and position that shows total rotation in each local device axis.
To check if a user’s device has an enabled gyroscope, check the value of
Since it only fires locally, it can only be used in a
A tuple containing two properties:
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.