Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
- -- Создаем основной ScreenGui
- local ScreenGui = Instance.new("ScreenGui")
- ScreenGui.Name = "ProfileGUI"
- ScreenGui.ResetOnSpawn = false
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.Parent = PlayerGui
- -- Основной фрейм (можно двигать)
- local MainFrame = Instance.new("Frame")
- MainFrame.Name = "MainFrame"
- MainFrame.Size = UDim2.new(0, 500, 0, 350)
- MainFrame.Position = UDim2.new(0.5, -250, 0.5, -175)
- MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 30)
- MainFrame.BorderSizePixel = 0
- MainFrame.Active = true
- MainFrame.Draggable = true
- MainFrame.Selectable = true
- MainFrame.Parent = ScreenGui
- -- Стиль для фрейма
- local UICorner = Instance.new("UICorner")
- UICorner.CornerRadius = UDim.new(0, 12)
- UICorner.Parent = MainFrame
- local UIStroke = Instance.new("UIStroke")
- UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- UIStroke.Color = Color3.fromRGB(100, 50, 150)
- UIStroke.LineJoinMode = Enum.LineJoinMode.Round
- UIStroke.Thickness = 2
- UIStroke.Parent = MainFrame
- -- Заголовок
- local Header = Instance.new("Frame")
- Header.Name = "Header"
- Header.Size = UDim2.new(1, 0, 0, 40)
- Header.Position = UDim2.new(0, 0, 0, 0)
- Header.BackgroundColor3 = Color3.fromRGB(30, 20, 40)
- Header.BorderSizePixel = 0
- Header.Parent = MainFrame
- local UICornerHeader = UICorner:Clone()
- UICornerHeader.CornerRadius = UDim.new(0, 12)
- UICornerHeader.Parent = Header
- local Title = Instance.new("TextLabel")
- Title.Name = "Title"
- Title.Size = UDim2.new(0, 200, 1, 0)
- Title.Position = UDim2.new(0.5, -100, 0, 0)
- Title.BackgroundTransparency = 1
- Title.Text = "Профиль Kirill99y_3"
- Title.Font = Enum.Font.GothamBold
- Title.TextColor3 = Color3.fromRGB(200, 180, 255)
- Title.TextSize = 18
- Title.Parent = Header
- -- Кнопка закрытия
- local CloseButton = Instance.new("TextButton")
- CloseButton.Name = "CloseButton"
- CloseButton.Size = UDim2.new(0, 30, 0, 30)
- CloseButton.Position = UDim2.new(1, -35, 0.5, -15)
- CloseButton.BackgroundColor3 = Color3.fromRGB(50, 30, 60)
- CloseButton.BorderSizePixel = 0
- CloseButton.Text = "X"
- CloseButton.Font = Enum.Font.GothamBold
- CloseButton.TextColor3 = Color3.fromRGB(200, 180, 255)
- CloseButton.TextSize = 16
- CloseButton.Parent = Header
- local UICornerClose = UICorner:Clone()
- UICornerClose.Parent = CloseButton
- CloseButton.MouseButton1Click:Connect(function()
- ScreenGui:Destroy()
- end)
- -- Левая панель (кнопка переключения)
- local LeftPanel = Instance.new("Frame")
- LeftPanel.Name = "LeftPanel"
- LeftPanel.Size = UDim2.new(0, 60, 0, 270)
- LeftPanel.Position = UDim2.new(0, 10, 0, 50)
- LeftPanel.BackgroundTransparency = 1
- LeftPanel.Parent = MainFrame
- local SwitchButton = Instance.new("TextButton")
- SwitchButton.Name = "SwitchButton"
- SwitchButton.Size = UDim2.new(1, 0, 0, 40)
- SwitchButton.Position = UDim2.new(0, 0, 0, 0)
- SwitchButton.BackgroundColor3 = Color3.fromRGB(50, 30, 70)
- SwitchButton.BorderSizePixel = 0
- SwitchButton.Text = ">>"
- SwitchButton.Font = Enum.Font.GothamBold
- SwitchButton.TextColor3 = Color3.fromRGB(200, 180, 255)
- SwitchButton.TextSize = 16
- SwitchButton.Parent = LeftPanel
- local UICornerSwitch = UICorner:Clone()
- UICornerSwitch.Parent = SwitchButton
- -- Правая панель (аватар и ник) print
- local RightPanel = Instance.new("Frame")
- RightPanel.Name = "RightPanel"
- RightPanel.Size = UDim2.new(0, 150, 0, 270)
- RightPanel.Position = UDim2.new(1, -160, 0, 50)
- RightPanel.BackgroundTransparency = 1
- RightPanel.Parent = MainFrame
- -- Кнопка для показа ника
- local ShowNickButton = Instance.new("TextButton")
- ShowNickButton.Name = "ShowNickButton"
- ShowNickButton.Size = UDim2.new(1, 0, 0, 40)
- ShowNickButton.Position = UDim2.new(0, 0, 0, 0)
- ShowNickButton.BackgroundColor3 = Color3.fromRGB(50, 30, 70)
- ShowNickButton.BorderSizePixel = 0
- ShowNickButton.Text = "Показать ник"
- ShowNickButton.Font = Enum.Font.GothamMedium
- ShowNickButton.TextColor3 = Color3.fromRGB(200, 180, 255)
- ShowNickButton.TextSize = 14
- ShowNickButton.Parent = RightPanel
- local UICornerNick = UICorner:Clone()
- UICornerNick.Parent = ShowNickButton
- -- Аватарка
- local AvatarFrame = Instance.new("Frame")
- AvatarFrame.Name = "AvatarFrame"
- AvatarFrame.Size = UDim2.new(0, 120, 0, 120)
- AvatarFrame.Position = UDim2.new(0.5, -60, 0.5, -60)
- AvatarFrame.BackgroundColor3 = Color3.fromRGB(40, 30, 50)
- AvatarFrame.BorderSizePixel = 0
- AvatarFrame.Parent = RightPanel
- local UICornerAvatar = UICorner:Clone()
- UICornerAvatar.Parent = AvatarFrame
- local AvatarImage = Instance.new("ImageLabel")
- AvatarImage.Name = "AvatarImage"
- AvatarImage.Size = UDim2.new(1, -10, 1, -10)
- AvatarImage.Position = UDim2.new(0, 5, 0, 5)
- AvatarImage.BackgroundTransparency = 1
- AvatarImage.Image = "rbxthumb://type=AvatarHeadShot&id=" .. LocalPlayer.UserId .. "&w=420&h=420"
- AvatarImage.Parent = AvatarFrame
- local ChangeAvatarButton = Instance.new("TextButton")
- ChangeAvatarButton.Name = "ChangeAvatarButton"
- ChangeAvatarButton.Size = UDim2.new(1, 0, 0, 30)
- ChangeAvatarButton.Position = UDim2.new(0, 0, 1, 10)
- ChangeAvatarButton.BackgroundColor3 = Color3.fromRGB(70, 40, 90)
- ChangeAvatarButton.BorderSizePixel = 0
- ChangeAvatarButton.Text = "Создать свой профиль"
- ChangeAvatarButton.Font = Enum.Font.GothamMedium
- ChangeAvatarButton.TextColor3 = Color3.fromRGB(200, 180, 255)
- ChangeAvatarButton.TextSize = 12
- ChangeAvatarButton.Parent = RightPanel
- local UICornerChange = UICorner:Clone()
- UICornerChange.Parent = ChangeAvatarButton
- -- Ник (скрыт по умолчанию)
- local NickLabel = Instance.new("TextLabel")
- NickLabel.Name = "NickLabel"
- NickLabel.Size = UDim2.new(1, 0, 0, 30)
- NickLabel.Position = UDim2.new(0, 0, 0, 50)
- NickLabel.BackgroundTransparency = 1
- NickLabel.Text = "@1qlua"
- NickLabel.Font = Enum.Font.GothamBold
- NickLabel.TextColor3 = Color3.fromRGB(180, 120, 255)
- NickLabel.TextSize = 16
- NickLabel.Visible = false
- NickLabel.Parent = RightPanel
- -- Центральная панель (описание профиля)
- local CenterPanel = Instance.new("Frame")
- CenterPanel.Name = "CenterPanel"
- CenterPanel.Size = UDim2.new(0, 250, 0, 270)
- CenterPanel.Position = UDim2.new(0, 80, 0, 50)
- CenterPanel.BackgroundTransparency = 1
- CenterPanel.Parent = MainFrame
- local DescriptionLabel = Instance.new("TextLabel")
- DescriptionLabel.Name = "DescriptionLabel"
- DescriptionLabel.Size = UDim2.new(1, -20, 1, -20)
- DescriptionLabel.Position = UDim2.new(0, 10, 0, 10)
- DescriptionLabel.BackgroundColor3 = Color3.fromRGB(30, 25, 40)
- DescriptionLabel.BorderSizePixel = 0
- DescriptionLabel.Text = "Добро пожаловать в профиль Kirill99y\n\nочень хорошо помогал в скриптах\n\nочень хорошый друг)❤️"
- DescriptionLabel.Font = Enum.Font.Gotham
- DescriptionLabel.TextColor3 = Color3.fromRGB(200, 180, 255)
- DescriptionLabel.TextSize = 14
- DescriptionLabel.TextWrapped = true
- DescriptionLabel.TextXAlignment = Enum.TextXAlignment.Left
- DescriptionLabel.TextYAlignment = Enum.TextYAlignment.Top
- DescriptionLabel.Parent = CenterPanel
- local UICornerDesc = UICorner:Clone()
- UICornerDesc.Parent = DescriptionLabel
- -- Второй слайд (скрыт по умолчанию)
- local SecondSlide = Instance.new("Frame")
- SecondSlide.Name = "SecondSlide"
- SecondSlide.Size = UDim2.new(1, -20, 1, -60)
- SecondSlide.Position = UDim2.new(0, 10, 0, 50)
- SecondSlide.BackgroundTransparency = 1
- SecondSlide.Visible = false
- SecondSlide.Parent = MainFrame
- local ButtonsScroll = Instance.new("ScrollingFrame")
- ButtonsScroll.Name = "ButtonsScroll"
- ButtonsScroll.Size = UDim2.new(1, 0, 1, 0)
- ButtonsScroll.Position = UDim2.new(0, 0, 0, 0)
- ButtonsScroll.BackgroundTransparency = 1
- ButtonsScroll.BorderSizePixel = 0
- ButtonsScroll.ScrollBarThickness = 5
- ButtonsScroll.ScrollBarImageColor3 = Color3.fromRGB(100, 50, 150)
- ButtonsScroll.CanvasSize = UDim2.new(0, 0, 0, 0)
- ButtonsScroll.Parent = SecondSlide
- local ButtonsLayout = Instance.new("UIListLayout")
- ButtonsLayout.Name = "ButtonsLayout"
- ButtonsLayout.Padding = UDim.new(0, 10)
- ButtonsLayout.FillDirection = Enum.FillDirection.Vertical
- ButtonsLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
- ButtonsLayout.SortOrder = Enum.SortOrder.LayoutOrder
- ButtonsLayout.Parent = ButtonsScroll
- -- Создаем несколько кнопок с описанием
- local buttonTemplates = {
- {
- Name = "Button1",
- Text = "нечего",
- Description = "нечего",
- Script = function()
- print("Эта кнопка может быть скрыта!")
- end
- },
- {
- Name = "Button2",
- Text = "нечего",
- Description = "нечего",
- Script = function()
- print("Эта кнопка может быть скрыта!")
- end
- },
- {
- Name = "Button3",
- Text = "нечего",
- Description = "нечего",
- Script = function()
- print("Эта кнопка может быть скрыта!")
- end
- },
- {
- Name = "Button4",
- Text = "нечего",
- Description = "нечего",
- Script = function()
- print("Эта кнопка может быть скрыта!")
- end,
- CanHide = true
- }
- }
- local buttons = {}
- for i, template in ipairs(buttonTemplates) do
- local ButtonFrame = Instance.new("Frame")
- ButtonFrame.Name = template.Name .. "Frame"
- ButtonFrame.Size = UDim2.new(1, -20, 0, 80)
- ButtonFrame.BackgroundTransparency = 1
- ButtonFrame.LayoutOrder = i
- ButtonFrame.Parent = ButtonsScroll
- local Button = Instance.new("TextButton")
- Button.Name = template.Name
- Button.Size = UDim2.new(1, 0, 0, 40)
- Button.Position = UDim2.new(0, 0, 0, 0)
- Button.BackgroundColor3 = Color3.fromRGB(60, 35, 85)
- Button.BorderSizePixel = 0
- Button.Text = template.Text
- Button.Font = Enum.Font.GothamMedium
- Button.TextColor3 = Color3.fromRGB(200, 180, 255)
- Button.TextSize = 14
- Button.Parent = ButtonFrame
- local UICornerButton = UICorner:Clone()
- UICornerButton.Parent = Button
- local DescLabel = Instance.new("TextLabel")
- DescLabel.Name = template.Name .. "Desc"
- DescLabel.Size = UDim2.new(1, 0, 0, 30)
- DescLabel.Position = UDim2.new(0, 0, 0, 45)
- DescLabel.BackgroundTransparency = 1
- DescLabel.Text = template.Description
- DescLabel.Font = Enum.Font.Gotham
- DescLabel.TextColor3 = Color3.fromRGB(180, 160, 220)
- DescLabel.TextSize = 12
- DescLabel.TextWrapped = true
- DescLabel.TextXAlignment = Enum.TextXAlignment.Left
- DescLabel.Parent = ButtonFrame
- -- Сохраняем кнопку для возможного скрытия
- buttons[template.Name] = {
- Frame = ButtonFrame,
- Button = Button,
- CanHide = template.CanHide or false
- }
- -- Назначаем скрипт
- Button.MouseButton1Click:Connect(function()
- template.Script()
- end)
- end
- -- Обновляем размер CanvasSize для ScrollingFrame
- ButtonsLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
- ButtonsScroll.CanvasSize = UDim2.new(0, 0, 0, ButtonsLayout.AbsoluteContentSize.Y + 20)
- end)
- -- Функции для кнопок
- ShowNickButton.MouseButton1Click:Connect(function()
- NickLabel.Visible = not NickLabel.Visible
- ShowNickButton.Text = NickLabel.Visible and "Скрыть ник" or "Показать ник"
- end)
- ChangeAvatarButton.MouseButton1Click:Connect(function()
- -- LocalScript (должен быть в StarterPlayerScripts или подобном месте)
- local link = "https://discord.gg/Z9EuZUY67g"
- -- Проверка платформы (копирование работает только на ПК)
- if not (game:GetService("UserInputService"):GetPlatform() == Enum.Platform.Windows) then
- warn("Скрипт работает только на ПК (Windows)")
- return
- end
- -- Функция для копирования текста в буфер обмена
- local function copyToClipboard(text)
- local success, errorMsg = pcall(function()
- -- Попытка использовать setclipboard() (если доступно)
- if setclipboard then
- setclipboard(text)
- print("Ссылка скопирована (через setclipboard): " .. text)
- return
- end
- -- Попытка через TextService (актуально для новых версий Roblox)
- local textService = game:GetService("TextService")
- if textService.SetClipboard then
- textService:SetClipboard(text)
- print("Ссылка скопирована (через TextService): " .. text)
- return
- end
- warn("Не удалось скопировать: нет доступа к буферу обмена")
- end)
- if not success then
- warn("Ошибка при копировании: " .. tostring(errorMsg))
- end
- end
- -- Копируем ссылку при запуске
- copyToClipboard(link)
- -- Уведомление для игрока
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Ссылка скопирована",
- Text = "Ссылка " .. link .. " скопирована в буфер обмена",
- Duration = 5
- })
- end)
- local isSecondSlideVisible = false
- SwitchButton.MouseButton1Click:Connect(function()
- isSecondSlideVisible = not isSecondSlideVisible
- CenterPanel.Visible = not isSecondSlideVisible
- RightPanel.Visible = not isSecondSlideVisible
- SecondSlide.Visible = isSecondSlideVisible
- SwitchButton.Text = isSecondSlideVisible and "<<" or ">>"
- -- Пример скрытия кнопок (можно вызывать из скриптов кнопок)
- if isSecondSlideVisible then
- -- Показываем все кнопки при открытии
- for name, buttonData in pairs(buttons) do
- buttonData.Frame.Visible = true
- end
- end
- end)
- -- Пример функции для скрытия кнопок (можно вызывать из других скриптов)
- function ToggleButtonVisibility(buttonName)
- if buttons[buttonName] and buttons[buttonName].CanHide then
- buttons[buttonName].Frame.Visible = not buttons[buttonName].Frame.Visible
- end
- end
- -- Пример использования:
- -- ToggleButtonVisibility("Button4") -- Скрыть/показать кнопку 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement