Disabling Portrait Mode, Is it Possible?

I’m making a game right now, and I just tested with someone who had said that the potrait mode had squished the game’s UI’s together, and made it in general hard to play because they don’t like portrait mode. Is there a way to disable portrait or mode?

2 Likes
game:GetService("StarterGui").ScreenOrientation = Enum.ScreenOrientation.LandscapeSensor

StarterGui.ScreenOrientation is the orientation of the device. LandscapeSensor is always in landscape. You can, if you want, set a specific side for the landscape. LandscapeLeft sets the device to landscape where the home button is on the left side. LandscapeRight puts the home button on the right side.

You can learn more here

6 Likes