Universal Script 📌
443 Views
868 Executions

Screen orientation

Universal Script 📌
wejnerx
wejnerxFirst script
10 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

This script fixes the screen orientation

View Raw
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, 150)
Frame.Position = UDim2.new(0.5, -130, 0.4, 0)
Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
Frame.Active = true
Frame.Draggable = true
Frame.BorderSizePixel = 0

local UICorner = Instance.new("UICorner", Frame)
UICorner.CornerRadius = UDim.new(0, 12)

-- Tytuł
local Title = Instance.new("TextLabel", Frame)
Title.Size = UDim2.new(1, 0, 0, 40)
Title.Text = "Screen Orientation"
Title.TextColor3 = Color3.new(1,1,1)
Title.BackgroundTransparency = 1
Title.Font = Enum.Font.GothamBold
Title.TextSize = 18

-- Portrait Button
local Portrait = Instance.new("TextButton", Frame)
Portrait.Size = UDim2.new(0.45, 0, 0, 40)
Portrait.Position = UDim2.new(0.05, 0, 0.45, 0)
Portrait.Text = "Portrait"
Portrait.BackgroundColor3 = Color3.fromRGB(70, 130, 180)
Portrait.TextColor3 = Color3.new(1,1,1)
Portrait.Font = Enum.Font.Gotham
Portrait.TextSize = 16

Instance.new("UICorner", Portrait).CornerRadius = UDim.new(0, 10)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
6.9k
13.3k
Bumped 27 minutes ago
Universal Script 📌
125.8k
929.4k
Bumped 57 minutes ago
Script hub
200.9k
2.3M
Bumped 4 hours ago
Key System

Script hub

#21 this week

Verified script badgeAirflow HUB

Script hub
3.7M
907.2k
Bumped 6 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeFlow Hub | 73 Games | Updated

Universal Script 📌
175
189
Approved 7 hours ago
Universal Script 📌
54
30
Approved 7 hours ago
Paid