Advertisement
27x34k

Boxing simulator 2 HUB Made mostly by me

Jan 6th, 2022
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.81 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextButton = Instance.new("TextButton")
  9. local TextLabel = Instance.new("TextLabel")
  10. local farm1 = Instance.new("TextButton")
  11. local drop1 = Instance.new("TextButton")
  12. local Misc1 = Instance.new("TextButton")
  13. local crds = Instance.new("TextButton")
  14. local credits = Instance.new("Frame")
  15. local TextLabel_2 = Instance.new("TextLabel")
  16. local TextLabel_3 = Instance.new("TextLabel")
  17. local misc = Instance.new("Frame")
  18. local Loop = Instance.new("TextButton")
  19. local Small = Instance.new("TextButton")
  20. local drop = Instance.new("Frame")
  21. local TextButton_2 = Instance.new("TextButton")
  22. local farm = Instance.new("Frame")
  23. local farm2 = Instance.new("TextButton")
  24. local equip = Instance.new("TextButton")
  25. local TextLabel_4 = Instance.new("TextLabel")
  26. local tool = Instance.new("TextBox")
  27.  
  28. --Properties:
  29.  
  30. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  31. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  32. ScreenGui.ResetOnSpawn = false
  33.  
  34. Frame.Parent = ScreenGui
  35. Frame.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  36. Frame.Position = UDim2.new(0.336692393, 0, 0.382376492, 0)
  37. Frame.Size = UDim2.new(0, 358, 0, 204)
  38.  
  39. TextButton.Parent = Frame
  40. TextButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
  41. TextButton.BackgroundTransparency = 1.000
  42. TextButton.Position = UDim2.new(0.949720681, 0, 0, 0)
  43. TextButton.Size = UDim2.new(0, 18, 0, 14)
  44. TextButton.Font = Enum.Font.SourceSans
  45. TextButton.Text = "X"
  46. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  47. TextButton.TextScaled = true
  48. TextButton.TextSize = 14.000
  49. TextButton.TextWrapped = true
  50.  
  51. TextLabel.Parent = Frame
  52. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  53. TextLabel.BackgroundTransparency = 1.000
  54. TextLabel.Size = UDim2.new(0, 81, 0, 21)
  55. TextLabel.Font = Enum.Font.RobotoMono
  56. TextLabel.Text = "Pixel HUB"
  57. TextLabel.TextColor3 = Color3.fromRGB(76, 76, 76)
  58. TextLabel.TextSize = 14.000
  59.  
  60. farm1.Name = "farm1"
  61. farm1.Parent = Frame
  62. farm1.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  63. farm1.Position = UDim2.new(0.0223463681, 0, 0.15196079, 0)
  64. farm1.Size = UDim2.new(0, 73, 0, 21)
  65. farm1.Font = Enum.Font.SourceSans
  66. farm1.Text = "Farm"
  67. farm1.TextColor3 = Color3.fromRGB(90, 90, 90)
  68. farm1.TextScaled = true
  69. farm1.TextSize = 14.000
  70. farm1.TextWrapped = true
  71.  
  72. drop1.Name = "drop1"
  73. drop1.Parent = Frame
  74. drop1.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  75. drop1.Position = UDim2.new(0.0223463681, 0, 0.313725501, 0)
  76. drop1.Size = UDim2.new(0, 73, 0, 21)
  77. drop1.Font = Enum.Font.SourceSans
  78. drop1.Text = "Drop"
  79. drop1.TextColor3 = Color3.fromRGB(90, 90, 90)
  80. drop1.TextScaled = true
  81. drop1.TextSize = 14.000
  82. drop1.TextWrapped = true
  83.  
  84. Misc1.Name = "Misc1"
  85. Misc1.Parent = Frame
  86. Misc1.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  87. Misc1.Position = UDim2.new(0.0223463681, 0, 0.470588267, 0)
  88. Misc1.Size = UDim2.new(0, 73, 0, 21)
  89. Misc1.Font = Enum.Font.SourceSans
  90. Misc1.Text = "Misc"
  91. Misc1.TextColor3 = Color3.fromRGB(90, 90, 90)
  92. Misc1.TextScaled = true
  93. Misc1.TextSize = 14.000
  94. Misc1.TextWrapped = true
  95.  
  96. crds.Name = "crds"
  97. crds.Parent = Frame
  98. crds.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  99. crds.Position = UDim2.new(0.0223463681, 0, 0.627451003, 0)
  100. crds.Size = UDim2.new(0, 73, 0, 21)
  101. crds.Font = Enum.Font.SourceSans
  102. crds.Text = "Credits"
  103. crds.TextColor3 = Color3.fromRGB(90, 90, 90)
  104. crds.TextScaled = true
  105. crds.TextSize = 14.000
  106. crds.TextWrapped = true
  107.  
  108. credits.Name = "credits"
  109. credits.Parent = Frame
  110. credits.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  111. credits.Position = UDim2.new(0.251396656, 0, 0.102941178, 0)
  112. credits.Size = UDim2.new(0, 258, 0, 172)
  113. credits.Visible = false
  114.  
  115. TextLabel_2.Parent = credits
  116. TextLabel_2.BackgroundColor3 = Color3.fromRGB(90, 90, 90)
  117. TextLabel_2.BackgroundTransparency = 1.000
  118. TextLabel_2.Position = UDim2.new(0.0155038759, 0, 0, 0)
  119. TextLabel_2.Size = UDim2.new(0, 255, 0, 31)
  120. TextLabel_2.Font = Enum.Font.SourceSans
  121. TextLabel_2.Text = "Gui by 27x34k (pzxle#3157)"
  122. TextLabel_2.TextColor3 = Color3.fromRGB(65, 65, 65)
  123. TextLabel_2.TextScaled = true
  124. TextLabel_2.TextSize = 14.000
  125. TextLabel_2.TextWrapped = true
  126.  
  127. TextLabel_3.Parent = credits
  128. TextLabel_3.BackgroundColor3 = Color3.fromRGB(90, 90, 90)
  129. TextLabel_3.BackgroundTransparency = 1.000
  130. TextLabel_3.Position = UDim2.new(0.0155038759, 0, 0.180232555, 0)
  131. TextLabel_3.Size = UDim2.new(0, 255, 0, 31)
  132. TextLabel_3.Font = Enum.Font.SourceSans
  133. TextLabel_3.Text = "Some scripting by BaconHasFlow (Icy#8371)"
  134. TextLabel_3.TextColor3 = Color3.fromRGB(65, 65, 65)
  135. TextLabel_3.TextScaled = true
  136. TextLabel_3.TextSize = 14.000
  137. TextLabel_3.TextWrapped = true
  138.  
  139. misc.Name = "misc"
  140. misc.Parent = Frame
  141. misc.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  142. misc.Position = UDim2.new(0.251396656, 0, 0.102941178, 0)
  143. misc.Size = UDim2.new(0, 258, 0, 172)
  144. misc.Visible = false
  145.  
  146. Loop.Name = "Loop"
  147. Loop.Parent = misc
  148. Loop.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  149. Loop.Position = UDim2.new(0.0503875986, 0, 0.0697674453, 0)
  150. Loop.Size = UDim2.new(0, 237, 0, 63)
  151. Loop.Font = Enum.Font.SourceSans
  152. Loop.Text = "Loop Script"
  153. Loop.TextColor3 = Color3.fromRGB(75, 75, 75)
  154. Loop.TextScaled = true
  155. Loop.TextSize = 14.000
  156. Loop.TextWrapped = true
  157.  
  158. Small.Name = "Small"
  159. Small.Parent = misc
  160. Small.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  161. Small.Position = UDim2.new(0.0387596935, 0, 0.558139563, 0)
  162. Small.Size = UDim2.new(0, 237, 0, 63)
  163. Small.Font = Enum.Font.SourceSans
  164. Small.Text = "Small"
  165. Small.TextColor3 = Color3.fromRGB(75, 75, 75)
  166. Small.TextScaled = true
  167. Small.TextSize = 14.000
  168. Small.TextWrapped = true
  169.  
  170. drop.Name = "drop"
  171. drop.Parent = Frame
  172. drop.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  173. drop.Position = UDim2.new(0.251396656, 0, 0.102941178, 0)
  174. drop.Size = UDim2.new(0, 258, 0, 172)
  175. drop.Visible = false
  176.  
  177. TextButton_2.Parent = drop
  178. TextButton_2.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  179. TextButton_2.Position = UDim2.new(0.0542635694, 0, 0.127906978, 0)
  180. TextButton_2.Size = UDim2.new(0, 229, 0, 128)
  181. TextButton_2.Font = Enum.Font.SourceSans
  182. TextButton_2.Text = "Auto Drop"
  183. TextButton_2.TextColor3 = Color3.fromRGB(107, 107, 107)
  184. TextButton_2.TextScaled = true
  185. TextButton_2.TextSize = 14.000
  186. TextButton_2.TextWrapped = true
  187.  
  188. farm.Name = "farm"
  189. farm.Parent = Frame
  190. farm.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  191. farm.Position = UDim2.new(0.251396656, 0, 0.102941178, 0)
  192. farm.Size = UDim2.new(0, 258, 0, 172)
  193. farm.Visible = false
  194.  
  195. farm2.Name = "farm2"
  196. farm2.Parent = farm
  197. farm2.BackgroundColor3 = Color3.fromRGB(42, 42, 42)
  198. farm2.Position = UDim2.new(0.112403102, 0, 0.145348832, 0)
  199. farm2.Size = UDim2.new(0, 200, 0, 39)
  200. farm2.Font = Enum.Font.SourceSans
  201. farm2.Text = "Farm"
  202. farm2.TextColor3 = Color3.fromRGB(90, 90, 90)
  203. farm2.TextScaled = true
  204. farm2.TextSize = 14.000
  205. farm2.TextWrapped = true
  206.  
  207. equip.Name = "equip"
  208. equip.Parent = farm
  209. equip.BackgroundColor3 = Color3.fromRGB(42, 42, 42)
  210. equip.Position = UDim2.new(0.112403102, 0, 0.436046511, 0)
  211. equip.Size = UDim2.new(0, 200, 0, 40)
  212. equip.Font = Enum.Font.SourceSans
  213. equip.Text = "Equip Weights"
  214. equip.TextColor3 = Color3.fromRGB(90, 90, 90)
  215. equip.TextScaled = true
  216. equip.TextSize = 14.000
  217. equip.TextWrapped = true
  218.  
  219. TextLabel_4.Parent = farm
  220. TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  221. TextLabel_4.BackgroundTransparency = 1.000
  222. TextLabel_4.Position = UDim2.new(0.112403102, 0, 0, 0)
  223. TextLabel_4.Size = UDim2.new(0, 200, 0, 14)
  224. TextLabel_4.Font = Enum.Font.SourceSans
  225. TextLabel_4.Text = "you cannot unfarm or unequip"
  226. TextLabel_4.TextColor3 = Color3.fromRGB(71, 71, 71)
  227. TextLabel_4.TextSize = 14.000
  228.  
  229. tool.Name = "tool"
  230. tool.Parent = farm
  231. tool.BackgroundColor3 = Color3.fromRGB(48, 48, 48)
  232. tool.Position = UDim2.new(0.217054278, 0, 0.784883678, 0)
  233. tool.Size = UDim2.new(0, 146, 0, 22)
  234. tool.Font = Enum.Font.SourceSans
  235. tool.PlaceholderColor3 = Color3.fromRGB(47, 47, 47)
  236. tool.Text = "Double Weight"
  237. tool.TextColor3 = Color3.fromRGB(97, 97, 97)
  238. tool.TextScaled = true
  239. tool.TextSize = 14.000
  240. tool.TextWrapped = true
  241.  
  242. -- Scripts:
  243.  
  244. local function CMYLZST_fake_script() -- Frame.LocalScript
  245. local script = Instance.new('LocalScript', Frame)
  246.  
  247. local UIS = game:GetService('UserInputService')
  248. local frame = script.Parent
  249. local dragToggle = nil
  250. local dragSpeed = 0.25
  251. local dragStart = nil
  252. local startPos = nil
  253.  
  254. local function updateInput(input)
  255. local delta = input.Position - dragStart
  256. local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  257. startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  258. game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
  259. end
  260.  
  261. frame.InputBegan:Connect(function(input)
  262. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  263. dragToggle = true
  264. dragStart = input.Position
  265. startPos = frame.Position
  266. input.Changed:Connect(function()
  267. if input.UserInputState == Enum.UserInputState.End then
  268. dragToggle = false
  269. end
  270. end)
  271. end
  272. end)
  273.  
  274. UIS.InputChanged:Connect(function(input)
  275. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  276. if dragToggle then
  277. updateInput(input)
  278. end
  279. end
  280. end)
  281.  
  282.  
  283. end
  284. coroutine.wrap(CMYLZST_fake_script)()
  285. local function LRMFOTF_fake_script() -- TextButton.Script
  286. local script = Instance.new('Script', TextButton)
  287.  
  288. script.Parent.MouseButton1Click:Connect(function()
  289. script.Parent.Parent.Visible = false
  290. end)
  291.  
  292. end
  293. coroutine.wrap(LRMFOTF_fake_script)()
  294. local function BSHVOUG_fake_script() -- farm1.Script
  295. local script = Instance.new('Script', farm1)
  296.  
  297. script.Parent.MouseButton1Click:Connect(function()
  298. script.Parent.Parent.farm.Visible = true
  299. script.Parent.Parent.drop.Visible = false
  300. script.Parent.Parent.misc.Visible = false
  301. script.Parent.Parent.credits.Visible = false
  302. end)
  303.  
  304. end
  305. coroutine.wrap(BSHVOUG_fake_script)()
  306. local function EYJHE_fake_script() -- drop1.Script
  307. local script = Instance.new('Script', drop1)
  308.  
  309. script.Parent.MouseButton1Click:Connect(function()
  310. script.Parent.Parent.drop.Visible = true
  311. script.Parent.Parent.farm.Visible = false
  312. script.Parent.Parent.misc.Visible = false
  313. script.Parent.Parent.credits.Visible = false
  314. end)
  315.  
  316. end
  317. coroutine.wrap(EYJHE_fake_script)()
  318. local function THFI_fake_script() -- Misc1.Script
  319. local script = Instance.new('Script', Misc1)
  320.  
  321. script.Parent.MouseButton1Click:Connect(function()
  322. script.Parent.Parent.misc.Visible = true
  323. script.Parent.Parent.Drop.Visible = false
  324. script.Parent.Parent.farm.Visible = false
  325. script.Parent.Parent.credits.Visible = false
  326.  
  327. end)
  328.  
  329. end
  330. coroutine.wrap(THFI_fake_script)()
  331. local function ELZHYUH_fake_script() -- crds.Script
  332. local script = Instance.new('Script', crds)
  333.  
  334. script.Parent.MouseButton1Click:Connect(function()
  335. script.Parent.Parent.credits.Visible = true
  336. script.Parent.Parent.drop.Visible = false
  337. script.Parent.Parent.misc.Visible = false
  338. script.Parent.Parent.farm.Visible = false
  339.  
  340. end)
  341.  
  342. end
  343. coroutine.wrap(ELZHYUH_fake_script)()
  344. local function YFGF_fake_script() -- Loop.LocalScript
  345. local script = Instance.new('LocalScript', Loop)
  346.  
  347. script.Parent.MouseButton1Click:Connect(function()
  348. loadstring(game:GetObjects('rbxassetid://1010374652')[1].Source)()
  349. end)
  350.  
  351. end
  352. coroutine.wrap(YFGF_fake_script)()
  353. local function QACMG_fake_script() -- Small.LocalScript
  354. local script = Instance.new('LocalScript', Small)
  355.  
  356. script.Parent.MouseButton1Click:Connect(function()
  357. for i,v in pairs(game.Players.LocalPlayer.Character.Humanoid:GetChildren()) do
  358. if v:IsA("NumberValue") then
  359. v:Destroy()
  360. end
  361. end
  362. end)
  363.  
  364. end
  365. coroutine.wrap(QACMG_fake_script)()
  366. local function VCUM_fake_script() -- TextButton_2.LocalScript
  367. local script = Instance.new('LocalScript', TextButton_2)
  368.  
  369. script.Parent.MouseButton1Click:Connect(function()
  370. loadstring(game:HttpGet("https://pastebin.com/raw/CjVD4RZN", true))()
  371. end)
  372.  
  373. end
  374. coroutine.wrap(VCUM_fake_script)()
  375. local function MYRMF_fake_script() -- farm2.LocalScript
  376. local script = Instance.new('LocalScript', farm2)
  377.  
  378. farm2.MouseButton1Click:connect(function()
  379. _G.farm = true
  380. while _G.farm do
  381. wait()
  382. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  383. if v.Name == tool.Text then v:Activate() end
  384. end
  385. end
  386. end)
  387.  
  388. end
  389. coroutine.wrap(MYRMF_fake_script)()
  390. local function KJCH_fake_script() -- equip.LocalScript
  391. local script = Instance.new('LocalScript', equip)
  392.  
  393. equip.MouseButton1Click:connect(function()
  394. _G.equip = true
  395. while _G.equip do
  396. wait()
  397. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  398. if v.Name == tool.Text then
  399. v.Parent = game.Players.LocalPlayer.Character
  400. end
  401. end
  402. end
  403. end)
  404.  
  405.  
  406. end
  407. coroutine.wrap(KJCH_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement