Run it
Copy the script and paste it into your executor.
-- Create the ScreenGui
local gui = gethui() -- Gets the hidden UI layer
-- Create the ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = gui
-- Create the exit button
local exitButton = Instance.new("TextButton")
exitButton.Name = "ExitButton"
exitButton.Text = "Exit Game"
exitButton.Size = UDim2.new(0, 100, 0, 50)
exitButton.Position = UDim2.new(1, -110, 0, 10)
exitButton.AnchorPoint = Vector2.new(1, 0)
exitButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
exitButton.TextColor3 = Color3.fromRGB(255, 255, 255)
exitButton.Font = Enum.Font.SourceSansBold
exitButton.TextSize =
exitButton.Parent = screenGui
cornerRadius = .()
cornerRadius.CornerRadius = .(, )
cornerRadius.Parent = exitButton
()
:()
exitButton.MouseButton1Click:(exitGame)Idk

Universal