Advertisement
Guest User

Untitled

a guest
Dec 17th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.42 KB | None | 0 0
  1. --game:GetService("CoreGui").LoginGUI:Destroy()
  2. --local Player = game:GetService("Players").LocalPlayer
  3.  
  4. local LoginGUI = Instance.new("ScreenGui")
  5. local LoginFrame = Instance.new("Frame")
  6. local Shadow = Instance.new("Frame")
  7. local LogoText = Instance.new("TextLabel")
  8. local UsernameOEmailInput = Instance.new("TextBox")
  9. local PasswordInput = Instance.new("TextBox")
  10. local LoginButton = Instance.new("TextButton")
  11. local ForgotPasswordButton = Instance.new("TextButton")
  12. local ForgotUsernameButton = Instance.new("TextButton")
  13. local CreateAccountButton = Instance.new("TextButton")
  14. local UOEInputErrorText = Instance.new("TextLabel")
  15.  
  16. LoginGUI.Name = "LoginGUI"
  17. LoginGUI.Parent = game:GetService("CoreGui")
  18.  
  19. LoginFrame.Name = "LoginFrame"
  20. LoginFrame.Parent = LoginGUI
  21. LoginFrame.BackgroundColor3 = Color3.new(0.215686, 0.568627, 1)
  22. LoginFrame.BackgroundTransparency = 0.10000000149012
  23. LoginFrame.BorderSizePixel = 0
  24. LoginFrame.Position = UDim2.new(0.5, -200, 0.5, -175)
  25. LoginFrame.Size = UDim2.new(0, 400, 0, 350)
  26.  
  27. Shadow.Name = "Shadow"
  28. Shadow.Parent = LoginFrame
  29. Shadow.BackgroundColor3 = Color3.new(0, 0, 0)
  30. Shadow.BackgroundTransparency = 0.69999998807907
  31. Shadow.BorderSizePixel = 0
  32. Shadow.Position = UDim2.new(0, 0, 1, 0)
  33. Shadow.Size = UDim2.new(1, 0, 0, 3)
  34.  
  35. LogoText.Name = "LogoText"
  36. LogoText.Parent = LoginFrame
  37. LogoText.BackgroundColor3 = Color3.new(0.188235, 0.505882, 0.886275)
  38. LogoText.BorderSizePixel = 0
  39. LogoText.Size = UDim2.new(1, 0, 0, 40)
  40. LogoText.Font = Enum.Font.SourceSansSemibold
  41. LogoText.Text = ""
  42. LogoText.TextColor3 = Color3.new(1, 1, 1)
  43. LogoText.TextSize = 30
  44.  
  45. UsernameOEmailInput.Name = "UsernameOEmailInput"
  46. UsernameOEmailInput.Parent = LoginFrame
  47. UsernameOEmailInput.BackgroundColor3 = Color3.new(0.168627, 0.466667, 0.807843)
  48. UsernameOEmailInput.BorderSizePixel = 0
  49. UsernameOEmailInput.Position = UDim2.new(0, 0, 0, 60)
  50. UsernameOEmailInput.Size = UDim2.new(1, 0, 0, 40)
  51. UsernameOEmailInput.ClearTextOnFocus = false
  52. UsernameOEmailInput.Font = Enum.Font.SourceSansSemibold
  53. UsernameOEmailInput.PlaceholderColor3 = Color3.new(1, 1, 1)
  54. UsernameOEmailInput.Text = ""
  55. UsernameOEmailInput.TextColor3 = Color3.new(1, 1, 1)
  56. UsernameOEmailInput.TextSize = 24
  57.  
  58. PasswordInput.Name = "PasswordInput"
  59. PasswordInput.Parent = LoginFrame
  60. PasswordInput.BackgroundColor3 = Color3.new(0.168627, 0.466667, 0.807843)
  61. PasswordInput.BorderSizePixel = 0
  62. PasswordInput.Position = UDim2.new(0, 0, 0, 120)
  63. PasswordInput.Size = UDim2.new(1, 0, 0, 40)
  64. PasswordInput.ClearTextOnFocus = false
  65. PasswordInput.Font = Enum.Font.SourceSansSemibold
  66. PasswordInput.PlaceholderColor3 = Color3.new(1, 1, 1)
  67. PasswordInput.Text = ""
  68. PasswordInput.TextColor3 = Color3.new(1, 1, 1)
  69. PasswordInput.TextSize = 24
  70.  
  71. LoginButton.Name = "LoginButton"
  72. LoginButton.Parent = LoginFrame
  73. LoginButton.BackgroundColor3 = Color3.new(0.129412, 0.384314, 0.658824)
  74. LoginButton.BorderSizePixel = 0
  75. LoginButton.Position = UDim2.new(0, 50, 0, 285)
  76. LoginButton.Size = UDim2.new(0, 0, 0, 45)
  77. LoginButton.Font = Enum.Font.SourceSansSemibold
  78. LoginButton.Text = ""
  79. LoginButton.TextColor3 = Color3.new(1, 1, 1)
  80. LoginButton.TextSize = 26
  81.  
  82. ForgotPasswordButton.Name = "ForgotPasswordButton"
  83. ForgotPasswordButton.Parent = LoginFrame
  84. ForgotPasswordButton.BackgroundColor3 = Color3.new(1, 1, 1)
  85. ForgotPasswordButton.BackgroundTransparency = 1
  86. ForgotPasswordButton.BorderSizePixel = 0
  87. ForgotPasswordButton.Position = UDim2.new(0, 5, 0, 170)
  88. ForgotPasswordButton.Size = UDim2.new(0, 190, 0, 30)
  89. ForgotPasswordButton.Font = Enum.Font.SourceSansSemibold
  90. ForgotPasswordButton.Text = "I Forgot My Password"
  91. ForgotPasswordButton.TextColor3 = Color3.new(1, 1, 1)
  92. ForgotPasswordButton.TextSize = 20
  93. ForgotPasswordButton.TextWrapped = true
  94.  
  95. ForgotUsernameButton.Name = "ForgotUsernameButton"
  96. ForgotUsernameButton.Parent = LoginFrame
  97. ForgotUsernameButton.BackgroundColor3 = Color3.new(1, 1, 1)
  98. ForgotUsernameButton.BackgroundTransparency = 1
  99. ForgotUsernameButton.BorderSizePixel = 0
  100. ForgotUsernameButton.Position = UDim2.new(0, 205, 0, 170)
  101. ForgotUsernameButton.Size = UDim2.new(0, 190, 0, 30)
  102. ForgotUsernameButton.Font = Enum.Font.SourceSansSemibold
  103. ForgotUsernameButton.Text = "I Forgot My Username"
  104. ForgotUsernameButton.TextColor3 = Color3.new(1, 1, 1)
  105. ForgotUsernameButton.TextSize = 20
  106. ForgotUsernameButton.TextWrapped = true
  107.  
  108. CreateAccountButton.Name = "CreateAccountButton"
  109. CreateAccountButton.Parent = LoginFrame
  110. CreateAccountButton.BackgroundColor3 = Color3.new(1, 1, 1)
  111. CreateAccountButton.BackgroundTransparency = 1
  112. CreateAccountButton.BorderSizePixel = 0
  113. CreateAccountButton.Position = UDim2.new(0, 100, 0, 210)
  114. CreateAccountButton.Size = UDim2.new(0, 200, 0, 30)
  115. CreateAccountButton.Font = Enum.Font.SourceSansSemibold
  116. CreateAccountButton.Text = "Create An Account"
  117. CreateAccountButton.TextColor3 = Color3.new(1, 1, 1)
  118. CreateAccountButton.TextSize = 20
  119. CreateAccountButton.TextWrapped = true
  120.  
  121. UOEInputErrorText.Name = "UOEInputErrorText"
  122. UOEInputErrorText.Parent = LoginFrame
  123. UOEInputErrorText.BackgroundColor3 = Color3.new(0.603922, 0, 0)
  124. UOEInputErrorText.BorderSizePixel = 0
  125. UOEInputErrorText.Position = UDim2.new(0, 400, 0, 0)
  126. UOEInputErrorText.Size = UDim2.new(0, 0, 0, 40)
  127. UOEInputErrorText.Font = Enum.Font.SourceSansSemibold
  128. UOEInputErrorText.Text = ""
  129. UOEInputErrorText.TextColor3 = Color3.new(1, 1, 1)
  130. UOEInputErrorText.TextSize = 20
  131. UOEInputErrorText.TextWrapped = true
  132.  
  133.  
  134. wait()
  135.  
  136.  
  137. local IsLogged = false
  138. local PasswordInputText = ""
  139.  
  140. local function GetSiteBody(Link)
  141. local Body = nil
  142. pcall(function()
  143. Body = HttpGet(Link)
  144. end)
  145. if Body then
  146. return Body
  147. end
  148. pcall(function()
  149. Body = game:HttpGetAsync(Link)
  150. end)
  151. if Body then
  152. return Body
  153. end
  154. pcall(function()
  155. Body = HttpS:GetAsync(Link)
  156. end)
  157. return Body
  158. end
  159.  
  160. local function DoAnimate(Object, Value, Type)
  161. spawn(function()
  162. Player.Character:WaitForChild("Humanoid",15).WalkSpeed = 0
  163. Player.Character:WaitForChild("Humanoid",15).JumpPower = 0
  164. end)
  165. spawn(function()
  166. if Object.Text == "" or Object.Text == " " then
  167. if Type == "Text" then
  168. for i = 1,#Value do
  169. Object.Text = Object.Text..Value:sub(i,i)
  170. wait(0.03)
  171. end
  172. elseif Type == "PlaceHolder" then
  173. for i = 1,#Value do
  174. Object.PlaceholderText = Object.PlaceholderText..Value:sub(i,i)
  175. wait(0.03)
  176. end
  177. end
  178. else
  179. if Type == "Text" then
  180. for i = 1,#Object.Text do
  181. Object.Text = Object.Text:sub(1,#Object.Text-1)
  182. wait(0.02)
  183. end
  184. elseif Type == "PlaceHolder" then
  185. for i = 1,#Object.Text do
  186. Object.PlaceholderText = Object.PlaceholderText:sub(1,#Object.PlaceholderText-1)
  187. wait(0.02)
  188. end
  189. end
  190. DoAnimate(Object, Value, Type)
  191. end
  192. end)
  193. end
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200. spawn(function()
  201. spawn(function()
  202. LoginButton:TweenSize(UDim2.new(0,300,0,45),"Out","Quad",0.5)
  203. end)
  204.  
  205. wait(0.5)
  206. spawn(function()
  207. local Blur = Instance.new("BlurEffect")
  208. Blur.Size = 3
  209. Blur.Parent = game:GetService("Lighting")
  210.  
  211. for i = 1,15 do
  212. Blur.Size = Blur.Size+1
  213. wait(0.01)
  214. end
  215. end)
  216. wait()
  217. spawn(function()
  218. DoAnimate(LogoText, "Demeter", "Text")
  219. wait()
  220. DoAnimate(UsernameOEmailInput, "Username / Email", "PlaceHolder")
  221. DoAnimate(PasswordInput, "Password", "PlaceHolder")
  222. wait()
  223. DoAnimate(ForgotPasswordButton, "I Forgot My Password", "Text")
  224. DoAnimate(ForgotUsernameButton, "I Forgot My Username", "Text")
  225. DoAnimate(CreateAccountButton, "Create An Account", "Text")
  226. wait()
  227. DoAnimate(LoginButton, "Login", "Text")
  228. end)
  229. LoginButton.MouseEnter:Connect(function()
  230. if LoginButton.TextSize == 26 then
  231. spawn(function()
  232. for i = 1,4 do
  233. LoginButton.TextSize = LoginButton.TextSize + 1
  234. LoginButton.BackgroundTransparency = LoginButton.BackgroundTransparency + 0.2
  235. wait(0.02)
  236. end
  237. end)
  238. end
  239. end)
  240. LoginButton.MouseLeave:Connect(function()
  241. if LoginButton.TextSize == 30 then
  242. spawn(function()
  243. for i = 1,4 do
  244. LoginButton.TextSize = LoginButton.TextSize - 1
  245. LoginButton.BackgroundTransparency = LoginButton.BackgroundTransparency - 0.2
  246. wait(0.02)
  247. end
  248. end)
  249. end
  250. end)
  251.  
  252.  
  253. ForgotPasswordButton.MouseEnter:Connect(function()
  254. if ForgotPasswordButton.TextSize == 20 then
  255. spawn(function()
  256. for i = 1,3 do
  257. ForgotPasswordButton.TextSize = ForgotPasswordButton.TextSize + 1
  258. ForgotPasswordButton.BackgroundTransparency = ForgotPasswordButton.BackgroundTransparency - 0.1
  259. wait(0.02)
  260. end
  261. end)
  262. end
  263. end)
  264. ForgotPasswordButton.MouseLeave:Connect(function()
  265. if ForgotPasswordButton.TextSize == 23 then
  266. spawn(function()
  267. for i = 1,3 do
  268. ForgotPasswordButton.TextSize = ForgotPasswordButton.TextSize - 1
  269. ForgotPasswordButton.BackgroundTransparency = ForgotPasswordButton.BackgroundTransparency + 0.1
  270. wait(0.02)
  271. end
  272. end)
  273. end
  274. end)
  275.  
  276.  
  277. ForgotUsernameButton.MouseEnter:Connect(function()
  278. if ForgotUsernameButton.TextSize == 20 then
  279. spawn(function()
  280. for i = 1,3 do
  281. ForgotUsernameButton.TextSize = ForgotUsernameButton.TextSize + 1
  282. ForgotUsernameButton.BackgroundTransparency = ForgotUsernameButton.BackgroundTransparency - 0.1
  283. wait(0.02)
  284. end
  285. end)
  286. end
  287. end)
  288. ForgotUsernameButton.MouseLeave:Connect(function()
  289. if ForgotUsernameButton.TextSize == 23 then
  290. spawn(function()
  291. for i = 1,3 do
  292. ForgotUsernameButton.TextSize = ForgotUsernameButton.TextSize - 1
  293. ForgotUsernameButton.BackgroundTransparency = ForgotUsernameButton.BackgroundTransparency + 0.1
  294. wait(0.02)
  295. end
  296. end)
  297. end
  298. end)
  299.  
  300. CreateAccountButton.MouseEnter:Connect(function()
  301. if CreateAccountButton.TextSize == 20 then
  302. spawn(function()
  303. for i = 1,3 do
  304. CreateAccountButton.TextSize = CreateAccountButton.TextSize + 1
  305. CreateAccountButton.BackgroundTransparency = CreateAccountButton.BackgroundTransparency - 0.1
  306. wait(0.02)
  307. end
  308. end)
  309. end
  310. end)
  311. CreateAccountButton.MouseLeave:Connect(function()
  312. if CreateAccountButton.TextSize == 23 then
  313. spawn(function()
  314. for i = 1,3 do
  315. CreateAccountButton.TextSize = CreateAccountButton.TextSize - 1
  316. CreateAccountButton.BackgroundTransparency = CreateAccountButton.BackgroundTransparency + 0.1
  317. wait(0.02)
  318. end
  319. end)
  320. end
  321. end)
  322.  
  323.  
  324. PasswordInput.Changed:Connect(function()
  325. if #PasswordInputText+1 == #PasswordInput.Text then
  326. PasswordInputText = PasswordInputText..PasswordInput.Text:sub(#PasswordInput.Text)
  327. local NewText = ""
  328. for i = 1,#PasswordInput.Text do
  329. NewText = NewText.."*"
  330.  
  331. end
  332. PasswordInput.Text = NewText
  333. elseif #PasswordInputText-1 == #PasswordInput.Text then
  334. PasswordInputText = PasswordInputText:sub(1,#PasswordInputText-1)
  335. local NewText = ""
  336. for i = 1,#PasswordInput.Text do
  337. NewText = NewText.."*"
  338.  
  339. end
  340. PasswordInput.Text = NewText
  341. elseif #PasswordInput.Text ~= #PasswordInputText then
  342. PasswordInputText = PasswordInputText..PasswordInput.Text
  343. end
  344. end)
  345.  
  346. LoginFrame.Changed:Connect(function()
  347. if not LoginFrame.Parent then
  348. Player:Kick("Wasted")
  349. LoginGUI:Destroy()
  350. for i=1/0,1/0 do print(i)end
  351. elseif not LoginFrame.Visible and not IsLogged then
  352. Player:Kick("Wasted.")
  353. LoginGUI:Destroy()
  354. for i=1/0,1/0 do print(i)end
  355. end
  356. end)
  357. end)
  358.  
  359.  
  360. --{0, 140},{0, 40}
  361.  
  362. LoginButton.Mouse1ButtonClick:Connect(function()
  363. local Check = GetSiteBody("https://demetersite.000webhostapp.com/_Login.php?UOE="..UsernameOEmailInput.Text.."&Password="..PasswordInputText)
  364. if
  365. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement