Device Rotation?

	local First, Second = game:GetService("UserInputService"):GetDeviceRotation()
	script.Parent.TextLabel.Text = tostring(math.floor(tick()*10)/10).." at "..tostring(First).." and "..tostring(Second)

Why won’t “Second” change? It’s stuck on my iPad at the default CFrame/Vector4 value.

1 Like

What generation is the iPad and what value do you get back?

iPad Air 2. It’s the default CFrame.new() value

On my device I very rarely get an issue where the gyroscope stops working entirely and rebooting the device fixes it. If the gyroscope is not working for other apps as well you could try that if you haven’t already. You may also want to double-check if you have any settings for the ROBLOX app disabled in iOS that would prevent it from accessing device sensors.

I’ll test your code when I get to my device later to see if it does work on mine.

I tested code on my phone and I’m also getting default values returned. This was not the case in the past.

I tried to test the gyroscope thing on my NVIDIA Shield K1 tablet a week ago, and all I kept getting was CFrame.new().

I’ve had people complain about gyro controls not working as well; it’s reproducable on my Moto G.

Doesn’t work for me either