Advertisement
JannickP8

Gumball Tycoon GUI

Jul 13th, 2022 (edited)
972
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.50 KB | None | 0 0
  1. --by cryptic
  2.  
  3. -- Instances:
  4.  
  5. local bubblegumtycoon = Instance.new("ScreenGui")
  6. local backround = Instance.new("Frame")
  7. local title = Instance.new("TextLabel")
  8. local frame = Instance.new("Frame")
  9. local exit = Instance.new("TextButton")
  10. local freebadges = Instance.new("TextButton")
  11. local UICorner = Instance.new("UICorner")
  12. local AutofarmObbys = Instance.new("TextButton")
  13. local UICorner_2 = Instance.new("UICorner")
  14. local HighWalkspeed = Instance.new("TextButton")
  15. local UICorner_3 = Instance.new("UICorner")
  16.  
  17. --Properties:
  18.  
  19. bubblegumtycoon.Name = "bubblegumtycoon"
  20. bubblegumtycoon.Parent = game.CoreGui
  21.  
  22. backround.Name = "backround"
  23. backround.Parent = bubblegumtycoon
  24. backround.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  25. backround.BorderSizePixel = 0
  26. backround.Position = UDim2.new(0.105703421, 0, 0.503059983, 0)
  27. backround.Size = UDim2.new(0, 438, 0, 357)
  28.  
  29. title.Name = "title"
  30. title.Parent = backround
  31. title.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  32. title.BorderSizePixel = 0
  33. title.Size = UDim2.new(0, 438, 0, 44)
  34. title.Font = Enum.Font.SourceSans
  35. title.Text = "Bubblegum Tycoon | made by ProxodionDev"
  36. title.TextColor3 = Color3.fromRGB(255, 0, 4)
  37. title.TextSize = 23.000
  38. title.TextWrapped = true
  39. title.TextXAlignment = Enum.TextXAlignment.Left
  40.  
  41. frame.Name = "frame"
  42. frame.Parent = title
  43. frame.BackgroundColor3 = Color3.fromRGB(255, 0, 4)
  44. frame.BorderSizePixel = 0
  45. frame.Position = UDim2.new(0, 0, 1, 0)
  46. frame.Size = UDim2.new(0, 438, 0, 1)
  47.  
  48. exit.Name = "exit"
  49. exit.Parent = title
  50. exit.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  51. exit.BackgroundTransparency = 1.000
  52. exit.BorderSizePixel = 0
  53. exit.Position = UDim2.new(0.874429226, 0, 0, 0)
  54. exit.Size = UDim2.new(0, 55, 0, 44)
  55. exit.Font = Enum.Font.Gotham
  56. exit.Text = "X"
  57. exit.TextColor3 = Color3.fromRGB(255, 0, 4)
  58. exit.TextScaled = true
  59. exit.TextSize = 14.000
  60. exit.TextWrapped = true
  61.  
  62. freebadges.Name = "freebadges"
  63. freebadges.Parent = backround
  64. freebadges.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  65. freebadges.BorderColor3 = Color3.fromRGB(46, 46, 46)
  66. freebadges.BorderSizePixel = 0
  67. freebadges.Position = UDim2.new(0.0319634713, 0, 0.15126051, 0)
  68. freebadges.Size = UDim2.new(0, 200, 0, 198)
  69. freebadges.Font = Enum.Font.Gotham
  70. freebadges.Text = "2 Free Badges (Obby Badges)"
  71. freebadges.TextColor3 = Color3.fromRGB(255, 0, 4)
  72. freebadges.TextSize = 12.000
  73.  
  74. UICorner.CornerRadius = UDim.new(0, 4)
  75. UICorner.Parent = freebadges
  76.  
  77. AutofarmObbys.Name = "Autofarm (Obbys)"
  78. AutofarmObbys.Parent = backround
  79. AutofarmObbys.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  80. AutofarmObbys.BorderColor3 = Color3.fromRGB(46, 46, 46)
  81. AutofarmObbys.BorderSizePixel = 0
  82. AutofarmObbys.Position = UDim2.new(0.51826483, 0, 0.15126051, 0)
  83. AutofarmObbys.Size = UDim2.new(0, 200, 0, 198)
  84. AutofarmObbys.Font = Enum.Font.Gotham
  85. AutofarmObbys.Text = "Autofarm (Booster Farm) - very slow"
  86. AutofarmObbys.TextColor3 = Color3.fromRGB(255, 0, 4)
  87. AutofarmObbys.TextSize = 11.000
  88.  
  89. UICorner_2.CornerRadius = UDim.new(0, 4)
  90. UICorner_2.Parent = AutofarmObbys
  91.  
  92. HighWalkspeed.Name = "High Walkspeed"
  93. HighWalkspeed.Parent = backround
  94. HighWalkspeed.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  95. HighWalkspeed.BorderColor3 = Color3.fromRGB(46, 46, 46)
  96. HighWalkspeed.BorderSizePixel = 0
  97. HighWalkspeed.Position = UDim2.new(0.0319634713, 0, 0.731092453, 0)
  98. HighWalkspeed.Size = UDim2.new(0, 413, 0, 86)
  99. HighWalkspeed.Font = Enum.Font.Gotham
  100. HighWalkspeed.Text = "Double Walkspeed (32)"
  101. HighWalkspeed.TextColor3 = Color3.fromRGB(255, 0, 4)
  102. HighWalkspeed.TextSize = 12.000
  103.  
  104. UICorner_3.CornerRadius = UDim.new(0, 4)
  105. UICorner_3.Parent = HighWalkspeed
  106.  
  107. -- Scripts:
  108.  
  109. local function JDKNS_fake_script() -- exit.lclscript
  110.     local script = Instance.new('LocalScript', exit)
  111.  
  112.     local btn = script.Parent
  113.     local screengui = btn.Parent.Parent.Parent
  114.    
  115.    
  116.     btn.MouseButton1Click:Connect(function()
  117.         screengui:Destroy()
  118.     end)
  119. end
  120. coroutine.wrap(JDKNS_fake_script)()
  121. local function WLLQA_fake_script() -- backround.dragabble
  122.     local script = Instance.new('LocalScript', backround)
  123.  
  124.     local UserInputService = game:GetService("UserInputService")
  125.    
  126.     local gui = script.Parent
  127.    
  128.     local dragging
  129.     local dragInput
  130.     local dragStart
  131.     local startPos
  132.    
  133.     local function update(input)
  134.         local delta = input.Position - dragStart
  135.         gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  136.     end
  137.    
  138.     gui.InputBegan:Connect(function(input)
  139.         if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  140.             dragging = true
  141.             dragStart = input.Position
  142.             startPos = gui.Position
  143.    
  144.             input.Changed:Connect(function()
  145.                 if input.UserInputState == Enum.UserInputState.End then
  146.                     dragging = false
  147.                 end
  148.             end)
  149.         end
  150.     end)
  151.    
  152.     gui.InputChanged:Connect(function(input)
  153.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  154.             dragInput = input
  155.         end
  156.     end)
  157.    
  158.     UserInputService.InputChanged:Connect(function(input)
  159.         if input == dragInput and dragging then
  160.             update(input)
  161.         end
  162.     end)
  163. end
  164. coroutine.wrap(WLLQA_fake_script)()
  165. local function PAIZ_fake_script() -- freebadges.lclscript
  166.     local script = Instance.new('LocalScript', freebadges)
  167.  
  168.     local easyObby = game.Workspace.Obbies.EasyObby.Win
  169.     local hardObby = game.Workspace.Obbies.HardObby.Win
  170.     local btn = script.Parent
  171.     local root = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
  172.    
  173.     btn.MouseButton1Click:Connect(function()
  174.             root.CFrame = easyObby.CFrame
  175.             wait(.1)
  176.             root.CFrame = hardObby.CFrame
  177.     end)
  178. end
  179. coroutine.wrap(PAIZ_fake_script)()
  180. local function BMREZ_fake_script() -- AutofarmObbys.lclscript
  181.     local script = Instance.new('LocalScript', AutofarmObbys)
  182.  
  183.     local easyObby = game.Workspace.Obbies.EasyObby.Win
  184.     local hardObby = game.Workspace.Obbies.HardObby.Win
  185.     local btn = script.Parent
  186.     local root = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
  187.    
  188.     btn.MouseButton1Click:Connect(function()
  189.         while wait()  do
  190.             root.CFrame = easyObby.CFrame
  191.             wait(.1)
  192.             root.CFrame = hardObby.CFrame
  193.             wait(88)
  194.         end
  195.     end)
  196. end
  197. coroutine.wrap(BMREZ_fake_script)()
  198. local function RXPQDR_fake_script() -- HighWalkspeed.lclscript
  199.     local script = Instance.new('LocalScript', HighWalkspeed)
  200.  
  201.     local btn = script.Parent
  202.     local plr = game.Players.LocalPlayer
  203.    
  204.     btn.MouseButton1Click:Connect(function()
  205.         plr.Character.Humanoid.WalkSpeed = 32
  206.     end)
  207. end
  208. coroutine.wrap(RXPQDR_fake_script)()
  209.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement