local gui = Instance.new("ScreenGui")
gui.IgnoreGuiInset = true
gui.ResetOnSpawn = false
gui.Name = "NoticeUI"
gui.Parent = game:GetService("CoreGui")

local frame = Instance.new("Frame")
frame.Size = UDim2.new(1, 0, 1, 0)
frame.BackgroundColor3 = Color3.fromRGB(8, 8, 8)
frame.BorderSizePixel = 0
frame.Parent = gui

local container = Instance.new("Frame")
container.Size = UDim2.new(0.85, 0, 0, 0)
container.AutomaticSize = Enum.AutomaticSize.Y
container.Position = UDim2.new(0.075, 0, 0.5, 0)
container.AnchorPoint = Vector2.new(0, 0.5)
container.BackgroundTransparency = 1
container.Parent = frame

local layout = Instance.new("UIListLayout")
layout.SortOrder = Enum.SortOrder.LayoutOrder
layout.Padding = UDim.new(0, 24)
layout.HorizontalAlignment = Enum.HorizontalAlignment.Center
layout.Parent = container

local line = Instance.new("Frame")
line.Size = UDim2.new(0, 40, 0, 2)
line.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
line.BorderSizePixel = 0
line.LayoutOrder = 1
line.Parent = container

local headline = Instance.new("TextLabel")
headline.Size = UDim2.new(1, 0, 0, 0)
headline.AutomaticSize = Enum.AutomaticSize.Y
headline.BackgroundTransparency = 1
headline.TextColor3 = Color3.fromRGB(255, 255, 255)
headline.Font = Enum.Font.GothamBold
headline.TextSize = 22
headline.TextWrapped = true
headline.Text = "THIS DOMAIN IS SHUTTING DOWN"
headline.LayoutOrder = 2
headline.Parent = container

local body = Instance.new("TextLabel")
body.Size = UDim2.new(1, 0, 0, 0)
body.AutomaticSize = Enum.AutomaticSize.Y
body.BackgroundTransparency = 1
body.TextColor3 = Color3.fromRGB(160, 160, 160)
body.Font = Enum.Font.Gotham
body.TextSize = 15
body.TextWrapped = true
body.Text = "Join the Discord to find our NEW scripts and keep running this script for free — no ads, no cost."
body.LayoutOrder = 3
body.Parent = container

local spacer = Instance.new("Frame")
spacer.Size = UDim2.new(1, 0, 0, 8)
spacer.BackgroundTransparency = 1
spacer.LayoutOrder = 4
spacer.Parent = container

local button = Instance.new("TextButton")
button.Size = UDim2.new(1, 0, 0, 52)
button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
button.TextColor3 = Color3.fromRGB(8, 8, 8)
button.Font = Enum.Font.GothamBold
button.TextSize = 15
button.Text = "Copy Discord Link"
button.BorderSizePixel = 0
button.LayoutOrder = 5
button.Parent = container

local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 6)
corner.Parent = button

button.MouseButton1Click:Connect(function()
    if setclipboard then
        setclipboard("https://discord.gg/e52GujVvbN")
        button.Text = "Copied"
        button.BackgroundColor3 = Color3.fromRGB(220, 220, 220)
        task.wait(2)
        button.Text = "Copy Discord Link"
        button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
    else
        button.Text = "Clipboard unavailable"
    end
end)
