Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.65 KB | None | 0 0
  1. -- // Made by Jake, The One and Only
  2.  
  3. -- [[ Initialization ]] --
  4.  
  5. print("---------------------------------------------")
  6. print("[LVX1] - Loading User Interface...")
  7. print("[LVX1] - Preparing external callbacks...")
  8. print("---------------------------------------------")
  9. print("[LVX1] - Successfully loaded!")
  10. print("---------------------------------------------")
  11.  
  12. -- [[ Variable Storage ]] --
  13.  
  14. local Player = game.Players.LocalPlayer
  15. local PlayerGUI = Player:WaitForChild("PlayerGui")
  16.  
  17. -- Will resume variable storage after UI has been inserted.
  18.  
  19. -- [[ Code ]] --
  20.  
  21. function CreateUserInterface()
  22. local Interface = Instance.new("ScreenGui", PlayerGUI)
  23.  
  24. Interface.Name = "LVX1_UserInterface"
  25.  
  26. local CreditsPage = Instance.new("Frame", Interface)
  27.  
  28. CreditsPage.Name = "Core_CreditsPage"
  29. CreditsPage.Size = UDim2.new(0, 300, 0, 200)
  30. CreditsPage.Position = UDim2.new(0.5, -150, 1, 0)
  31. CreditsPage.BackgroundColor3 = Color3.new(225/255, 225/255, 225/255)
  32. CreditsPage.BorderSizePixel = 0
  33.  
  34. local Credits_HeaderRibbon = Instance.new("Frame", CreditsPage)
  35.  
  36. Credits_HeaderRibbon.Name = "HeaderRibbon"
  37. Credits_HeaderRibbon.Size = UDim2.new(1, 0, 0, 10)
  38. Credits_HeaderRibbon.Position = UDim2.new(0, 0, 0, 0)
  39. Credits_HeaderRibbon.BackgroundColor3 = Color3.new(50/255, 50/255, 50/255)
  40. Credits_HeaderRibbon.BorderSizePixel = 0
  41.  
  42. local Credits_NoticeLabel = Instance.new("TextLabel", CreditsPage)
  43.  
  44. Credits_NoticeLabel.Name = "NoticeLabel"
  45. Credits_NoticeLabel.Size = UDim2.new(1, -20, 1, -30)
  46. Credits_NoticeLabel.Position = UDim2.new(0, 10, 0, 20)
  47. Credits_NoticeLabel.BackgroundTransparency = 1
  48. Credits_NoticeLabel.BorderSizePixel = 0
  49. Credits_NoticeLabel.TextColor3 = Color3.new(50/255, 50/255, 50/255)
  50. Credits_NoticeLabel.Font = "SourceSansBold"
  51. Credits_NoticeLabel.FontSize = "Size24"
  52. Credits_NoticeLabel.Text = "LVX-1 was created by Barry Allen with help from Kylie. Do not attempt to claim this as your own. Rememeber to not sell or share your whitelist to prevent being blacklisted."
  53. Credits_NoticeLabel.TextWrapped = true
  54.  
  55. local LoginPage = Instance.new("Frame", Interface)
  56.  
  57. LoginPage.Name = "Core_LoginPage"
  58. LoginPage.Size = UDim2.new(0, 500, 0, 300)
  59. LoginPage.Position = UDim2.new(0.5, -250, 1, 0)
  60. LoginPage.BackgroundColor3 = Color3.new(225/255, 225/255, 225/255)
  61. LoginPage.BorderSizePixel = 0
  62.  
  63. local Login_HeaderRibbon = Instance.new("Frame", LoginPage)
  64.  
  65. Login_HeaderRibbon.Name = "HeaderRibbon"
  66. Login_HeaderRibbon.Size = UDim2.new(1, 0, 0, 30)
  67. Login_HeaderRibbon.Position = UDim2.new(0, 0, 0, 0)
  68. Login_HeaderRibbon.BackgroundColor3 = Color3.new(50/255, 50/255, 50/255)
  69. Login_HeaderRibbon.BorderSizePixel = 0
  70.  
  71. local Login_HeaderRibbon_HeadingLabel = Instance.new("TextLabel", Login_HeaderRibbon)
  72.  
  73. Login_HeaderRibbon_HeadingLabel.Name = "HeadingLabel"
  74. Login_HeaderRibbon_HeadingLabel.Size = UDim2.new(1, -10, 1, 0)
  75. Login_HeaderRibbon_HeadingLabel.Position = UDim2.new(0, 10, 0, 0)
  76. Login_HeaderRibbon_HeadingLabel.BackgroundTransparency = 1
  77. Login_HeaderRibbon_HeadingLabel.BorderSizePixel = 0
  78. Login_HeaderRibbon_HeadingLabel.TextColor3 = Color3.new(225/255, 225/255, 225/255)
  79. Login_HeaderRibbon_HeadingLabel.Font = "SourceSansBold"
  80. Login_HeaderRibbon_HeadingLabel.FontSize = "Size18"
  81. Login_HeaderRibbon_HeadingLabel.Text = "LVX-1"
  82. Login_HeaderRibbon.HeadingLabel.TextXAlignment = "Left"
  83.  
  84. local UsernameBox = Instance.new("TextBox", LoginPage)
  85.  
  86. UsernameBox.Name = "UsernameBox"
  87. UsernameBox.Size = UDim2.new(0, 200, 0, 40)
  88. UsernameBox.Position = UDim2.new(0.5, -100, 0.5, -60)
  89. UsernameBox.BorderSizePixel = 0
  90. UsernameBox.BackgroundColor3 = Color3.new(50/255, 50/255, 50/255)
  91. UsernameBox.TextColor3 = Color3.new(225/255, 225/255, 225/255)
  92. UsernameBox.Font = "SourceSansBold"
  93. UsernameBox.FontSize = "Size24"
  94. UsernameBox.Text = "Username"
  95.  
  96. local PasswordBox = Instance.new("TextBox", LoginPage)
  97.  
  98. PasswordBox.Name = "PasswordBox"
  99. PasswordBox.Size = UDim2.new(0, 200, 0, 40)
  100. PasswordBox.Position = UDim2.new(0.5, -100, 0.5, 0)
  101. PasswordBox.BorderSizePixel = 0
  102. PasswordBox.BackgroundColor3 = Color3.new(50/255, 50/255, 50/255)
  103. PasswordBox.TextColor3 = Color3.new(225/255, 225/255, 225/255)
  104. PasswordBox.Font = "SourceSansBold"
  105. PasswordBox.FontSize = "Size24"
  106. PasswordBox.Text = "Password"
  107.  
  108. local LoginButton = Instance.new("TextButton", LoginPage)
  109.  
  110. LoginButton.Name = "LoginButton"
  111. LoginButton.Size = UDim2.new(0, 120, 0, 30)
  112. LoginButton.Position = UDim2.new(0.5, -60, 0.5, 60)
  113. LoginButton.BorderSizePixel = 0
  114. LoginButton.BackgroundColor3 = Color3.new(50/255, 50/255, 50/255)
  115. LoginButton.TextColor3 = Color3.new(225/255, 225/255, 225/255)
  116. LoginButton.Font = "SourceSansBold"
  117. LoginButton.FontSize = "Size18"
  118. LoginButton.Text = "Login"
  119.  
  120. local MenuPage = Instance.new("Frame", Interface)
  121.  
  122. MenuPage.Name = "Core_MenuPage"
  123. MenuPage.Size = UDim2.new(0, 500, 0, 300)
  124. MenuPage.Position = UDim2.new(0.5, -250, 1, 0)
  125. MenuPage.BackgroundColor3 = Color3.new(225/255, 225/255, 225/255)
  126. MenuPage.BorderSizePixel = 0
  127. MenuPage.ClipsDescendants = true
  128. MenuPage.Active = true
  129. MenuPage.Draggable = true
  130.  
  131. local Menu_HeaderRibbon = Instance.new("Frame", MenuPage)
  132.  
  133. Menu_HeaderRibbon.Name = "HeaderRibbon"
  134. Menu_HeaderRibbon.Size = UDim2.new(1, 0, 0, 30)
  135. Menu_HeaderRibbon.Position = UDim2.new(0, 0, 0, 0)
  136. Menu_HeaderRibbon.BackgroundColor3 = Color3.new(50/255, 50/255, 50/255)
  137. Menu_HeaderRibbon.BorderSizePixel = 0
  138.  
  139. local Menu_HeaderRibbon_HeadingLabel = Instance.new("TextLabel", Menu_HeaderRibbon)
  140.  
  141. Menu_HeaderRibbon_HeadingLabel.Name = "HeadingLabel"
  142. Menu_HeaderRibbon_HeadingLabel.Size = UDim2.new(1, -10, 1, 0)
  143. Menu_HeaderRibbon_HeadingLabel.Position = UDim2.new(0, 10, 0, 0)
  144. Menu_HeaderRibbon_HeadingLabel.BackgroundTransparency = 1
  145. Menu_HeaderRibbon_HeadingLabel.BorderSizePixel = 0
  146. Menu_HeaderRibbon_HeadingLabel.TextColor3 = Color3.new(225/255, 225/255, 225/255)
  147. Menu_HeaderRibbon_HeadingLabel.Font = "SourceSansBold"
  148. Menu_HeaderRibbon_HeadingLabel.FontSize = "Size18"
  149. Menu_HeaderRibbon_HeadingLabel.Text = "LVX-1"
  150. Menu_HeaderRibbon.HeadingLabel.TextXAlignment = "Left"
  151.  
  152. local MinimizePage = Instance.new("TextButton", Menu_HeaderRibbon)
  153.  
  154. MinimizePage.Name = "MinimizePage"
  155. MinimizePage.Size = UDim2.new(0, 30, 0, 30)
  156. MinimizePage.Position = UDim2.new(1, -40, 0, 0)
  157. MinimizePage.BorderSizePixel = 0
  158. MinimizePage.BackgroundColor3 = Color3.new(50/255, 50/255, 50/255)
  159. MinimizePage.TextColor3 = Color3.new(225/255, 225/255, 225/255)
  160. MinimizePage.Font = "SourceSansBold"
  161. MinimizePage.FontSize = "Size28"
  162. MinimizePage.Text = "-"
  163.  
  164. local Page_Buttons = Instance.new("Frame", MenuPage)
  165.  
  166. Page_Buttons.Name = "Page_Buttons"
  167. Page_Buttons.Size = UDim2.new(1, 0, 1, -30)
  168. Page_Buttons.Position = UDim2.new(0, 0, 0, 30)
  169. Page_Buttons.BackgroundTransparency = 1
  170. Page_Buttons.BorderSizePixel = 0
  171.  
  172. local AddCash = Instance.new("TextButton", Page_Buttons)
  173.  
  174. AddCash.Name = "AddCash"
  175. AddCash.Size = UDim2.new(0, 120, 0, 30)
  176. AddCash.Position = UDim2.new(0.5, -210, 0, 20)
  177. AddCash.BorderSizePixel = 0
  178. AddCash.BackgroundColor3 = Color3.new(50/255, 50/255, 50/255)
  179. AddCash.TextColor3 = Color3.new(225/255, 225/255, 225/255)
  180. AddCash.Font = "SourceSansBold"
  181. AddCash.FontSize = "Size18"
  182. AddCash.Text = "Add Cash"
  183.  
  184. local GetWeapon = Instance.new("TextButton", Page_Buttons)
  185.  
  186. GetWeapon.Name = "GetWeapon"
  187. GetWeapon.Size = UDim2.new(0, 120, 0, 30)
  188. GetWeapon.Position = UDim2.new(0.5, -210, 0, 20)
  189. GetWeapon.BorderSizePixel = 0
  190. GetWeapon.BackgroundColor3 = Color3.new(50/255, 50/255, 50/255)
  191. GetWeapon.TextColor3 = Color3.new(225/255, 225/255, 225/255)
  192. GetWeapon.Font = "SourceSansBold"
  193. GetWeapon.FontSize = "Size18"
  194. GetWeapon.Text = "Get Weapon"
  195. GetWeapon.Visible = false
  196.  
  197. local Page_Cash = Instance.new("Frame", MenuPage)
  198.  
  199. Page_Cash.Name = "Page_Cash"
  200. Page_Cash.Size = UDim2.new(1, 0, 1, -30)
  201. Page_Cash.Position = UDim2.new(0, 0, 1, 0)
  202. Page_Cash.BackgroundTransparency = 1
  203. Page_Cash.BorderSizePixel = 0
  204.  
  205. local HeadingLabel = Instance.new("TextLabel", Page_Cash)
  206.  
  207. HeadingLabel.Name = "HeadingLabel"
  208. HeadingLabel.Size = UDim2.new(1, 0, 0, 40)
  209. HeadingLabel.Position = UDim2.new(0, 0, 0, 5)
  210. HeadingLabel.BackgroundTransparency = 1
  211. HeadingLabel.BorderSizePixel = 0
  212. HeadingLabel.TextColor3 = Color3.new(50/255, 50/255, 50/255)
  213. HeadingLabel.Font = "SourceSansBold"
  214. HeadingLabel.FontSize = "Size28"
  215. HeadingLabel.Text = "Cash Adder"
  216.  
  217. local CashAmount = Instance.new("TextBox", Page_Cash)
  218.  
  219. CashAmount.Name = "CashAmount"
  220. CashAmount.Size = UDim2.new(0, 200, 0, 30)
  221. CashAmount.Position = UDim2.new(0.5, -100, 0.5, -45)
  222. CashAmount.BackgroundTransparency = 1
  223. CashAmount.BorderSizePixel = 0
  224. CashAmount.TextColor3 = Color3.new(50/255, 50/255, 50/255)
  225. CashAmount.Font = "SourceSansBold"
  226. CashAmount.FontSize = "Size18"
  227. CashAmount.Text = "Amount"
  228.  
  229. local CashAmount_BorderRibbon = Instance.new("Frame", CashAmount)
  230.  
  231. CashAmount_BorderRibbon.Name = "BorderRibbon"
  232. CashAmount_BorderRibbon.Size = UDim2.new(1, 0, 0, 3)
  233. CashAmount_BorderRibbon.Position = UDim2.new(0, 0, 1, 5)
  234. CashAmount_BorderRibbon.BackgroundColor3 = Color3.new(50/255, 50/255, 50/255)
  235. CashAmount_BorderRibbon.BorderSizePixel = 0
  236.  
  237. local Cash_Execute = Instance.new("TextButton", Page_Cash)
  238.  
  239. Cash_Execute.Name = "Execute"
  240. Cash_Execute.Size = UDim2.new(0, 120, 0, 30)
  241. Cash_Execute.Position = UDim2.new(0.5, -60, 0.5, 30)
  242. Cash_Execute.BorderSizePixel = 0
  243. Cash_Execute.BackgroundColor3 = Color3.new(50/255, 50/255, 50/255)
  244. Cash_Execute.TextColor3 = Color3.new(225/255, 225/255, 225/255)
  245. Cash_Execute.Font = "SourceSansBold"
  246. Cash_Execute.FontSize = "Size18"
  247. Cash_Execute.Text = "Execute"
  248.  
  249. local Cash_Previous = Instance.new("TextButton", Page_Cash)
  250.  
  251. Cash_Previous.Name = "PreviousPage"
  252. Cash_Previous.Size = UDim2.new(0, 30, 0, 30)
  253. Cash_Previous.Position = UDim2.new(0, 10, 1, -40)
  254. Cash_Previous.BorderSizePixel = 0
  255. Cash_Previous.BackgroundColor3 = Color3.new(50/255, 50/255, 50/255)
  256. Cash_Previous.TextColor3 = Color3.new(225/255, 225/255, 225/255)
  257. Cash_Previous.Font = "SourceSansBold"
  258. Cash_Previous.FontSize = "Size24"
  259. Cash_Previous.Text = "<"
  260. end
  261.  
  262. CreateUserInterface()
  263.  
  264. -- [[ Variable Storage | Cont. ]] --
  265.  
  266. local UserInterface = PlayerGUI:WaitForChild("LVX1_UserInterface")
  267.  
  268. local CreditsPage = UserInterface:WaitForChild("Core_CreditsPage")
  269. local LoginPage = UserInterface:WaitForChild("Core_LoginPage")
  270. local MenuPage = UserInterface:WaitForChild("Core_MenuPage")
  271.  
  272. local UsernameBox = LoginPage:WaitForChild("UsernameBox")
  273. local PasswordBox = LoginPage:WaitForChild("PasswordBox")
  274. local LoginButton = LoginPage:WaitForChild("LoginButton")
  275.  
  276. local ButtonsPage = MenuPage:WaitForChild("Page_Buttons")
  277. local AddCash = ButtonsPage:WaitForChild("AddCash")
  278.  
  279. local CashPage = MenuPage:WaitForChild("Page_Cash")
  280.  
  281. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  282. local Events = ReplicatedStorage:WaitForChild("Events")
  283.  
  284. local Whitelist = {
  285. {"Jake", "hershey26"},
  286. {"Kylie", "pussydestroyer69"},
  287. {"hotshotqq", "omneypixel123"}
  288. }
  289.  
  290. -- [[ Code | Cont. ]] --
  291.  
  292. function FindButtons(Root)
  293. for _,v in pairs(Root:GetChildren()) do
  294. if v:IsA("TextButton") then
  295. v.MouseButton1Down:connect(function()
  296. local Sound = Instance.new("Sound", Player)
  297.  
  298. Sound.Name = "ClickEffect"
  299. Sound.SoundId = "rbxassetid://266319270"
  300. Sound.Volume = 1
  301.  
  302. Sound:Play()
  303.  
  304. wait(0.5)
  305.  
  306. Sound:Destroy()
  307. end)
  308. end
  309.  
  310. FindButtons(v)
  311. end
  312. end
  313.  
  314. FindButtons(UserInterface)
  315.  
  316. --------------------------------------------------
  317.  
  318. LoginPage:TweenPosition(UDim2.new(0.5, -250, 0.5, -150), "Out", "Sine", 0.5)
  319.  
  320. function LoginVerified(Username, Password)
  321. for _,v in pairs(Whitelist) do
  322. if v[1] == Username and v[2] == Password then
  323. return true
  324. end
  325. end
  326.  
  327. return false
  328. end
  329.  
  330. LoginButton.MouseButton1Down:connect(function()
  331. if LoginVerified(UsernameBox.Text, PasswordBox.Text) then
  332. LoginPage:TweenPosition(UDim2.new(0.5, -250, 1, 0), "Out", "Sine", 0.5)
  333. CreditsPage:TweenPosition(UDim2.new(0.5, -150, 0.5, -100), "Out", "Sine", 0.5)
  334.  
  335. wait(3)
  336.  
  337. CreditsPage:TweenPosition(UDim2.new(0.5, -150, 1, 0), "Out", "Sine", 0.5)
  338. MenuPage:TweenPosition(UDim2.new(0.5, -250, 0.5, -150), "Out", "Sine", 0.5)
  339. else
  340. UsernameBox.TextColor3 = Color3.new(255/255, 0/255, 0/255)
  341. PasswordBox.TextColor3 = Color3.new(255/255, 0/255, 0/255)
  342.  
  343. UsernameBox.Text = "Incorrect"
  344. PasswordBox.Text = "Incorrect"
  345.  
  346. wait(0.5)
  347.  
  348. UsernameBox.TextColor3 = Color3.new(225/255, 225/255, 225/255)
  349. PasswordBox.TextColor3 = Color3.new(225/255, 225/255, 225/255)
  350.  
  351. UsernameBox.Text = "Username"
  352. PasswordBox.Text = "Password"
  353. end
  354. end)
  355.  
  356. --------------------------------------------------
  357.  
  358. AddCash.MouseButton1Down:connect(function()
  359. ButtonsPage:TweenPosition(UDim2.new(0, 0, 1, 0), "Out", "Sine", 0.25)
  360. CashPage:TweenPosition(UDim2.new(0, 0, 0, 30), "Out", "Sine", 0.25)
  361. end)
  362.  
  363. CashPage.Execute.MouseButton1Down:connect(function()
  364. if tonumber(CashPage.CashAmount.Text) then
  365. if tonumber(CashPage.CashAmount.Text) > 300000 then return end
  366. if tonumber(CashPage.CashAmount.Text) <= 0 then return end
  367.  
  368. Events.GuiHandler:FireServer(true, "BlackJack")
  369. Events.MoneyRequest:FireServer(tonumber(CashPage.CashAmount.Text), "Money")
  370.  
  371. wait()
  372.  
  373. Events.GuiHandler:FireServer(false, "BlackJack")
  374. end
  375. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement