Mobile screen orientation

So my im making a game and my friend joined it and it was in portrait and he could not change it to landscape, so I made some code (shown below) and it still is not working, Please help!

local Players = game:GetService("Players")
local playerGUI = Players.LocalPlayer:WaitForChild("PlayerGui")

wait(2)

playerGUI.ScreenOrientation = Enum.ScreenOrientation.LandscapeLeft

Can someone help with this? Thanks!

local Players = game:GetService("Players")
local playerGUI = Players.LocalPlayer:WaitForChild("PlayerGui")

wait(2)

playerGUI.ScreenOrientation = Enum.ScreenOrientation.LandscapeSensor
1 Like