Advertisement
kill21_2

вход в систему

May 23rd, 2025 (edited)
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.59 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local TweenService = game:GetService("TweenService")
  3. local player = Players.LocalPlayer
  4. local playerGui = player:WaitForChild("PlayerGui")
  5.  
  6. -- Очищаем предыдущий GUI (если есть)
  7. if playerGui:FindFirstChild("LoginGui") then
  8. playerGui.LoginGui:Destroy()
  9. end
  10.  
  11. -- Создаем основной экран GUI
  12. local screenGui = Instance.new("ScreenGui")
  13. screenGui.Name = "LoginGui"
  14. screenGui.Parent = playerGui
  15.  
  16. -- Основной фрейм с красивым дизайном
  17. local frame = Instance.new("Frame")
  18. frame.Size = UDim2.new(0, 350, 0, 400)
  19. frame.Position = UDim2.new(0.5, -175, 0.5, -200)
  20. frame.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  21. frame.BorderSizePixel = 0
  22. frame.ClipsDescendants = true
  23. frame.Parent = screenGui
  24.  
  25. -- Фиолетовый градиент сверху
  26. local gradientTop = Instance.new("Frame")
  27. gradientTop.Size = UDim2.new(1, 0, 0, 5)
  28. gradientTop.Position = UDim2.new(0, 0, 0, 0)
  29. gradientTop.BackgroundColor3 = Color3.fromRGB(138, 43, 226) -- Фиолетовый
  30. gradientTop.BorderSizePixel = 0
  31. gradientTop.Parent = frame
  32.  
  33. local gradient = Instance.new("UIGradient")
  34. gradient.Rotation = 90
  35. gradient.Color = ColorSequence.new{
  36. ColorSequenceKeypoint.new(0, Color3.fromRGB(138, 43, 226)),
  37. ColorSequenceKeypoint.new(1, Color3.fromRGB(75, 0, 130))
  38. }
  39. gradient.Parent = gradientTop
  40.  
  41. -- Заголовок с эффектом свечения
  42. local title = Instance.new("TextLabel")
  43. title.Text = "ВХОД В СИСТЕМУ"
  44. title.Size = UDim2.new(1, -40, 0, 60)
  45. title.Position = UDim2.new(0, 20, 0, 30)
  46. title.BackgroundTransparency = 1
  47. title.TextColor3 = Color3.fromRGB(255, 255, 255)
  48. title.Font = Enum.Font.GothamBold
  49. title.TextSize = 24
  50. title.TextXAlignment = Enum.TextXAlignment.Left
  51. title.Parent = frame
  52.  
  53. local titleUnderline = Instance.new("Frame")
  54. titleUnderline.Size = UDim2.new(0, 120, 0, 2)
  55. titleUnderline.Position = UDim2.new(0, 20, 0, 80)
  56. titleUnderline.BackgroundColor3 = Color3.fromRGB(138, 43, 226)
  57. titleUnderline.BorderSizePixel = 0
  58. titleUnderline.Parent = frame
  59.  
  60. -- Анимированная карточка для формы входа
  61. local card = Instance.new("Frame")
  62. card.Size = UDim2.new(1, -40, 0, 200)
  63. card.Position = UDim2.new(0, 20, 0, 90)
  64. card.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  65. card.BorderSizePixel = 0
  66. card.Parent = frame
  67.  
  68. local cardCorner = Instance.new("UICorner")
  69. cardCorner.CornerRadius = UDim.new(0, 8)
  70. cardCorner.Parent = card
  71.  
  72. -- Поле для ника
  73. local usernameLabel = Instance.new("TextLabel")
  74. usernameLabel.Text = "Имя пользователя:"
  75. usernameLabel.Size = UDim2.new(1, -40, 0, 20)
  76. usernameLabel.Position = UDim2.new(0, 20, 0, 20)
  77. usernameLabel.BackgroundTransparency = 1
  78. usernameLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
  79. usernameLabel.Font = Enum.Font.Gotham
  80. usernameLabel.TextSize = 14
  81. usernameLabel.TextXAlignment = Enum.TextXAlignment.Left
  82. usernameLabel.Parent = card
  83.  
  84. local usernameBox = Instance.new("TextBox")
  85. usernameBox.Size = UDim2.new(1, -40, 0, 40)
  86. usernameBox.Position = UDim2.new(0, 20, 0, 45)
  87. usernameBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  88. usernameBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  89. usernameBox.Font = Enum.Font.Gotham
  90. usernameBox.TextSize = 16
  91. usernameBox.PlaceholderText = "Введите ваш ник"
  92. usernameBox.Parent = card
  93.  
  94. local usernameCorner = Instance.new("UICorner")
  95. usernameCorner.CornerRadius = UDim.new(0, 6)
  96. usernameCorner.Parent = usernameBox
  97.  
  98. -- Поле для пароля
  99. local passwordLabel = Instance.new("TextLabel")
  100. passwordLabel.Text = "Пароль:"
  101. passwordLabel.Size = UDim2.new(1, -40, 0, 20)
  102. passwordLabel.Position = UDim2.new(0, 20, 0, 100)
  103. passwordLabel.BackgroundTransparency = 1
  104. passwordLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
  105. passwordLabel.Font = Enum.Font.Gotham
  106. passwordLabel.TextSize = 14
  107. passwordLabel.TextXAlignment = Enum.TextXAlignment.Left
  108. passwordLabel.Parent = card
  109.  
  110. local passwordBox = Instance.new("TextBox")
  111. passwordBox.Size = UDim2.new(1, -40, 0, 40)
  112. passwordBox.Position = UDim2.new(0, 20, 0, 125)
  113. passwordBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  114. passwordBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  115. passwordBox.Font = Enum.Font.Gotham
  116. passwordBox.TextSize = 16
  117. passwordBox.PlaceholderText = "Введите ваш пароль"
  118. passwordBox.Text = ""
  119. passwordBox.Parent = card
  120.  
  121. local passwordCorner = Instance.new("UICorner")
  122. passwordCorner.CornerRadius = UDim.new(0, 6)
  123. passwordCorner.Parent = passwordBox
  124.  
  125. -- Кнопка входа с анимацией
  126. local loginButton = Instance.new("TextButton")
  127. loginButton.Size = UDim2.new(1, -40, 0, 50)
  128. loginButton.Position = UDim2.new(0, 20, 0, 300)
  129. loginButton.BackgroundColor3 = Color3.fromRGB(138, 43, 226)
  130. loginButton.BorderSizePixel = 0
  131. loginButton.Text = "ВОЙТИ"
  132. loginButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  133. loginButton.Font = Enum.Font.GothamBold
  134. loginButton.TextSize = 18
  135. loginButton.AutoButtonColor = false
  136. loginButton.Parent = frame
  137.  
  138. local loginCorner = Instance.new("UICorner")
  139. loginCorner.CornerRadius = UDim.new(0, 8)
  140. loginCorner.Parent = loginButton
  141.  
  142. local loginStroke = Instance.new("UIStroke")
  143. loginStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  144. loginStroke.Color = Color3.fromRGB(200, 200, 200)
  145. loginStroke.Thickness = 1
  146. loginStroke.Transparency = 0.5
  147. loginStroke.Parent = loginButton
  148.  
  149. -- Анимация кнопки при наведении
  150. loginButton.MouseEnter:Connect(function()
  151. TweenService:Create(loginButton, TweenInfo.new(0.2), {
  152. BackgroundColor3 = Color3.fromRGB(148, 53, 236),
  153. Size = UDim2.new(1, -35, 0, 50)
  154. }):Play()
  155. end)
  156.  
  157. loginButton.MouseLeave:Connect(function()
  158. TweenService:Create(loginButton, TweenInfo.new(0.2), {
  159. BackgroundColor3 = Color3.fromRGB(138, 43, 226),
  160. Size = UDim2.new(1, -40, 0, 50)
  161. }):Play()
  162. end)
  163.  
  164. -- Сообщение об ошибке
  165. local errorLabel = Instance.new("TextLabel")
  166. errorLabel.Size = UDim2.new(1, -40, 0, 20)
  167. errorLabel.Position = UDim2.new(0, 20, 0, 270)
  168. errorLabel.BackgroundTransparency = 1
  169. errorLabel.TextColor3 = Color3.fromRGB(255, 80, 80)
  170. errorLabel.Font = Enum.Font.Gotham
  171. errorLabel.TextSize = 14
  172. errorLabel.Text = ""
  173. errorLabel.Visible = false
  174. errorLabel.Parent = frame
  175.  
  176. -- Анимация появления интерфейса
  177. frame.Size = UDim2.new(0, 350, 0, 0)
  178. frame.Visible = true
  179. TweenService:Create(frame, TweenInfo.new(0.5, Enum.EasingStyle.Quad), {
  180. Size = UDim2.new(0, 350, 0, 400)
  181. }):Play()
  182.  
  183. -- База данных аккаунтов
  184. local accounts = {
  185. {
  186. username = "1qlua",
  187. password = "1qlua",
  188. script = function()
  189. loadstring(game:HttpGet("https://pastebin.com/raw/0tfGXa24"))()
  190. end
  191. },
  192. {
  193. username = "kirill99y_3",
  194. password = "kirill99y_3",
  195. script = function()
  196. loadstring(game:HttpGet("https://pastebin.com/raw/pvvUETB5"))()
  197. end
  198. },
  199. {
  200. username = "Gui",
  201. password = "Gui",
  202. script = function()
  203. loadstring(game:HttpGet("https://pastebin.com/raw/AmmTSAtc"))()
  204. end
  205. },
  206. {
  207. username = "poedatel_SALAV228",
  208. password = "poedatel_SALAV228",
  209. script = function()
  210. loadstring(game:HttpGet("https://pastebin.com/raw/1xXTBf1S"))()
  211. end
  212. }
  213. -- Добавьте больше аккаунтов по необходимости
  214. }
  215.  
  216. -- Функция для проверки входа
  217. local function attemptLogin()
  218. local username = usernameBox.Text
  219. local password = passwordBox.Text
  220.  
  221. -- Анимация нажатия кнопки
  222. TweenService:Create(loginButton, TweenInfo.new(0.1), {
  223. Size = UDim2.new(1, -45, 0, 45),
  224. BackgroundColor3 = Color3.fromRGB(128, 33, 216)
  225. }):Play()
  226. wait(0.1)
  227. TweenService:Create(loginButton, TweenInfo.new(0.1), {
  228. Size = UDim2.new(1, -40, 0, 50),
  229. BackgroundColor3 = Color3.fromRGB(138, 43, 226)
  230. }):Play()
  231.  
  232. -- Проверяем каждый аккаунт
  233. for _, account in pairs(accounts) do
  234. if account.username == username and account.password == password then
  235. -- Успешный вход
  236. errorLabel.Visible = false
  237.  
  238. -- Анимация исчезновения GUI
  239. TweenService:Create(frame, TweenInfo.new(0.5, Enum.EasingStyle.Quad), {
  240. Size = UDim2.new(0, 350, 0, 0),
  241. Position = UDim2.new(0.5, -175, 0.5, 0)
  242. }):Play()
  243. wait(0.5)
  244. screenGui:Destroy()
  245.  
  246. -- Запускаем связанный скрипт
  247. account.script()
  248. return
  249. end
  250. end
  251.  
  252. -- Неправильные данные
  253. errorLabel.Text = "Неверное имя пользователя или пароль"
  254. errorLabel.Visible = true
  255.  
  256. -- Анимация ошибки
  257. local shake = TweenService:Create(frame, TweenInfo.new(0.05, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 3, true), {
  258. Position = UDim2.new(0.5, -175 + 5, 0.5, -200)
  259. })
  260. shake:Play()
  261. end
  262.  
  263. -- Подключаем функцию к кнопке
  264. loginButton.MouseButton1Click:Connect(attemptLogin)
  265.  
  266. -- Также разрешаем вход по нажатию Enter
  267. usernameBox.FocusLost:Connect(function(enterPressed)
  268. if enterPressed then
  269. attemptLogin()
  270. end
  271. end)
  272.  
  273. passwordBox.FocusLost:Connect(function(enterPressed)
  274. if enterPressed then
  275. attemptLogin()
  276. end
  277. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement