Advertisement
123456789qwerty

Mining Simulator GUI

Dec 16th, 2018
13,717
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.27 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Drag = Instance.new("Frame")
  3. local Back = Instance.new("Frame")
  4. local Buy = Instance.new("TextButton")
  5. local instant = Instance.new("TextButton")
  6. local open = Instance.new("TextButton")
  7. local candy = Instance.new("TextButton")
  8. local toy = Instance.new("TextButton")
  9. local food = Instance.new("TextButton")
  10. local sell = Instance.new("TextButton")
  11. local Sizer = Instance.new("TextButton")
  12. local NameD = Instance.new("TextLabel")
  13. local BarB = Instance.new("Frame")
  14. local CloseB = Instance.new("TextButton")
  15. local NameB = Instance.new("TextLabel")
  16. local BuyMenu = Instance.new("Frame")
  17. local purchase = Instance.new("TextButton")
  18. local commonframe = Instance.new("Frame")
  19. local CName = Instance.new("TextLabel")
  20. local Cselect = Instance.new("TextButton")
  21. local uncommonframe = Instance.new("Frame")
  22. local UName = Instance.new("TextLabel")
  23. local Uselect = Instance.new("TextButton")
  24. local rareframe = Instance.new("Frame")
  25. local RName = Instance.new("TextLabel")
  26. local Rselect = Instance.new("TextButton")
  27. local epicframe = Instance.new("Frame")
  28. local EName = Instance.new("TextLabel")
  29. local Eselect = Instance.new("TextButton")
  30. local Frame = Instance.new("Frame")
  31. local fif = Instance.new("Frame")
  32. local fName = Instance.new("TextLabel")
  33. local fselect = Instance.new("TextButton")
  34. local hundred = Instance.new("Frame")
  35. local hName = Instance.new("TextLabel")
  36. local hselect = Instance.new("TextButton")
  37. local BarL = Instance.new("Frame")
  38. local CloseL = Instance.new("TextButton")
  39. local NameL = Instance.new("TextLabel")
  40. local LoopMenu = Instance.new("Frame")
  41. local Common = Instance.new("TextButton")
  42. local Uncommon = Instance.new("TextButton")
  43. local Rare = Instance.new("TextButton")
  44. local Epic = Instance.new("TextButton")
  45. local CommonLabel = Instance.new("TextLabel")
  46. local UncommonLabel = Instance.new("TextLabel")
  47. local RareLabel = Instance.new("TextLabel")
  48. local EpicLabel = Instance.new("TextLabel")
  49. local CActive = false
  50. local UActive = false
  51. local RActive = false
  52. local EActive = false
  53. local selected = Instance.new("StringValue")
  54. local amount = Instance.new("NumberValue")
  55.  
  56. -- Properties
  57.  
  58. ScreenGui.Parent = game.CoreGui
  59.  
  60. Drag.Name = "Drag"
  61. Drag.Parent = ScreenGui
  62. Drag.Active = true
  63. Drag.BackgroundColor3 = Color3.new(0.223529, 0.352941, 0.815686)
  64. Drag.BorderSizePixel = 0
  65. Drag.Position = UDim2.new(0.0537500009, 0, 0.334242851, 0)
  66. Drag.Size = UDim2.new(0.119374998, 0, 0.034106411, 0)
  67. Drag.ZIndex = 2
  68. Drag.Draggable = true
  69.  
  70. Back.Name = "Back"
  71. Back.Parent = Drag
  72. Back.BackgroundColor3 = Color3.new(0.443137, 0.443137, 0.443137)
  73. Back.BackgroundTransparency = 0.30000001192093
  74. Back.BorderSizePixel = 0
  75. Back.Position = UDim2.new(0, 0, 1, 0)
  76. Back.Size = UDim2.new(1, 0, 9.07999992, 0)
  77.  
  78. Buy.Name = "Buy"
  79. Buy.Parent = Back
  80. Buy.BackgroundColor3 = Color3.new(0.109804, 0.317647, 1)
  81. Buy.BorderSizePixel = 0
  82. Buy.Position = UDim2.new(0.0209424086, 0, 0.0180180185, 0)
  83. Buy.Size = UDim2.new(0.958000004, 0, 0.119000003, 0)
  84. Buy.Font = Enum.Font.SourceSansBold
  85. Buy.Text = "Open Buy Menu"
  86. Buy.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  87. Buy.TextSize = 20
  88. Buy.TextWrapped = true
  89.  
  90. instant.Name = "instant"
  91. instant.Parent = Back
  92. instant.BackgroundColor3 = Color3.new(0.109804, 0.317647, 1)
  93. instant.BorderSizePixel = 0
  94. instant.Position = UDim2.new(0.0209424086, 0, 0.154185027, 0)
  95. instant.Size = UDim2.new(0.958000004, 0, 0.119000003, 0)
  96. instant.Font = Enum.Font.SourceSansBold
  97. instant.Text = "Instant Break"
  98. instant.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  99. instant.TextSize = 20
  100. instant.TextWrapped = true
  101.  
  102. open.Name = "open"
  103. open.Parent = Back
  104. open.BackgroundColor3 = Color3.new(0.109804, 0.317647, 1)
  105. open.BorderSizePixel = 0
  106. open.Position = UDim2.new(0.0209424086, 0, 0.290748894, 0)
  107. open.Size = UDim2.new(0.958000004, 0, 0.119000003, 0)
  108. open.Font = Enum.Font.SourceSansBold
  109. open.Text = "Loop Open Menu"
  110. open.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  111. open.TextSize = 20
  112. open.TextWrapped = true
  113.  
  114. candy.Name = "candy"
  115. candy.Parent = Back
  116. candy.BackgroundColor3 = Color3.new(0.109804, 0.317647, 1)
  117. candy.BorderSizePixel = 0
  118. candy.Position = UDim2.new(0.0209424086, 0, 0.427312762, 0)
  119. candy.Size = UDim2.new(0.958000004, 0, 0.119000003, 0)
  120. candy.Font = Enum.Font.SourceSansBold
  121. candy.Text = "Go to Candy Land"
  122. candy.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  123. candy.TextSize = 20
  124. candy.TextWrapped = true
  125.  
  126. toy.Name = "toy"
  127. toy.Parent = Back
  128. toy.BackgroundColor3 = Color3.new(0.109804, 0.317647, 1)
  129. toy.BorderSizePixel = 0
  130. toy.Position = UDim2.new(0.0209424086, 0, 0.563876629, 0)
  131. toy.Size = UDim2.new(0.958000004, 0, 0.119000003, 0)
  132. toy.Font = Enum.Font.SourceSansBold
  133. toy.Text = "Go to Toy Land"
  134. toy.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  135. toy.TextSize = 20
  136. toy.TextWrapped = true
  137.  
  138. food.Name = "food"
  139. food.Parent = Back
  140. food.BackgroundColor3 = Color3.new(0.109804, 0.317647, 1)
  141. food.BorderSizePixel = 0
  142. food.Position = UDim2.new(0.0209424086, 0, 0.700440526, 0)
  143. food.Size = UDim2.new(0.958000004, 0, 0.119000003, 0)
  144. food.Font = Enum.Font.SourceSansBold
  145. food.Text = "Go to Food Land"
  146. food.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  147. food.TextSize = 20
  148. food.TextWrapped = true
  149.  
  150. sell.Name = "sell"
  151. sell.Parent = Back
  152. sell.BackgroundColor3 = Color3.new(0.109804, 0.317647, 1)
  153. sell.BorderSizePixel = 0
  154. sell.Position = UDim2.new(0.0209424086, 0, 0.837004423, 0)
  155. sell.Size = UDim2.new(0.958000004, 0, 0.119000003, 0)
  156. sell.Font = Enum.Font.SourceSansBold
  157. sell.Text = "Sell Blocks"
  158. sell.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  159. sell.TextSize = 20
  160. sell.TextWrapped = true
  161.  
  162. Sizer.Name = "Sizer"
  163. Sizer.Parent = Drag
  164. Sizer.BackgroundColor3 = Color3.new(1, 1, 1)
  165. Sizer.BackgroundTransparency = 1
  166. Sizer.Position = UDim2.new(0.853403151, 0, -0.0799999982, 0)
  167. Sizer.Size = UDim2.new(0.157068059, 0, 1.12, 0)
  168. Sizer.ZIndex = 3
  169. Sizer.Font = Enum.Font.SourceSansBold
  170. Sizer.Text = "+"
  171. Sizer.TextColor3 = Color3.new(0.901961, 0.901961, 0.901961)
  172. Sizer.TextScaled = true
  173. Sizer.TextSize = 14
  174. Sizer.TextWrapped = true
  175.  
  176. NameD.Name = "NameD"
  177. NameD.Parent = Drag
  178. NameD.BackgroundColor3 = Color3.new(1, 1, 1)
  179. NameD.BackgroundTransparency = 1
  180. NameD.Position = UDim2.new(0.0157068055, 0, -0.0399999991, 0)
  181. NameD.Size = UDim2.new(0.492146611, 0, 0.959999979, 0)
  182. NameD.ZIndex = 3
  183. NameD.Font = Enum.Font.SourceSansBold
  184. NameD.Text = "OMine Gui"
  185. NameD.TextColor3 = Color3.new(0.0392157, 0.133333, 1)
  186. NameD.TextScaled = true
  187. NameD.TextSize = 14
  188. NameD.TextWrapped = true
  189.  
  190. BarB.Name = "BarB"
  191. BarB.Parent = Drag
  192. BarB.Active = true
  193. BarB.BackgroundColor3 = Color3.new(0.223529, 0.352941, 0.815686)
  194. BarB.BorderSizePixel = 0
  195. BarB.Position = UDim2.new(1.03664923, 0, 1.08000004, 0)
  196. BarB.Size = UDim2.new(1.09947646, 0, 0.959999979, 0)
  197. BarB.Visible = false
  198. BarB.ZIndex = 3
  199. BarB.Draggable = true
  200.  
  201. CloseB.Name = "CloseB"
  202. CloseB.Parent = BarB
  203. CloseB.BackgroundColor3 = Color3.new(1, 1, 1)
  204. CloseB.BackgroundTransparency = 1
  205. CloseB.Position = UDim2.new(0.886010349, 0, -0.0454545468, 0)
  206. CloseB.Size = UDim2.new(0.119170986, 0, 0.954545438, 0)
  207. CloseB.ZIndex = 4
  208. CloseB.Font = Enum.Font.SourceSansBold
  209. CloseB.Text = "X"
  210. CloseB.TextColor3 = Color3.new(0.901961, 0.901961, 0.901961)
  211. CloseB.TextScaled = true
  212. CloseB.TextSize = 14
  213. CloseB.TextWrapped = true
  214.  
  215. NameB.Name = "NameB"
  216. NameB.Parent = BarB
  217. NameB.BackgroundColor3 = Color3.new(1, 1, 1)
  218. NameB.BackgroundTransparency = 1
  219. NameB.Position = UDim2.new(0.0207253881, 0, 0.0909090936, 0)
  220. NameB.Size = UDim2.new(0.699481845, 0, 0.818181813, 0)
  221. NameB.ZIndex = 4
  222. NameB.Font = Enum.Font.SourceSansBold
  223. NameB.Text = "Buy Menu"
  224. NameB.TextColor3 = Color3.new(1, 1, 1)
  225. NameB.TextScaled = true
  226. NameB.TextSize = 14
  227. NameB.TextWrapped = true
  228. NameB.TextXAlignment = Enum.TextXAlignment.Left
  229.  
  230. BuyMenu.Name = "BuyMenu"
  231. BuyMenu.Parent = BarB
  232. BuyMenu.BackgroundColor3 = Color3.new(0.443137, 0.443137, 0.443137)
  233. BuyMenu.BackgroundTransparency = 0.30000001192093
  234. BuyMenu.BorderSizePixel = 0
  235. BuyMenu.Size = UDim2.new(1, 0, 6.625, 0)
  236.  
  237. purchase.Name = "purchase"
  238. purchase.Parent = BuyMenu
  239. purchase.BackgroundColor3 = Color3.new(0.270588, 0.443137, 0.996078)
  240. purchase.BorderSizePixel = 0
  241. purchase.Position = UDim2.new(0.0206185561, 0, 0.777777791, 0)
  242. purchase.Size = UDim2.new(0.958762884, 0, 0.194444448, 0)
  243. purchase.Font = Enum.Font.SourceSansBold
  244. purchase.Text = "Buy"
  245. purchase.TextColor3 = Color3.new(0, 0, 0.498039)
  246. purchase.TextSize = 20
  247. purchase.TextWrapped = true
  248.  
  249. commonframe.Name = "commonframe"
  250. commonframe.Parent = BuyMenu
  251. commonframe.BackgroundColor3 = Color3.new(1, 1, 1)
  252. commonframe.BackgroundTransparency = 1
  253. commonframe.Position = UDim2.new(0.0190476198, 0, 0.389937103, 0)
  254. commonframe.Size = UDim2.new(0.461904764, 0, 0.169811323, 0)
  255.  
  256. CName.Name = "CName"
  257. CName.Parent = commonframe
  258. CName.BackgroundColor3 = Color3.new(1, 1, 1)
  259. CName.BackgroundTransparency = 1
  260. CName.Position = UDim2.new(-0.0412371121, 0, 0, 0)
  261. CName.Size = UDim2.new(0.793814421, 0, 0.92592591, 0)
  262. CName.Font = Enum.Font.SourceSansBold
  263. CName.Text = "Common"
  264. CName.TextColor3 = Color3.new(1, 1, 1)
  265. CName.TextSize = 19
  266. CName.TextWrapped = true
  267.  
  268. Cselect.Name = "Cselect"
  269. Cselect.Parent = commonframe
  270. Cselect.BackgroundColor3 = Color3.new(1, 0.290196, 0.290196)
  271. Cselect.BorderSizePixel = 2
  272. Cselect.Position = UDim2.new(0.763000011, 0, 0.148000002, 0)
  273. Cselect.Size = UDim2.new(0.195999995, 0, 0.703999996, 0)
  274. Cselect.Font = Enum.Font.SourceSans
  275. Cselect.Text = " "
  276. Cselect.TextSize = 14
  277.  
  278. uncommonframe.Name = "uncommonframe"
  279. uncommonframe.Parent = BuyMenu
  280. uncommonframe.BackgroundColor3 = Color3.new(1, 1, 1)
  281. uncommonframe.BackgroundTransparency = 1
  282. uncommonframe.Position = UDim2.new(0.519047618, 0, 0.389937103, 0)
  283. uncommonframe.Size = UDim2.new(0.461904764, 0, 0.169811323, 0)
  284.  
  285. UName.Name = "UName"
  286. UName.Parent = uncommonframe
  287. UName.BackgroundColor3 = Color3.new(1, 1, 1)
  288. UName.BackgroundTransparency = 1
  289. UName.Position = UDim2.new(-0.0824742243, 0, 0, 0)
  290. UName.Size = UDim2.new(0.793814421, 0, 0.92592591, 0)
  291. UName.Font = Enum.Font.SourceSansBold
  292. UName.Text = "Uncommon"
  293. UName.TextColor3 = Color3.new(1, 1, 1)
  294. UName.TextSize = 17
  295. UName.TextWrapped = true
  296.  
  297. Uselect.Name = "Uselect"
  298. Uselect.Parent = uncommonframe
  299. Uselect.BackgroundColor3 = Color3.new(1, 0.290196, 0.290196)
  300. Uselect.BorderSizePixel = 2
  301. Uselect.Position = UDim2.new(0.763000011, 0, 0.148000002, 0)
  302. Uselect.Size = UDim2.new(0.195999995, 0, 0.703999996, 0)
  303. Uselect.Font = Enum.Font.SourceSans
  304. Uselect.Text = " "
  305. Uselect.TextSize = 14
  306.  
  307. rareframe.Name = "rareframe"
  308. rareframe.Parent = BuyMenu
  309. rareframe.BackgroundColor3 = Color3.new(1, 1, 1)
  310. rareframe.BackgroundTransparency = 1
  311. rareframe.Position = UDim2.new(0.0190476198, 0, 0.584905684, 0)
  312. rareframe.Size = UDim2.new(0.461904764, 0, 0.169811323, 0)
  313.  
  314. RName.Name = "RName"
  315. RName.Parent = rareframe
  316. RName.BackgroundColor3 = Color3.new(1, 1, 1)
  317. RName.BackgroundTransparency = 1
  318. RName.Position = UDim2.new(-0.0412371121, 0, 0, 0)
  319. RName.Size = UDim2.new(0.793814421, 0, 0.92592591, 0)
  320. RName.Font = Enum.Font.SourceSansBold
  321. RName.Text = "Rare"
  322. RName.TextColor3 = Color3.new(1, 1, 1)
  323. RName.TextSize = 19
  324. RName.TextWrapped = true
  325.  
  326. Rselect.Name = "Rselect"
  327. Rselect.Parent = rareframe
  328. Rselect.BackgroundColor3 = Color3.new(1, 0.290196, 0.290196)
  329. Rselect.BorderSizePixel = 2
  330. Rselect.Position = UDim2.new(0.763000011, 0, 0.148000002, 0)
  331. Rselect.Size = UDim2.new(0.195999995, 0, 0.703999996, 0)
  332. Rselect.Font = Enum.Font.SourceSans
  333. Rselect.Text = " "
  334. Rselect.TextSize = 14
  335.  
  336. epicframe.Name = "epicframe"
  337. epicframe.Parent = BuyMenu
  338. epicframe.BackgroundColor3 = Color3.new(1, 1, 1)
  339. epicframe.BackgroundTransparency = 1
  340. epicframe.Position = UDim2.new(0.519047618, 0, 0.584905684, 0)
  341. epicframe.Size = UDim2.new(0.461904764, 0, 0.169811323, 0)
  342.  
  343. EName.Name = "EName"
  344. EName.Parent = epicframe
  345. EName.BackgroundColor3 = Color3.new(1, 1, 1)
  346. EName.BackgroundTransparency = 1
  347. EName.Position = UDim2.new(-0.0412371121, 0, 0, 0)
  348. EName.Size = UDim2.new(0.793814421, 0, 0.92592591, 0)
  349. EName.Font = Enum.Font.SourceSansBold
  350. EName.Text = "Epic"
  351. EName.TextColor3 = Color3.new(1, 1, 1)
  352. EName.TextSize = 19
  353. EName.TextWrapped = true
  354.  
  355. Eselect.Name = "Eselect"
  356. Eselect.Parent = epicframe
  357. Eselect.BackgroundColor3 = Color3.new(1, 0.290196, 0.290196)
  358. Eselect.BorderSizePixel = 2
  359. Eselect.Position = UDim2.new(0.763000011, 0, 0.148000002, 0)
  360. Eselect.Size = UDim2.new(0.195999995, 0, 0.703999996, 0)
  361. Eselect.AutoButtonColor = false
  362. Eselect.Font = Enum.Font.SourceSans
  363. Eselect.Text = " "
  364. Eselect.TextSize = 14
  365.  
  366. Frame.Parent = BuyMenu
  367. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  368. Frame.BorderColor3 = Color3.new(1, 1, 1)
  369. Frame.Position = UDim2.new(0.0238095243, 0, 0.34591195, 0)
  370. Frame.Size = UDim2.new(0.95714283, 0, 0, 0)
  371.  
  372. fif.Name = "fif"
  373. fif.Parent = BuyMenu
  374. fif.BackgroundColor3 = Color3.new(1, 1, 1)
  375. fif.BackgroundTransparency = 1
  376. fif.Position = UDim2.new(0.0142857144, 0, 0.16352202, 0)
  377. fif.Size = UDim2.new(0.461904764, 0, 0.169811323, 0)
  378.  
  379. fName.Name = "fName"
  380. fName.Parent = fif
  381. fName.BackgroundColor3 = Color3.new(1, 1, 1)
  382. fName.BackgroundTransparency = 1
  383. fName.Position = UDim2.new(-0.0412371121, 0, 0, 0)
  384. fName.Size = UDim2.new(0.793814421, 0, 0.92592591, 0)
  385. fName.Font = Enum.Font.SourceSansBold
  386. fName.Text = "50"
  387. fName.TextColor3 = Color3.new(1, 1, 1)
  388. fName.TextSize = 19
  389. fName.TextWrapped = true
  390.  
  391. fselect.Name = "fselect"
  392. fselect.Parent = fif
  393. fselect.BackgroundColor3 = Color3.new(1, 0.290196, 0.290196)
  394. fselect.BorderSizePixel = 2
  395. fselect.Position = UDim2.new(0.763000011, 0, 0.148000002, 0)
  396. fselect.Size = UDim2.new(0.195999995, 0, 0.703999996, 0)
  397. fselect.AutoButtonColor = false
  398. fselect.Font = Enum.Font.SourceSans
  399. fselect.Text = " "
  400. fselect.TextSize = 14
  401.  
  402. hundred.Name = "hundred"
  403. hundred.Parent = BuyMenu
  404. hundred.BackgroundColor3 = Color3.new(1, 1, 1)
  405. hundred.BackgroundTransparency = 1
  406. hundred.Position = UDim2.new(0.519047618, 0, 0.16352202, 0)
  407. hundred.Size = UDim2.new(0.461904764, 0, 0.169811323, 0)
  408.  
  409. hName.Name = "hName"
  410. hName.Parent = hundred
  411. hName.BackgroundColor3 = Color3.new(1, 1, 1)
  412. hName.BackgroundTransparency = 1
  413. hName.Position = UDim2.new(-0.0412371121, 0, 0, 0)
  414. hName.Size = UDim2.new(0.793814421, 0, 0.92592591, 0)
  415. hName.Font = Enum.Font.SourceSansBold
  416. hName.Text = "100"
  417. hName.TextColor3 = Color3.new(1, 1, 1)
  418. hName.TextSize = 19
  419. hName.TextWrapped = true
  420.  
  421. hselect.Name = "hselect"
  422. hselect.Parent = hundred
  423. hselect.BackgroundColor3 = Color3.new(1, 0.290196, 0.290196)
  424. hselect.BorderSizePixel = 2
  425. hselect.Position = UDim2.new(0.763000011, 0, 0.148000002, 0)
  426. hselect.Size = UDim2.new(0.195999995, 0, 0.703999996, 0)
  427. hselect.AutoButtonColor = false
  428. hselect.Font = Enum.Font.SourceSans
  429. hselect.Text = " "
  430. hselect.TextSize = 14
  431.  
  432. BarL.Name = "BarL"
  433. BarL.Parent = Drag
  434. BarL.Active = true
  435. BarL.BackgroundColor3 = Color3.new(0.223529, 0.352941, 0.815686)
  436. BarL.BorderSizePixel = 0
  437. BarL.Position = UDim2.new(1.06282723, 0, 1.24000001, 0)
  438. BarL.Size = UDim2.new(1.01600003, 0, 0.959999979, 0)
  439. BarL.Visible = false
  440. BarL.ZIndex = 3
  441. BarL.Draggable = true
  442.  
  443. CloseL.Name = "CloseL"
  444. CloseL.Parent = BarL
  445. CloseL.BackgroundColor3 = Color3.new(1, 1, 1)
  446. CloseL.BackgroundTransparency = 1
  447. CloseL.Position = UDim2.new(0.886010349, 0, -0.0454545468, 0)
  448. CloseL.Size = UDim2.new(0.119170986, 0, 0.954545438, 0)
  449. CloseL.ZIndex = 4
  450. CloseL.Font = Enum.Font.SourceSansBold
  451. CloseL.Text = "X"
  452. CloseL.TextColor3 = Color3.new(0.901961, 0.901961, 0.901961)
  453. CloseL.TextScaled = true
  454. CloseL.TextSize = 14
  455. CloseL.TextWrapped = true
  456.  
  457. NameL.Name = "NameL"
  458. NameL.Parent = BarL
  459. NameL.BackgroundColor3 = Color3.new(1, 1, 1)
  460. NameL.BackgroundTransparency = 1
  461. NameL.Position = UDim2.new(0.0207253881, 0, 0.0909090936, 0)
  462. NameL.Size = UDim2.new(0.699481845, 0, 0.818181813, 0)
  463. NameL.ZIndex = 4
  464. NameL.Font = Enum.Font.SourceSansBold
  465. NameL.Text = "Loop Open Menu"
  466. NameL.TextColor3 = Color3.new(1, 1, 1)
  467. NameL.TextScaled = true
  468. NameL.TextSize = 14
  469. NameL.TextWrapped = true
  470. NameL.TextXAlignment = Enum.TextXAlignment.Left
  471.  
  472. LoopMenu.Name = "LoopMenu"
  473. LoopMenu.Parent = BarL
  474. LoopMenu.BackgroundColor3 = Color3.new(0.443137, 0.443137, 0.443137)
  475. LoopMenu.BackgroundTransparency = 0.30000001192093
  476. LoopMenu.BorderSizePixel = 0
  477. LoopMenu.Position = UDim2.new(0, 0, 0.291666657, 0)
  478. LoopMenu.Size = UDim2.new(1, 0, 4.79199982, 0)
  479.  
  480. Common.Name = "Common"
  481. Common.Parent = LoopMenu
  482. Common.BackgroundColor3 = Color3.new(1, 0.290196, 0.290196)
  483. Common.BorderSizePixel = 2
  484. Common.Position = UDim2.new(0.860824764, 0, 0.187050357, 0)
  485. Common.Size = UDim2.new(0.108000003, 0, 0.150999993, 0)
  486. Common.Font = Enum.Font.SourceSans
  487. Common.Text = " "
  488. Common.TextSize = 14
  489.  
  490. Uncommon.Name = "Uncommon"
  491. Uncommon.Parent = LoopMenu
  492. Uncommon.BackgroundColor3 = Color3.new(1, 0.290196, 0.290196)
  493. Uncommon.BorderSizePixel = 2
  494. Uncommon.Position = UDim2.new(0.860824764, 0, 0.388489217, 0)
  495. Uncommon.Size = UDim2.new(0.108000003, 0, 0.150999993, 0)
  496. Uncommon.Font = Enum.Font.SourceSans
  497. Uncommon.Text = " "
  498. Uncommon.TextSize = 14
  499.  
  500. Rare.Name = "Rare"
  501. Rare.Parent = LoopMenu
  502. Rare.BackgroundColor3 = Color3.new(1, 0.290196, 0.290196)
  503. Rare.BorderSizePixel = 2
  504. Rare.Position = UDim2.new(0.860824764, 0, 0.597122312, 0)
  505. Rare.Size = UDim2.new(0.108000003, 0, 0.150999993, 0)
  506. Rare.Font = Enum.Font.SourceSans
  507. Rare.Text = " "
  508. Rare.TextSize = 14
  509.  
  510. Epic.Name = "Epic"
  511. Epic.Parent = LoopMenu
  512. Epic.BackgroundColor3 = Color3.new(1, 0.290196, 0.290196)
  513. Epic.BorderSizePixel = 2
  514. Epic.Position = UDim2.new(0.860824764, 0, 0.805755377, 0)
  515. Epic.Size = UDim2.new(0.108000003, 0, 0.150999993, 0)
  516. Epic.Font = Enum.Font.SourceSans
  517. Epic.Text = " "
  518. Epic.TextSize = 14
  519.  
  520. CommonLabel.Name = "CommonLabel"
  521. CommonLabel.Parent = LoopMenu
  522. CommonLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  523. CommonLabel.BackgroundTransparency = 1
  524. CommonLabel.Position = UDim2.new(0.0206185561, 0, 0.172661871, 0)
  525. CommonLabel.Size = UDim2.new(0.752577305, 0, 0.179856122, 0)
  526. CommonLabel.Font = Enum.Font.SourceSansBold
  527. CommonLabel.Text = "Common"
  528. CommonLabel.TextColor3 = Color3.new(1, 1, 1)
  529. CommonLabel.TextSize = 21
  530.  
  531. UncommonLabel.Name = "UncommonLabel"
  532. UncommonLabel.Parent = LoopMenu
  533. UncommonLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  534. UncommonLabel.BackgroundTransparency = 1
  535. UncommonLabel.Position = UDim2.new(0.0209999997, 0, 0.374000013, 0)
  536. UncommonLabel.Size = UDim2.new(0.752577305, 0, 0.179856122, 0)
  537. UncommonLabel.Font = Enum.Font.SourceSansBold
  538. UncommonLabel.Text = "Uncommon"
  539. UncommonLabel.TextColor3 = Color3.new(1, 1, 1)
  540. UncommonLabel.TextSize = 21
  541.  
  542. RareLabel.Name = "RareLabel"
  543. RareLabel.Parent = LoopMenu
  544. RareLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  545. RareLabel.BackgroundTransparency = 1
  546. RareLabel.Position = UDim2.new(0.0209999997, 0, 0.583000004, 0)
  547. RareLabel.Size = UDim2.new(0.752577305, 0, 0.179856122, 0)
  548. RareLabel.Font = Enum.Font.SourceSansBold
  549. RareLabel.Text = "Rare"
  550. RareLabel.TextColor3 = Color3.new(1, 1, 1)
  551. RareLabel.TextSize = 21
  552.  
  553. EpicLabel.Name = "EpicLabel"
  554. EpicLabel.Parent = LoopMenu
  555. EpicLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  556. EpicLabel.BackgroundTransparency = 1
  557. EpicLabel.Position = UDim2.new(0.0209999997, 0, 0.791999996, 0)
  558. EpicLabel.Size = UDim2.new(0.752577305, 0, 0.179856122, 0)
  559. EpicLabel.Font = Enum.Font.SourceSansBold
  560. EpicLabel.Text = "Epic"
  561. EpicLabel.TextColor3 = Color3.new(1, 1, 1)
  562. EpicLabel.TextSize = 21
  563.  
  564. selected.Name = "selected"
  565. selected.Parent = BuyMenu
  566. selected.Value = " "
  567.  
  568. amount.Parent = BuyMenu
  569. amount.Name = "amount"
  570. amount.Value = 0
  571.  
  572. -- Scripts
  573.  
  574. Buy.MouseButton1Click:Connect(function()
  575. BarB.Visible = true
  576. end)
  577.  
  578. open.MouseButton1Click:Connect(function()
  579. BarL.Visible = true
  580. end)
  581.  
  582. CloseL.MouseButton1Click:Connect(function()
  583. BarL.Visible = false
  584. end)
  585.  
  586. CloseB.MouseButton1Click:Connect(function()
  587. BarB.Visible = false
  588. end)
  589.  
  590. Sizer.MouseButton1Click:Connect(function()
  591. if Back.Visible == true then
  592. Back.Visible = false
  593. Sizer.Text = "-"
  594. else
  595. Back.Visible = true
  596. Sizer.Text = "+"
  597. end
  598. end)
  599.  
  600. Common.MouseButton1Click:Connect(function()
  601. if Common.BackgroundColor3 == Color3.fromRGB(255, 74, 74)then
  602. Common.BackgroundColor3 = Color3.fromRGB(85, 255, 127)
  603. CActive = true
  604. else
  605. Common.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  606. CActive = false
  607. end
  608. end)
  609.  
  610. Uncommon.MouseButton1Click:Connect(function()
  611. if Uncommon.BackgroundColor3 == Color3.fromRGB(255, 74, 74)then
  612. Uncommon.BackgroundColor3 = Color3.fromRGB(85, 255, 127)
  613. UActive = true
  614. else
  615. Uncommon.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  616. UActive = false
  617. end
  618. end)
  619.  
  620. Rare.MouseButton1Click:Connect(function()
  621. if Rare.BackgroundColor3 == Color3.fromRGB(255, 74, 74)then
  622. Rare.BackgroundColor3 = Color3.fromRGB(85, 255, 127)
  623. RActive = true
  624. else
  625. Rare.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  626. RActive = false
  627. end
  628. end)
  629.  
  630. Epic.MouseButton1Click:Connect(function()
  631. if Epic.BackgroundColor3 == Color3.fromRGB(255, 74, 74)then
  632. Epic.BackgroundColor3 = Color3.fromRGB(85, 255, 127)
  633. EActive = true
  634. else
  635. Epic.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  636. EActive = false
  637. end
  638. end)
  639.  
  640. Rselect.MouseButton1Click:Connect(function()
  641. if Rselect.BackgroundColor3 == Color3.fromRGB(255, 74, 74)then
  642. Rselect.BackgroundColor3 = Color3.fromRGB(85, 255, 127)
  643. Uselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  644. Cselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  645. Eselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  646. selected.Value = "Rare Hat Crate"
  647. else
  648. Rselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  649. selected.Value = " "
  650. end
  651. end)
  652.  
  653. Eselect.MouseButton1Click:Connect(function()
  654. if Eselect.BackgroundColor3 == Color3.fromRGB(255, 74, 74)then
  655. Eselect.BackgroundColor3 = Color3.fromRGB(85, 255, 127)
  656. Uselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  657. Cselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  658. Rselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  659. selected.Value = "Epic Hat Crate"
  660. else
  661. Eselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  662. selected.Value = " "
  663. end
  664. end)
  665.  
  666. Uselect.MouseButton1Click:Connect(function()
  667. if Uselect.BackgroundColor3 == Color3.fromRGB(255, 74, 74)then
  668. Uselect.BackgroundColor3 = Color3.fromRGB(85, 255, 127)
  669. Rselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  670. Cselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  671. Eselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  672. selected.Value = "Uncommon Hat Crate"
  673. else
  674. Uselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  675. selected.Value = " "
  676. end
  677. end)
  678.  
  679. Cselect.MouseButton1Click:Connect(function()
  680. if Cselect.BackgroundColor3 == Color3.fromRGB(255, 74, 74)then
  681. Cselect.BackgroundColor3 = Color3.fromRGB(85, 255, 127)
  682. Uselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  683. Rselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  684. Eselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  685. selected.Value = "Common Hat Crate"
  686. else
  687. Cselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  688. selected.Value = " "
  689. end
  690. end)
  691.  
  692. fselect.MouseButton1Click:Connect(function()
  693. if fselect.BackgroundColor3 == Color3.fromRGB(255, 74, 74)then
  694. fselect.BackgroundColor3 = Color3.fromRGB(85, 255, 127)
  695. hselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  696. amount.Value = 50
  697. else
  698. fselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  699. amount.Value = 0
  700. end
  701. end)
  702.  
  703. hselect.MouseButton1Click:Connect(function()
  704. if hselect.BackgroundColor3 == Color3.fromRGB(255, 74, 74)then
  705. hselect.BackgroundColor3 = Color3.fromRGB(85, 255, 127)
  706. fselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  707. amount.Value = 50
  708. else
  709. hselect.BackgroundColor3 = Color3.fromRGB(255, 74, 74)
  710. amount.Value = 0
  711. end
  712. end)
  713.  
  714. purchase.MouseButton1Click:Connect(function()
  715. if selected.Value == "Common Hat Crate"then
  716. game.Workspace.RemoteEvent:FireServer("OpenCrate", "Common Hat Crate", amount.Value)
  717.  
  718. elseif selected.Value == "Uncommon Hat Crate"then
  719. game.Workspace.RemoteEvent:FireServer("OpenCrate", "Uncommon Hat Crate", amount.Value)
  720. print("Epic Hat")
  721.  
  722. elseif selected.Value == "Rare Hat Crate"then
  723. game.Workspace.RemoteEvent:FireServer("OpenCrate", "Rare Hat Crate", amount.Value)
  724. print("Rare Hat")
  725.  
  726. elseif selected.Value == "Epic Hat Crate"then
  727. game.Workspace.RemoteEvent:FireServer("OpenCrate", "Epic Hat Crate", amount.Value)
  728. print("Epic Hat")
  729. end
  730. end)
  731.  
  732. candy.MouseButton1Click:Connect(function()
  733. game.Workspace.RemoteEvent:FireServer("MoveTo", "CandySpawn")
  734. end)
  735.  
  736. toy.MouseButton1Click:Connect(function()
  737. game.Workspace.RemoteEvent:FireServer("MoveTo", "ToySpawn")
  738. end)
  739.  
  740. food.MouseButton1Click:Connect(function()
  741. game.Workspace.RemoteEvent:FireServer("MoveTo", "FoodSpawn")
  742. end)
  743.  
  744. sell.MouseButton1Click:Connect(function()
  745. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Activation.Sell.CFrame
  746. end)
  747.  
  748. instant.MouseButton1Click:Connect(function()
  749. local Player = game.Players.LocalPlayer
  750. local Mouse = Player:GetMouse()
  751. local Activated = false
  752.  
  753. Mouse.Button1Down:connect(function()
  754. Activated = true
  755. end)
  756.  
  757. Mouse.Button1Up:connect(function()
  758. Activated = false
  759. end)
  760.  
  761. while true do
  762. wait()
  763. if Activated == true then
  764. game.Workspace.RemoteEvent:FireServer("MineBlock", Mouse.Target.Parent)
  765. end
  766. end
  767. end)
  768.  
  769. while wait() do
  770. if CActive == true then
  771. game.Workspace.RemoteEvent:FireServer("SpinCrate","Common Hat Crate")
  772.  
  773. elseif UActive == true then
  774. game.Workspace.RemoteEvent:FireServer("SpinCrate","Uncommon Hat Crate")
  775.  
  776. elseif RActive == true then
  777. game.Workspace.RemoteEvent:FireServer("SpinCrate","Rare Hat Crate")
  778.  
  779. elseif EActive == true then
  780. game.Workspace.RemoteEvent:FireServer("SpinCrate", "Epic Hat Crate")
  781. end
  782. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement