Run it
Copy the script and paste it into your executor.
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
-- GUI
local ScreenGui = Instance.new("ScreenGui", PlayerGui)
ScreenGui.Name = "OrientationGUI"
ScreenGui.ResetOnSpawn = false
local Frame = Instance.new("Frame", ScreenGui)
Frame.Size = UDim2.new(0, 260, 0, )
Frame.Position = .(, -, , )
Frame.BackgroundColor3 = .(, , )
Frame.Active =
Frame.Draggable =
Frame.BorderSizePixel =
UICorner = .(, Frame)
UICorner.CornerRadius = .(, )
Title = .(, Frame)
Title.Size = .(, , , )
Title.Text =
Title.TextColor3 = .(,,)
Title.BackgroundTransparency =
Title.Font = .Font.GothamBold
Title.TextSize =
Portrait = .(, Frame)
Portrait.Size = .(, , , )
Portrait.Position = .(, , , )
Portrait.Text =
Portrait.BackgroundColor3 = .(, , )
Portrait.TextColor3 = .(,,)
Portrait.Font = .Font.Gotham
Portrait.TextSize =
.(, Portrait).CornerRadius = .(, )
Landscape = .(, Frame)
Landscape.Size = .(, , , )
Landscape.Position = .(, , , )
Landscape.Text =
Landscape.BackgroundColor3 = .(, , )
Landscape.TextColor3 = .(,,)
Landscape.Font = .Font.Gotham
Landscape.TextSize =
.(, Landscape).CornerRadius = .(, )
Portrait.MouseButton1Click:(()
(()
PlayerGui.ScreenOrientation = .ScreenOrientation.Portrait
)
)
Landscape.MouseButton1Click:(()
(()
PlayerGui.ScreenOrientation = .ScreenOrientation.Sensor
)
)This script fixes the screen orientation

Universal