Can I change Screen Orientation via a Local Script?

Hello Developers,

I am working on UI for my game and I want to change the player screen orientation via a local script. So, in Roblox Studio you can change screen orientation with a button, but when I run the function it doesn’t change the orientation.
(I would imagine this is on purpose)

My Code

local function Portrait()
	StarterGui.ScreenOrientation = "Portrait"
end

Would this change a players screen orientation?

3 Likes

Check out this article :3

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.