Mishaho

Cube Hub v1 (for The Cube)

Jul 27th, 2021 (edited)
632
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script was made by Mish#6666.
  2. -- If you were to use, please give credit.
  3.  
  4. -- game link: https://www.roblox.com/games/4768951761/The-Cube-BETA#!/game-instances
  5. -- Delay between perk teleports:
  6. TPDELAY = .25
  7.  
  8. -- Instances:
  9.  
  10. local CubeHub = Instance.new("ScreenGui")
  11. local Top = Instance.new("Frame")
  12. local Main = Instance.new("Frame")
  13. local UIGridLayout = Instance.new("UIGridLayout")
  14. local GrabAllPerks = Instance.new("TextButton")
  15. local UIPadding = Instance.new("UIPadding")
  16. local AutoFarm = Instance.new("TextButton")
  17. local UIPadding_2 = Instance.new("UIPadding")
  18. local TeleportToSpawn = Instance.new("TextButton")
  19. local UIPadding_3 = Instance.new("UIPadding")
  20. local TeleportToCubes = Instance.new("TextButton")
  21. local UIPadding_4 = Instance.new("UIPadding")
  22. local UIPadding_5 = Instance.new("UIPadding")
  23. local TeleportToCrystals = Instance.new("TextButton")
  24. local UIPadding_6 = Instance.new("UIPadding")
  25. local TeleportToPlant = Instance.new("TextButton")
  26. local UIPadding_7 = Instance.new("UIPadding")
  27. local TeleportToCookies = Instance.new("TextButton")
  28. local UIPadding_8 = Instance.new("UIPadding")
  29. local TeleportToPerks = Instance.new("TextButton")
  30. local UIPadding_9 = Instance.new("UIPadding")
  31. local Title = Instance.new("TextLabel")
  32. local UIPadding_10 = Instance.new("UIPadding")
  33. local Exit = Instance.new("TextButton")
  34. local ImageLabel = Instance.new("ImageLabel")
  35.  
  36. --Properties:
  37.  
  38. CubeHub.Name = "CubeHub"
  39. CubeHub.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  40. CubeHub.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  41. CubeHub.ResetOnSpawn = false
  42.  
  43. Top.Name = "Top"
  44. Top.Parent = CubeHub
  45. Top.AnchorPoint = Vector2.new(0.5, 0.5)
  46. Top.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  47. Top.BorderSizePixel = 0
  48. Top.Position = UDim2.new(0.5, 0, 0.400000006, 0)
  49. Top.Size = UDim2.new(0, 250, 0, 20)
  50.  
  51. Main.Name = "Main"
  52. Main.Parent = Top
  53. Main.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
  54. Main.BackgroundTransparency = 0.100
  55. Main.BorderSizePixel = 0
  56. Main.Position = UDim2.new(0, 0, 0, 20)
  57. Main.Size = UDim2.new(1, 0, 0, 150)
  58.  
  59. UIGridLayout.Parent = Main
  60. UIGridLayout.FillDirection = Enum.FillDirection.Vertical
  61. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  62. UIGridLayout.CellPadding = UDim2.new(0, 0, 0, 0)
  63. UIGridLayout.CellSize = UDim2.new(0.5, 0, 0.25, 0)
  64.  
  65. GrabAllPerks.Name = "GrabAllPerks"
  66. GrabAllPerks.Parent = Main
  67. GrabAllPerks.BackgroundColor3 = Color3.fromRGB(128, 123, 120)
  68. GrabAllPerks.BorderColor3 = Color3.fromRGB(15, 15, 15)
  69. GrabAllPerks.LayoutOrder = 1
  70. GrabAllPerks.Size = UDim2.new(0, 200, 0, 50)
  71. GrabAllPerks.Font = Enum.Font.Roboto
  72. GrabAllPerks.Text = "Grab all perks"
  73. GrabAllPerks.TextColor3 = Color3.fromRGB(255, 255, 255)
  74. GrabAllPerks.TextSize = 13.000
  75. GrabAllPerks.TextStrokeTransparency = 0.000
  76. GrabAllPerks.TextXAlignment = Enum.TextXAlignment.Left
  77.  
  78. UIPadding.Parent = GrabAllPerks
  79. UIPadding.PaddingLeft = UDim.new(0, 8)
  80.  
  81. AutoFarm.Name = "AutoFarm"
  82. AutoFarm.Parent = Main
  83. AutoFarm.BackgroundColor3 = Color3.fromRGB(244, 242, 235)
  84. AutoFarm.BorderColor3 = Color3.fromRGB(15, 15, 15)
  85. AutoFarm.LayoutOrder = 2
  86. AutoFarm.Size = UDim2.new(0, 200, 0, 50)
  87. AutoFarm.Font = Enum.Font.Roboto
  88. AutoFarm.Text = "Autofarm [off]"
  89. AutoFarm.TextColor3 = Color3.fromRGB(255, 255, 255)
  90. AutoFarm.TextSize = 13.000
  91. AutoFarm.TextStrokeTransparency = 0.000
  92. AutoFarm.TextXAlignment = Enum.TextXAlignment.Left
  93.  
  94. UIPadding_2.Parent = AutoFarm
  95. UIPadding_2.PaddingLeft = UDim.new(0, 8)
  96.  
  97. TeleportToSpawn.Name = "TeleportToSpawn"
  98. TeleportToSpawn.Parent = Main
  99. TeleportToSpawn.BackgroundColor3 = Color3.fromRGB(201, 197, 192)
  100. TeleportToSpawn.BorderColor3 = Color3.fromRGB(15, 15, 15)
  101. TeleportToSpawn.LayoutOrder = 3
  102. TeleportToSpawn.Size = UDim2.new(0, 200, 0, 50)
  103. TeleportToSpawn.Font = Enum.Font.Roboto
  104. TeleportToSpawn.Text = "Teleport to spawn"
  105. TeleportToSpawn.TextColor3 = Color3.fromRGB(255, 255, 255)
  106. TeleportToSpawn.TextSize = 13.000
  107. TeleportToSpawn.TextStrokeTransparency = 0.000
  108. TeleportToSpawn.TextXAlignment = Enum.TextXAlignment.Left
  109.  
  110. UIPadding_3.Parent = TeleportToSpawn
  111. UIPadding_3.PaddingLeft = UDim.new(0, 8)
  112.  
  113. TeleportToCubes.Name = "TeleportToCubes"
  114. TeleportToCubes.Parent = Main
  115. TeleportToCubes.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  116. TeleportToCubes.BorderColor3 = Color3.fromRGB(15, 15, 15)
  117. TeleportToCubes.LayoutOrder = 8
  118. TeleportToCubes.Size = UDim2.new(0, 200, 0, 50)
  119. TeleportToCubes.Font = Enum.Font.Roboto
  120. TeleportToCubes.Text = "TP to cubes"
  121. TeleportToCubes.TextColor3 = Color3.fromRGB(255, 255, 255)
  122. TeleportToCubes.TextSize = 13.000
  123. TeleportToCubes.TextStrokeTransparency = 0.000
  124. TeleportToCubes.TextXAlignment = Enum.TextXAlignment.Left
  125.  
  126. UIPadding_4.Parent = TeleportToCubes
  127. UIPadding_4.PaddingLeft = UDim.new(0, 8)
  128.  
  129. UIPadding_5.Parent = Main
  130. UIPadding_5.PaddingBottom = UDim.new(0, 5)
  131. UIPadding_5.PaddingLeft = UDim.new(0, 5)
  132. UIPadding_5.PaddingRight = UDim.new(0, 5)
  133. UIPadding_5.PaddingTop = UDim.new(0, 5)
  134.  
  135. TeleportToCrystals.Name = "TeleportToCrystals"
  136. TeleportToCrystals.Parent = Main
  137. TeleportToCrystals.BackgroundColor3 = Color3.fromRGB(60, 174, 255)
  138. TeleportToCrystals.BorderColor3 = Color3.fromRGB(15, 15, 15)
  139. TeleportToCrystals.LayoutOrder = 5
  140. TeleportToCrystals.Size = UDim2.new(0, 200, 0, 50)
  141. TeleportToCrystals.Font = Enum.Font.Roboto
  142. TeleportToCrystals.Text = "TP to crystals"
  143. TeleportToCrystals.TextColor3 = Color3.fromRGB(255, 255, 255)
  144. TeleportToCrystals.TextSize = 13.000
  145. TeleportToCrystals.TextStrokeTransparency = 0.000
  146. TeleportToCrystals.TextXAlignment = Enum.TextXAlignment.Left
  147.  
  148. UIPadding_6.Parent = TeleportToCrystals
  149. UIPadding_6.PaddingLeft = UDim.new(0, 8)
  150.  
  151. TeleportToPlant.Name = "TeleportToPlant"
  152. TeleportToPlant.Parent = Main
  153. TeleportToPlant.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  154. TeleportToPlant.BorderColor3 = Color3.fromRGB(15, 15, 15)
  155. TeleportToPlant.LayoutOrder = 4
  156. TeleportToPlant.Size = UDim2.new(0, 200, 0, 50)
  157. TeleportToPlant.Font = Enum.Font.Roboto
  158. TeleportToPlant.Text = "Teleport to plant"
  159. TeleportToPlant.TextColor3 = Color3.fromRGB(255, 255, 255)
  160. TeleportToPlant.TextSize = 13.000
  161. TeleportToPlant.TextStrokeTransparency = 0.000
  162. TeleportToPlant.TextXAlignment = Enum.TextXAlignment.Left
  163.  
  164. UIPadding_7.Parent = TeleportToPlant
  165. UIPadding_7.PaddingLeft = UDim.new(0, 8)
  166.  
  167. TeleportToCookies.Name = "TeleportToCookies"
  168. TeleportToCookies.Parent = Main
  169. TeleportToCookies.BackgroundColor3 = Color3.fromRGB(255, 119, 85)
  170. TeleportToCookies.BorderColor3 = Color3.fromRGB(15, 15, 15)
  171. TeleportToCookies.LayoutOrder = 7
  172. TeleportToCookies.Size = UDim2.new(0, 200, 0, 50)
  173. TeleportToCookies.Font = Enum.Font.Roboto
  174. TeleportToCookies.Text = "TP to cookies"
  175. TeleportToCookies.TextColor3 = Color3.fromRGB(255, 255, 255)
  176. TeleportToCookies.TextSize = 13.000
  177. TeleportToCookies.TextStrokeTransparency = 0.000
  178. TeleportToCookies.TextXAlignment = Enum.TextXAlignment.Left
  179.  
  180. UIPadding_8.Parent = TeleportToCookies
  181. UIPadding_8.PaddingLeft = UDim.new(0, 8)
  182.  
  183. TeleportToPerks.Name = "TeleportToPerks"
  184. TeleportToPerks.Parent = Main
  185. TeleportToPerks.BackgroundColor3 = Color3.fromRGB(144, 220, 119)
  186. TeleportToPerks.BorderColor3 = Color3.fromRGB(15, 15, 15)
  187. TeleportToPerks.LayoutOrder = 6
  188. TeleportToPerks.Size = UDim2.new(0, 200, 0, 50)
  189. TeleportToPerks.Font = Enum.Font.Roboto
  190. TeleportToPerks.Text = "TP to perks"
  191. TeleportToPerks.TextColor3 = Color3.fromRGB(255, 255, 255)
  192. TeleportToPerks.TextSize = 13.000
  193. TeleportToPerks.TextStrokeTransparency = 0.000
  194. TeleportToPerks.TextXAlignment = Enum.TextXAlignment.Left
  195.  
  196. UIPadding_9.Parent = TeleportToPerks
  197. UIPadding_9.PaddingLeft = UDim.new(0, 8)
  198.  
  199. Title.Name = "Title"
  200. Title.Parent = Top
  201. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  202. Title.BackgroundTransparency = 1.000
  203. Title.BorderSizePixel = 0
  204. Title.Size = UDim2.new(0.5, 0, 1, 0)
  205. Title.Font = Enum.Font.Roboto
  206. Title.Text = "Cube Hub v1"
  207. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  208. Title.TextSize = 16.000
  209. Title.TextStrokeTransparency = 0.000
  210. Title.TextXAlignment = Enum.TextXAlignment.Left
  211.  
  212. UIPadding_10.Parent = Title
  213. UIPadding_10.PaddingLeft = UDim.new(0, 8)
  214.  
  215. Exit.Name = "Exit"
  216. Exit.Parent = Top
  217. Exit.BackgroundColor3 = Color3.fromRGB(232, 17, 35)
  218. Exit.BackgroundTransparency = 0.250
  219. Exit.BorderSizePixel = 0
  220. Exit.Position = UDim2.new(1, -40, 0, 0)
  221. Exit.Size = UDim2.new(0, 40, 1, 0)
  222. Exit.Font = Enum.Font.Roboto
  223. Exit.Text = "x"
  224. Exit.TextColor3 = Color3.fromRGB(255, 255, 255)
  225. Exit.TextSize = 16.000
  226.  
  227. ImageLabel.Parent = Top
  228. ImageLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  229. ImageLabel.BackgroundTransparency = 1.000
  230. ImageLabel.Size = UDim2.new(1, 0, 1, 0)
  231. ImageLabel.ZIndex = 0
  232. ImageLabel.Image = "http://www.roblox.com/asset/?id=7160549293"
  233. ImageLabel.ScaleType = Enum.ScaleType.Crop
  234.  
  235. -- Scripts:
  236.  
  237. local function AQDVXF_fake_script() -- Top.Dragify
  238.     local script = Instance.new('LocalScript', Top)
  239.  
  240.     local UIS = game:GetService("UserInputService")
  241.     function dragify(Frame)
  242.         dragToggle = nil
  243.         local dragSpeed = 0
  244.         dragInput = nil
  245.         dragStart = nil
  246.         local dragPos = nil
  247.         function updateInput(input)
  248.             local Delta = input.Position - dragStart
  249.             local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  250.             game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.1), {Position = Position}):Play()
  251.         end
  252.         Frame.InputBegan:Connect(function(input)
  253.             if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
  254.                 dragToggle = true
  255.                 dragStart = input.Position
  256.                 startPos = Frame.Position
  257.                 input.Changed:Connect(function()
  258.                     if input.UserInputState == Enum.UserInputState.End then
  259.                         dragToggle = false
  260.                     end
  261.                 end)
  262.             end
  263.         end)
  264.         Frame.InputChanged:Connect(function(input)
  265.             if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  266.                 dragInput = input
  267.             end
  268.         end)
  269.         game:GetService("UserInputService").InputChanged:Connect(function(input)
  270.             if input == dragInput and dragToggle then
  271.                 updateInput(input)
  272.             end
  273.         end)
  274.     end
  275.    
  276.     dragify(script.Parent)
  277. end
  278. coroutine.wrap(AQDVXF_fake_script)()
  279. local function VMCRGNQ_fake_script() -- Main.Main
  280.     local script = Instance.new('LocalScript', Main)
  281.  
  282.  
  283.     script.Parent.Parent.Exit.MouseButton1Click:Connect(function()
  284.         script.Parent.Parent.Parent:Destroy()
  285.     end)
  286.  
  287.     function teleport(pos)
  288.         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(pos)
  289.     end
  290.  
  291.     function getPerks()
  292.         if #game:GetService("Workspace").Debris:GetChildren() > 0 then -- don't do anything if there's literally nothing
  293.             local items = game:GetService("Workspace").Debris:GetChildren() -- debris is arena items
  294.             local targets = {} -- the usefull items from debris
  295.             for i, v in pairs(items) do -- filter debris items for perks
  296.                 if v.Name == "Perk" then
  297.                     if v.Position.Y < 10 then -- if too high ban will be initiated
  298.                         table.insert(targets, i, v.Position)
  299.                     end
  300.                 end
  301.             end
  302.             for _, v in pairs(targets) do -- tp to each perk
  303.                 game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v)
  304.                 wait(TPDELAY) -- .touched must be triggered
  305.             end
  306.         end
  307.     end
  308.  
  309.     script.Parent.TeleportToSpawn.MouseButton1Click:Connect(function()
  310.         teleport(Vector3.new(-87.5, 105.804, -162.5))
  311.     end)
  312.  
  313.     script.Parent.TeleportToPlant.MouseButton1Click:Connect(function()
  314.         teleport(Vector3.new(-2, 109, -182))
  315.     end)
  316.  
  317.     script.Parent.TeleportToCubes.MouseButton1Click:Connect(function()
  318.         teleport(Vector3.new(37.592, 103.387, -173.859))
  319.     end)
  320.     script.Parent.TeleportToCrystals.MouseButton1Click:Connect(function()
  321.         teleport(Vector3.new(104.759, 103.387, -157.933))
  322.     end)
  323.     script.Parent.TeleportToCookies.MouseButton1Click:Connect(function()
  324.         teleport(Vector3.new(-66.726, 103.387, 14.563))
  325.     end)
  326.     script.Parent.TeleportToPerks.MouseButton1Click:Connect(function()
  327.         teleport(Vector3.new(-80.916, 103.387, -79.308))
  328.     end)
  329.     script.Parent.GrabAllPerks.MouseButton1Click:Connect(function()
  330.         getPerks()
  331.     end)
  332.     script.Parent.AutoFarm.MouseButton1Click:Connect(function()
  333.         if script.Parent.AutoFarm.Text == "Autofarm [off]" then
  334.             script.Parent.AutoFarm.Text = "Autofarm [on]"
  335.         else
  336.             script.Parent.AutoFarm.Text = "Autofarm [off]"
  337.         end
  338.     end)
  339.     while wait(4) do
  340.         if script.Parent.AutoFarm.Text == "Autofarm [on]" then
  341.             getPerks()
  342.             teleport(Vector3.new(-2, 109, -182))
  343.         end
  344.     end
  345. end
  346. coroutine.wrap(VMCRGNQ_fake_script)()
  347.  
RAW Paste Data