local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local player = [Link]
local playerGui = player:WaitForChild("PlayerGui")
-- Создаём ScreenGui
local screenGui = [Link]("ScreenGui")
[Link] = "WelcomeGui"
[Link] = playerGui
[Link] = false
-- Создаём Frame (основное меню)
local frame = [Link]("Frame")
[Link] = [Link](0.4, 0, 0.5, 0) -- 40% ширины, 50% высоты экрана
[Link] = [Link](0.5, 0, 0.5, 0) -- Центр
[Link] = [Link](0.5, 0.5)
frame.BackgroundColor3 = [Link](30, 30, 30) -- Тёмный фон
[Link] = 0.3
[Link] = screenGui
-- Закруглённые углы
local corner = [Link]("UICorner")
[Link] = [Link](0, 12)
[Link] = frame
-- Адаптивность
local aspectRatio = [Link]("UIAspectRatioConstraint")
[Link] = 1.5 -- Соотношение ширины к высоте
[Link] = frame
-- Текст
local textLabel = [Link]("TextLabel")
[Link] = [Link](0.9, 0, 0.3, 0)
[Link] = [Link](0.5, 0, 0.15, 0)
[Link] = [Link](0.5, 0)
[Link] = 1
[Link] = "Здравствуйте, игрок! Очень просим, чтобы вы зашли на
[Link]
textLabel.TextColor3 = [Link](255, 255, 255)
[Link] = true
[Link] = [Link]
[Link] = true
[Link] = frame
-- Картинка
local imageLabel = [Link]("ImageLabel")
[Link] = [Link](0.8, 0, 0.4, 0)
[Link] = [Link](0.5, 0, 0.5, 0)
[Link] = [Link](0.5, 0)
[Link] = 1
[Link] = "rbxassetid://73821305459821"
[Link] = [Link]
[Link] = frame
-- Кнопка "Окей"
local button = [Link]("TextButton")
[Link] = [Link](0.4, 0, 0.15, 0)
[Link] = [Link](0.5, 0, 0.85, 0)
[Link] = [Link](0.5, 0)
button.BackgroundColor3 = [Link](0, 120, 215)
[Link] = "Окей"
button.TextColor3 = [Link](255, 255, 255)
[Link] = true
[Link] = [Link]
[Link] = frame
-- Закруглённые углы для кнопки
local buttonCorner = [Link]("UICorner")
[Link] = [Link](0, 8)
[Link] = button
-- Градиент для кнопки
local gradient = [Link]("UIGradient")
[Link] = [Link]{
[Link](0, [Link](0, 120, 215)),
[Link](1, [Link](0, 80, 150))
}
[Link] = button
-- Анимация появления
[Link] = 1
[Link] = 1
[Link] = 1
[Link] = 1
[Link] = 1
local tweenInfo = [Link](0.5, [Link],
[Link])
local fadeIn = TweenService:Create(frame, tweenInfo, {BackgroundTransparency =
0.3})
local textFadeIn = TweenService:Create(textLabel, tweenInfo, {TextTransparency =
0})
local imageFadeIn = TweenService:Create(imageLabel, tweenInfo, {ImageTransparency =
0})
local buttonFadeIn = TweenService:Create(button, tweenInfo, {BackgroundTransparency
= 0, TextTransparency = 0})
fadeIn:Play()
textFadeIn:Play()
imageFadeIn:Play()
buttonFadeIn:Play()
-- Обработчик кнопки
button.MouseButton1Click:Connect(function()
local fadeOut = TweenService:Create(frame, tweenInfo, {BackgroundTransparency =
1})
local textFadeOut = TweenService:Create(textLabel, tweenInfo, {TextTransparency
= 1})
local imageFadeOut = TweenService:Create(imageLabel, tweenInfo,
{ImageTransparency = 1})
local buttonFadeOut = TweenService:Create(button, tweenInfo,
{BackgroundTransparency = 1, TextTransparency = 1})
fadeOut:Play()
textFadeOut:Play()
imageFadeOut:Play()
buttonFadeOut:Play()
[Link]:Connect(function()
screenGui:Destroy()
end)
end)