Advertisement
27x34k

Boxing simulator 2 General script

Jan 6th, 2022 (edited)
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.04 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local gui = Instance.new("Frame")
  8. local small = Instance.new("TextButton")
  9. local UICorner = Instance.new("UICorner")
  10. local afk = Instance.new("TextButton")
  11. local UICorner_2 = Instance.new("UICorner")
  12. local loop = Instance.new("TextButton")
  13. local UICorner_3 = Instance.new("UICorner")
  14. local reviz = Instance.new("TextButton")
  15. local UICorner_4 = Instance.new("UICorner")
  16. local TextButton = Instance.new("TextButton")
  17. local UICorner_5 = Instance.new("UICorner")
  18. local reset = Instance.new("TextButton")
  19. local UICorner_6 = Instance.new("UICorner")
  20. local UICorner_7 = Instance.new("UICorner")
  21. local TextButton_2 = Instance.new("TextButton")
  22. local UICorner_8 = Instance.new("UICorner")
  23. local TextButton_3 = Instance.new("TextButton")
  24. local UICorner_9 = Instance.new("UICorner")
  25. local Frame = Instance.new("Frame")
  26. local TextButton_4 = Instance.new("TextButton")
  27. local TextLabel = Instance.new("TextLabel")
  28. local UICorner_10 = Instance.new("UICorner")
  29.  
  30. --Properties:
  31.  
  32. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  33. ScreenGui.ResetOnSpawn = false
  34.  
  35. gui.Name = "gui"
  36. gui.Parent = ScreenGui
  37. gui.BackgroundColor3 = Color3.fromRGB(33, 33, 33)
  38. gui.Position = UDim2.new(0.797145367, 0, 0.513302028, 0)
  39. gui.Size = UDim2.new(0, 241, 0, 146)
  40. gui.Visible = false
  41.  
  42. small.Name = "small"
  43. small.Parent = gui
  44. small.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  45. small.Position = UDim2.new(0.0539419129, 0, 0.0931759328, 0)
  46. small.Size = UDim2.new(0, 101, 0, 38)
  47. small.Font = Enum.Font.SourceSans
  48. small.Text = "Small"
  49. small.TextColor3 = Color3.fromRGB(255, 255, 255)
  50. small.TextScaled = true
  51. small.TextSize = 14.000
  52. small.TextWrapped = true
  53.  
  54. UICorner.CornerRadius = UDim.new(0.0799999982, 0)
  55. UICorner.Parent = small
  56.  
  57. afk.Name = "afk"
  58. afk.Parent = gui
  59. afk.BackgroundColor3 = Color3.fromRGB(53, 53, 53)
  60. afk.Position = UDim2.new(0.0539419353, 0, 0.426789373, 0)
  61. afk.Size = UDim2.new(0, 101, 0, 38)
  62. afk.Font = Enum.Font.SourceSans
  63. afk.Text = "Anti afk"
  64. afk.TextColor3 = Color3.fromRGB(255, 255, 255)
  65. afk.TextScaled = true
  66. afk.TextSize = 14.000
  67. afk.TextWrapped = true
  68.  
  69. UICorner_2.Parent = afk
  70.  
  71. loop.Name = "loop"
  72. loop.Parent = gui
  73. loop.BackgroundColor3 = Color3.fromRGB(53, 53, 53)
  74. loop.Position = UDim2.new(0.514522851, 0, 0.426789403, 0)
  75. loop.Size = UDim2.new(0, 101, 0, 38)
  76. loop.Font = Enum.Font.SourceSans
  77. loop.Text = "Loop"
  78. loop.TextColor3 = Color3.fromRGB(255, 255, 255)
  79. loop.TextScaled = true
  80. loop.TextSize = 14.000
  81. loop.TextWrapped = true
  82.  
  83. UICorner_3.Parent = loop
  84.  
  85. reviz.Name = "reviz"
  86. reviz.Parent = gui
  87. reviz.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  88. reviz.Position = UDim2.new(0.515976548, 0, 0.100025244, 0)
  89. reviz.Size = UDim2.new(0, 101, 0, 37)
  90. reviz.Font = Enum.Font.SourceSans
  91. reviz.Text = "Reviz"
  92. reviz.TextColor3 = Color3.fromRGB(255, 255, 255)
  93. reviz.TextScaled = true
  94. reviz.TextSize = 14.000
  95. reviz.TextWrapped = true
  96.  
  97. UICorner_4.Parent = reviz
  98.  
  99. TextButton.Parent = gui
  100. TextButton.BackgroundColor3 = Color3.fromRGB(59, 59, 59)
  101. TextButton.Position = UDim2.new(0.278008312, 0, 0.771428585, 0)
  102. TextButton.Size = UDim2.new(0, 105, 0, 30)
  103. TextButton.Font = Enum.Font.SourceSans
  104. TextButton.Text = "credits"
  105. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  106. TextButton.TextScaled = true
  107. TextButton.TextSize = 14.000
  108. TextButton.TextWrapped = true
  109.  
  110. UICorner_5.Parent = TextButton
  111.  
  112. reset.Name = "reset"
  113. reset.Parent = gui
  114. reset.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
  115. reset.Position = UDim2.new(0.0539419129, 0, 0.780821919, 0)
  116. reset.Size = UDim2.new(0, 47, 0, 26)
  117. reset.Font = Enum.Font.SourceSans
  118. reset.Text = "Reset"
  119. reset.TextColor3 = Color3.fromRGB(255, 255, 255)
  120. reset.TextSize = 14.000
  121.  
  122. UICorner_6.Parent = reset
  123.  
  124. UICorner_7.Parent = gui
  125.  
  126. TextButton_2.Parent = ScreenGui
  127. TextButton_2.BackgroundColor3 = Color3.fromRGB(59, 59, 59)
  128. TextButton_2.Position = UDim2.new(0.869674027, 0, 0.802816927, 0)
  129. TextButton_2.Size = UDim2.new(0, 57, 0, 24)
  130. TextButton_2.Font = Enum.Font.SourceSans
  131. TextButton_2.Text = "Toggle"
  132. TextButton_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  133. TextButton_2.TextScaled = true
  134. TextButton_2.TextSize = 14.000
  135. TextButton_2.TextWrapped = true
  136.  
  137. UICorner_8.Parent = TextButton_2
  138.  
  139. TextButton_3.Parent = ScreenGui
  140. TextButton_3.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
  141. TextButton_3.Position = UDim2.new(0.870463908, 0, 0.888888896, 0)
  142. TextButton_3.Size = UDim2.new(0, 56, 0, 20)
  143. TextButton_3.Font = Enum.Font.SourceSans
  144. TextButton_3.Text = "Destroy GUI"
  145. TextButton_3.TextColor3 = Color3.fromRGB(0, 0, 0)
  146. TextButton_3.TextScaled = true
  147. TextButton_3.TextSize = 14.000
  148. TextButton_3.TextWrapped = true
  149.  
  150. UICorner_9.Parent = TextButton_3
  151.  
  152. Frame.Parent = ScreenGui
  153. Frame.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
  154. Frame.Position = UDim2.new(0.799368143, 0, 0.289514869, 0)
  155. Frame.Size = UDim2.new(0, 235, 0, 113)
  156. Frame.Visible = false
  157.  
  158. TextButton_4.Parent = Frame
  159. TextButton_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  160. TextButton_4.BackgroundTransparency = 1.000
  161. TextButton_4.Position = UDim2.new(0.893617034, 0, 0, 0)
  162. TextButton_4.Size = UDim2.new(0, 25, 0, 21)
  163. TextButton_4.Font = Enum.Font.Sarpanch
  164. TextButton_4.Text = "X"
  165. TextButton_4.TextColor3 = Color3.fromRGB(255, 255, 255)
  166. TextButton_4.TextScaled = true
  167. TextButton_4.TextSize = 14.000
  168. TextButton_4.TextWrapped = true
  169.  
  170. TextLabel.Parent = Frame
  171. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  172. TextLabel.BackgroundTransparency = 1.000
  173. TextLabel.Size = UDim2.new(0, 200, 0, 21)
  174. TextLabel.Font = Enum.Font.SourceSans
  175. TextLabel.Text = "27x34k (27x34k#3157)"
  176. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  177. TextLabel.TextScaled = true
  178. TextLabel.TextSize = 14.000
  179. TextLabel.TextWrapped = true
  180.  
  181. UICorner_10.Parent = Frame
  182.  
  183. -- Scripts:
  184.  
  185. local function BFLMKJ_fake_script() -- small.LocalScript
  186.     local script = Instance.new('LocalScript', small)
  187.  
  188.     small.MouseButton1Click:Connect(function()
  189.         for i,v in pairs(game.Players.LocalPlayer.Character.Humanoid:GetChildren()) do
  190.             if v:IsA("NumberValue") then
  191.                 v:Destroy()
  192.             end
  193.         end
  194.     end)
  195.    
  196. end
  197. coroutine.wrap(BFLMKJ_fake_script)()
  198. local function PTYYSGZ_fake_script() -- afk.LocalScript
  199.     local script = Instance.new('LocalScript', afk)
  200.  
  201.     afk.MouseButton1Click:Connect(function()
  202.         loadstring(game:HttpGet("https://pastebin.com/raw/SN4agUmB", true))()
  203.     end)
  204.    
  205. end
  206. coroutine.wrap(PTYYSGZ_fake_script)()
  207. local function CJVQYW_fake_script() -- loop.LocalScript
  208.     local script = Instance.new('LocalScript', loop)
  209.  
  210.     loop.MouseButton1Click:Connect(function()
  211.         loadstring(game:GetObjects('rbxassetid://1010374652')[1].Source)()
  212.     end)
  213. end
  214. coroutine.wrap(CJVQYW_fake_script)()
  215. local function KVNH_fake_script() -- reviz.LocalScript
  216.     local script = Instance.new('LocalScript', reviz)
  217.  
  218.     reviz.MouseButton1Down:connect(function()
  219.         loadstring(game:HttpGet("https://pastebin.com/raw/pGhYnsxA", true))()
  220.     end)
  221.    
  222. end
  223. coroutine.wrap(KVNH_fake_script)()
  224. local function ZFLD_fake_script() -- gui.LocalScript
  225.     local script = Instance.new('LocalScript', gui)
  226.  
  227.     local UIS = game:GetService('UserInputService')
  228.     local frame = script.Parent
  229.     local dragToggle = nil
  230.     local dragSpeed = 0.25
  231.     local dragStart = nil
  232.     local startPos = nil
  233.    
  234.     local function updateInput(input)
  235.         local delta = input.Position - dragStart
  236.         local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  237.             startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  238.         game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
  239.     end
  240.    
  241.     frame.InputBegan:Connect(function(input)
  242.         if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  243.             dragToggle = true
  244.             dragStart = input.Position
  245.             startPos = frame.Position
  246.             input.Changed:Connect(function()
  247.                 if input.UserInputState == Enum.UserInputState.End then
  248.                     dragToggle = false
  249.                 end
  250.             end)
  251.         end
  252.     end)
  253.    
  254.     UIS.InputChanged:Connect(function(input)
  255.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  256.             if dragToggle then
  257.                 updateInput(input)
  258.             end
  259.         end
  260.     end)
  261.    
  262. end
  263. coroutine.wrap(ZFLD_fake_script)()
  264. local function UEJEBSQ_fake_script() -- TextButton.LocalScript
  265.     local script = Instance.new('LocalScript', TextButton)
  266.  
  267.     script.Parent.MouseButton1Click:Connect(function()
  268.         if script.Parent.Parent.Parent.Frame.Visible == false then
  269.             script.Parent.Parent.Parent.Frame.Visible = true
  270.         else
  271.             script.Parent.Parent.Parent.Frame.Visible = false
  272.         end
  273.     end)
  274. end
  275. coroutine.wrap(UEJEBSQ_fake_script)()
  276. local function LRDRV_fake_script() -- reset.Script
  277.     local script = Instance.new('Script', reset)
  278.  
  279.     script.Parent.MouseButton1Click:Connect(function()
  280.         game.Players.LocalPlayer.Character:BreakJoints()
  281.     end)
  282.    
  283. end
  284. coroutine.wrap(LRDRV_fake_script)()
  285. local function BEBO_fake_script() -- TextButton_2.LocalScript
  286.     local script = Instance.new('LocalScript', TextButton_2)
  287.  
  288.     local frame = script.Parent.parent.gui
  289.     local open = false
  290.     script.Parent.MouseButton1Click:Connect(function()
  291.         if frame.Visible == false then
  292.             frame.Visible = true
  293.         else
  294.             frame.Visible = false
  295.         end
  296.     end)
  297.    
  298. end
  299. coroutine.wrap(BEBO_fake_script)()
  300. local function MPZRG_fake_script() -- TextButton_3.LocalScript
  301.     local script = Instance.new('LocalScript', TextButton_3)
  302.  
  303.     script.Parent.MouseButton1Click:Connect(function()
  304.         script.Parent.Parent.Parent.ScreenGui:Destroy()
  305.     end)
  306.    
  307. end
  308. coroutine.wrap(MPZRG_fake_script)()
  309. local function ROJBUHZ_fake_script() -- TextButton_4.LocalScript
  310.     local script = Instance.new('LocalScript', TextButton_4)
  311.  
  312.     script.Parent.MouseButton1Click:Connect(function()
  313.         script.Parent.Parent.Visible = false
  314.     end)
  315.    
  316. end
  317. coroutine.wrap(ROJBUHZ_fake_script)()
  318. local function PGTNWMB_fake_script() -- Frame.LocalScript
  319.     local script = Instance.new('LocalScript', Frame)
  320.  
  321.     local UIS = game:GetService('UserInputService')
  322.     local frame = script.Parent
  323.     local dragToggle = nil
  324.     local dragSpeed = 0.25
  325.     local dragStart = nil
  326.     local startPos = nil
  327.    
  328.     local function updateInput(input)
  329.         local delta = input.Position - dragStart
  330.         local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  331.             startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  332.         game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
  333.     end
  334.    
  335.     frame.InputBegan:Connect(function(input)
  336.         if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  337.             dragToggle = true
  338.             dragStart = input.Position
  339.             startPos = frame.Position
  340.             input.Changed:Connect(function()
  341.                 if input.UserInputState == Enum.UserInputState.End then
  342.                     dragToggle = false
  343.                 end
  344.             end)
  345.         end
  346.     end)
  347.    
  348.     UIS.InputChanged:Connect(function(input)
  349.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  350.             if dragToggle then
  351.                 updateInput(input)
  352.             end
  353.         end
  354.     end)
  355.    
  356. end
  357. coroutine.wrap(PGTNWMB_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement