-- Cool GUI Script для Roblox -- Вставь это в LocalScript в StarterGui local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") -- Создаём ScreenGui local screenGui = Instance.new("ScreenGui") screenGui.Name = "CoolGUI" screenGui.Parent = playerGui -- Основной фрейм local mainFrame = Instance.new("Frame") mainFrame.Name = "MainFrame" mainFrame.Size = UDim2.new(0, 300, 0, 200) mainFrame.Position = UDim2.new(0.5, -150, 0.5, -100) mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) mainFrame.BorderSizePixel = 0 mainFrame.Parent = screenGui -- Скруглённые углы для фрейма local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 10) corner.Parent = mainFrame -- Теневой эффект (опционально, для крутости) local shadow = Instance.new("Frame") shadow.Name = "Shadow" shadow.Size = UDim2.new(1, 4, 1, 4) shadow.Position = UDim2.new(0, -2, 0, 2) shadow.BackgroundColor3 = Color3.fromRGB(0, 0, 0) shadow.BackgroundTransparency = 0.7 shadow.BorderSizePixel = 0 shadow.ZIndex = mainFrame.ZIndex - 1 shadow.Parent = mainFrame local shadowCorner = Instance.new("UICorner") shadowCorner.CornerRadius = UDim.new(0, 10) shadowCorner.Parent = shadow -- Заголовок local titleLabel = Instance.new("TextLabel") titleLabel.Name = "Title" titleLabel.Size = UDim2.new(1, 0, 0, 50) titleLabel.Position = UDim2.new(0, 0, 0, 0) titleLabel.BackgroundTransparency = 1 titleLabel.Text = "C00l GUI!" titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) titleLabel.TextScaled = true titleLabel.Font = Enum.Font.GothamBold titleLabel.Parent = mainFrame -- Кнопка local coolButton = Instance.new("TextButton") coolButton.Name = "CoolButton" coolButton.Size = UDim2.new(0, 200, 0, 50) coolButton.Position = UDim2.new(0.5, -100, 0, 100) coolButton.BackgroundColor3 = Color3.fromRGB(0, 162, 255) coolButton.Text = "Кликни меня!" coolButton.TextColor3 = Color3.fromRGB(255, 255, 255) coolButton.TextScaled = true coolButton.Font = Enum.Font.Gotham coolButton.Parent = mainFrame -- Скруглённые углы для кнопки local buttonCorner = Instance.new("UICorner") buttonCorner.CornerRadius = UDim.new(0, 8) buttonCorner.Parent = coolButton -- Анимация при наведении local hoverTween = TweenService:Create( coolButton, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(255, 100, 0)} ) local normalTween = TweenService:Create( coolButton, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(0, 162, 255)} ) coolButton.MouseEnter:Connect(function() hoverTween:Play() end) coolButton.MouseLeave:Connect(function() normalTween:Play() end) -- Действие при клике coolButton.MouseButton1Click:Connect(function() titleLabel.Text = "Ты кликнул! 😎" -- Здесь можно добавить больше логики, например, телепорт или эффекты end) -- Анимация появления фрейма mainFrame.Size = UDim2.new(0, 0, 0, 0) local appearTween = TweenService:Create( mainFrame, TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Size = UDim2.new(0, 300, 0, 200)} ) appearTween:Play()