Advertisement
beginner0929

punch1

Dec 17th, 2019
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.74 KB | None | 0 0
  1. --By Rufus14
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Script1 = Instance.new("Script")
  21. Sound2 = Instance.new("Sound")
  22. Sound3 = Instance.new("Sound")
  23. Sound4 = Instance.new("Sound")
  24. Sound5 = Instance.new("Sound")
  25. Sound6 = Instance.new("Sound")
  26. Sound7 = Instance.new("Sound")
  27. Tool0.Name = "Combat"
  28. Tool0.Parent = mas
  29. Tool0.CanBeDropped = false
  30. Tool0.Grip = CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  31. Tool0.GripForward = Vector3.new(-1, -0, -0)
  32. Tool0.GripPos = Vector3.new(0, 0, -1.70000005)
  33. Tool0.GripRight = Vector3.new(0, 1, 0)
  34. Tool0.GripUp = Vector3.new(0, 0, 1)
  35. Tool0.RequiresHandle = false
  36. Tool0.ToolTip = "Hold left mouse button to block, jump and attack for a drop kick."
  37. Script1.Parent = Tool0
  38. table.insert(cors,sandbox(Script1,function()
  39. --By Rufus14
  40. canattack = true
  41. cananimate = false
  42. equipped = false
  43. tool = script.Parent
  44. swishsound = script.Swoosh
  45. blocksound = script.Block
  46. punchsound = script.Punch
  47. kicksound = script.Kick
  48. goresound = script.Ouch
  49. basssound = script.Bass
  50. owner = nil
  51. character = nil
  52. mouseclick = false
  53. attacknumber = 1
  54. instancewhitelist = {}
  55. runservice = game:GetService("RunService")
  56. --
  57. tool.Activated:connect(function()
  58. mouseclick = true
  59. end)
  60. tool.Deactivated:connect(function()
  61. mouseclick = false
  62. end)
  63. --
  64. function ragdollkill(character)
  65. local victimshumanoid = character:findFirstChildOfClass("Humanoid")
  66. local checkragd = character:findFirstChild("ragded")
  67. if not checkragd then
  68. local boolvalue = Instance.new("BoolValue", character)
  69. boolvalue.Name = "ragded"
  70. if not character:findFirstChild("UpperTorso") then
  71. character.Archivable = true
  72. for i,v in pairs(character:GetChildren()) do
  73. if v.ClassName == "Sound" then
  74. v:remove()
  75. end
  76. for q,w in pairs(v:GetChildren()) do
  77. if w.ClassName == "Sound" then
  78. w:remove()
  79. end
  80. end
  81. end
  82. local ragdoll = character:Clone()
  83. for i,v in pairs(ragdoll:GetDescendants()) do
  84. if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
  85. v:destroy()
  86. end
  87. end
  88. ragdoll:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
  89. ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  90. if ragdoll:findFirstChild("Health") then
  91. if ragdoll:findFirstChild("Health").ClassName == "Script" then
  92. ragdoll:findFirstChild("Health").Disabled = true
  93. end
  94. end
  95. for i,v in pairs(character:GetChildren()) do
  96. if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
  97. v:destroy()
  98. end
  99. end
  100. for i,v in pairs(character:GetChildren()) do
  101. if v.ClassName == "Accessory" then
  102. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  103. if attachment1 then
  104. for q,w in pairs(character:GetChildren()) do
  105. if w.ClassName == "Part" then
  106. local attachment2 = w:findFirstChild(attachment1.Name)
  107. if attachment2 then
  108. local hinge = Instance.new("HingeConstraint", v.Handle)
  109. hinge.Attachment0 = attachment1
  110. hinge.Attachment1 = attachment2
  111. hinge.LimitsEnabled = true
  112. hinge.LowerAngle = 0
  113. hinge.UpperAngle = 0
  114. end
  115. end
  116. end
  117. end
  118. end
  119. end
  120. ragdoll.Parent = workspace
  121. if ragdoll:findFirstChild("Right Arm") then
  122. local glue = Instance.new("Glue", ragdoll.Torso)
  123. glue.Part0 = ragdoll.Torso
  124. glue.Part1 = ragdoll:findFirstChild("Right Arm")
  125. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  126. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  127. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
  128. limbcollider.Size = Vector3.new(1.4,1,1)
  129. limbcollider.Shape = "Cylinder"
  130. limbcollider.Transparency = 1
  131. limbcollider.Name = "LimbCollider"
  132. local limbcolliderweld = Instance.new("Weld", limbcollider)
  133. limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
  134. limbcolliderweld.Part1 = limbcollider
  135. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  136. end
  137. if ragdoll:findFirstChild("Left Arm") then
  138. local glue = Instance.new("Glue", ragdoll.Torso)
  139. glue.Part0 = ragdoll.Torso
  140. glue.Part1 = ragdoll:findFirstChild("Left Arm")
  141. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  142. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  143. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
  144. limbcollider.Size = Vector3.new(1.4,1,1)
  145. limbcollider.Shape = "Cylinder"
  146. limbcollider.Name = "LimbCollider"
  147. limbcollider.Transparency = 1
  148. local limbcolliderweld = Instance.new("Weld", limbcollider)
  149. limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
  150. limbcolliderweld.Part1 = limbcollider
  151. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  152. end
  153. if ragdoll:findFirstChild("Left Leg") then
  154. local glue = Instance.new("Glue", ragdoll.Torso)
  155. glue.Part0 = ragdoll.Torso
  156. glue.Part1 = ragdoll:findFirstChild("Left Leg")
  157. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  158. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  159. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
  160. limbcollider.Size = Vector3.new(1.4,1,1)
  161. limbcollider.Shape = "Cylinder"
  162. limbcollider.Name = "LimbCollider"
  163. limbcollider.Transparency = 1
  164. local limbcolliderweld = Instance.new("Weld", limbcollider)
  165. limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
  166. limbcolliderweld.Part1 = limbcollider
  167. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  168. end
  169. if ragdoll:findFirstChild("Right Leg") then
  170. local glue = Instance.new("Glue", ragdoll.Torso)
  171. glue.Part0 = ragdoll.Torso
  172. glue.Part1 = ragdoll:findFirstChild("Right Leg")
  173. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  174. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  175. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
  176. limbcollider.Size = Vector3.new(1.4,1,1)
  177. limbcollider.Shape = "Cylinder"
  178. limbcollider.Name = "LimbCollider"
  179. limbcollider.Transparency = 1
  180. local limbcolliderweld = Instance.new("Weld", limbcollider)
  181. limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
  182. limbcolliderweld.Part1 = limbcollider
  183. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  184. end
  185. if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
  186. local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
  187. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  188. local connection = Instance.new('HingeConstraint', ragdoll["Head"])
  189. connection.LimitsEnabled = true
  190. connection.Attachment0 = ragdoll.Torso.NeckAttachment
  191. connection.Attachment1 = HeadAttachment
  192. connection.UpperAngle = 60
  193. connection.LowerAngle = -60
  194. elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
  195. local hedweld = Instance.new("Weld", ragdoll.Torso)
  196. hedweld.Part0 = ragdoll.Torso
  197. hedweld.Part1 = ragdoll.Head
  198. hedweld.C0 = CFrame.new(0,1.5,0)
  199. end
  200. game.Debris:AddItem(ragdoll, 30)
  201. local function aaaalol()
  202. wait(0.2)
  203. local function searchforvelocity(wot)
  204. for i,v in pairs(wot:GetChildren()) do
  205. searchforvelocity(v)
  206. if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  207. v:destroy()
  208. end
  209. end
  210. end
  211. searchforvelocity(ragdoll)
  212. wait(0.5)
  213. if ragdoll:findFirstChildOfClass("Humanoid") then
  214. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  215. end
  216. if ragdoll:findFirstChild("HumanoidRootPart") then
  217. ragdoll:findFirstChild("HumanoidRootPart"):destroy()
  218. end
  219. end
  220. spawn(aaaalol)
  221. elseif character:findFirstChild("UpperTorso") then
  222. character.Archivable = true
  223. for i,v in pairs(character:GetChildren()) do
  224. if v.ClassName == "Sound" then
  225. v:remove()
  226. end
  227. for q,w in pairs(v:GetChildren()) do
  228. if w.ClassName == "Sound" then
  229. w:remove()
  230. end
  231. end
  232. end
  233. local ragdoll = character:Clone()
  234. ragdoll:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
  235. for i,v in pairs(ragdoll:GetDescendants()) do
  236. if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
  237. v:destroy()
  238. end
  239. end
  240. ragdoll:BreakJoints()
  241. ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  242. if ragdoll:findFirstChild("Health") then
  243. if ragdoll:findFirstChild("Health").ClassName == "Script" then
  244. ragdoll:findFirstChild("Health").Disabled = true
  245. end
  246. end
  247. for i,v in pairs(character:GetChildren()) do
  248. if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
  249. v:destroy()
  250. end
  251. end
  252. for i,v in pairs(character:GetChildren()) do
  253. if v.ClassName == "Accessory" then
  254. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  255. if attachment1 then
  256. for q,w in pairs(character:GetChildren()) do
  257. if w.ClassName == "Part" or w.ClassName == "MeshPart" then
  258. local attachment2 = w:findFirstChild(attachment1.Name)
  259. if attachment2 then
  260. local hinge = Instance.new("HingeConstraint", v.Handle)
  261. hinge.Attachment0 = attachment1
  262. hinge.Attachment1 = attachment2
  263. hinge.LimitsEnabled = true
  264. hinge.LowerAngle = 0
  265. hinge.UpperAngle = 0
  266. end
  267. end
  268. end
  269. end
  270. end
  271. end
  272. ragdoll.Parent = workspace
  273. local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
  274. Humanoid.PlatformStand = true
  275. local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  276. local connection = Instance.new('BallSocketConstraint', limb)
  277. connection.LimitsEnabled = true
  278. connection.Attachment0 = attachementone
  279. connection.Attachment1 = attachmenttwo
  280. connection.TwistLimitsEnabled = true
  281. connection.TwistLowerAngle = twistlower
  282. connection.TwistUpperAngle = twistupper
  283. local limbcollider = Instance.new("Part", limb)
  284. limbcollider.Size = Vector3.new(0.1,1,1)
  285. limbcollider.Shape = "Cylinder"
  286. limbcollider.Transparency = 1
  287. limbcollider:BreakJoints()
  288. local limbcolliderweld = Instance.new("Weld", limbcollider)
  289. limbcolliderweld.Part0 = limb
  290. limbcolliderweld.Part1 = limbcollider
  291. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  292. end
  293. local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  294. local connection = Instance.new('HingeConstraint', limb)
  295. connection.LimitsEnabled = true
  296. connection.Attachment0 = attachementone
  297. connection.Attachment1 = attachmenttwo
  298. connection.LimitsEnabled = true
  299. connection.LowerAngle = lower
  300. connection.UpperAngle = upper
  301. local limbcollider = Instance.new("Part", limb)
  302. limbcollider.Size = Vector3.new(0.1,1,1)
  303. limbcollider.Shape = "Cylinder"
  304. limbcollider.Transparency = 1
  305. limbcollider:BreakJoints()
  306. local limbcolliderweld = Instance.new("Weld", limbcollider)
  307. limbcolliderweld.Part0 = limb
  308. limbcolliderweld.Part1 = limbcollider
  309. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  310. end
  311. local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  312. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  313. if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
  314. makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  315. end
  316. makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  317. makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  318. makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  319. makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  320. --
  321. makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  322. makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  323. makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  324. --
  325. makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  326. makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  327. makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  328. --
  329. makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  330. makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  331. makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  332. for i,v in pairs(Humanoid.Parent:GetChildren()) do
  333. if v.ClassName == "Accessory" then
  334. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  335. if attachment1 then
  336. for q,w in pairs(Humanoid.Parent:GetChildren()) do
  337. if w.ClassName == "Part" then
  338. local attachment2 = w:findFirstChild(attachment1.Name)
  339. if attachment2 then
  340. local hinge = Instance.new("HingeConstraint", v.Handle)
  341. hinge.Attachment0 = attachment1
  342. hinge.Attachment1 = attachment2
  343. hinge.LimitsEnabled = true
  344. hinge.LowerAngle = 0
  345. hinge.UpperAngle = 0
  346. end
  347. end
  348. end
  349. end
  350. end
  351. end
  352. for i,v in pairs(ragdoll:GetChildren()) do
  353. for q,w in pairs(v:GetChildren()) do
  354. if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "ouch_weld" then
  355. w:destroy()
  356. end
  357. end
  358. end
  359. if ragdoll:findFirstChild("HumanoidRootPart") then
  360. ragdoll.HumanoidRootPart:destroy()
  361. end
  362. if ragdoll:findFirstChildOfClass("Humanoid") then
  363. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  364. end
  365. local function waitfordatmoment()
  366. wait(0.2)
  367. local function searchforvelocity(wot)
  368. for i,v in pairs(wot:GetChildren()) do
  369. searchforvelocity(v)
  370. if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  371. v:destroy()
  372. end
  373. end
  374. end
  375. searchforvelocity(ragdoll)
  376. end
  377. spawn(waitfordatmoment)
  378. game.Debris:AddItem(ragdoll, 30)
  379. end
  380. end
  381. end
  382. function damage(what, action, t, range)
  383. for i,v in pairs(workspace:GetDescendants()) do
  384. if v.ClassName == "Model" then
  385. local head = v:findFirstChild("Head")
  386. local humanoid = v:findFirstChildOfClass("Humanoid")
  387. local torso = v:findFirstChild("Torso")
  388. local ragdolled = v:findFirstChild("ragdolledpunch")
  389. if humanoid and head then
  390. if (head.Position - what.Position).magnitude < range and v ~= character and humanoid.Health > 0 then
  391. if action ~= "stomp" then
  392. if ragdolled then
  393. return
  394. end
  395. end
  396. local ragdolledpunch = Instance.new("BoolValue", v)
  397. ragdolledpunch.Name = "ragdolledpunch"
  398. game.Debris:AddItem(ragdolledpunch, t)
  399. if action == "punch" then
  400. local velocity = Instance.new("BodyVelocity", head)
  401. velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
  402. velocity.Velocity = character.HumanoidRootPart.CFrame.lookVector * math.random(5,15)
  403. punchsound.PlaybackSpeed = 1+(math.random(-5,5)/15)
  404. punchsound:Play()
  405. game.Debris:AddItem(velocity, 0.2)
  406. elseif action == "uppercut" then
  407. local velocity = Instance.new("BodyVelocity", head)
  408. velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  409. velocity.Velocity = (character.HumanoidRootPart.CFrame.upVector * math.random(5,15)) + (character.HumanoidRootPart.CFrame.lookVector * math.random(5,15))
  410. kicksound.PlaybackSpeed = 1+(math.random(-5,5)/15)
  411. kicksound:Play()
  412. game.Debris:AddItem(velocity, 0.2)
  413. elseif action == "kick" then
  414. local velocity = Instance.new("BodyVelocity", head)
  415. velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
  416. velocity.Velocity = character.HumanoidRootPart.CFrame.lookVector * 20
  417. goresound.PlaybackSpeed = 1+(math.random(-5,5)/15)
  418. goresound:Play()
  419. game.Debris:AddItem(velocity, 0.2)
  420. elseif action == "dropkick" then
  421. local velocity = Instance.new("BodyVelocity", head)
  422. velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
  423. velocity.Velocity = character.HumanoidRootPart.CFrame.lookVector * 30
  424. kicksound.PlaybackSpeed = 1+(math.random(-5,5)/15)
  425. kicksound:Play()
  426. goresound.PlaybackSpeed = 1+(math.random(-5,5)/15)
  427. goresound:Play()
  428. game.Debris:AddItem(velocity, 0.2)
  429. elseif action == "stomp" then
  430. punchsound.PlaybackSpeed = 1+(math.random(-5,5)/15)
  431. punchsound:Play()
  432. end
  433. if action ~= "blocked" then
  434. local dmg = math.random(100000,100000)
  435. if action == "uppercut" then
  436. dmg = dmg + math.random(100000,100000)
  437. elseif action == "kick" then
  438. dmg = dmg + math.random(100000,100000)
  439. elseif action == "dropkick" then
  440. dmg = dmg + math.random(100000,100000)
  441. end
  442. if humanoid.Health <= dmg then
  443. humanoid.Health = 0
  444. ragdollkill(v)
  445. end
  446. humanoid.Health = humanoid.Health - dmg
  447. end
  448. if action ~= "blocked" and action ~= "uppercut" and action ~= "kick" and action ~= "dropkick" then
  449. if math.random(1,5) ~= 1 then
  450. return
  451. end
  452. end
  453. if action == "stomp" then
  454. return
  455. end
  456. humanoid.PlatformStand = true
  457. coroutine.wrap(function()
  458. wait(t)
  459. humanoid.PlatformStand = false
  460. end)()
  461. if torso then
  462. coroutine.wrap(function()
  463. humanoid = v:WaitForChild("Humanoid")
  464. local ragdoll = v
  465. if ragdoll:findFirstChild("Right Arm") then
  466. local glue = Instance.new("Glue", ragdoll.Torso)
  467. glue.Part0 = ragdoll.Torso
  468. glue.Part1 = ragdoll:findFirstChild("Right Arm")
  469. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  470. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  471. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
  472. limbcollider.Size = Vector3.new(1.4,1,1)
  473. limbcollider.Shape = "Cylinder"
  474. limbcollider.Transparency = 1
  475. limbcollider.Name = "LimbCollider"
  476. local limbcolliderweld = Instance.new("Weld", limbcollider)
  477. limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
  478. limbcolliderweld.Part1 = limbcollider
  479. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  480. coroutine.wrap(function()
  481. if ragdoll.Torso:findFirstChild("Right Shoulder") then
  482. local limbclone = ragdoll.Torso:findFirstChild("Right Shoulder"):Clone()
  483. ragdoll.Torso:findFirstChild("Right Shoulder"):destroy()
  484. coroutine.wrap(function()
  485. wait(t)
  486. limbclone.Parent = ragdoll.Torso
  487. limbclone.Part0 = ragdoll.Torso
  488. limbclone.Part1 = ragdoll["Right Arm"]
  489. end)()
  490. end
  491. wait(t)
  492. glue:destroy()
  493. limbcollider:destroy()
  494. limbcolliderweld:destroy()
  495. end)()
  496. end
  497. if ragdoll:findFirstChild("Left Arm") then
  498. local glue = Instance.new("Glue", ragdoll.Torso)
  499. glue.Part0 = ragdoll.Torso
  500. glue.Part1 = ragdoll:findFirstChild("Left Arm")
  501. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  502. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  503. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
  504. limbcollider.Size = Vector3.new(1.4,1,1)
  505. limbcollider.Shape = "Cylinder"
  506. limbcollider.Name = "LimbCollider"
  507. limbcollider.Transparency = 1
  508. local limbcolliderweld = Instance.new("Weld", limbcollider)
  509. limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
  510. limbcolliderweld.Part1 = limbcollider
  511. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  512. coroutine.wrap(function()
  513. if ragdoll.Torso:findFirstChild("Left Shoulder") then
  514. local limbclone = ragdoll.Torso:findFirstChild("Left Shoulder"):Clone()
  515. ragdoll.Torso:findFirstChild("Left Shoulder"):destroy()
  516. coroutine.wrap(function()
  517. wait(t)
  518. limbclone.Parent = ragdoll.Torso
  519. limbclone.Part0 = ragdoll.Torso
  520. limbclone.Part1 = ragdoll["Left Arm"]
  521. end)()
  522. end
  523. wait(t)
  524. glue:destroy()
  525. limbcollider:destroy()
  526. limbcolliderweld:destroy()
  527. end)()
  528. end
  529. if ragdoll:findFirstChild("Left Leg") then
  530. local glue = Instance.new("Glue", ragdoll.Torso)
  531. glue.Part0 = ragdoll.Torso
  532. glue.Part1 = ragdoll:findFirstChild("Left Leg")
  533. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  534. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  535. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
  536. limbcollider.Size = Vector3.new(1.5,1,1)
  537. limbcollider.Shape = "Cylinder"
  538. limbcollider.Name = "LimbCollider"
  539. limbcollider.Transparency = 1
  540. local limbcolliderweld = Instance.new("Weld", limbcollider)
  541. limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
  542. limbcolliderweld.Part1 = limbcollider
  543. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.2,0,0)
  544. coroutine.wrap(function()
  545. if ragdoll.Torso:findFirstChild("Left Hip") then
  546. local limbclone = ragdoll.Torso:findFirstChild("Left Hip"):Clone()
  547. ragdoll.Torso:findFirstChild("Left Hip"):destroy()
  548. coroutine.wrap(function()
  549. wait(t)
  550. limbclone.Parent = ragdoll.Torso
  551. limbclone.Part0 = ragdoll.Torso
  552. limbclone.Part1 = ragdoll["Left Leg"]
  553. end)()
  554. end
  555. wait(t)
  556. glue:destroy()
  557. limbcollider:destroy()
  558. limbcolliderweld:destroy()
  559. end)()
  560. end
  561. if ragdoll:findFirstChild("Right Leg") then
  562. local glue = Instance.new("Glue", ragdoll.Torso)
  563. glue.Part0 = ragdoll.Torso
  564. glue.Part1 = ragdoll:findFirstChild("Right Leg")
  565. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  566. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  567. local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
  568. limbcollider.Size = Vector3.new(1.5,1,1)
  569. limbcollider.Shape = "Cylinder"
  570. limbcollider.Name = "LimbCollider"
  571. limbcollider.Transparency = 1
  572. local limbcolliderweld = Instance.new("Weld", limbcollider)
  573. limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
  574. limbcolliderweld.Part1 = limbcollider
  575. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.2,0,0)
  576. coroutine.wrap(function()
  577. if ragdoll.Torso:findFirstChild("Right Hip") then
  578. local limbclone = ragdoll.Torso:findFirstChild("Right Hip"):Clone()
  579. ragdoll.Torso:findFirstChild("Right Hip"):destroy()
  580. coroutine.wrap(function()
  581. wait(t)
  582. limbclone.Parent = ragdoll.Torso
  583. limbclone.Part0 = ragdoll.Torso
  584. limbclone.Part1 = ragdoll["Right Leg"]
  585. end)()
  586. end
  587. wait(t)
  588. glue:destroy()
  589. limbcollider:destroy()
  590. limbcolliderweld:destroy()
  591. end)()
  592. end
  593. end)()
  594. end
  595. end
  596. end
  597. end
  598. end
  599. end
  600. --
  601. tool.Activated:connect(function()
  602. if owner ~= nil and character ~= nil and canattack then
  603. local rightarmweld = character.Torso:findFirstChild("RightArmWeldpunch")
  604. local leftarmweld = character.Torso:findFirstChild("LeftArmWeldpunch")
  605. local headweld = character.Torso:findFirstChild("HeadWeldpunch")
  606. local rootweld = character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldpunch")
  607. for i,v in pairs(workspace:GetDescendants()) do
  608. if v.ClassName == "Model" and v ~= character then
  609. local humanoid = v:findFirstChildOfClass("Humanoid")
  610. local headepic = v:findFirstChild("Head")
  611. if humanoid and headepic then
  612. if (headepic.Position - character.HumanoidRootPart.Position).magnitude < 5 and humanoid.PlatformStand and humanoid.Health > 0 then
  613. local rightlegweld = Instance.new("Weld", character.Torso)
  614. rightlegweld.Part0 = character.Torso
  615. rightlegweld.Part1 = character["Right Leg"]
  616. rightlegweld.C0 = CFrame.new(0.5,-2,0)
  617. rightlegweld.Name = "RightLegWeldbat"
  618. local leftlegweld = Instance.new("Weld", character.Torso)
  619. leftlegweld.Part0 = character.Torso
  620. leftlegweld.Part1 = character["Left Leg"]
  621. leftlegweld.C0 = CFrame.new(-0.5,-2,0)
  622. leftlegweld.Name = "LeftLegWeldbat"
  623. character:findFirstChildOfClass("Humanoid").WalkSpeed = 0
  624. for i = 0,1 , 0.1 do
  625. cananimate = false
  626. canattack = false
  627. character.HumanoidRootPart.CFrame = CFrame.new(character.HumanoidRootPart.Position, Vector3.new(headepic.Position.x,character.HumanoidRootPart.Position.y,headepic.Position.z))
  628. rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(0.5, -0.75804615, -1.03058243, 1, 0, 0, 0, 1, 5.96046448e-08, 0, -5.96046448e-08, 1),i)
  629. leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.5, -1.93969202, 0.342020512, 1, 0, 0, 0, 0.939692557, 0.342020333, 0, -0.342020392, 0.939692557),i)
  630. rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.5,0,0),i)
  631. leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-1.5,0,0),i)
  632. rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.939692557, -0.342020363, 0, 0.342020363, 0.939692557),i)
  633. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.38302135, -0.32139349, 1, 0, 0, 0, 0.766044259, 0.642787755, 0, -0.642787755, 0.766044259),i)
  634. runservice.Stepped:wait()
  635. end
  636. for i = 0,1 , 0.15 do
  637. rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(0.5, -1.93246841, -1.17564046, 1, 0, 0, 0, 0.939692557, -0.342019618, 0, 0.342019647, 0.939692676),i)
  638. leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.5, -1.98480701, 0.173648238, 1, 0, 0, 0, 0.984807491, 0.173648387, 0, -0.173648402, 0.984807551),i)
  639. rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.64085674, 0.201163769, -2.38418579e-07, 0.939692616, -0.342020124, 0, 0.342020094, 0.939692497, 0, 0, 0, 0.99999994),i)
  640. leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-1.64085674, 0.201163769, -2.38418579e-07, 0.939692616, 0.342020124, 0, -0.342020094, 0.939692497, 0, 0, 0, 0.99999994),i)
  641. rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, -0.0347294807, -0.396961689, 1, 0, 0, 0, 0.98480773, 0.173648179, 0, -0.173648179, 0.98480773),i)
  642. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.38302231, -0.321393967, 1, 0, 0, 0, 0.766044259, 0.642787695, 0, -0.642787695, 0.766044259),i)
  643. runservice.Stepped:wait()
  644. end
  645. damage(character["Right Leg"], "stomp", 1, 3.5)
  646. coroutine.wrap(function()
  647. for i = 0,1 ,0.07 do
  648. leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.5,-2,0),i)
  649. rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(0.5,-2,0),i)
  650. runservice.Stepped:wait()
  651. end
  652. leftlegweld:destroy()
  653. rightlegweld:destroy()
  654. character:findFirstChildOfClass("Humanoid").WalkSpeed = 16
  655. end)()
  656. cananimate = true
  657. canattack = true
  658. return
  659. end
  660. end
  661. end
  662. end
  663. if character:findFirstChildOfClass("Humanoid").Jump then
  664. canattack = false
  665. cananimate = false
  666. character:findFirstChildOfClass("Humanoid").PlatformStand = true
  667. local rightlegweld = Instance.new("Weld", character.Torso)
  668. rightlegweld.Part0 = character.Torso
  669. rightlegweld.Part1 = character["Right Leg"]
  670. rightlegweld.C0 = CFrame.new(0.5,-2,0)
  671. rightlegweld.Name = "RightLegWeldpunch"
  672. local leftlegweld = Instance.new("Weld", character.Torso)
  673. leftlegweld.Part0 = character.Torso
  674. leftlegweld.Part1 = character["Left Leg"]
  675. leftlegweld.C0 = CFrame.new(-0.5,-2,0)
  676. leftlegweld.Name = "LeftLegWeldpunch"
  677. local vel = Instance.new("BodyVelocity", character.HumanoidRootPart)
  678. vel.MaxForce = Vector3.new(math.huge,600,math.huge)
  679. vel.Velocity = character.HumanoidRootPart.CFrame.lookVector * 20
  680. for i = 0,1 , 0.13 do
  681. damage(character["Left Leg"], "dropkick", 3.5, 3)
  682. damage(character["Right Leg"], "dropkick", 3.5, 3)
  683. rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(0.5, -1, -0.400000095, 0.999999881, 0, 0, 0, 0.999999881, 0, 0, -1.49011612e-08, 0.99999994),i)
  684. leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.5, -1, -0.400000095, 0.999999881, 0, 0, 0, 0.999999881, 0, 0, -1.49011612e-08, 0.99999994),i)
  685. rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.64085579, 0.201163769, 0, 0.939692438, -0.342020065, 0, 0.342020094, 0.939692438, 0, 0, 0, 0.99999994),i)
  686. leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-1.64085579, 0.201163769, 0, 0.939692438, 0.342020065, 0, -0.342020094, 0.939692438, 0, 0, 0, 0.99999994),i)
  687. rootweld.C0 = rootweld.C0:lerp(CFrame.fromEulerAnglesXYZ(math.pi/2,0,0),i)
  688. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.24999976, -0.433012486, 0.999999881, 0, 0, 0, 0.5, 0.866025448, 0, -0.866025448, 0.5),i)
  689. runservice.Stepped:wait()
  690. end
  691. swishsound.PlaybackSpeed = 1+(math.random(-2,5)/12)
  692. swishsound:Play()
  693. for i = 0,1 , 0.13 do
  694. damage(character["Left Leg"], "dropkick", 3.5, 3)
  695. damage(character["Right Leg"], "dropkick", 3.5, 3)
  696. rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 1.49011612e-08, 0.99999994),i)
  697. leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 1.49011612e-08, 0.99999994),i)
  698. rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.57922745, 0.094420433, 4.76837158e-07, 0.98480773, -0.173648179, 0, 0.173648149, 0.984807611, 0, -1.86264515e-09, 0, 0.99999994),i)
  699. leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-1.57922745, 0.094420433, 4.76837158e-07, 0.98480773, 0.173648179, 0, -0.173648149, 0.984807611, 0, 1.86264515e-09, 0, 0.99999994),i)
  700. rootweld.C0 = rootweld.C0:lerp(CFrame.fromEulerAnglesXYZ((math.pi/2)-math.rad(30),0,0),i)
  701. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.32139361, -0.383021832, 1, 0, 0, 0, 0.642787635, 0.766044438, 0, -0.766044438, 0.642787635),i)
  702. runservice.Stepped:wait()
  703. end
  704. for i = 1,20 do
  705. damage(character["Left Leg"], "dropkick", 3.5, 3)
  706. damage(character["Right Leg"], "dropkick", 3.5, 3)
  707. runservice.Stepped:wait()
  708. end
  709. vel:destroy()
  710. rightlegweld:destroy()
  711. leftlegweld:destroy()
  712. coroutine.wrap(function()
  713. wait(0.8)
  714. character:findFirstChildOfClass("Humanoid").PlatformStand = false
  715. end)()
  716. canattack = true
  717. cananimate = true
  718. else
  719. canattack = false
  720. cananimate = false
  721. if attacknumber == 1 then
  722. local sine = 0
  723. local tiltval = 0
  724. for i = 1,20 do --17 and sine 3
  725. sine = sine + 1
  726. damage(character["Right Arm"], "punch", 1, 2)
  727. headweld.C0 = headweld.C0:lerp(CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(0,math.sin(sine/3.25),0),0.3)
  728. leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,-math.sin(sine/3.25)*2) * CFrame.new(0,-0.5,0),0.3)
  729. rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,(-math.sin(sine/3.25)*1.5)-math.rad(10)+(math.cos(sine/11.25))) * CFrame.new(0,-0.5,0),0.3)
  730. if i == 3 then
  731. swishsound.PlaybackSpeed = 1+(math.random(-2,5)/12)
  732. swishsound:Play()
  733. end
  734. if i > 10 then
  735. if i < 17 then
  736. tiltval = tiltval + 0.048
  737. end
  738. rightarmweld.C0 = rightarmweld.C0 * CFrame.new(-tiltval/2,0,0) * CFrame.fromEulerAnglesXYZ(0,0,-tiltval)
  739. end
  740. rootweld.C0 = rootweld.C0:lerp(CFrame.fromEulerAnglesXYZ(math.sin(sine/3.25)/8,-math.sin(sine/3.25)*2.3,0), 0.3)
  741. runservice.Stepped:wait()
  742. end
  743. attacknumber = 2
  744. elseif attacknumber == 2 then
  745. local sine = 0
  746. local tiltval = 0
  747. for i = 1,20 do --17 and sine 3
  748. sine = sine + 1
  749. damage(character["Left Arm"], "punch", 1, 2)
  750. headweld.C0 = headweld.C0:lerp(CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(0,-math.sin(sine/3.25),0),0.3)
  751. leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,(math.sin(sine/3.25)*1.5)+math.rad(10)-(math.cos(sine/11.25))) * CFrame.new(0,-0.5,0),0.3)
  752. rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,math.sin(sine/3.25)*2) * CFrame.new(0,-0.5,0),0.3)
  753. if i == 3 then
  754. swishsound.PlaybackSpeed = 1+(math.random(-2,5)/12)
  755. swishsound:Play()
  756. end
  757. if i > 10 then
  758. if i < 17 then
  759. tiltval = tiltval + 0.048
  760. end
  761. leftarmweld.C0 = leftarmweld.C0 * CFrame.new(tiltval/2,0,0) * CFrame.fromEulerAnglesXYZ(0,0,tiltval)
  762. end
  763. rootweld.C0 = rootweld.C0:lerp(CFrame.fromEulerAnglesXYZ(math.sin(sine/3.25)/8,math.sin(sine/3.25)*2.3,0), 0.3)
  764. runservice.Stepped:wait()
  765. end
  766. attacknumber = 3
  767. elseif attacknumber == 3 then
  768. for i = 0,1 , 0.06 do
  769. rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.52833557, 0.510312557, 0.469846129, 0.939692497, -0.116977774, -0.321393788, 0.342020124, 0.321393818, 0.88302213, 1.49011612e-08, -0.939692616, 0.342020124),i)
  770. leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-1.64085674, 0.307911873, -0.228921652, 0.939692557, 0.342020094, 0, -0.219846308, 0.604022801, -0.766044378, -0.262002587, 0.719846249, 0.642787576),i)
  771. rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 0.98480773, 0, -0.173648179, 0.0593911819, 0.939692616, 0.336824119, 0.163175911, -0.342020184, 0.925416529),i)
  772. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.49240446, 0.0868239403, 0.999999881, -1.86264515e-09, 0, 3.7252903e-09, 0.984807789, -0.17364797, 0, 0.17364794, 0.98480773),i)
  773. runservice.Stepped:wait()
  774. end
  775. swishsound.PlaybackSpeed = 1+(math.random(-2,5)/12)
  776. swishsound:Play()
  777. for i = 0.35,0.65 , 0.1 do
  778. rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.64085674, 0.201164246, 2.38418579e-07, 0.939692497, -0.342020154, 2.7474016e-08, 0.342020005, 0.939692378, -8.94069672e-08, -1.49011612e-08, 1.1920929e-07, 0.999999762) * CFrame.fromEulerAnglesXYZ(0.2,0,0),i)
  779. leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-1.60084724, 0.132367611, 0.0618722439, 0.939692557, 0.262002587, 0.219846293, -0.219846219, 0.955111742, -0.198565692, -0.262002587, 0.138258308, 0.955111921),i)
  780. rootweld.C0 = rootweld.C0:lerp(CFrame.new(0.0180921555, -0.590343475, 0.105676413, 0.999541819, -0.0301466491, -0.00267778337, 0.0292237774, 0.938346207, 0.344459206, -0.0078715831, -0.344379693, 0.938797355),i)
  781. headweld.C0 = headweld.C0:lerp(CFrame.new(9.53674316e-07, 1.49240351, 0.0868239403, 0.999999881, 2.32830644e-09, 2.09547579e-08, -2.09547579e-09, 0.984807611, -0.173648, 2.14204192e-08, 0.173647881, 0.984807551),i)
  782. runservice.Stepped:wait()
  783. end
  784. for i = 0,1 , 0.1 do
  785. damage(character["Right Arm"], "uppercut", 1.5, 2)
  786. rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.50000012, 1.00000048, -9.53674316e-07, 0.999999881, -1.1920929e-07, 9.12696123e-08, 1.1920929e-07, -0.999999702, -8.80099833e-08, -5.21540642e-08, 6.0768798e-08, -0.999999523),i)
  787. leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-1.68977165, 0.475360394, 0.153648376, 0.682796299, 0.696747243, 0.219846189, -0.667948365, 0.717228174, -0.198565692, -0.296030015, -0.0112660835, 0.955111802),i)
  788. rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 0.00488264859, 0.0593911037, 0.998222649, -0.184096873, 0.981225967, -0.0574793406, -0.98289597, -0.183489174, 0.0157247484),i)
  789. headweld.C0 = headweld.C0:lerp(CFrame.new(-0.0558092594, 1.49647284, 0.0200033188, 0.63302207, -0.11161878, -0.766044497, 0.0400089845, 0.992945373, -0.111618832, 0.773098826, 0.0400085226, 0.633021951),i)
  790. runservice.Stepped:wait()
  791. end
  792. attacknumber = 4
  793. elseif attacknumber == 4 then
  794. local rightlegweld = Instance.new("Weld", character.Torso)
  795. rightlegweld.Part0 = character.Torso
  796. rightlegweld.Part1 = character["Right Leg"]
  797. rightlegweld.C0 = CFrame.new(0.5,-2,0)
  798. rightlegweld.Name = "RightLegWeldpunch"
  799. local leftlegweld = Instance.new("Weld", character.Torso)
  800. leftlegweld.Part0 = character.Torso
  801. leftlegweld.Part1 = character["Left Leg"]
  802. leftlegweld.C0 = CFrame.new(-0.5,-2,0)
  803. leftlegweld.Name = "LeftLegWeldpunch"
  804. character:findFirstChildOfClass("Humanoid").WalkSpeed = character:findFirstChildOfClass("Humanoid").WalkSpeed - 10
  805. for i = 0,1 , 0.06 do
  806. rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(0.500000954, -1.86602545, -0.499999046, 1, -1.49011665e-08, 2.98023224e-08, -2.98023224e-08, 0.866025329, -0.5, 2.98023224e-08, 0.5, 0.866025448),i)
  807. leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.5, -0.999999523, 1, 1, -2.98023224e-08, -4.47034836e-08, -2.98023224e-08, -5.96046448e-08, 0.999999881, 2.98023224e-08, -1, -1.78813934e-07),i)
  808. rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.50000095, 0.250000477, 0.433013439, 1, -5.96046448e-08, -1.09083995e-08, -2.98023224e-08, 0.5, 0.866025388, 2.98023224e-08, -0.866025567, 0.49999997),i)
  809. leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-1.49999905, 0.75, -0.433012009, 1, 5.96046448e-08, 3.99276701e-09, -4.47034836e-08, -0.50000006, -0.866025388, 2.98023224e-08, 0.866025507, -0.50000006),i)
  810. rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 0.866025329, -0.250000119, 0.433012873, 0, 0.866025388, 0.5, -0.500000179, -0.433012664, 0.74999994),i)
  811. headweld.C0 = headweld.C0:lerp(CFrame.new(-0.0434112549, 1.49240398, 0.0751919746, 0.866025329, -0.0868241489, -0.492404073, -4.47034836e-08, 0.98480767, -0.173648179, 0.500000179, 0.150383696, 0.852868497),i)
  812. runservice.Stepped:wait()
  813. end
  814. swishsound.PlaybackSpeed = 1+(math.random(-3,5)/12)
  815. swishsound:Play()
  816. for i = 0,1 , 0.15 do
  817. damage(character["Left Leg"], "kick", 1.5, 3.5)
  818. rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(0.5, -1.93969274, 0.342020035, 1.00000024, -2.98023224e-08, 0, -1.49011612e-08, 0.939692557, 0.342019916, 0, -0.342019945, 0.939692676),i)
  819. leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.500000477, -0.826352119, -0.984807968, 1.00000024, 2.98023224e-08, 1.49011612e-08, -1.49011612e-08, -0.173648193, -0.984807611, 0, 0.98480767, -0.173648223),i)
  820. rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.50000095, 0.116978168, 0.321393967, 1.00000024, -1.49011612e-08, 2.98023224e-08, 2.98023224e-08, 0.766044378, 0.642787695, 0, -0.642787814, 0.766044557),i)
  821. leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-1.50000048, 0.116977692, 0.321393013, 1.00000024, -1.49011612e-08, 0, -1.49011612e-08, 0.766044438, 0.642787576, 0, -0.642787576, 0.766044497),i)
  822. rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 0.766044676, -0.111618795, -0.63302207, -1.68030141e-07, 0.98480773, -0.173648238, 0.642787516, 0.133022398, 0.754406631),i)
  823. headweld.C0 = headweld.C0:lerp(CFrame.new(-0.0525569916, 1.49498224, -0.0472278595, 0.663642108, -0.105113029, 0.74062866, -0.000909253955, 0.989964247, 0.141314477, -0.748049736, -0.0944556296, 0.656886339),i)
  824. runservice.Stepped:wait()
  825. end
  826. coroutine.wrap(function()
  827. for i = 0,1 ,0.07 do
  828. leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.5,-2,0),i)
  829. rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(0.5,-2,0),i)
  830. runservice.Stepped:wait()
  831. end
  832. leftlegweld:destroy()
  833. rightlegweld:destroy()
  834. character:findFirstChildOfClass("Humanoid").WalkSpeed = character:findFirstChildOfClass("Humanoid").WalkSpeed + 10
  835. end)()
  836. attacknumber = 1
  837. end
  838. if mouseclick then
  839. coroutine.wrap(function()
  840. local humhp = character:findFirstChildOfClass("Humanoid").Health
  841. while runservice.Stepped:wait() and mouseclick do
  842. cananimate = false
  843. if character:findFirstChildOfClass("Humanoid").Health < humhp then
  844. character:findFirstChildOfClass("Humanoid").PlatformStand = false
  845. character:findFirstChildOfClass("Humanoid").Health = character:findFirstChildOfClass("Humanoid").Health + (humhp-character:findFirstChildOfClass("Humanoid").Health)
  846. character:findFirstChildOfClass("Humanoid").WalkSpeed = 16
  847. basssound.TimePosition = 1.525
  848. blocksound:Play()
  849. basssound:Play()
  850. coroutine.wrap(function()
  851. local thehpp = character:findFirstChildOfClass("Humanoid").Health
  852. for i = 1,20 do
  853. character:findFirstChildOfClass("Humanoid").Health = thehpp
  854. runservice.Stepped:wait()
  855. end
  856. end)()
  857. local nearestdistance = math.huge
  858. local nearestplr = nil
  859. for i,v in pairs(workspace:GetDescendants()) do
  860. if v.ClassName == "Model" and v ~= character then
  861. local headdw = v:findFirstChild("Head")
  862. local humanoiddw = v:findFirstChildOfClass("Humanoid")
  863. if humanoiddw and headdw then
  864. if (headdw.Position - character.Head.Position).magnitude < 10 and (headdw.Position - character.Head.Position).magnitude < nearestdistance then
  865. nearestdistance = (headdw.Position - character.Head.Position).magnitude
  866. nearestplr = v
  867. end
  868. end
  869. end
  870. end
  871. if nearestplr ~= nil then
  872. character.Head.CFrame = CFrame.new(character.Head.Position, nearestplr.Head.Position)
  873. nearestplr.Head.CFrame = CFrame.new(nearestplr.Head.Position, character.Head.Position)
  874. local noon = Instance.new("BodyVelocity", nearestplr.Head)
  875. noon.MaxForce = Vector3.new(math.huge,0,math.huge)
  876. noon.Velocity = nearestplr.Head.CFrame.lookVector * -math.random(15,25)
  877. game.Debris:AddItem(noon, 0.2)
  878. damage(nearestplr.Head, "blocked", 3, 0.5)
  879. end
  880. local velocity = Instance.new("BodyVelocity", character.Head)
  881. velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
  882. velocity.Velocity = character.Head.CFrame.lookVector * -math.random(10,15)
  883. game.Debris:AddItem(velocity, 0.2)
  884. break
  885. end
  886. rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 0.999663353, 0.0246764347, 0.00799234211, -0.0226141848, 0.980059326, -0.19741419, -0.0127044618, 0.197166979, 0.980287552) * CFrame.fromEulerAnglesXYZ(math.sin(tick())/20,0,0),0.3)
  887. leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-0.0263385773, 0.920211315, -1.15523124, 0.76604414, -0.642787278, 7.17118382e-08, -0.604022741, -0.719846249, -0.342020154, 0.219846427, 0.262002707, -0.939692557) * CFrame.new(0,math.cos(tick())/20,0),0.3)
  888. headweld.C0 = headweld.C0:lerp(CFrame.new(-9.53674316e-07, 1.49240446, -0.0868245959, 0.999999642, -1.33004505e-08, -1.58324838e-08, -1.51339918e-08, 0.98480773, 0.173648581, -1.3038516e-08, -0.1736487, 0.984807611) * CFrame.fromEulerAnglesXYZ(-math.sin(tick())/20,0,0),0.3)
  889. rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(0.0363903046, 0.923784733, -1.1914165, 0.721851647, 0.684478879, -0.102069058, 0.613821924, -0.701371074, -0.362355202, -0.319613039, 0.198914632, -0.926434338) * CFrame.new(0,math.cos(tick())/20,0),0.3)
  890. humhp = character:findFirstChildOfClass("Humanoid").Health
  891. end
  892. cananimate = true
  893. canattack = true
  894. end)()
  895. else
  896. canattack = true
  897. cananimate = true
  898. end
  899. end
  900. end
  901. end)
  902. --
  903. tool.Equipped:connect(function()
  904. equipped = true
  905. owner = game:GetService("Players"):GetPlayerFromCharacter(tool.Parent)
  906. character = owner.Character
  907. local rightarm = Instance.new("Weld", character.Torso)
  908. rightarm.Part0 = character.Torso
  909. rightarm.Part1 = character["Right Arm"]
  910. rightarm.C0 = CFrame.new(1.5,0,0)
  911. rightarm.Name = "RightArmWeldpunch"
  912. local leftarm = Instance.new("Weld", character.Torso)
  913. leftarm.Part0 = character.Torso
  914. leftarm.Part1 = character["Left Arm"]
  915. leftarm.C0 = CFrame.new(-1.5,0,0)
  916. leftarm.Name = "LeftArmWeldpunch"
  917. local head = Instance.new("Weld", character.Torso)
  918. head.Part0 = character.Torso
  919. head.Part1 = character.Head
  920. head.C0 = CFrame.new(0,1.5,0)
  921. head.Name = "HeadWeldpunch"
  922. local humanoidrootpart = Instance.new("Weld", character.HumanoidRootPart)
  923. humanoidrootpart.Part0 = character.HumanoidRootPart
  924. humanoidrootpart.Part1 = character.Torso
  925. humanoidrootpart.Name = "HumanoidRootPartWeldpunch"
  926. for i,v in pairs(script:GetChildren()) do
  927. if v.ClassName == "Sound" then
  928. v.Parent = character.HumanoidRootPart
  929. end
  930. end
  931. cananimate = true
  932. local savedchar = character
  933. local lasthp = character:findFirstChildOfClass("Humanoid").Health
  934. coroutine.wrap(function()
  935. local humhp = character:findFirstChildOfClass("Humanoid").Health
  936. while runservice.Stepped:wait() and equipped do
  937. if character:findFirstChildOfClass("Humanoid").Health < humhp then
  938. local thedamage = humhp - character:findFirstChildOfClass("Humanoid").Health
  939. character:findFirstChildOfClass("Humanoid").Health = character:findFirstChildOfClass("Humanoid").Health + thedamage/2.5
  940. end
  941. if cananimate then
  942. head.C0 = head.C0:lerp(CFrame.new(0,1.5,0),0.1)
  943. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(),0.2)
  944. leftarm.C0 = leftarm.C0:lerp(CFrame.new(-0.8,0.15,-0.5) * CFrame.fromEulerAnglesXYZ(math.pi-(math.rad(20)),0,math.rad(15)) * CFrame.new(0,-0.5,0),0.2)
  945. rightarm.C0 = rightarm.C0:lerp(CFrame.new(0.8,0.15,-0.5) * CFrame.fromEulerAnglesXYZ(math.pi-(math.rad(20)),0,math.rad(-15)) * CFrame.new(0,-0.5,0),0.2)
  946. end
  947. humhp = character:findFirstChildOfClass("Humanoid").Health
  948. end
  949. end)()
  950. end)
  951. tool.Unequipped:connect(function()
  952. equipped = false
  953. instancewhitelist = {}
  954. mouseclick = false
  955. cananimate = false
  956. for i,v in pairs(character.HumanoidRootPart:GetChildren()) do
  957. if v.ClassName == "Sound" then
  958. v.Parent = script
  959. end
  960. end
  961. if character.Torso:findFirstChild("LeftArmWeldpunch") then
  962. character.Torso:findFirstChild("LeftArmWeldpunch"):destroy()
  963. end
  964. if character.Torso:findFirstChild("RightArmWeldpunch") then
  965. character.Torso:findFirstChild("RightArmWeldpunch"):destroy()
  966. end
  967. if character.Torso:findFirstChild("HeadWeldpunch") then
  968. character.Torso:findFirstChild("HeadWeldpunch"):destroy()
  969. end
  970. if character:findFirstChild("HumanoidRootPart") then
  971. if character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldpunch") then
  972. character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldpunch"):destroy()
  973. end
  974. end
  975. end)
  976.  
  977. end))
  978. Sound1 = Instance.new("Sound")
  979. Sound1.SoundId = "rbxassetid://1382488262"
  980. Sound1.Parent = Script1
  981. Sound1.Volume = 5
  982. Sound1.Looped = true
  983. Sound1.Playing = true
  984. Sound2.Name = "Kick"
  985. Sound2.Parent = Script1
  986. Sound2.SoundId = "rbxassetid://542443306"
  987. Sound3.Name = "Swoosh"
  988. Sound3.Parent = Script1
  989. Sound3.SoundId = "rbxassetid://1489705211"
  990. Sound3.Volume = 0.69999998807907
  991. Sound4.Name = "Punch"
  992. Sound4.Parent = Script1
  993. Sound4.SoundId = "rbxassetid://3932505023"
  994. Sound5.Name = "Bass"
  995. Sound5.Parent = Script1
  996. Sound5.SoundId = "rbxassetid://2487714799"
  997. Sound5.Volume = 1
  998. Sound6.Name = "Ouch"
  999. Sound6.Parent = Script1
  1000. Sound6.SoundId = "rbxassetid://4306991962"
  1001. Sound7.Name = "Block"
  1002. Sound7.Parent = Script1
  1003. Sound7.SoundId = "rbxassetid://4306994664"
  1004. for i,v in pairs(mas:GetChildren()) do
  1005. v.Parent = owner.Character
  1006. pcall(function() v:MakeJoints() end)
  1007. end
  1008. mas:Destroy()
  1009. for i,v in pairs(cors) do
  1010. spawn(function()
  1011. pcall(v)
  1012. end)
  1013. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement