local PlayerGui = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui") -- Force the game to use Portrait orientation PlayerGui.ScreenOrientation = Enum.ScreenOrientation.Portrait -- Optional: If the game tries to change it back, this loop will keep it locked task.spawn(function() while task.wait(5) do if PlayerGui.ScreenOrientation ~= Enum.Orientation.Portrait then PlayerGui.ScreenOrientation = Enum.Orientation.Portrait end end end)