Advertisement
Altix13

OPEN GUI

Feb 8th, 2020
4,352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.20 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.1
  3.  
  4. -- Instances:
  5.  
  6. local OpenGui = Instance.new("ScreenGui")
  7. local OpenGui_Menu = Instance.new("Frame")
  8. local Tittle_Bar = Instance.new("Frame")
  9. local Close = Instance.new("TextButton")
  10. local treasure_quest_logo = Instance.new("ImageLabel")
  11. local Tittle = Instance.new("TextLabel")
  12. local OpenGui_Tittle = Instance.new("TextLabel")
  13. local B_Dungeon = Instance.new("TextButton")
  14. local B_Inventory = Instance.new("TextButton")
  15. local B_Collection = Instance.new("TextButton")
  16. local B_Upgrade = Instance.new("TextButton")
  17. local B_Codes = Instance.new("TextButton")
  18. local B_Trading = Instance.new("TextButton")
  19. local B_Shop = Instance.new("TextButton")
  20. local B_Settings = Instance.new("TextButton")
  21. local B_BossDefeat = Instance.new("TextButton")
  22. local B_Crafting = Instance.new("TextButton")
  23. local B_Coins = Instance.new("TextButton")
  24. local B_Stats = Instance.new("TextButton")
  25. local B_Effect = Instance.new("TextButton")
  26. local B_CoinPurchase = Instance.new("TextButton")
  27. local B_Potions = Instance.new("TextButton")
  28. local B_PrizeWheel = Instance.new("TextButton")
  29. local B_Sell = Instance.new("TextButton")
  30. local B_Bank = Instance.new("TextButton")
  31.  
  32. --Properties:
  33.  
  34. OpenGui.Name = "OpenGui"
  35. OpenGui.Parent = game.CoreGui
  36.  
  37. OpenGui_Menu.Name = "OpenGui_Menu"
  38. OpenGui_Menu.Parent = OpenGui
  39. OpenGui_Menu.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  40. OpenGui_Menu.BackgroundTransparency = 0.300
  41. OpenGui_Menu.Position = UDim2.new(0.144615501, 0, 0.17422767, 0)
  42. OpenGui_Menu.Size = UDim2.new(0, 143, 0, 535)
  43. OpenGui_Menu.Active = true
  44. OpenGui_Menu.Draggable = true
  45.  
  46. Tittle_Bar.Name = "Tittle_Bar"
  47. Tittle_Bar.Parent = OpenGui_Menu
  48. Tittle_Bar.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  49. Tittle_Bar.BorderColor3 = Color3.fromRGB(27, 42, 53)
  50. Tittle_Bar.Size = UDim2.new(0, 143, 0, 20)
  51.  
  52. Close.Name = "Close"
  53. Close.Parent = Tittle_Bar
  54. Close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  55. Close.BackgroundTransparency = 1.000
  56. Close.Position = UDim2.new(0.854371428, 0, 0, 0)
  57. Close.Size = UDim2.new(0, 20, 0, 20)
  58. Close.Font = Enum.Font.SourceSans
  59. Close.Text = "X"
  60. Close.TextColor3 = Color3.fromRGB(255, 255, 255)
  61. Close.TextScaled = true
  62. Close.TextSize = 14.000
  63. Close.TextWrapped = true
  64. Close.MouseButton1Down:connect(function()
  65. game:GetService("CoreGui").OpenGui:remove()
  66. end)
  67.  
  68. treasure_quest_logo.Name = "treasure_quest_logo"
  69. treasure_quest_logo.Parent = Tittle_Bar
  70. treasure_quest_logo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  71. treasure_quest_logo.Size = UDim2.new(0, 20, 0, 20)
  72. treasure_quest_logo.Image = "rbxgameasset://Images/tql"
  73.  
  74. Tittle.Name = "Tittle"
  75. Tittle.Parent = Tittle_Bar
  76. Tittle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  77. Tittle.BackgroundTransparency = 1.000
  78. Tittle.Size = UDim2.new(0, 143, 0, 20)
  79. Tittle.Font = Enum.Font.SourceSans
  80. Tittle.Text = "Treasure Quest"
  81. Tittle.TextColor3 = Color3.fromRGB(255, 255, 255)
  82. Tittle.TextSize = 14.000
  83. Tittle.TextWrapped = true
  84.  
  85. OpenGui_Tittle.Name = "OpenGui_Tittle"
  86. OpenGui_Tittle.Parent = OpenGui_Menu
  87. OpenGui_Tittle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  88. OpenGui_Tittle.BackgroundTransparency = 1.000
  89. OpenGui_Tittle.Position = UDim2.new(0.00699300691, 0, 0.0363172591, 0)
  90. OpenGui_Tittle.Size = UDim2.new(0, 142, 0, 31)
  91. OpenGui_Tittle.Font = Enum.Font.SourceSans
  92. OpenGui_Tittle.Text = "- OpenGui -"
  93. OpenGui_Tittle.TextColor3 = Color3.fromRGB(255, 255, 255)
  94. OpenGui_Tittle.TextScaled = true
  95. OpenGui_Tittle.TextSize = 14.000
  96. OpenGui_Tittle.TextWrapped = true
  97.  
  98. B_Dungeon.Name = "B_Dungeon"
  99. B_Dungeon.Parent = OpenGui_Menu
  100. B_Dungeon.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  101. B_Dungeon.BackgroundTransparency = 0.700
  102. B_Dungeon.BorderColor3 = Color3.fromRGB(27, 42, 53)
  103. B_Dungeon.Position = UDim2.new(0.0430069938, 0, 0.0938317776, 0)
  104. B_Dungeon.Size = UDim2.new(0, 130, 0, 20)
  105. B_Dungeon.Font = Enum.Font.SourceSans
  106. B_Dungeon.Text = "Dungeon"
  107. B_Dungeon.TextColor3 = Color3.fromRGB(170, 0, 0)
  108. B_Dungeon.TextScaled = true
  109. B_Dungeon.TextSize = 14.000
  110. B_Dungeon.TextWrapped = true
  111. B_Dungeon.MouseButton1Down:connect(function()
  112. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Dungeon.Visible == false then
  113. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Dungeon.Visible = true
  114. B_Dungeon.TextColor3 = Color3.fromRGB(0, 170, 0)
  115. else
  116. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Dungeon.Visible = false
  117. B_Dungeon.TextColor3 = Color3.fromRGB(170, 0, 0)
  118. end
  119. end)
  120.  
  121. B_Inventory.Name = "B_Inventory"
  122. B_Inventory.Parent = OpenGui_Menu
  123. B_Inventory.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  124. B_Inventory.BackgroundTransparency = 0.700
  125. B_Inventory.BorderColor3 = Color3.fromRGB(27, 42, 53)
  126. B_Inventory.Position = UDim2.new(0.0430069938, 0, 0.143831775, 0)
  127. B_Inventory.Size = UDim2.new(0, 130, 0, 20)
  128. B_Inventory.Font = Enum.Font.SourceSans
  129. B_Inventory.Text = "Inventory"
  130. B_Inventory.TextColor3 = Color3.fromRGB(170, 0, 0)
  131. B_Inventory.TextScaled = true
  132. B_Inventory.TextSize = 14.000
  133. B_Inventory.TextWrapped = true
  134. B_Inventory.MouseButton1Down:connect(function()
  135. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Inventory.Visible == false then
  136. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Inventory.Visible = true
  137. B_Inventory.TextColor3 = Color3.fromRGB(0, 170, 0)
  138. else
  139. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Inventory.Visible = false
  140. B_Inventory.TextColor3 = Color3.fromRGB(170, 0, 0)
  141. end
  142. end)
  143.  
  144. B_Collection.Name = "B_Collection"
  145. B_Collection.Parent = OpenGui_Menu
  146. B_Collection.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  147. B_Collection.BackgroundTransparency = 0.700
  148. B_Collection.BorderColor3 = Color3.fromRGB(27, 42, 53)
  149. B_Collection.Position = UDim2.new(0.0430069938, 0, 0.193831772, 0)
  150. B_Collection.Size = UDim2.new(0, 130, 0, 20)
  151. B_Collection.Font = Enum.Font.SourceSans
  152. B_Collection.Text = "Collection"
  153. B_Collection.TextColor3 = Color3.fromRGB(170, 0, 0)
  154. B_Collection.TextScaled = true
  155. B_Collection.TextSize = 14.000
  156. B_Collection.TextWrapped = true
  157. B_Collection.MouseButton1Down:connect(function()
  158. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Collection.Visible == false then
  159. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Collection.Visible = true
  160. B_Collection.TextColor3 = Color3.fromRGB(0, 170, 0)
  161. else
  162. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Collection.Visible = false
  163. B_Collection.TextColor3 = Color3.fromRGB(170, 0, 0)
  164. end
  165. end)
  166.  
  167. B_Upgrade.Name = "B_Upgrade"
  168. B_Upgrade.Parent = OpenGui_Menu
  169. B_Upgrade.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  170. B_Upgrade.BackgroundTransparency = 0.700
  171. B_Upgrade.BorderColor3 = Color3.fromRGB(27, 42, 53)
  172. B_Upgrade.Position = UDim2.new(0.0430069938, 0, 0.243831784, 0)
  173. B_Upgrade.Size = UDim2.new(0, 130, 0, 20)
  174. B_Upgrade.Font = Enum.Font.SourceSans
  175. B_Upgrade.Text = "Upgrade"
  176. B_Upgrade.TextColor3 = Color3.fromRGB(170, 0, 0)
  177. B_Upgrade.TextScaled = true
  178. B_Upgrade.TextSize = 14.000
  179. B_Upgrade.TextWrapped = true
  180. B_Upgrade.MouseButton1Down:connect(function()
  181. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Upgrade.Visible == false then
  182. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Upgrade.Visible = true
  183. B_Upgrade.TextColor3 = Color3.fromRGB(0, 170, 0)
  184. else
  185. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Upgrade.Visible = false
  186. B_Upgrade.TextColor3 = Color3.fromRGB(170, 0, 0)
  187. end
  188. end)
  189.  
  190. B_Codes.Name = "B_Codes"
  191. B_Codes.Parent = OpenGui_Menu
  192. B_Codes.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  193. B_Codes.BackgroundTransparency = 0.700
  194. B_Codes.BorderColor3 = Color3.fromRGB(27, 42, 53)
  195. B_Codes.Position = UDim2.new(0.0430069938, 0, 0.39383176, 0)
  196. B_Codes.Size = UDim2.new(0, 130, 0, 20)
  197. B_Codes.Font = Enum.Font.SourceSans
  198. B_Codes.Text = "Codes"
  199. B_Codes.TextColor3 = Color3.fromRGB(170, 0, 0)
  200. B_Codes.TextScaled = true
  201. B_Codes.TextSize = 14.000
  202. B_Codes.TextWrapped = true
  203. B_Codes.MouseButton1Down:connect(function()
  204. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Codes.Visible == false then
  205. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Codes.Visible = true
  206. B_Codes.TextColor3 = Color3.fromRGB(0, 170, 0)
  207. else
  208. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Codes.Visible = false
  209. B_Codes.TextColor3 = Color3.fromRGB(170, 0, 0)
  210. end
  211. end)
  212.  
  213. B_Trading.Name = "B_Trading"
  214. B_Trading.Parent = OpenGui_Menu
  215. B_Trading.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  216. B_Trading.BackgroundTransparency = 0.700
  217. B_Trading.BorderColor3 = Color3.fromRGB(27, 42, 53)
  218. B_Trading.Position = UDim2.new(0.0430069938, 0, 0.293831766, 0)
  219. B_Trading.Size = UDim2.new(0, 130, 0, 20)
  220. B_Trading.Font = Enum.Font.SourceSans
  221. B_Trading.Text = "Trading"
  222. B_Trading.TextColor3 = Color3.fromRGB(170, 0, 0)
  223. B_Trading.TextScaled = true
  224. B_Trading.TextSize = 14.000
  225. B_Trading.TextWrapped = true
  226. B_Trading.MouseButton1Down:connect(function()
  227. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Trading.Visible == false then
  228. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Trading.Visible = true
  229. B_Trading.TextColor3 = Color3.fromRGB(0, 170, 0)
  230. else
  231. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Trading.Visible = false
  232. B_Trading.TextColor3 = Color3.fromRGB(170, 0, 0)
  233. end
  234. end)
  235.  
  236. B_Shop.Name = "B_Shop"
  237. B_Shop.Parent = OpenGui_Menu
  238. B_Shop.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  239. B_Shop.BackgroundTransparency = 0.700
  240. B_Shop.BorderColor3 = Color3.fromRGB(27, 42, 53)
  241. B_Shop.Position = UDim2.new(0.0430069938, 0, 0.343831778, 0)
  242. B_Shop.Size = UDim2.new(0, 130, 0, 20)
  243. B_Shop.Font = Enum.Font.SourceSans
  244. B_Shop.Text = "Shop"
  245. B_Shop.TextColor3 = Color3.fromRGB(170, 0, 0)
  246. B_Shop.TextScaled = true
  247. B_Shop.TextSize = 14.000
  248. B_Shop.TextWrapped = true
  249. B_Shop.MouseButton1Down:connect(function()
  250. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Shop.Visible == false then
  251. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Shop.Visible = true
  252. B_Shop.TextColor3 = Color3.fromRGB(0, 170, 0)
  253. else
  254. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Shop.Visible = false
  255. B_Shop.TextColor3 = Color3.fromRGB(170, 0, 0)
  256. end
  257. end)
  258.  
  259. B_Settings.Name = "B_Settings"
  260. B_Settings.Parent = OpenGui_Menu
  261. B_Settings.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  262. B_Settings.BackgroundTransparency = 0.700
  263. B_Settings.BorderColor3 = Color3.fromRGB(27, 42, 53)
  264. B_Settings.Position = UDim2.new(0.0430069938, 0, 0.443831772, 0)
  265. B_Settings.Size = UDim2.new(0, 130, 0, 20)
  266. B_Settings.Font = Enum.Font.SourceSans
  267. B_Settings.Text = "Settings"
  268. B_Settings.TextColor3 = Color3.fromRGB(170, 0, 0)
  269. B_Settings.TextScaled = true
  270. B_Settings.TextSize = 14.000
  271. B_Settings.TextWrapped = true
  272. B_Settings.MouseButton1Down:connect(function()
  273. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Settings.Visible == false then
  274. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Settings.Visible = true
  275. B_Settings.TextColor3 = Color3.fromRGB(0, 170, 0)
  276. else
  277. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Settings.Visible = false
  278. B_Settings.TextColor3 = Color3.fromRGB(170, 0, 0)
  279. end
  280. end)
  281.  
  282. B_BossDefeat.Name = "B_BossDefeat"
  283. B_BossDefeat.Parent = OpenGui_Menu
  284. B_BossDefeat.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  285. B_BossDefeat.BackgroundTransparency = 0.700
  286. B_BossDefeat.BorderColor3 = Color3.fromRGB(27, 42, 53)
  287. B_BossDefeat.Position = UDim2.new(0.0430069938, 0, 0.493831754, 0)
  288. B_BossDefeat.Size = UDim2.new(0, 130, 0, 20)
  289. B_BossDefeat.Font = Enum.Font.SourceSans
  290. B_BossDefeat.Text = "BossDefeat"
  291. B_BossDefeat.TextColor3 = Color3.fromRGB(170, 0, 0)
  292. B_BossDefeat.TextScaled = true
  293. B_BossDefeat.TextSize = 14.000
  294. B_BossDefeat.TextWrapped = true
  295. B_BossDefeat.MouseButton1Down:connect(function()
  296. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.BossDefeat.Visible == false then
  297. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.BossDefeat.Visible = true
  298. B_BossDefeat.TextColor3 = Color3.fromRGB(0, 170, 0)
  299. else
  300. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.BossDefeat.Visible = false
  301. B_BossDefeat.TextColor3 = Color3.fromRGB(170, 0, 0)
  302. end
  303. end)
  304.  
  305. B_Crafting.Name = "B_Crafting"
  306. B_Crafting.Parent = OpenGui_Menu
  307. B_Crafting.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  308. B_Crafting.BackgroundTransparency = 0.700
  309. B_Crafting.BorderColor3 = Color3.fromRGB(27, 42, 53)
  310. B_Crafting.Position = UDim2.new(0.0430069938, 0, 0.793831766, 0)
  311. B_Crafting.Size = UDim2.new(0, 130, 0, 20)
  312. B_Crafting.Font = Enum.Font.SourceSans
  313. B_Crafting.Text = "Crafting"
  314. B_Crafting.TextColor3 = Color3.fromRGB(170, 0, 0)
  315. B_Crafting.TextScaled = true
  316. B_Crafting.TextSize = 14.000
  317. B_Crafting.TextWrapped = true
  318. B_Crafting.MouseButton1Down:connect(function()
  319. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Crafting.Visible == false then
  320. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Crafting.Visible = true
  321. B_Crafting.TextColor3 = Color3.fromRGB(0, 170, 0)
  322. else
  323. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Crafting.Visible = false
  324. B_Crafting.TextColor3 = Color3.fromRGB(170, 0, 0)
  325. end
  326. end)
  327.  
  328. B_Coins.Name = "B_Coins"
  329. B_Coins.Parent = OpenGui_Menu
  330. B_Coins.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  331. B_Coins.BackgroundTransparency = 0.700
  332. B_Coins.BorderColor3 = Color3.fromRGB(27, 42, 53)
  333. B_Coins.Position = UDim2.new(0.0430069938, 0, 0.593831778, 0)
  334. B_Coins.Size = UDim2.new(0, 130, 0, 20)
  335. B_Coins.Font = Enum.Font.SourceSans
  336. B_Coins.Text = "Coins"
  337. B_Coins.TextColor3 = Color3.fromRGB(170, 0, 0)
  338. B_Coins.TextScaled = true
  339. B_Coins.TextSize = 14.000
  340. B_Coins.TextWrapped = true
  341. B_Coins.MouseButton1Down:connect(function()
  342. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Coins.Visible == false then
  343. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Coins.Visible = true
  344. B_Coins.TextColor3 = Color3.fromRGB(0, 170, 0)
  345. else
  346. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Coins.Visible = false
  347. B_Coins.TextColor3 = Color3.fromRGB(170, 0, 0)
  348. end
  349. end)
  350.  
  351. B_Stats.Name = "B_Stats"
  352. B_Stats.Parent = OpenGui_Menu
  353. B_Stats.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  354. B_Stats.BackgroundTransparency = 0.700
  355. B_Stats.BorderColor3 = Color3.fromRGB(27, 42, 53)
  356. B_Stats.Position = UDim2.new(0.0430069938, 0, 0.743831754, 0)
  357. B_Stats.Size = UDim2.new(0, 130, 0, 20)
  358. B_Stats.Font = Enum.Font.SourceSans
  359. B_Stats.Text = "Stats"
  360. B_Stats.TextColor3 = Color3.fromRGB(170, 0, 0)
  361. B_Stats.TextScaled = true
  362. B_Stats.TextSize = 14.000
  363. B_Stats.TextWrapped = true
  364. B_Stats.MouseButton1Down:connect(function()
  365. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Stats.Visible == false then
  366. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Stats.Visible = true
  367. B_Stats.TextColor3 = Color3.fromRGB(0, 170, 0)
  368. else
  369. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Stats.Visible = false
  370. B_Stats.TextColor3 = Color3.fromRGB(170, 0, 0)
  371. end
  372. end)
  373.  
  374. B_Effect.Name = "B_Effect"
  375. B_Effect.Parent = OpenGui_Menu
  376. B_Effect.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  377. B_Effect.BackgroundTransparency = 0.700
  378. B_Effect.BorderColor3 = Color3.fromRGB(27, 42, 53)
  379. B_Effect.Position = UDim2.new(0.0430069938, 0, 0.543831766, 0)
  380. B_Effect.Size = UDim2.new(0, 130, 0, 20)
  381. B_Effect.Font = Enum.Font.SourceSans
  382. B_Effect.Text = "Effects"
  383. B_Effect.TextColor3 = Color3.fromRGB(170, 0, 0)
  384. B_Effect.TextScaled = true
  385. B_Effect.TextSize = 14.000
  386. B_Effect.TextWrapped = true
  387. B_Effect.MouseButton1Down:connect(function()
  388. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Effects.Visible == false then
  389. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Effects.Visible = true
  390. B_Effect.TextColor3 = Color3.fromRGB(0, 170, 0)
  391. else
  392. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Effects.Visible = false
  393. B_Effect.TextColor3 = Color3.fromRGB(170, 0, 0)
  394. end
  395. end)
  396.  
  397. B_CoinPurchase.Name = "B_CoinPurchase"
  398. B_CoinPurchase.Parent = OpenGui_Menu
  399. B_CoinPurchase.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  400. B_CoinPurchase.BackgroundTransparency = 0.700
  401. B_CoinPurchase.BorderColor3 = Color3.fromRGB(27, 42, 53)
  402. B_CoinPurchase.Position = UDim2.new(0.0430069938, 0, 0.643831789, 0)
  403. B_CoinPurchase.Size = UDim2.new(0, 130, 0, 20)
  404. B_CoinPurchase.Font = Enum.Font.SourceSans
  405. B_CoinPurchase.Text = "CoinPuchase"
  406. B_CoinPurchase.TextColor3 = Color3.fromRGB(170, 0, 0)
  407. B_CoinPurchase.TextScaled = true
  408. B_CoinPurchase.TextSize = 14.000
  409. B_CoinPurchase.TextWrapped = true
  410. B_CoinPurchase.MouseButton1Down:connect(function()
  411. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.CoinPurchase.Visible == false then
  412. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.CoinPurchase.Visible = true
  413. B_CoinPurchase.TextColor3 = Color3.fromRGB(0, 170, 0)
  414. else
  415. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.CoinPurchase.Visible = false
  416. B_CoinPurchase.TextColor3 = Color3.fromRGB(170, 0, 0)
  417. end
  418. end)
  419.  
  420. B_Potions.Name = "B_Potions"
  421. B_Potions.Parent = OpenGui_Menu
  422. B_Potions.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  423. B_Potions.BackgroundTransparency = 0.700
  424. B_Potions.BorderColor3 = Color3.fromRGB(27, 42, 53)
  425. B_Potions.Position = UDim2.new(0.0430069938, 0, 0.693831801, 0)
  426. B_Potions.Size = UDim2.new(0, 130, 0, 20)
  427. B_Potions.Font = Enum.Font.SourceSans
  428. B_Potions.Text = "Potions"
  429. B_Potions.TextColor3 = Color3.fromRGB(170, 0, 0)
  430. B_Potions.TextScaled = true
  431. B_Potions.TextSize = 14.000
  432. B_Potions.TextWrapped = true
  433. B_Potions.MouseButton1Down:connect(function()
  434. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Potions.Visible == false then
  435. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Potions.Visible = true
  436. B_Potions.TextColor3 = Color3.fromRGB(0, 170, 0)
  437. else
  438. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Potions.Visible = false
  439. B_Potions.TextColor3 = Color3.fromRGB(170, 0, 0)
  440. end
  441. end)
  442.  
  443. B_PrizeWheel.Name = "B_PrizeWheel"
  444. B_PrizeWheel.Parent = OpenGui_Menu
  445. B_PrizeWheel.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  446. B_PrizeWheel.BackgroundTransparency = 0.700
  447. B_PrizeWheel.BorderColor3 = Color3.fromRGB(27, 42, 53)
  448. B_PrizeWheel.Position = UDim2.new(0.0430069938, 0, 0.843831778, 0)
  449. B_PrizeWheel.Size = UDim2.new(0, 130, 0, 20)
  450. B_PrizeWheel.Font = Enum.Font.SourceSans
  451. B_PrizeWheel.Text = "PrizeWheel"
  452. B_PrizeWheel.TextColor3 = Color3.fromRGB(170, 0, 0)
  453. B_PrizeWheel.TextScaled = true
  454. B_PrizeWheel.TextSize = 14.000
  455. B_PrizeWheel.TextWrapped = true
  456. B_PrizeWheel.MouseButton1Down:connect(function()
  457. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.PrizeWheel.Visible == false then
  458. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.PrizeWheel.Visible = true
  459. B_PrizeWheel.TextColor3 = Color3.fromRGB(0, 170, 0)
  460. else
  461. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.PrizeWheel.Visible = false
  462. B_PrizeWheel.TextColor3 = Color3.fromRGB(170, 0, 0)
  463. end
  464. end)
  465.  
  466. B_Sell.Name = "B_Sell"
  467. B_Sell.Parent = OpenGui_Menu
  468. B_Sell.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  469. B_Sell.BackgroundTransparency = 0.700
  470. B_Sell.BorderColor3 = Color3.fromRGB(27, 42, 53)
  471. B_Sell.Position = UDim2.new(0.0430069938, 0, 0.893831789, 0)
  472. B_Sell.Size = UDim2.new(0, 130, 0, 20)
  473. B_Sell.Font = Enum.Font.SourceSans
  474. B_Sell.Text = "Sell"
  475. B_Sell.TextColor3 = Color3.fromRGB(170, 0, 0)
  476. B_Sell.TextScaled = true
  477. B_Sell.TextSize = 14.000
  478. B_Sell.TextWrapped = true
  479. B_Sell.MouseButton1Down:connect(function()
  480. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Sell.Visible == false then
  481. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Sell.Visible = true
  482. B_Sell.TextColor3 = Color3.fromRGB(0, 170, 0)
  483. else
  484. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Sell.Visible = false
  485. B_Sell.TextColor3 = Color3.fromRGB(170, 0, 0)
  486. end
  487. end)
  488.  
  489. B_Bank.Name = "B_Bank"
  490. B_Bank.Parent = OpenGui_Menu
  491. B_Bank.BackgroundColor3 = Color3.fromRGB(27, 42, 53)
  492. B_Bank.BackgroundTransparency = 0.700
  493. B_Bank.BorderColor3 = Color3.fromRGB(27, 42, 53)
  494. B_Bank.Position = UDim2.new(0.0430069938, 0, 0.943831801, 0)
  495. B_Bank.Size = UDim2.new(0, 130, 0, 20)
  496. B_Bank.Font = Enum.Font.SourceSans
  497. B_Bank.Text = "Bank"
  498. B_Bank.TextColor3 = Color3.fromRGB(170, 0, 0)
  499. B_Bank.TextScaled = true
  500. B_Bank.TextSize = 14.000
  501. B_Bank.TextWrapped = true
  502. B_Bank.MouseButton1Down:connect(function()
  503. if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Bank.Visible == false then
  504. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Bank.Visible = true
  505. B_Bank.TextColor3 = Color3.fromRGB(0, 170, 0)
  506. else
  507. game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Bank.Visible = false
  508. B_Bank.TextColor3 = Color3.fromRGB(170, 0, 0)
  509. end
  510. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement