Advertisement
Guest User

[Lua] ROBLOX Login GUI

a guest
May 17th, 2017
2,166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 KB | None | 0 0
  1. --[[ Hello. This is a login test, you can use this as an example if you are
  2. making a gui.
  3.  
  4. Password and username:
  5.  
  6. guy1 : SomeGuy
  7.  
  8. PASSWORD AND USERNAME IS CASE SENSITIVE!
  9. ]]
  10.  
  11.  
  12.  
  13. -- GUI Objects
  14.  
  15. local Text = Instance.new("ScreenGui")
  16. local Login = Instance.new("Frame")
  17. local Box = Instance.new("Frame")
  18. local TextLabel = Instance.new("TextLabel")
  19. local TextLabel_2 = Instance.new("TextLabel")
  20. local Username = Instance.new("TextBox")
  21. local Password = Instance.new("TextBox")
  22. local Goin = Instance.new("TextButton")
  23. local Exploit = Instance.new("Frame")
  24. local ExploitBox = Instance.new("Frame")
  25. local Hi = Instance.new("TextLabel")
  26. local TextButton = Instance.new("TextButton")
  27.  
  28. -- GUI Properties
  29.  
  30. Text.Name = "Text"
  31. Text.Parent = game.CoreGui
  32.  
  33. Login.Name = "Login"
  34. Login.Parent = Text
  35. Login.Active = true
  36. Login.BackgroundColor3 = Color3.new(1, 1, 1)
  37. Login.BorderColor3 = Color3.new(1, 1, 1)
  38. Login.Draggable = true
  39. Login.Position = UDim2.new(0, 350, 0, 241)
  40. Login.Size = UDim2.new(0, 235, 0, 14)
  41.  
  42. Box.Name = "Box"
  43. Box.Parent = Login
  44. Box.BackgroundColor3 = Color3.new(1, 0.466667, 0.447059)
  45. Box.BorderColor3 = Color3.new(1, 0.466667, 0.447059)
  46. Box.Position = UDim2.new(0, 0, 0, 14)
  47. Box.Size = UDim2.new(0, 235, 0, 204)
  48.  
  49. TextLabel.Parent = Box
  50. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  51. TextLabel.BackgroundTransparency = 99
  52. TextLabel.Position = UDim2.new(0, 18, 0, 0)
  53. TextLabel.Size = UDim2.new(0, 200, 0, 49)
  54. TextLabel.Font = Enum.Font.SourceSans
  55. TextLabel.FontSize = Enum.FontSize.Size18
  56. TextLabel.Text = "Username"
  57. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  58. TextLabel.TextSize = 18
  59.  
  60. TextLabel_2.Parent = Box
  61. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  62. TextLabel_2.BackgroundTransparency = 99
  63. TextLabel_2.Position = UDim2.new(0, 18, 0, 74)
  64. TextLabel_2.Size = UDim2.new(0, 200, 0, 27)
  65. TextLabel_2.Font = Enum.Font.SourceSans
  66. TextLabel_2.FontSize = Enum.FontSize.Size18
  67. TextLabel_2.Text = "Password"
  68. TextLabel_2.TextColor3 = Color3.new(0, 0, 0)
  69. TextLabel_2.TextSize = 18
  70.  
  71. Username.Name = "Username"
  72. Username.Parent = Box
  73. Username.BackgroundColor3 = Color3.new(1, 1, 1)
  74. Username.BorderColor3 = Color3.new(1, 1, 1)
  75. Username.Position = UDim2.new(0, 18, 0, 42)
  76. Username.Size = UDim2.new(0, 200, 0, 30)
  77. Username.Font = Enum.Font.SourceSans
  78. Username.FontSize = Enum.FontSize.Size18
  79. Username.Text = " "
  80. Username.TextColor3 = Color3.new(0, 0, 0)
  81. Username.TextSize = 18
  82.  
  83. Password.Name = "Password"
  84. Password.Parent = Box
  85. Password.BackgroundColor3 = Color3.new(1, 1, 1)
  86. Password.BorderColor3 = Color3.new(1, 1, 1)
  87. Password.Position = UDim2.new(0, 18, 0, 102)
  88. Password.Size = UDim2.new(0, 200, 0, 30)
  89. Password.Font = Enum.Font.SourceSans
  90. Password.FontSize = Enum.FontSize.Size18
  91. Password.Text = " "
  92. Password.TextColor3 = Color3.new(0, 0, 0)
  93. Password.TextSize = 18
  94.  
  95. Goin.Name = "Go in"
  96. Goin.Parent = Box
  97. Goin.BackgroundColor3 = Color3.new(0.290196, 0.580392, 0.870588)
  98. Goin.BorderColor3 = Color3.new(0.290196, 0.580392, 0.870588)
  99. Goin.Position = UDim2.new(0, 17, 0, 144)
  100. Goin.Size = UDim2.new(0, 200, 0, 38)
  101. Goin.Font = Enum.Font.SourceSans
  102. Goin.FontSize = Enum.FontSize.Size18
  103. Goin.Text = "LOGIN"
  104. Goin.TextSize = 18
  105.  
  106. Exploit.Name = "Exploit"
  107. Exploit.Parent = Text
  108. Exploit.Active = true
  109. Exploit.BackgroundColor3 = Color3.new(1, 1, 1)
  110. Exploit.BorderColor3 = Color3.new(1, 1, 1)
  111. Exploit.Draggable = true
  112. Exploit.Position = UDim2.new(0, 471, 0, 54)
  113. Exploit.Size = UDim2.new(0, 306, 0, 14)
  114. Exploit.Visible = false
  115.  
  116. ExploitBox.Name = "ExploitBox"
  117. ExploitBox.Parent = Exploit
  118. ExploitBox.BackgroundColor3 = Color3.new(1, 0.466667, 0.447059)
  119. ExploitBox.BorderColor3 = Color3.new(1, 0.466667, 0.447059)
  120. ExploitBox.Position = UDim2.new(0, 0, 0, 14)
  121. ExploitBox.Size = UDim2.new(0, 306, 0, 165)
  122.  
  123. Hi.Name = "Hi"
  124. Hi.Parent = ExploitBox
  125. Hi.BackgroundColor3 = Color3.new(1, 1, 1)
  126. Hi.BackgroundTransparency = 99
  127. Hi.Size = UDim2.new(0, 306, 0, 165)
  128. Hi.Font = Enum.Font.SourceSans
  129. Hi.FontSize = Enum.FontSize.Size96
  130. Hi.Text = "Hi."
  131. Hi.TextColor3 = Color3.new(1, 1, 1)
  132. Hi.TextSize = 100
  133.  
  134. TextButton.Parent = Exploit
  135. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  136. TextButton.BorderColor3 = Color3.new(1, 1, 1)
  137. TextButton.Position = UDim2.new(0, 0, 0, 140)
  138. TextButton.Size = UDim2.new(0, 121, 0, 39)
  139. TextButton.Font = Enum.Font.SourceSans
  140. TextButton.FontSize = Enum.FontSize.Size18
  141. TextButton.Text = "< Go Back <"
  142. TextButton.TextColor3 = Color3.new(0, 0, 0)
  143. TextButton.TextSize = 17
  144.  
  145. -- Login script!
  146.  
  147. Goin.MouseButton1Down:connect(function()
  148. if Username.Text == "guy1" then
  149. if Password.Text == "SomeGuy" then
  150. wait(3)
  151. Login.Visible = false
  152. Exploit.Visible = true
  153. end
  154. end
  155. end)
  156.  
  157. -- Go back button.
  158.  
  159. TextButton.MouseButton1Down:connect(function()
  160. Exploit.Visible = false
  161. Login.Visible = true
  162. Password.Text = ""
  163. Username.Text = ""
  164. end)
  165.  
  166. -- End. (GUI by haeie)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement