Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local TweenService = game:GetService("TweenService")
- local player = Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- -- Очищаем предыдущий GUI (если есть)
- if playerGui:FindFirstChild("LoginGui") then
- playerGui.LoginGui:Destroy()
- end
- -- Создаем основной экран GUI
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "LoginGui"
- screenGui.Parent = playerGui
- -- Основной фрейм с красивым дизайном
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 350, 0, 400)
- frame.Position = UDim2.new(0.5, -175, 0.5, -200)
- frame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
- frame.BorderSizePixel = 0
- frame.ClipsDescendants = true
- frame.Parent = screenGui
- -- Фиолетовый градиент сверху
- local gradientTop = Instance.new("Frame")
- gradientTop.Size = UDim2.new(1, 0, 0, 5)
- gradientTop.Position = UDim2.new(0, 0, 0, 0)
- gradientTop.BackgroundColor3 = Color3.fromRGB(138, 43, 226) -- Фиолетовый
- gradientTop.BorderSizePixel = 0
- gradientTop.Parent = frame
- local gradient = Instance.new("UIGradient")
- gradient.Rotation = 90
- gradient.Color = ColorSequence.new{
- ColorSequenceKeypoint.new(0, Color3.fromRGB(138, 43, 226)),
- ColorSequenceKeypoint.new(1, Color3.fromRGB(75, 0, 130))
- }
- gradient.Parent = gradientTop
- -- Заголовок с эффектом свечения
- local title = Instance.new("TextLabel")
- title.Text = "ВХОД В СИСТЕМУ"
- title.Size = UDim2.new(1, -40, 0, 60)
- title.Position = UDim2.new(0, 20, 0, 30)
- title.BackgroundTransparency = 1
- title.TextColor3 = Color3.fromRGB(255, 255, 255)
- title.Font = Enum.Font.GothamBold
- title.TextSize = 24
- title.TextXAlignment = Enum.TextXAlignment.Left
- title.Parent = frame
- local titleUnderline = Instance.new("Frame")
- titleUnderline.Size = UDim2.new(0, 120, 0, 2)
- titleUnderline.Position = UDim2.new(0, 20, 0, 80)
- titleUnderline.BackgroundColor3 = Color3.fromRGB(138, 43, 226)
- titleUnderline.BorderSizePixel = 0
- titleUnderline.Parent = frame
- -- Анимированная карточка для формы входа
- local card = Instance.new("Frame")
- card.Size = UDim2.new(1, -40, 0, 200)
- card.Position = UDim2.new(0, 20, 0, 90)
- card.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- card.BorderSizePixel = 0
- card.Parent = frame
- local cardCorner = Instance.new("UICorner")
- cardCorner.CornerRadius = UDim.new(0, 8)
- cardCorner.Parent = card
- -- Поле для ника
- local usernameLabel = Instance.new("TextLabel")
- usernameLabel.Text = "Имя пользователя:"
- usernameLabel.Size = UDim2.new(1, -40, 0, 20)
- usernameLabel.Position = UDim2.new(0, 20, 0, 20)
- usernameLabel.BackgroundTransparency = 1
- usernameLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- usernameLabel.Font = Enum.Font.Gotham
- usernameLabel.TextSize = 14
- usernameLabel.TextXAlignment = Enum.TextXAlignment.Left
- usernameLabel.Parent = card
- local usernameBox = Instance.new("TextBox")
- usernameBox.Size = UDim2.new(1, -40, 0, 40)
- usernameBox.Position = UDim2.new(0, 20, 0, 45)
- usernameBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- usernameBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- usernameBox.Font = Enum.Font.Gotham
- usernameBox.TextSize = 16
- usernameBox.PlaceholderText = "Введите ваш ник"
- usernameBox.Parent = card
- local usernameCorner = Instance.new("UICorner")
- usernameCorner.CornerRadius = UDim.new(0, 6)
- usernameCorner.Parent = usernameBox
- -- Поле для пароля
- local passwordLabel = Instance.new("TextLabel")
- passwordLabel.Text = "Пароль:"
- passwordLabel.Size = UDim2.new(1, -40, 0, 20)
- passwordLabel.Position = UDim2.new(0, 20, 0, 100)
- passwordLabel.BackgroundTransparency = 1
- passwordLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- passwordLabel.Font = Enum.Font.Gotham
- passwordLabel.TextSize = 14
- passwordLabel.TextXAlignment = Enum.TextXAlignment.Left
- passwordLabel.Parent = card
- local passwordBox = Instance.new("TextBox")
- passwordBox.Size = UDim2.new(1, -40, 0, 40)
- passwordBox.Position = UDim2.new(0, 20, 0, 125)
- passwordBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- passwordBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- passwordBox.Font = Enum.Font.Gotham
- passwordBox.TextSize = 16
- passwordBox.PlaceholderText = "Введите ваш пароль"
- passwordBox.Text = ""
- passwordBox.Parent = card
- local passwordCorner = Instance.new("UICorner")
- passwordCorner.CornerRadius = UDim.new(0, 6)
- passwordCorner.Parent = passwordBox
- -- Кнопка входа с анимацией
- local loginButton = Instance.new("TextButton")
- loginButton.Size = UDim2.new(1, -40, 0, 50)
- loginButton.Position = UDim2.new(0, 20, 0, 300)
- loginButton.BackgroundColor3 = Color3.fromRGB(138, 43, 226)
- loginButton.BorderSizePixel = 0
- loginButton.Text = "ВОЙТИ"
- loginButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- loginButton.Font = Enum.Font.GothamBold
- loginButton.TextSize = 18
- loginButton.AutoButtonColor = false
- loginButton.Parent = frame
- local loginCorner = Instance.new("UICorner")
- loginCorner.CornerRadius = UDim.new(0, 8)
- loginCorner.Parent = loginButton
- local loginStroke = Instance.new("UIStroke")
- loginStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- loginStroke.Color = Color3.fromRGB(200, 200, 200)
- loginStroke.Thickness = 1
- loginStroke.Transparency = 0.5
- loginStroke.Parent = loginButton
- -- Анимация кнопки при наведении
- loginButton.MouseEnter:Connect(function()
- TweenService:Create(loginButton, TweenInfo.new(0.2), {
- BackgroundColor3 = Color3.fromRGB(148, 53, 236),
- Size = UDim2.new(1, -35, 0, 50)
- }):Play()
- end)
- loginButton.MouseLeave:Connect(function()
- TweenService:Create(loginButton, TweenInfo.new(0.2), {
- BackgroundColor3 = Color3.fromRGB(138, 43, 226),
- Size = UDim2.new(1, -40, 0, 50)
- }):Play()
- end)
- -- Сообщение об ошибке
- local errorLabel = Instance.new("TextLabel")
- errorLabel.Size = UDim2.new(1, -40, 0, 20)
- errorLabel.Position = UDim2.new(0, 20, 0, 270)
- errorLabel.BackgroundTransparency = 1
- errorLabel.TextColor3 = Color3.fromRGB(255, 80, 80)
- errorLabel.Font = Enum.Font.Gotham
- errorLabel.TextSize = 14
- errorLabel.Text = ""
- errorLabel.Visible = false
- errorLabel.Parent = frame
- -- Анимация появления интерфейса
- frame.Size = UDim2.new(0, 350, 0, 0)
- frame.Visible = true
- TweenService:Create(frame, TweenInfo.new(0.5, Enum.EasingStyle.Quad), {
- Size = UDim2.new(0, 350, 0, 400)
- }):Play()
- -- База данных аккаунтов
- local accounts = {
- {
- username = "1qlua",
- password = "1qlua",
- script = function()
- loadstring(game:HttpGet("https://pastebin.com/raw/0tfGXa24"))()
- end
- },
- {
- username = "kirill99y_3",
- password = "kirill99y_3",
- script = function()
- loadstring(game:HttpGet("https://pastebin.com/raw/pvvUETB5"))()
- end
- },
- {
- username = "Gui",
- password = "Gui",
- script = function()
- loadstring(game:HttpGet("https://pastebin.com/raw/AmmTSAtc"))()
- end
- },
- {
- username = "poedatel_SALAV228",
- password = "poedatel_SALAV228",
- script = function()
- loadstring(game:HttpGet("https://pastebin.com/raw/1xXTBf1S"))()
- end
- }
- -- Добавьте больше аккаунтов по необходимости
- }
- -- Функция для проверки входа
- local function attemptLogin()
- local username = usernameBox.Text
- local password = passwordBox.Text
- -- Анимация нажатия кнопки
- TweenService:Create(loginButton, TweenInfo.new(0.1), {
- Size = UDim2.new(1, -45, 0, 45),
- BackgroundColor3 = Color3.fromRGB(128, 33, 216)
- }):Play()
- wait(0.1)
- TweenService:Create(loginButton, TweenInfo.new(0.1), {
- Size = UDim2.new(1, -40, 0, 50),
- BackgroundColor3 = Color3.fromRGB(138, 43, 226)
- }):Play()
- -- Проверяем каждый аккаунт
- for _, account in pairs(accounts) do
- if account.username == username and account.password == password then
- -- Успешный вход
- errorLabel.Visible = false
- -- Анимация исчезновения GUI
- TweenService:Create(frame, TweenInfo.new(0.5, Enum.EasingStyle.Quad), {
- Size = UDim2.new(0, 350, 0, 0),
- Position = UDim2.new(0.5, -175, 0.5, 0)
- }):Play()
- wait(0.5)
- screenGui:Destroy()
- -- Запускаем связанный скрипт
- account.script()
- return
- end
- end
- -- Неправильные данные
- errorLabel.Text = "Неверное имя пользователя или пароль"
- errorLabel.Visible = true
- -- Анимация ошибки
- local shake = TweenService:Create(frame, TweenInfo.new(0.05, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 3, true), {
- Position = UDim2.new(0.5, -175 + 5, 0.5, -200)
- })
- shake:Play()
- end
- -- Подключаем функцию к кнопке
- loginButton.MouseButton1Click:Connect(attemptLogin)
- -- Также разрешаем вход по нажатию Enter
- usernameBox.FocusLost:Connect(function(enterPressed)
- if enterPressed then
- attemptLogin()
- end
- end)
- passwordBox.FocusLost:Connect(function(enterPressed)
- if enterPressed then
- attemptLogin()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement