Advertisement
TheUnknownDiscord

funny boxing glove

Mar 26th, 2022 (edited)
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.14 KB | None | 0 0
  1. Tool = Instance.new("Tool",owner.Backpack)
  2. Knife = Instance.new("Part",Tool)
  3. Knife.Name = "Handle"
  4. Knife.Size = Vector3.new(1.0625, 1.0625, 1.0625)
  5. bac = Instance.new("Part",Knife)
  6. local slap = Instance.new("Sound")
  7. slap.PlayOnRemove = true
  8. slap.SoundId = "rbxassetid://2576392422"
  9. slap.Volume = 1
  10. slap.TimePosition = 1
  11. local hitdb = false
  12. local canhit = false
  13. bac.CanCollide = false
  14. bac.Massless = true
  15. bac.Size = Vector3.new(1.0825, 1.0825, 0.125)
  16. bac2 = Instance.new("Part",Knife)
  17. bac2.CanCollide = false
  18. bac2.Massless = true
  19. bac2.Size = Vector3.new(0.2125, 0.3125, 0.5)
  20. Tool.Grip = CFrame.new(0,0,0.25)
  21. local rightarm = Instance.new("Weld", owner.Character.Torso)
  22. rightarm.Part0 = owner.Character.Torso
  23. rightarm.Part1 = owner.Character["Right Arm"]
  24. rightarm.C0 = CFrame.new(1.5, 0, 0)
  25. local mes = Instance.new("SpecialMesh",Knife)
  26. mes.MeshId = "rbxasset://fonts//torso.mesh"
  27. mes.Scale = Vector3.new(0.53125,0.53125,1.0625)
  28. local mes2 = Instance.new("SpecialMesh",bac)
  29. mes2.MeshId = "rbxasset://fonts//torso.mesh"
  30. mes2.Scale = Vector3.new(1.0825 * 0.5,1.0825 * 0.5,0.125)
  31. local mes3 = Instance.new("SpecialMesh",bac2)
  32. mes3.MeshId = "rbxasset://fonts//torso.mesh"
  33. mes3.Scale = Vector3.new(0.2125 * 0.5,0.3125 * 0.5,0.5)
  34. Knife.Color = Color3.fromRGB(224, 16, 16)
  35. bac2.Color = Color3.fromRGB(206, 15, 15)
  36. local wel = Instance.new("Weld",Knife)
  37. wel.Part0 = bac
  38. wel.Part1 = Knife
  39. wel.C0 = CFrame.new(0,0,-0.5)
  40. local wel2 = Instance.new("Weld",Knife)
  41. wel2.Part0 = bac2
  42. wel2.Part1 = Knife
  43. wel2.C0 = CFrame.new(0.575,-0.175,0.175)
  44. local behind = false
  45. local tweenService = game:GetService("TweenService")
  46. local timeToFade = 0.0875
  47. local object = rightarm
  48. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
  49. local goal = {}
  50. goal.C0 = CFrame.new(1.5,0.5,-1.5) * CFrame.Angles(math.rad(90),0,0)
  51.  
  52. local tween = tweenService:Create(object, tweenInfo, goal)
  53. local goal2 = {}
  54. goal2.C0 = CFrame.new(1.5,0.5,-0.5) * CFrame.Angles(math.rad(90),0,0)
  55.  
  56. local tween2 = tweenService:Create(object, tweenInfo, goal2)
  57. Tool.Activated:Connect(function()
  58. tween:Play()
  59. canhit = true
  60. tween.Completed:Wait()
  61. canhit = false
  62. hitdb = false
  63. tween2:Play()
  64. end)
  65. rightarm.Enabled = false
  66. Tool.Equipped:Connect(function()
  67. rightarm.Enabled = true
  68. end)
  69. Tool.Unequipped:Connect(function()
  70. rightarm.Enabled = false
  71. rightarm.C0 = CFrame.new(1.5, 0.5, -0.5) * CFrame.Angles(math.rad(90),0,0)
  72. end)
  73. function findNearestTorso(pos)
  74. local list = game.Workspace:GetChildren()
  75. local torso = nil
  76. local dist = 10
  77. local temp = nil
  78. local human = nil
  79. local temp2 = nil
  80. for x = 1, #list do
  81. temp2 = list[x]
  82. if (temp2.className == "Model") and temp2 ~= owner.Character then
  83. temp = temp2:findFirstChild("Head")
  84. human = temp2:findFirstChild("Humanoid")
  85. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  86. if (temp.Position - pos).magnitude < dist then
  87. torso = temp
  88. dist = (temp.Position - pos).magnitude
  89. end
  90. end
  91. end
  92. end
  93. return torso
  94. end
  95. function kill(Character)
  96. coroutine.wrap(function()
  97. pcall(function()
  98. if not Character:findFirstChild("UpperTorso") then
  99. for i,v in pairs(Character:GetDescendants()) do
  100. if v:IsA("Motor6D") then
  101. v:Destroy()
  102. end
  103. end
  104. local Socket = Instance.new("BallSocketConstraint")
  105. local a1 = Instance.new("Attachment")
  106. local a2 = Instance.new("Attachment")
  107. a1.Parent = Character["Left Arm"]
  108. a2.Parent = Character.Torso
  109. Socket.Parent = Character["Left Arm"]
  110. Socket.Attachment0 = a1
  111. Socket.Attachment1 = a2
  112. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  113. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(-1.5,0.5,0)
  114. Socket.LimitsEnabled = true
  115. local Socket = Instance.new("BallSocketConstraint")
  116. local a1 = Instance.new("Attachment")
  117. local a2 = Instance.new("Attachment")
  118. a1.Parent = Character["Left Leg"]
  119. a2.Parent = Character.Torso
  120. Socket.Parent = Character["Left Leg"]
  121. Socket.Attachment0 = a1
  122. Socket.Attachment1 = a2
  123. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  124. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(-0.5,-1.5,0)
  125. Socket.LimitsEnabled = true
  126. local Socket = Instance.new("BallSocketConstraint")
  127. local a1 = Instance.new("Attachment")
  128. local a2 = Instance.new("Attachment")
  129. a1.Parent = Character["Right Leg"]
  130. a2.Parent = Character.Torso
  131. Socket.Parent = Character["Right Leg"]
  132. Socket.Attachment0 = a1
  133. Socket.Attachment1 = a2
  134. Socket.LimitsEnabled = true
  135. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  136. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0.5,-1.5,0)
  137. local Socket = Instance.new("BallSocketConstraint")
  138. local a1 = Instance.new("Attachment")
  139. local a2 = Instance.new("Attachment")
  140. a1.Parent = Character.HumanoidRootPart
  141. a2.Parent = Character.Torso
  142. Socket.Parent = Character.HumanoidRootPart
  143. Socket.Attachment0 = a1
  144. Socket.Attachment1 = a2
  145. a1.WorldCFrame = a1.Parent.CFrame
  146. a2.WorldCFrame = a1.Parent.CFrame
  147. Socket.LimitsEnabled = true
  148. local Socket = Instance.new("BallSocketConstraint")
  149. local a1 = Instance.new("Attachment")
  150. local a2 = Instance.new("Attachment")
  151. a1.Parent = Character.Head
  152. a2.Parent = Character.Torso
  153. Socket.Parent = Character.Head
  154. Socket.Attachment0 = a1
  155. Socket.Attachment1 = a2
  156. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,-0.5,0)
  157. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(0,1.0625,0)
  158. Socket.TwistLimitsEnabled = true
  159. Socket.LimitsEnabled = true
  160. local Socket = Instance.new("BallSocketConstraint")
  161. local a1 = Instance.new("Attachment")
  162. local a2 = Instance.new("Attachment")
  163. a1.Parent = Character["Right Arm"]
  164. a2.Parent = Character.Torso
  165. Socket.Parent = Character["Right Arm"]
  166. Socket.Attachment0 = a1
  167. Socket.Attachment1 = a2
  168. a1.WorldCFrame = a1.Parent.CFrame * CFrame.new(0,0.5,0)
  169. a2.WorldCFrame = a2.Parent.CFrame * CFrame.new(1.5,0.5,0)
  170. Socket.LimitsEnabled = true
  171. else
  172. for i,v in pairs(Character:GetDescendants()) do
  173. if v:IsA("Motor6D") then
  174. local Socket = Instance.new("BallSocketConstraint")
  175. local a1 = Instance.new("Attachment")
  176. local a2 = Instance.new("Attachment")
  177. a1.Parent = v.Part0
  178. a2.Parent = v.Part1
  179. Socket.Parent = v.Parent
  180. Socket.Attachment0 = a1
  181. Socket.Attachment1 = a2
  182. a1.CFrame = v.C0
  183. a2.CFrame = v.C1
  184. Socket.LimitsEnabled = true
  185. Socket.TwistLimitsEnabled = true
  186. v:Destroy()
  187. end
  188. end
  189. end
  190. end)
  191. end)()
  192. end
  193. while task.wait() do
  194. coroutine.wrap(function()
  195. local params = OverlapParams.new()
  196. params.FilterDescendantsInstances = {owner.Character:GetDescendants(), script}
  197. params.FilterType = Enum.RaycastFilterType.Blacklist
  198. for _, v in pairs(workspace:GetPartBoundsInBox(Knife.CFrame, Knife.Size * 1.75, params)) do
  199. if (v:FindFirstAncestorOfClass("Model") and v:FindFirstAncestorOfClass("Model"):FindFirstChildWhichIsA("Humanoid")) and not hitdb and canhit then
  200. hitdb = true
  201. if behind then
  202. slap.Volume = 1
  203. slap.Parent = Knife
  204. slap.Parent = nil
  205. local shockwave = Instance.new("SpawnLocation",script)
  206. shockwave.Enabled = false
  207. shockwave.CanCollide = false
  208. shockwave.CanTouch = false
  209. shockwave.Anchored = true
  210. shockwave.Size = Vector3.new()
  211. shockwave.CFrame = Knife.CFrame * CFrame.new(0,0,1) * CFrame.Angles(math.rad(-90),0,0)
  212. shockwave.Material = "ForceField"
  213. shockwave.Transparency = 0.125
  214. local light = Instance.new("PointLight",shockwave)
  215. light.Shadows = true
  216. light.Brightness = 1.5
  217. light.Color = Color3.fromRGB(222, 240, 250)
  218. light.Range = 7
  219. game:GetService("Debris"):AddItem(shockwave,0.25)
  220. local Mesh = Instance.new("SpecialMesh")
  221. Mesh.Parent = shockwave
  222. Mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  223. Mesh.Scale = Vector3.new(0,0,0)
  224. local tweenService = game:GetService("TweenService")
  225. local timeToFade = 0.235
  226. local object = Mesh
  227. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  228. local goal3 = {}
  229. goal3.Scale = Vector3.new(6,0.75,6)
  230.  
  231. local tween3 = tweenService:Create(object, tweenInfo, goal3)
  232. tween3:Play()
  233. local tweenService = game:GetService("TweenService")
  234. local timeToFade = 0.235
  235. local object = shockwave
  236. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  237. local goal4 = {}
  238. goal4.Transparency = 1
  239.  
  240. local tween4 = tweenService:Create(object, tweenInfo, goal4)
  241. tween4:Play()
  242. local shockwave2 = Instance.new("SpawnLocation",script)
  243. shockwave2.Enabled = false
  244. shockwave2.CanCollide = false
  245. shockwave2.CanTouch = false
  246. shockwave2.Anchored = true
  247. shockwave2.Size = Vector3.new()
  248. shockwave2.CFrame = Knife.CFrame * CFrame.new(0,0,1.5) * CFrame.Angles(math.rad(-90),0,0)
  249. shockwave2.Material = "ForceField"
  250. shockwave2.Transparency = 0.125
  251. game:GetService("Debris"):AddItem(shockwave2,0.275)
  252. shockwave2.Color = Color3.new(0.75,0.75,0.75)
  253. local Mesh = Instance.new("SpecialMesh")
  254. Mesh.Parent = shockwave2
  255. Mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  256. Mesh.Scale = Vector3.new(0,0,0)
  257. local tweenService = game:GetService("TweenService")
  258. local timeToFade = 0.265
  259. local object = Mesh
  260. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  261. local goal3 = {}
  262. goal3.Scale = Vector3.new(3,1.75,3)
  263.  
  264. local tween3 = tweenService:Create(object, tweenInfo, goal3)
  265. tween3:Play()
  266. local tweenService = game:GetService("TweenService")
  267. local timeToFade = 0.265
  268. local object = shockwave2
  269. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  270. local goal4 = {}
  271. goal4.Transparency = 1
  272.  
  273. local tween4 = tweenService:Create(object, tweenInfo, goal4)
  274. tween4:Play()
  275. v:FindFirstAncestorOfClass("Model"):FindFirstChildWhichIsA("Humanoid").BreakJointsOnDeath = false
  276. kill(v:FindFirstAncestorOfClass("Model"))
  277. wait()
  278. coroutine.wrap(function()
  279. for i = 1, 10 do
  280. pcall(function()
  281. wait(0.01)
  282. v:FindFirstAncestorOfClass("Model"):FindFirstChildWhichIsA("Humanoid").Health = 0
  283. end)
  284. end
  285. end)()
  286. local bf2 = Instance.new("BodyVelocity",v:FindFirstAncestorOfClass("Model"):FindFirstChildWhichIsA("Part"))
  287. bf2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  288. bf2.Velocity = owner.Character.Head.CFrame.lookVector * 200 + owner.Character.Head.CFrame.upVector * 75
  289. game:GetService("Debris"):AddItem(bf2,0.1)
  290. else
  291. slap.Volume = 0.5
  292. slap.Parent = Knife
  293. slap.Parent = nil
  294. v:FindFirstAncestorOfClass("Model"):FindFirstChildWhichIsA("Humanoid").Health -= 20
  295. end
  296. end
  297. end
  298. end)()
  299. local torso = findNearestTorso(Knife.Position)
  300. if torso~=nil then
  301. local ObjectSpace = torso.CFrame:inverse() * owner.Character.Head.CFrame
  302. if ObjectSpace.Z > 0.45 or ObjectSpace.Z > -0.45 then
  303. behind = true
  304. else
  305. behind = false
  306. end
  307. else
  308. behind = false
  309. end
  310. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement