Advertisement
Sakkzz

Untitled

Jan 16th, 2020
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.52 KB | None | 0 0
  1. local Menu = Instance.new("ScreenGui")
  2. local ButtonFrame = Instance.new("Frame")
  3. local Upgrade = Instance.new("TextButton")
  4. local Shop = Instance.new("TextButton")
  5. local Effects = Instance.new("TextButton")
  6. local Crafting = Instance.new("TextButton")
  7. local Holiday = Instance.new("TextButton")
  8. local Sell = Instance.new("TextButton")
  9.  
  10. Menu.Name = "Menu"
  11. Menu.Parent = game.CoreGui
  12.  
  13. ButtonFrame.Name = "ButtonFrame"
  14. ButtonFrame.Parent = Menu
  15. ButtonFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  16. ButtonFrame.BackgroundTransparency = 1.000
  17. ButtonFrame.Position = UDim2.new(0, 480, 0, -31)
  18. ButtonFrame.Size = UDim2.new(0, 600, 0, 25)
  19.  
  20. Upgrade.Name = "Upgrade"
  21. Upgrade.Parent = ButtonFrame
  22. Upgrade.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  23. Upgrade.Size = UDim2.new(0, 100, 0, 25)
  24. Upgrade.Style = Enum.ButtonStyle.RobloxRoundButton
  25. Upgrade.Font = Enum.Font.GothamSemibold
  26. Upgrade.Text = "Upgrade"
  27. Upgrade.TextColor3 = Color3.fromRGB(0, 0, 0)
  28. Upgrade.TextSize = 14.000
  29.  
  30. Shop.Name = "Shop"
  31. Shop.Parent = ButtonFrame
  32. Shop.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  33. Shop.Position = UDim2.new(0, 200, 0, 0)
  34. Shop.Size = UDim2.new(0, 100, 0, 25)
  35. Shop.Style = Enum.ButtonStyle.RobloxRoundButton
  36. Shop.Font = Enum.Font.GothamSemibold
  37. Shop.Text = "Shop"
  38. Shop.TextColor3 = Color3.fromRGB(0, 0, 0)
  39. Shop.TextSize = 14.000
  40.  
  41. Effects.Name = "Effects"
  42. Effects.Parent = ButtonFrame
  43. Effects.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  44. Effects.Position = UDim2.new(0, 500, 0, 0)
  45. Effects.Size = UDim2.new(0, 100, 0, 25)
  46. Effects.Style = Enum.ButtonStyle.RobloxRoundButton
  47. Effects.Font = Enum.Font.GothamSemibold
  48. Effects.Text = "Effects"
  49. Effects.TextColor3 = Color3.fromRGB(0, 0, 0)
  50. Effects.TextSize = 14.000
  51.  
  52. Crafting.Name = "Crafting"
  53. Crafting.Parent = ButtonFrame
  54. Crafting.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  55. Crafting.Position = UDim2.new(0, 400, 0, 0)
  56. Crafting.Size = UDim2.new(0, 100, 0, 25)
  57. Crafting.Style = Enum.ButtonStyle.RobloxRoundButton
  58. Crafting.Font = Enum.Font.GothamSemibold
  59. Crafting.Text = "Crafting"
  60. Crafting.TextColor3 = Color3.fromRGB(0, 0, 0)
  61. Crafting.TextSize = 14.000
  62.  
  63. Holiday.Name = "Holiday"
  64. Holiday.Parent = ButtonFrame
  65. Holiday.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  66. Holiday.Position = UDim2.new(0, 300, 0, 0)
  67. Holiday.Size = UDim2.new(0, 100, 0, 25)
  68. Holiday.Style = Enum.ButtonStyle.RobloxRoundButton
  69. Holiday.Font = Enum.Font.GothamSemibold
  70. Holiday.Text = "Holiday"
  71. Holiday.TextColor3 = Color3.fromRGB(0, 0, 0)
  72. Holiday.TextSize = 14.000
  73.  
  74. Sell.Name = "Sell"
  75. Sell.Parent = ButtonFrame
  76. Sell.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  77. Sell.Position = UDim2.new(0, 100, 0, 0)
  78. Sell.Size = UDim2.new(0, 100, 0, 25)
  79. Sell.Style = Enum.ButtonStyle.RobloxRoundButton
  80. Sell.Font = Enum.Font.GothamSemibold
  81. Sell.Text = "Sell"
  82. Sell.TextColor3 = Color3.fromRGB(0, 0, 0)
  83. Sell.TextSize = 14.000
  84.  
  85. Upgrade.MouseButton1Click:Connect(function()
  86.     if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Upgrade.Visible == false then
  87.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Upgrade.Visible = true
  88.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Shop.Visible = false
  89.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Effects.Visible = false
  90.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Crafting.Visible = false
  91.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Holiday.Visible = false
  92.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Sell.Visible = false
  93.     else if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Upgrade.Visible == true then
  94.         game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Upgrade.Visible = false
  95.         end
  96.     end
  97. end)
  98.  
  99. Shop.MouseButton1Click:Connect(function()
  100.     if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Shop.Visible == false then
  101.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Upgrade.Visible = false
  102.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Shop.Visible = true
  103.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Effects.Visible = false
  104.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Crafting.Visible = false
  105.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Holiday.Visible = false
  106.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Sell.Visible = false
  107.     else if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Shop.Visible == true then
  108.         game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Shop.Visible = false
  109.         end
  110.     end
  111. end)
  112.  
  113. Effects.MouseButton1Click:Connect(function()
  114.     if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Shop.Visible == false then
  115.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Upgrade.Visible = false
  116.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Shop.Visible = false
  117.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Effects.Visible = true
  118.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Crafting.Visible = false
  119.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Holiday.Visible = false
  120.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Sell.Visible = false
  121.     else if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Effects.Visible == true then
  122.         game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Effects.Visible = false
  123.         end
  124.     end
  125. end)
  126.  
  127. Crafting.MouseButton1Click:Connect(function()
  128.     if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Shop.Visible == false then
  129.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Upgrade.Visible = false
  130.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Shop.Visible = false
  131.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Effects.Visible = false
  132.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Crafting.Visible = true
  133.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Holiday.Visible = false
  134.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Sell.Visible = false
  135.     else if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Crafting.Visible == true then
  136.         game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Crafting.Visible = false
  137.         end
  138.     end
  139. end)
  140.  
  141. Holiday.MouseButton1Click:Connect(function()
  142.     if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Shop.Visible == false then
  143.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Upgrade.Visible = true
  144.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Shop.Visible = false
  145.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Effects.Visible = false
  146.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Crafting.Visible = false
  147.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Holiday.Visible = true
  148.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Sell.Visible = false
  149.     else if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Holiday.Visible == true then
  150.         game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Holiday.Visible = false
  151.         end
  152.     end
  153. end)
  154.  
  155. Sell.MouseButton1Click:Connect(function()
  156.     if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Shop.Visible == false then
  157.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Upgrade.Visible = false
  158.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Shop.Visible = false
  159.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Effects.Visible = false
  160.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Crafting.Visible = false
  161.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Holiday.Visible = false
  162.     game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Sell.Visible = true
  163.     else if game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Sell.Visible == true then
  164.         game:GetService("Players").LocalPlayer.PlayerGui.MainGui.MainFrame.Pages.Sell.Visible = false
  165.         end
  166.     end
  167. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement