The GetDeviceAcceleration function determines the current acceleration of the user’s device. It returns an InputObject that describes the device’s current acceleration.
In order for this to work, the user’s device must have an enabled accelerometer. To check if a user’s device has an enabled accelerometer, you can check the UserInputService/AccelerometerEnabled property.
If you want to track when the user’s device’s acceleration changes instead, you can use the UserInputService/DeviceAccelerationChanged event.
An InputObject that describes the device’s current acceleration.
Cannot get device acceleration because device does not have an enabled accelerometer!
Output may vary depending on whether the user's device has an enabled accelerometer during testing.