Advertisement
cortesjoren

Epic Mining Gui | AutoSell | AutoMine | QuickMine

Jan 12th, 2019
1,925
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.46 KB | None | 0 0
  1. --[[
  2. Desc:
  3. This took a little bit of work but it was worth the experience
  4. ------
  5. Game:
  6. https://www.roblox.com/games/2058161107/HEROES-Epic-Mining
  7. ]]
  8. print('loading')
  9. plr = game:GetService('Players').LocalPlayer
  10. Root = plr.Character.HumanoidRootPart
  11. UIS = game:GetService("UserInputService")
  12. mouse = plr:GetMouse()
  13. local ScreenGui = Instance.new("ScreenGui")
  14. local MainFrame = Instance.new("Frame")
  15. local TopFrame = Instance.new("Frame")
  16. local Close = Instance.new("TextButton")
  17. local Minimize = Instance.new("TextButton")
  18. local Game = Instance.new("TextLabel")
  19. local B1 = Instance.new("TextButton")
  20. local L1 = Instance.new("TextLabel")
  21. local B5 = Instance.new("TextButton")
  22. local L5 = Instance.new("TextLabel")
  23. local B3 = Instance.new("TextButton")
  24. local L3 = Instance.new("TextLabel")
  25. local B6 = Instance.new("TextButton")
  26. local L6 = Instance.new("TextLabel")
  27. local B2 = Instance.new("TextButton")
  28. local L2 = Instance.new("TextLabel")
  29. local B4 = Instance.new("TextButton")
  30. local L4 = Instance.new("TextLabel")
  31. local GuiCred = Instance.new("TextLabel")
  32. local ScriptCred = Instance.new("TextLabel")
  33. game:GetService("ReplicatedStorage").Remotes.Pickaxe:FireServer({["Message"] = "UnequipBomb"})
  34. game:GetService("ReplicatedStorage").Remotes.Pickaxe:FireServer({["Message"] = "UnequipPortal"})
  35. game:GetService("ReplicatedStorage").Remotes.Pickaxe:FireServer({["Message"] = "EquipPickaxe"})
  36. game:GetService("ReplicatedStorage").Remotes.Pickaxe:FireServer({["Message"] = "UnequipPickaxe"})
  37. game:GetService("ReplicatedStorage").Remotes.Pickaxe:FireServer({["Message"] = "NotMiningAnymore"})
  38. ScreenGui.Parent = game.CoreGui
  39. B1.TextWrapped = true
  40. B2.TextWrapped = true
  41. B3.TextWrapped = true
  42. B4.TextWrapped = true
  43. B5.TextWrapped = true
  44. B6.TextWrapped = true
  45. ScriptCred.TextWrapped = true
  46. GuiCred.TextWrapped = true
  47. Game.TextWrapped = true
  48. _G.on1 = 0
  49. _G.on2 = 0
  50. _G.on3 = 0
  51. _G.on4 = 0
  52. _G.on5 = 0
  53. _G.on6 = 0
  54. MainFrame.Name = "MainFrame"
  55. MainFrame.Parent = ScreenGui
  56. MainFrame.BackgroundColor3 = Color3.new(0.364706, 0.360784, 0.380392)
  57. MainFrame.BackgroundTransparency = 0.40000000596046
  58. MainFrame.BorderColor3 = Color3.new(0.501961, 0.533333, 0.529412)
  59. MainFrame.Position = UDim2.new(0.229385316, 0, 0.28605482, 0)
  60. MainFrame.Size = UDim2.new(0, 360, 0, 239)
  61. MainFrame.Draggable = true
  62. MainFrame.Active = true
  63. MainFrame.Selectable = true
  64. TopFrame.Name = "TopFrame"
  65. TopFrame.Parent = MainFrame
  66. TopFrame.BackgroundColor3 = Color3.new(0.364706, 0.360784, 0.380392)
  67. TopFrame.BackgroundTransparency = 0.89999997615814
  68. TopFrame.BorderSizePixel = 0
  69. TopFrame.Size = UDim2.new(0, 360, 0, 24)
  70. Close.Name = "Close"
  71. Close.Parent = TopFrame
  72. Close.BackgroundColor3 = Color3.new(0.364706, 0.360784, 0.380392)
  73. Close.BackgroundTransparency = 0.80000001192093
  74. Close.BorderSizePixel = 0
  75. Close.Position = UDim2.new(0.916666627, 0, 0, 0)
  76. Close.Size = UDim2.new(0, 24, 0, 24)
  77. Close.Font = Enum.Font.SourceSans
  78. Close.Text = "x"
  79. Close.TextColor3 = Color3.new(0, 0, 0)
  80. Close.TextSize = 16
  81. Minimize.Name = "Minimize"
  82. Minimize.Parent = TopFrame
  83. Minimize.BackgroundColor3 = Color3.new(0.364706, 0.360784, 0.380392)
  84. Minimize.BackgroundTransparency = 0.80000001192093
  85. Minimize.BorderSizePixel = 0
  86. Minimize.Position = UDim2.new(0.827777803, 0, 0, 0)
  87. Minimize.Size = UDim2.new(0, 24, 0, 24)
  88. Minimize.Font = Enum.Font.SourceSans
  89. Minimize.Text = "^"
  90. Minimize.TextColor3 = Color3.new(0, 0, 0)
  91. Minimize.TextSize = 18
  92. Game.Name = "Game"
  93. Game.Parent = TopFrame
  94. Game.BackgroundColor3 = Color3.new(0.364706, 0.360784, 0.380392)
  95. Game.BackgroundTransparency = 0.80000001192093
  96. Game.BorderSizePixel = 0
  97. Game.Position = UDim2.new(0.0222222228, 0, 0, 0)
  98. Game.Size = UDim2.new(0, 281, 0, 24)
  99. Game.Font = Enum.Font.SourceSans
  100. Game.Text = "[Game name here]"
  101. Game.TextColor3 = Color3.new(0, 0, 0)
  102. Game.TextSize = 14
  103. B1.Name = "B1"
  104. B1.Parent = MainFrame
  105. B1.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  106. B1.BackgroundTransparency = 0.20000000298023
  107. B1.Position = UDim2.new(0.0583333373, 0, 0.146443501, 0)
  108. B1.Size = UDim2.new(0, 132, 0, 44)
  109. B1.Font = Enum.Font.SourceSans
  110. B1.Text = "B1 N/A"
  111. B1.TextColor3 = Color3.new(0, 0, 0)
  112. B1.TextSize = 14
  113. L1.Name = "L1"
  114. L1.Parent = B1
  115. L1.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  116. L1.Position = UDim2.new(0.871212125, 0, 0, 0)
  117. L1.Size = UDim2.new(0, 17, 0, 17)
  118. L1.Font = Enum.Font.SourceSans
  119. L1.Text = ""
  120. L1.TextColor3 = Color3.new(0, 0, 0)
  121. L1.TextSize = 14
  122. B2.Name = "B2"
  123. B2.Parent = MainFrame
  124. B2.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  125. B2.BackgroundTransparency = 0.20000000298023
  126. B2.Position = UDim2.new(0.0583333373, 0, 0.405857742, 0)
  127. B2.Size = UDim2.new(0, 132, 0, 44)
  128. B2.Font = Enum.Font.SourceSans
  129. B2.Text = "B2 N/A"
  130. B2.TextColor3 = Color3.new(0, 0, 0)
  131. B2.TextSize = 14
  132. L2.Name = "L2"
  133. L2.Parent = B2
  134. L2.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  135. L2.Position = UDim2.new(0.871212125, 0, 0, 0)
  136. L2.Size = UDim2.new(0, 17, 0, 17)
  137. L2.Font = Enum.Font.SourceSans
  138. L2.Text = ""
  139. L2.TextColor3 = Color3.new(0, 0, 0)
  140. L2.TextSize = 14
  141. B3.Name = "B3"
  142. B3.Parent = MainFrame
  143. B3.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  144. B3.BackgroundTransparency = 0.20000000298023
  145. B3.Position = UDim2.new(0.0583333373, 0, 0.656903744, 0)
  146. B3.Size = UDim2.new(0, 132, 0, 44)
  147. B3.Font = Enum.Font.SourceSans
  148. B3.Text = "B3 N/A"
  149. B3.TextColor3 = Color3.new(0, 0, 0)
  150. B3.TextSize = 14
  151. L3.Name = "L3"
  152. L3.Parent = B3
  153. L3.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  154. L3.Position = UDim2.new(0.871212125, 0, 0, 0)
  155. L3.Size = UDim2.new(0, 17, 0, 17)
  156. L3.Font = Enum.Font.SourceSans
  157. L3.Text = ""
  158. L3.TextColor3 = Color3.new(0, 0, 0)
  159. L3.TextSize = 14
  160. B4.Name = "B4"
  161. B4.Parent = MainFrame
  162. B4.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  163. B4.BackgroundTransparency = 0.20000000298023
  164. B4.Position = UDim2.new(0.577777743, 0, 0.146443516, 0)
  165. B4.Size = UDim2.new(0, 132, 0, 44)
  166. B4.Font = Enum.Font.SourceSans
  167. B4.Text = "B4 N/A"
  168. B4.TextColor3 = Color3.new(0, 0, 0)
  169. B4.TextSize = 14
  170. L4.Name = "L4"
  171. L4.Parent = B4
  172. L4.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  173. L4.Position = UDim2.new(0.871212125, 0, 0, 0)
  174. L4.Size = UDim2.new(0, 17, 0, 17)
  175. L4.Font = Enum.Font.SourceSans
  176. L4.Text = ""
  177. L4.TextColor3 = Color3.new(0, 0, 0)
  178. L4.TextSize = 14
  179. B5.Name = "B5"
  180. B5.Parent = MainFrame
  181. B5.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  182. B5.BackgroundTransparency = 0.20000000298023
  183. B5.Position = UDim2.new(0.577777743, 0, 0.405857742, 0)
  184. B5.Size = UDim2.new(0, 132, 0, 44)
  185. B5.Font = Enum.Font.SourceSans
  186. B5.Text = "B5 N/A"
  187. B5.TextColor3 = Color3.new(0, 0, 0)
  188. B5.TextSize = 14
  189. L5.Name = "L5"
  190. L5.Parent = B5
  191. L5.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  192. L5.Position = UDim2.new(0.871212125, 0, 0, 0)
  193. L5.Size = UDim2.new(0, 17, 0, 17)
  194. L5.Font = Enum.Font.SourceSans
  195. L5.Text = ""
  196. L5.TextColor3 = Color3.new(0, 0, 0)
  197. L5.TextSize = 14
  198. B6.Name = "B6"
  199. B6.Parent = MainFrame
  200. B6.BackgroundColor3 = Color3.new(0.333333, 0.478431, 0.584314)
  201. B6.BackgroundTransparency = 0.20000000298023
  202. B6.Position = UDim2.new(0.577777743, 0, 0.656903803, 0)
  203. B6.Size = UDim2.new(0, 132, 0, 44)
  204. B6.Font = Enum.Font.SourceSans
  205. B6.Text = "B6 N/A"
  206. B6.TextColor3 = Color3.new(0, 0, 0)
  207. B6.TextSize = 14
  208. L6.Name = "L6"
  209. L6.Parent = B6
  210. L6.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  211. L6.Position = UDim2.new(0.871212125, 0, 0, 0)
  212. L6.Size = UDim2.new(0, 17, 0, 17)
  213. L6.Font = Enum.Font.SourceSans
  214. L6.Text = ""
  215. L6.TextColor3 = Color3.new(0, 0, 0)
  216. L6.TextSize = 14
  217. GuiCred.Name = "GuiCred"
  218. GuiCred.Parent = MainFrame
  219. GuiCred.BackgroundColor3 = Color3.new(0.45098, 0.584314, 0.682353)
  220. GuiCred.BackgroundTransparency = 0.60000002384186
  221. GuiCred.BorderSizePixel = 0
  222. GuiCred.Position = UDim2.new(0, 0, 0.88702929, 0)
  223. GuiCred.Size = UDim2.new(0, 174, 0, 27)
  224. GuiCred.Font = Enum.Font.SourceSans
  225. GuiCred.Text = "Gui Credit: brianops1"
  226. GuiCred.TextColor3 = Color3.new(0, 0, 0)
  227. GuiCred.TextSize = 14
  228. ScriptCred.Name = "ScriptCred"
  229. ScriptCred.Parent = MainFrame
  230. ScriptCred.BackgroundColor3 = Color3.new(0.45098, 0.584314, 0.682353)
  231. ScriptCred.BackgroundTransparency = 0.60000002384186
  232. ScriptCred.BorderSizePixel = 0
  233. ScriptCred.Position = UDim2.new(0.522222221, 0, 0.887000024, 0)
  234. ScriptCred.Size = UDim2.new(0, 172, 0, 27)
  235. ScriptCred.Font = Enum.Font.SourceSans
  236. ScriptCred.Text = "Script(s) credit: "
  237. ScriptCred.TextColor3 = Color3.new(0, 0, 0)
  238. ScriptCred.TextSize = 14
  239. function onL(Light)
  240. Light.BackgroundColor3 = Color3.new(0.364706, 0.694118, 1)
  241. end
  242. function offL(Light)
  243. Light.BackgroundColor3 = Color3.new(0.313726, 0.360784, 0.403922)
  244. end
  245. function mine(tbl)
  246. game:GetService('RunService').Stepped:wait()
  247. local A_1 =
  248. {
  249. ["Message"] = "MineBlock",
  250. ["Block"] =
  251. {
  252. ["Depth"] = tbl[1],
  253. ["Row"] = tbl[2],
  254. ["Block"] = tbl[3]
  255. }
  256. }
  257. local Event = game:GetService("ReplicatedStorage").Remotes.Pickaxe
  258. Event:FireServer(A_1)
  259. tbl[2] = tbl[2] + 1
  260. tbl[3] = tbl[3] + 0
  261. local A_1 =
  262. {
  263. ["Message"] = "MineBlock",
  264. ["Block"] =
  265. {
  266. ["Depth"] = tbl[1],
  267. ["Row"] = tbl[2],
  268. ["Block"] = tbl[3]
  269. }
  270. }
  271. local Event = game:GetService("ReplicatedStorage").Remotes.Pickaxe
  272. Event:FireServer(A_1)
  273. tbl[2] = tbl[2] + 0
  274. tbl[3] = tbl[3] + 1
  275. local A_1 =
  276. {
  277. ["Message"] = "MineBlock",
  278. ["Block"] =
  279. {
  280. ["Depth"] = tbl[1],
  281. ["Row"] = tbl[2],
  282. ["Block"] = tbl[3]
  283. }
  284. }
  285. local Event = game:GetService("ReplicatedStorage").Remotes.Pickaxe
  286. Event:FireServer(A_1)
  287. tbl[2] = tbl[2] + 0
  288. tbl[3] = tbl[3] + -2
  289. local A_1 =
  290. {
  291. ["Message"] = "MineBlock",
  292. ["Block"] =
  293. {
  294. ["Depth"] = tbl[1],
  295. ["Row"] = tbl[2],
  296. ["Block"] = tbl[3]
  297. }
  298. }
  299. local Event = game:GetService("ReplicatedStorage").Remotes.Pickaxe
  300. Event:FireServer(A_1)
  301. tbl[2] = tbl[2] + -1
  302. tbl[3] = tbl[3] + 0
  303. local A_1 =
  304. {
  305. ["Message"] = "MineBlock",
  306. ["Block"] =
  307. {
  308. ["Depth"] = tbl[1],
  309. ["Row"] = tbl[2],
  310. ["Block"] = tbl[3]
  311. }
  312. }
  313. local Event = game:GetService("ReplicatedStorage").Remotes.Pickaxe
  314. Event:FireServer(A_1)
  315. tbl[2] = tbl[2] + -1
  316. tbl[3] = tbl[3] + 0
  317. local A_1 =
  318. {
  319. ["Message"] = "MineBlock",
  320. ["Block"] =
  321. {
  322. ["Depth"] = tbl[1],
  323. ["Row"] = tbl[2],
  324. ["Block"] = tbl[3]
  325. }
  326. }
  327. local Event = game:GetService("ReplicatedStorage").Remotes.Pickaxe
  328. Event:FireServer(A_1)
  329. tbl[2] = tbl[2] + 0
  330. tbl[3] = tbl[3] + 1
  331. local A_1 =
  332. {
  333. ["Message"] = "MineBlock",
  334. ["Block"] =
  335. {
  336. ["Depth"] = tbl[1],
  337. ["Row"] = tbl[2],
  338. ["Block"] = tbl[3]
  339. }
  340. }
  341. local Event = game:GetService("ReplicatedStorage").Remotes.Pickaxe
  342. Event:FireServer(A_1)
  343. tbl[2] = tbl[2] + 0
  344. tbl[3] = tbl[3] + 1
  345. local A_1 =
  346. {
  347. ["Message"] = "MineBlock",
  348. ["Block"] =
  349. {
  350. ["Depth"] = tbl[1],
  351. ["Row"] = tbl[2],
  352. ["Block"] = tbl[3]
  353. }
  354. }
  355. local Event = game:GetService("ReplicatedStorage").Remotes.Pickaxe
  356. Event:FireServer(A_1)
  357. tbl[2] = tbl[2] + 1
  358. tbl[3] = tbl[3] + 0
  359. local A_1 =
  360. {
  361. ["Message"] = "MineBlock",
  362. ["Block"] =
  363. {
  364. ["Depth"] = tbl[1],
  365. ["Row"] = tbl[2],
  366. ["Block"] = tbl[3]
  367. }
  368. }
  369. local Event = game:GetService("ReplicatedStorage").Remotes.Pickaxe
  370. Event:FireServer(A_1)
  371. end
  372. function auto()
  373. game:GetService('RunService').Stepped:wait()
  374. orgin = Root.CFrame
  375. wait()
  376. Root.CFrame = CFrame.new(46.110958099365, 5.1322550773621, 0.68900269269943)
  377. for i = 1,5 do
  378. local A_1 = "SellAllOres"
  379. local Event = game:GetService("ReplicatedStorage").Remotes.Purchase
  380. Event:FireServer(A_1)
  381. wait()
  382. end
  383. wait()
  384. Root.CFrame = orgin
  385. end
  386. ------------------------------------------------------
  387.  
  388. Game.Text = "Epic Mining Sim" -- Game name here
  389. ScriptCred.Text = ScriptCred.Text .. "brianops1" -- put the script creators name here
  390.  
  391. --Enter the script name corresponding to the button below
  392. B1.Text = "InstaMine"
  393. B2.Text = "SellEverything"
  394. B3.Text = "AutoMine(Where your mouse is)"
  395. B4.Text = "3x3 InstaMine"
  396. B5.Text = "AutoSell (At Half of max)"
  397. B6.Text = ""
  398.  
  399. B1.MouseButton1Click:connect(function()
  400. if _G.on1 == 1 then
  401. _G.on1 = 0
  402. _G.on = 0
  403. offL(L1)
  404. else
  405. _G.on1 = 1
  406. onL(L1)
  407. game:GetService('RunService').Stepped:wait()
  408. UIS.InputBegan:Connect(function(inputObject)
  409. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 and _G.on1 == 1 then
  410. _G.on = 1
  411. while _G.on == 1 and _G.on1 == 1 do
  412. wait()
  413. local block = mouse.Target
  414. local location = block.Parent
  415. tbl = {}
  416. for i in string.gmatch(location.Name, "%S+") do
  417. i = tonumber(i)
  418. table.insert(tbl,i)
  419. end
  420. local A_1 =
  421. {
  422. ["Message"] = "MineBlock",
  423. ["Block"] =
  424. {
  425. ["Depth"] = tbl[1],
  426. ["Row"] = tbl[2],
  427. ["Block"] = tbl[3]
  428. }
  429. }
  430. local Event = game:GetService("ReplicatedStorage").Remotes.Pickaxe
  431. Event:FireServer(A_1)
  432. end
  433. end
  434. end)
  435. UIS.InputEnded:Connect(function(inputObject)
  436. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 and _G.on1 == 1 then
  437. _G.on = 0
  438. end
  439. end)
  440. end
  441. end)
  442. B2.MouseButton1Click:connect(function()
  443. if _G.on2 == 1 then
  444. _G.on2 = 0
  445. offL(L2)
  446. else
  447. _G.on2 = 1
  448. onL(L2)
  449. if _G.on2 == 1 then
  450. auto()
  451. end
  452. _G.on2 = 0
  453. offL(L2)
  454. end
  455. end)
  456. B3.MouseButton1Click:connect(function()
  457. if _G.on3 == 1 then
  458. _G.on3 = 0
  459. offL(L3)
  460. else
  461. _G.on3 = 1
  462. onL(L3)
  463. while _G.on3 == 1 do
  464. game:GetService('RunService').Stepped:wait()
  465. local block = mouse.Target
  466. local location = block.Parent
  467. tbl = {}
  468. for i in string.gmatch(location.Name, "%S+") do
  469. i = tonumber(i)
  470. table.insert(tbl,i)
  471. end
  472. local A_1 =
  473. {
  474. ["Message"] = "MineBlock",
  475. ["Block"] =
  476. {
  477. ["Depth"] = tbl[1],
  478. ["Row"] = tbl[2],
  479. ["Block"] = tbl[3]
  480. }
  481. }
  482. local Event = game:GetService("ReplicatedStorage").Remotes.Pickaxe
  483. Event:FireServer(A_1)
  484. end
  485. end
  486. end)
  487. B4.MouseButton1Click:connect(function()
  488. if _G.on4 == 1 then
  489. _G.on4 = 0
  490. _G.On = 0
  491. offL(L4)
  492. else
  493. _G.on4 = 1
  494. onL(L4)
  495. UIS.InputBegan:Connect(function(inputObject)
  496. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 and _G.on4 == 1 then
  497. _G.On = 1
  498. while _G.On == 1 and _G.on4 == 1 do
  499. game:GetService('RunService').Stepped:wait()
  500. local block = mouse.Target
  501. local location = block.Parent
  502. tbl = {}
  503. for i in string.gmatch(location.Name, "%S+") do
  504. i = tonumber(i)
  505. table.insert(tbl,i)
  506. end
  507. mine(tbl)
  508. end
  509. end
  510. end)
  511. UIS.InputEnded:Connect(function(inputObject)
  512. if inputObject.UserInputType == Enum.UserInputType.MouseButton1 and _G.on4 == 1 then
  513. _G.On = 0
  514. end
  515. end)
  516. end
  517. end)
  518. B5.MouseButton1Click:connect(function()
  519. if _G.on5 == 1 then
  520. _G.on5 = 0
  521. offL(L5)
  522. else
  523. _G.on5 = 1
  524. onL(L5)
  525. while _G.on5 == 1 do
  526. game:GetService('RunService').Stepped:wait()
  527. Inv = plr["PlayerGui"]["LargeUI"]["SideBar"]["1Inventory"]["Amount"].Text
  528. Inv = string.gsub(Inv, "/", " ")
  529. Inv = string.gsub(Inv, ",", "")
  530. Inventory = {}
  531.  
  532. for i in string.gmatch(Inv, "%S+") do
  533. i = tonumber(i)
  534. table.insert(Inventory,i)
  535. end
  536. pack = Inventory[1]
  537. max = Inventory[2]
  538. half = max / 2
  539. if pack >= half then
  540. auto()
  541. end
  542. end
  543. end
  544. end)
  545. B6.MouseButton1Click:connect(function()
  546. if _G.on6 == 1 then
  547. _G.on6 = 0
  548. offL(L6)
  549. else
  550. _G.on6 = 1
  551. onL(L6)
  552. while _G.on6 == 1 do
  553. game:GetService('RunService').Stepped:wait()
  554. --code
  555. end
  556. end
  557. end)
  558.  
  559. ------------------------------------------------------
  560.  
  561. m = 0
  562. Close.MouseButton1Click:connect(function()
  563. _G.on1 = 0
  564. _G.on2 = 0
  565. _G.on3 = 0
  566. _G.on4 = 0
  567. _G.on5 = 0
  568. _G.on6 = 0
  569. MainFrame:Destroy()
  570. ScreenGui:Destroy()
  571. end)
  572. Minimize.MouseButton1Click:connect(function()
  573. if m == 0 then
  574. m = 1
  575. B1.Visible = false
  576. B2.Visible = false
  577. B3.Visible = false
  578. B4.Visible = false
  579. B5.Visible = false
  580. B6.Visible = false
  581. GuiCred.Visible = false
  582. ScriptCred.Visible = false
  583. MainFrame.Size = TopFrame.Size
  584. Minimize.TextSize = 18
  585. Minimize.Text = "v"
  586. else
  587. m = 0
  588. MainFrame.Size = UDim2.new(0, 360, 0, 239)
  589. B1.Visible = true
  590. B2.Visible = true
  591. B3.Visible = true
  592. B4.Visible = true
  593. B5.Visible = true
  594. B6.Visible = true
  595. GuiCred.Visible = true
  596. ScriptCred.Visible = true
  597. Minimize.TextSize = 20
  598. Minimize.Text = "^"
  599. end
  600. end)
  601. print('loaded')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement