When StarterGui.ScreenOrientation = Enum.ScreenOrientation.Sensor then the game will not rotate until the character loads into the game for the first time. This occurs when Players.CharacterAutoLoads = false and loading is controlled.
This bug occurs every time on production on both a Kindle Fire and an iPhone 5s. I assume it affects all mobile devices.
Reproduction
Create a game with Players.CharacterAutoLoads = false and StarterGui.ScreenOrientation = ScreenOrientation.Sensor
Play game on mobile device with sensor. Try to get it to rotate. It won’t.
Thanks! Let me know if you need any more details on this bug.
CurrentScreenOrientation != ScreenOrientation ScreenOrientation is being used to specify how I want Roblox to behave, not detecting current orientation.
I’m not actually using CurrentScreenOrientation or trying to detect it. Instead, I’m expecting Roblox to accurately update its own screen orientation to reflect the device’s, which it doesn’t do.
That is, when I tell Roblox “use whatever the user is asking for” it doesn’t until the character is spawned. Before that point, it locks to Landscape. This is a bug outside of my control.
Hm, that’s interesting. I thought I had specifically handled this case, but perhaps something broke along the line. Thanks for the info, it should help!