Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. -- Objects
  2.  
  3. local PurpleGUI = Instance.new("ScreenGui")
  4. local Loginframe2 = Instance.new("Frame")
  5. local Tbar2 = Instance.new("Frame")
  6. local Tbar1 = Instance.new("Frame")
  7. local user = Instance.new("TextBox")
  8. local pass = Instance.new("TextBox")
  9. local Tloginbutton = Instance.new("TextButton")
  10. local TPurpleGuiTextLabel = Instance.new("TextLabel")
  11. local test1 = Instance.new("Frame")
  12. local worked = Instance.new("TextLabel")
  13.  
  14. -- Properties
  15.  
  16. PurpleGUI.Name = "PurpleGUI"
  17. PurpleGUI.Parent = game.CoreGui
  18.  
  19. Loginframe2.Name = "Loginframe2"
  20. Loginframe2.Parent = PurpleGUI
  21. Loginframe2.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  22. Loginframe2.Position = UDim2.new(-0.00928504765, 0, 0.148221344, 0)
  23. Loginframe2.Size = UDim2.new(0, 276, 0, 335)
  24.  
  25. Tbar2.Name = "Tbar2"
  26. Tbar2.Parent = Loginframe2
  27. Tbar2.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  28. Tbar2.BorderSizePixel = 0
  29. Tbar2.Size = UDim2.new(0, 276, 0, 40)
  30.  
  31. Tbar1.Name = "Tbar1"
  32. Tbar1.Parent = Loginframe2
  33. Tbar1.BackgroundColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  34. Tbar1.BorderSizePixel = 0
  35. Tbar1.Position = UDim2.new(0, 0, 0.101492539, 0)
  36. Tbar1.Size = UDim2.new(0, 276, 0, 6)
  37.  
  38. user.Name = "user"
  39. user.Parent = Loginframe2
  40. user.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  41. user.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  42. user.BorderSizePixel = 4
  43. user.Position = UDim2.new(0.137681156, 0, 0.379104465, 0)
  44. user.Size = UDim2.new(0, 200, 0, 27)
  45. user.Font = Enum.Font.SourceSansBold
  46. user.PlaceholderColor3 = Color3.new(1, 1, 1)
  47. user.Text = "Username"
  48. user.TextColor3 = Color3.new(1, 1, 1)
  49. user.TextScaled = true
  50. user.TextSize = 14
  51. user.TextWrapped = true
  52. user.TextXAlignment = Enum.TextXAlignment.Left
  53.  
  54. pass.Name = "pass"
  55. pass.Parent = Loginframe2
  56. pass.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  57. pass.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  58. pass.BorderSizePixel = 4
  59. pass.Position = UDim2.new(0.137681156, 0, 0.594029844, 0)
  60. pass.Size = UDim2.new(0, 200, 0, 27)
  61. pass.Font = Enum.Font.SourceSansBold
  62. pass.PlaceholderColor3 = Color3.new(1, 1, 1)
  63. pass.Text = "Password"
  64. pass.TextColor3 = Color3.new(1, 1, 1)
  65. pass.TextScaled = true
  66. pass.TextSize = 14
  67. pass.TextWrapped = true
  68. pass.TextXAlignment = Enum.TextXAlignment.Left
  69.  
  70. Tloginbutton.Name = "Tloginbutton"
  71. Tloginbutton.Parent = Loginframe2
  72. Tloginbutton.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  73. Tloginbutton.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  74. Tloginbutton.BorderSizePixel = 4
  75. Tloginbutton.Position = UDim2.new(0.260869563, 0, 0.75522387, 0)
  76. Tloginbutton.Size = UDim2.new(0, 132, 0, 53)
  77. Tloginbutton.Font = Enum.Font.SourceSansBold
  78. Tloginbutton.Text = "Login"
  79. Tloginbutton.TextColor3 = Color3.new(1, 1, 1)
  80. Tloginbutton.TextSize = 30
  81. Tloginbutton.TextWrapped = true
  82.  
  83. TPurpleGuiTextLabel.Name = "TPurpleGuiTextLabel"
  84. TPurpleGuiTextLabel.Parent = Loginframe2
  85. TPurpleGuiTextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  86. TPurpleGuiTextLabel.BackgroundTransparency = 1
  87. TPurpleGuiTextLabel.BorderSizePixel = 0
  88. TPurpleGuiTextLabel.Position = UDim2.new(0, 0, 0.140298501, 0)
  89. TPurpleGuiTextLabel.Size = UDim2.new(0, 276, 0, 50)
  90. TPurpleGuiTextLabel.Font = Enum.Font.SourceSansBold
  91. TPurpleGuiTextLabel.Text = "PurpleGui"
  92. TPurpleGuiTextLabel.TextColor3 = Color3.new(0.666667, 0, 1)
  93. TPurpleGuiTextLabel.TextSize = 40
  94. TPurpleGuiTextLabel.TextWrapped = true
  95.  
  96. test1.Name = "test1"
  97. test1.Parent = PurpleGUI
  98. test1.BackgroundColor3 = Color3.new(1, 1, 1)
  99. test1.Position = UDim2.new(0.350077748, 0, 0.282519907, 0)
  100. test1.Size = UDim2.new(0, 166, 0, 219)
  101. test1.Visible = false
  102.  
  103. worked.Name = "worked"
  104. worked.Parent = test1
  105. worked.BackgroundColor3 = Color3.new(1, 1, 1)
  106. worked.Size = UDim2.new(0, 166, 0, 50)
  107. worked.Font = Enum.Font.SourceSans
  108. worked.Text = "Worked"
  109. worked.TextSize = 14
  110.  
  111.  
  112. --functions
  113.  
  114. Tloginbutton.MouseButton1Down:connect(function()
  115. if user.Text == "test" and pass.Text == "test" then
  116. test1.Visible = true
  117. Loginframe2.Visible = false
  118.  
  119. end
  120. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement