Advertisement
DrawingJhon

Hand fight (FE)

Dec 22nd, 2020
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 54.06 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6.     print("FE Compatibility code V2 by Mokiros")
  7.     local RealPlayer = RealPlayer
  8.     script.Parent = RealPlayer.Character
  9.  
  10.     --Fake event to make stuff like Mouse.KeyDown work
  11.     local Disconnect_Function = function(this)
  12.         this[1].Functions[this[2]] = nil
  13.     end
  14.     local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15.     local FakeEvent_Metatable = {__index={
  16.         Connect = function(this,f)
  17.             local i = tostring(math.random(0,10000))
  18.             while this.Functions[i] do
  19.                 i = tostring(math.random(0,10000))
  20.             end
  21.             this.Functions[i] = f
  22.             return setmetatable({this,i},Disconnect_Metatable)
  23.         end
  24.     }}
  25.     FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26.     local function fakeEvent()
  27.         return setmetatable({Functions={}},FakeEvent_Metatable)
  28.     end
  29.  
  30.     --Creating fake input objects with fake variables
  31.     local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32.     FakeMouse.keyUp = FakeMouse.KeyUp
  33.     FakeMouse.keyDown = FakeMouse.KeyDown
  34.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37.     end}
  38.     --Merged 2 functions into one by checking amount of arguments
  39.     CAS.UnbindAction = CAS.BindAction
  40.  
  41.     --This function will trigger the events that have been :Connect()'ed
  42.     local function TriggerEvent(self,ev,...)
  43.         for _,f in pairs(self[ev].Functions) do
  44.             f(...)
  45.         end
  46.     end
  47.     FakeMouse.TriggerEvent = TriggerEvent
  48.     UIS.TriggerEvent = TriggerEvent
  49.  
  50.     --Client communication
  51.     local Event = Instance.new("RemoteEvent")
  52.     Event.Name = "UserInput_Event"
  53.     Event.OnServerEvent:Connect(function(plr,io)
  54.         if plr~=RealPlayer then return end
  55.         FakeMouse.Target = io.Target
  56.         FakeMouse.Hit = io.Hit
  57.         if not io.isMouse then
  58.             local b = io.UserInputState == Enum.UserInputState.Begin
  59.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60.                 return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61.             end
  62.             if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63.                 return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64.             end
  65.             for _,t in pairs(CAS.Actions) do
  66.                 for _,k in pairs(t.Keys) do
  67.                     if k==io.KeyCode then
  68.                         t.Function(t.Name,io.UserInputState,io)
  69.                     end
  70.                 end
  71.             end
  72.             FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73.             UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74.         end
  75.     end)
  76.     Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77.     local Mouse = owner:GetMouse()
  78.     local UIS = game:GetService("UserInputService")
  79.     local input = function(io,RobloxHandled)
  80.         if RobloxHandled then return end
  81.         --Since InputObject is a client-side instance, we create and pass table instead
  82.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83.     end
  84.     UIS.InputBegan:Connect(input)
  85.     UIS.InputEnded:Connect(input)
  86.     local h,t
  87.     --Give the server mouse data every second frame, but only if the values changed
  88.     --If player is not moving their mouse, client won't fire events
  89.     local HB = game:GetService("RunService").Heartbeat
  90.     while true do
  91.         if h~=Mouse.Hit or t~=Mouse.Target then
  92.             h,t=Mouse.Hit,Mouse.Target
  93.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  94.         end
  95.         --Wait 2 frames
  96.         for i=1,2 do
  97.             HB:Wait()
  98.         end
  99.     end]==],script)
  100.  
  101.     ----Sandboxed game object that allows the usage of client-side methods and services
  102.     --Real game object
  103.     local RealGame = game
  104.  
  105.     --Metatable for fake service
  106.     local FakeService_Metatable = {
  107.         __index = function(self,k)
  108.             local s = rawget(self,"_RealService")
  109.             if s then
  110.                 return typeof(s[k])=="function"
  111.                 and function(_,...)return s[k](s,...)end or s[k]
  112.             end
  113.         end,
  114.         __newindex = function(self,k,v)
  115.             local s = rawget(self,"_RealService")
  116.             if s then s[k]=v end
  117.         end
  118.     }
  119.     local function FakeService(t,RealService)
  120.         t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  121.         return setmetatable(t,FakeService_Metatable)
  122.     end
  123.  
  124.     --Fake game object
  125.     local FakeGame = {
  126.         GetService = function(self,s)
  127.             return rawget(self,s) or RealGame:GetService(s)
  128.         end,
  129.         Players = FakeService({
  130.             LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  131.         },"Players"),
  132.         UserInputService = FakeService(UIS,"UserInputService"),
  133.         ContextActionService = FakeService(CAS,"ContextActionService"),
  134.         RunService = FakeService({
  135.             _btrs = {},
  136.             RenderStepped = RealGame:GetService("RunService").Heartbeat,
  137.             BindToRenderStep = function(self,name,_,fun)
  138.                 self._btrs[name] = self.Heartbeat:Connect(fun)
  139.             end,
  140.             UnbindFromRenderStep = function(self,name)
  141.                 self._btrs[name]:Disconnect()
  142.             end,
  143.         },"RunService")
  144.     }
  145.     rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  146.     FakeGame.service = FakeGame.GetService
  147.     FakeService(FakeGame,game)
  148.     --Changing owner to fake player object to support owner:GetMouse()
  149.     game,owner = FakeGame,FakeGame.Players.LocalPlayer
  150. end
  151. -----------------------------------------------------------------------
  152. --By Rufus14
  153. --Converted with ttyyuu12345's model to script plugin v4
  154. function sandbox(var,func)
  155.     local env = getfenv(func)
  156.     local newenv = setmetatable({},{
  157.         __index = function(self,k)
  158.             if k=="script" then
  159.                 return var
  160.             else
  161.                 return env[k]
  162.             end
  163.         end,
  164.     })
  165.     setfenv(func,newenv)
  166.     return func
  167. end
  168. cors = {}
  169. mas = Instance.new("Model",game:GetService("Lighting"))
  170. Tool0 = Instance.new("Tool")
  171. Script1 = Instance.new("Script")
  172. Sound2 = Instance.new("Sound")
  173. Sound3 = Instance.new("Sound")
  174. Sound4 = Instance.new("Sound")
  175. Sound5 = Instance.new("Sound")
  176. Sound6 = Instance.new("Sound")
  177. Sound7 = Instance.new("Sound")
  178. Tool0.Name = "Combat"
  179. Tool0.Parent = mas
  180. Tool0.CanBeDropped = false
  181. Tool0.Grip = CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  182. Tool0.GripForward = Vector3.new(-1, -0, -0)
  183. Tool0.GripPos = Vector3.new(0, 0, -1.70000005)
  184. Tool0.GripRight = Vector3.new(0, 1, 0)
  185. Tool0.GripUp = Vector3.new(0, 0, 1)
  186. Tool0.RequiresHandle = false
  187. Tool0.ToolTip = "Hold left mouse button to block, jump and attack for a drop kick."
  188. Script1.Parent = Tool0
  189. table.insert(cors,sandbox(Script1,function()
  190. --By Rufus14
  191. canattack = true
  192. cananimate = false
  193. equipped = false
  194. tool = script.Parent
  195. swishsound = script.Swoosh
  196. blocksound = script.Block
  197. punchsound = script.Punch
  198. kicksound = script.Kick
  199. goresound = script.Ouch
  200. basssound = script.Bass
  201. owner = nil
  202. character = nil
  203. mouseclick = false
  204. attacknumber = 1
  205. instancewhitelist = {}
  206. runservice = game:GetService("RunService")
  207. --
  208. tool.Activated:connect(function()
  209.     mouseclick = true
  210. end)
  211. tool.Deactivated:connect(function()
  212.     mouseclick = false
  213. end)
  214. --
  215. function ragdollkill(character)
  216.     local victimshumanoid = character:findFirstChildOfClass("Humanoid")
  217.     local checkragd = character:findFirstChild("ragded")
  218.     if not checkragd then
  219.         local boolvalue = Instance.new("BoolValue", character)
  220.         boolvalue.Name = "ragded"
  221.         if not 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.             for i,v in pairs(ragdoll:GetDescendants()) do
  235.                 if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
  236.                     v:destroy()
  237.                 end
  238.             end
  239.             ragdoll:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
  240.             ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  241.             if ragdoll:findFirstChild("Health") then
  242.                 if ragdoll:findFirstChild("Health").ClassName == "Script" then
  243.                     ragdoll:findFirstChild("Health").Disabled = true
  244.                 end
  245.             end
  246.             for i,v in pairs(character:GetChildren()) do
  247.                 if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
  248.                     v:destroy()
  249.                 end
  250.             end
  251.             for i,v in pairs(character:GetChildren()) do
  252.                 if v.ClassName == "Accessory" then
  253.                     local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  254.                     if attachment1 then
  255.                         for q,w in pairs(character:GetChildren()) do
  256.                             if w.ClassName == "Part" then
  257.                                 local attachment2 = w:findFirstChild(attachment1.Name)
  258.                                 if attachment2 then
  259.                                     local hinge = Instance.new("HingeConstraint", v.Handle)
  260.                                     hinge.Attachment0 = attachment1
  261.                                     hinge.Attachment1 = attachment2
  262.                                     hinge.LimitsEnabled = true
  263.                                     hinge.LowerAngle = 0
  264.                                     hinge.UpperAngle = 0
  265.                                 end
  266.                             end
  267.                         end
  268.                     end
  269.                 end
  270.             end
  271.             ragdoll.Parent = workspace
  272.             if ragdoll:findFirstChild("Right Arm") then
  273.                 local glue = Instance.new("Glue", ragdoll.Torso)
  274.                 glue.Part0 = ragdoll.Torso
  275.                 glue.Part1 = ragdoll:findFirstChild("Right Arm")
  276.                 glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  277.                 glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  278.                 local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
  279.                 limbcollider.Size = Vector3.new(1.4,1,1)
  280.                 limbcollider.Shape = "Cylinder"
  281.                 limbcollider.Transparency = 1
  282.                 limbcollider.Name = "LimbCollider"
  283.                 local limbcolliderweld = Instance.new("Weld", limbcollider)
  284.                 limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
  285.                 limbcolliderweld.Part1 = limbcollider
  286.                 limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  287.             end
  288.             if ragdoll:findFirstChild("Left Arm") then
  289.                 local glue = Instance.new("Glue", ragdoll.Torso)
  290.                 glue.Part0 = ragdoll.Torso
  291.                 glue.Part1 = ragdoll:findFirstChild("Left Arm")
  292.                 glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  293.                 glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  294.                 local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
  295.                 limbcollider.Size = Vector3.new(1.4,1,1)
  296.                 limbcollider.Shape = "Cylinder"
  297.                 limbcollider.Name = "LimbCollider"
  298.                 limbcollider.Transparency = 1
  299.                 local limbcolliderweld = Instance.new("Weld", limbcollider)
  300.                 limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")
  301.                 limbcolliderweld.Part1 = limbcollider
  302.                 limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  303.             end
  304.             if ragdoll:findFirstChild("Left Leg") then
  305.                 local glue = Instance.new("Glue", ragdoll.Torso)
  306.                 glue.Part0 = ragdoll.Torso
  307.                 glue.Part1 = ragdoll:findFirstChild("Left Leg")
  308.                 glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  309.                 glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  310.                 local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
  311.                 limbcollider.Size = Vector3.new(1.4,1,1)
  312.                 limbcollider.Shape = "Cylinder"
  313.                 limbcollider.Name = "LimbCollider"
  314.                 limbcollider.Transparency = 1
  315.                 local limbcolliderweld = Instance.new("Weld", limbcollider)
  316.                 limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
  317.                 limbcolliderweld.Part1 = limbcollider
  318.                 limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  319.             end
  320.             if ragdoll:findFirstChild("Right Leg") then
  321.                 local glue = Instance.new("Glue", ragdoll.Torso)
  322.                 glue.Part0 = ragdoll.Torso
  323.                 glue.Part1 = ragdoll:findFirstChild("Right Leg")
  324.                 glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  325.                 glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  326.                 local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
  327.                 limbcollider.Size = Vector3.new(1.4,1,1)
  328.                 limbcollider.Shape = "Cylinder"
  329.                 limbcollider.Name = "LimbCollider"
  330.                 limbcollider.Transparency = 1
  331.                 local limbcolliderweld = Instance.new("Weld", limbcollider)
  332.                 limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
  333.                 limbcolliderweld.Part1 = limbcollider
  334.                 limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  335.             end
  336.             if ragdoll:findFirstChild("Head") and ragdoll.Torso:findFirstChild("NeckAttachment") then
  337.                 local HeadAttachment = Instance.new("Attachment", ragdoll["Head"])
  338.                 HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  339.                 local connection = Instance.new('HingeConstraint', ragdoll["Head"])
  340.                 connection.LimitsEnabled = true
  341.                 connection.Attachment0 = ragdoll.Torso.NeckAttachment
  342.                 connection.Attachment1 = HeadAttachment
  343.                 connection.UpperAngle = 60
  344.                 connection.LowerAngle = -60
  345.             elseif ragdoll:findFirstChild("Head") and not ragdoll.Torso:findFirstChild("NeckAttachment") then
  346.                 local hedweld = Instance.new("Weld", ragdoll.Torso)
  347.                 hedweld.Part0 = ragdoll.Torso
  348.                 hedweld.Part1 = ragdoll.Head
  349.                 hedweld.C0 = CFrame.new(0,1.5,0)
  350.             end
  351.             game.Debris:AddItem(ragdoll, 30)
  352.             local function aaaalol()
  353.                 wait(0.2)
  354.                 local function searchforvelocity(wot)
  355.                     for i,v in pairs(wot:GetChildren()) do
  356.                         searchforvelocity(v)
  357.                         if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  358.                             v:destroy()
  359.                         end
  360.                     end
  361.                 end
  362.                 searchforvelocity(ragdoll)
  363.                 wait(0.5)
  364.                 if ragdoll:findFirstChildOfClass("Humanoid") then
  365.                     ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  366.                 end
  367.                 if ragdoll:findFirstChild("HumanoidRootPart") then
  368.                     ragdoll:findFirstChild("HumanoidRootPart"):destroy()
  369.                 end
  370.             end
  371.             spawn(aaaalol)
  372.         elseif character:findFirstChild("UpperTorso") then
  373.             character.Archivable = true
  374.             for i,v in pairs(character:GetChildren()) do
  375.                 if v.ClassName == "Sound" then
  376.                     v:remove()
  377.                 end
  378.                 for q,w in pairs(v:GetChildren()) do
  379.                     if w.ClassName == "Sound" then
  380.                         w:remove()
  381.                     end
  382.                 end
  383.             end
  384.             local ragdoll = character:Clone()
  385.             ragdoll:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
  386.             for i,v in pairs(ragdoll:GetDescendants()) do
  387.                 if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
  388.                     v:destroy()
  389.                 end
  390.             end
  391.             ragdoll:BreakJoints()
  392.             ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  393.             if ragdoll:findFirstChild("Health") then
  394.                 if ragdoll:findFirstChild("Health").ClassName == "Script" then
  395.                     ragdoll:findFirstChild("Health").Disabled = true
  396.                 end
  397.             end
  398.             for i,v in pairs(character:GetChildren()) do
  399.                 if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
  400.                     v:destroy()
  401.                 end
  402.             end
  403.             for i,v in pairs(character:GetChildren()) do
  404.                 if v.ClassName == "Accessory" then
  405.                     local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  406.                     if attachment1 then
  407.                         for q,w in pairs(character:GetChildren()) do
  408.                             if w.ClassName == "Part" or w.ClassName == "MeshPart" then
  409.                                 local attachment2 = w:findFirstChild(attachment1.Name)
  410.                                 if attachment2 then
  411.                                     local hinge = Instance.new("HingeConstraint", v.Handle)
  412.                                     hinge.Attachment0 = attachment1
  413.                                     hinge.Attachment1 = attachment2
  414.                                     hinge.LimitsEnabled = true
  415.                                     hinge.LowerAngle = 0
  416.                                     hinge.UpperAngle = 0
  417.                                 end
  418.                             end
  419.                         end
  420.                     end
  421.                 end
  422.             end
  423.             ragdoll.Parent = workspace
  424.             local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
  425.             Humanoid.PlatformStand = true
  426.             local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  427.                 local connection = Instance.new('BallSocketConstraint', limb)
  428.                 connection.LimitsEnabled = true
  429.                 connection.Attachment0 = attachementone
  430.                 connection.Attachment1 = attachmenttwo
  431.                 connection.TwistLimitsEnabled = true
  432.                 connection.TwistLowerAngle = twistlower
  433.                 connection.TwistUpperAngle = twistupper
  434.                 local limbcollider = Instance.new("Part", limb)
  435.                 limbcollider.Size = Vector3.new(0.1,1,1)
  436.                 limbcollider.Shape = "Cylinder"
  437.                 limbcollider.Transparency = 1
  438.                 limbcollider:BreakJoints()
  439.                 local limbcolliderweld = Instance.new("Weld", limbcollider)
  440.                 limbcolliderweld.Part0 = limb
  441.                 limbcolliderweld.Part1 = limbcollider
  442.                 limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  443.             end
  444.             local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  445.                 local connection = Instance.new('HingeConstraint', limb)
  446.                 connection.LimitsEnabled = true
  447.                 connection.Attachment0 = attachementone
  448.                 connection.Attachment1 = attachmenttwo
  449.                 connection.LimitsEnabled = true
  450.                 connection.LowerAngle = lower
  451.                 connection.UpperAngle = upper
  452.                 local limbcollider = Instance.new("Part", limb)
  453.                 limbcollider.Size = Vector3.new(0.1,1,1)
  454.                 limbcollider.Shape = "Cylinder"
  455.                 limbcollider.Transparency = 1
  456.                 limbcollider:BreakJoints()
  457.                 local limbcolliderweld = Instance.new("Weld", limbcollider)
  458.                 limbcolliderweld.Part0 = limb
  459.                 limbcolliderweld.Part1 = limbcollider
  460.                 limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  461.             end
  462.             local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  463.             HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  464.             if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
  465.                 makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  466.             end
  467.             makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  468.             makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  469.             makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  470.             makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  471.             --
  472.             makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  473.             makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  474.             makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  475.             --
  476.             makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  477.             makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  478.             makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  479.             --
  480.             makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  481.             makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  482.             makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  483.             for i,v in pairs(Humanoid.Parent:GetChildren()) do
  484.                 if v.ClassName == "Accessory" then
  485.                     local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  486.                     if attachment1 then
  487.                         for q,w in pairs(Humanoid.Parent:GetChildren()) do
  488.                             if w.ClassName == "Part" then
  489.                                 local attachment2 = w:findFirstChild(attachment1.Name)
  490.                                 if attachment2 then
  491.                                     local hinge = Instance.new("HingeConstraint", v.Handle)
  492.                                     hinge.Attachment0 = attachment1
  493.                                     hinge.Attachment1 = attachment2
  494.                                     hinge.LimitsEnabled = true
  495.                                     hinge.LowerAngle = 0
  496.                                     hinge.UpperAngle = 0
  497.                                 end
  498.                             end
  499.                         end
  500.                     end
  501.                 end
  502.             end
  503.             for i,v in pairs(ragdoll:GetChildren()) do
  504.                 for q,w in pairs(v:GetChildren()) do
  505.                     if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "ouch_weld" then
  506.                         w:destroy()
  507.                     end
  508.                 end
  509.             end
  510.             if ragdoll:findFirstChild("HumanoidRootPart") then
  511.                 ragdoll.HumanoidRootPart:destroy()
  512.             end
  513.             if ragdoll:findFirstChildOfClass("Humanoid") then
  514.                 ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  515.             end
  516.             local function waitfordatmoment()
  517.                 wait(0.2)
  518.                 local function searchforvelocity(wot)
  519.                     for i,v in pairs(wot:GetChildren()) do
  520.                         searchforvelocity(v)
  521.                         if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  522.                             v:destroy()
  523.                         end
  524.                     end
  525.                 end
  526.                 searchforvelocity(ragdoll)
  527.             end
  528.             spawn(waitfordatmoment)
  529.             game.Debris:AddItem(ragdoll, 30)
  530.         end
  531.     end
  532. end
  533. function damage(what, action, t, range)
  534.     for i,v in pairs(workspace:GetDescendants()) do
  535.         if v.ClassName == "Model" then
  536.             local head = v:findFirstChild("Head")
  537.             local humanoid = v:findFirstChildOfClass("Humanoid")
  538.             local torso = v:findFirstChild("Torso")
  539.             local ragdolled = v:findFirstChild("ragdolledpunch")
  540.             if humanoid and head then
  541.                 if (head.Position - what.Position).magnitude < range and v ~= character and humanoid.Health > 0 then
  542.                     if action ~= "stomp" then
  543.                         if ragdolled then
  544.                             return
  545.                         end
  546.                     end
  547.                     local ragdolledpunch = Instance.new("BoolValue", v)
  548.                     ragdolledpunch.Name = "ragdolledpunch"
  549.                     game.Debris:AddItem(ragdolledpunch, t)
  550.                     if action == "punch" then
  551.                         local velocity = Instance.new("BodyVelocity", head)
  552.                         velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
  553.                         velocity.Velocity = character.HumanoidRootPart.CFrame.lookVector * math.random(5,15)
  554.                         punchsound.PlaybackSpeed = 1+(math.random(-5,5)/15)
  555.                         punchsound:Play()
  556.                         game.Debris:AddItem(velocity, 0.2)
  557.                     elseif action == "uppercut" then
  558.                         local velocity = Instance.new("BodyVelocity", head)
  559.                         velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  560.                         velocity.Velocity = (character.HumanoidRootPart.CFrame.upVector * math.random(5,15)) + (character.HumanoidRootPart.CFrame.lookVector * math.random(5,15))
  561.                         kicksound.PlaybackSpeed = 1+(math.random(-5,5)/15)
  562.                         kicksound:Play()
  563.                         game.Debris:AddItem(velocity, 0.2)
  564.                     elseif action == "kick" then
  565.                         local velocity = Instance.new("BodyVelocity", head)
  566.                         velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
  567.                         velocity.Velocity = character.HumanoidRootPart.CFrame.lookVector * 20
  568.                         goresound.PlaybackSpeed = 1+(math.random(-5,5)/15)
  569.                         goresound:Play()
  570.                         game.Debris:AddItem(velocity, 0.2)
  571.                     elseif action == "dropkick" then
  572.                         local velocity = Instance.new("BodyVelocity", head)
  573.                         velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
  574.                         velocity.Velocity = character.HumanoidRootPart.CFrame.lookVector * 30
  575.                         kicksound.PlaybackSpeed = 1+(math.random(-5,5)/15)
  576.                         kicksound:Play()
  577.                         goresound.PlaybackSpeed = 1+(math.random(-5,5)/15)
  578.                         goresound:Play()
  579.                         game.Debris:AddItem(velocity, 0.2)
  580.                     elseif action == "stomp" then
  581.                         punchsound.PlaybackSpeed = 1+(math.random(-5,5)/15)
  582.                         punchsound:Play()
  583.                     end
  584.                     if action ~= "blocked" then
  585.                         local dmg = math.random(30,50)
  586.                         if action == "uppercut" then
  587.                             dmg = dmg + math.random(20,30)
  588.                         elseif action == "kick" then
  589.                             dmg = dmg + math.random(40,50)
  590.                         elseif action == "dropkick" then
  591.                             dmg = dmg + math.random(50,90)
  592.                         end
  593.                         if humanoid.Health <= dmg then
  594.                             humanoid.Health = 0
  595.                             ragdollkill(v)
  596.                         end
  597.                         humanoid.Health = humanoid.Health - dmg
  598.                     end
  599.                     if action ~= "blocked" and action ~= "uppercut" and action ~= "kick" and action ~= "dropkick" then
  600.                         if math.random(1,5) ~= 1 then
  601.                             return
  602.                         end
  603.                     end
  604.                     if action == "stomp" then
  605.                         return
  606.                     end
  607.                     humanoid.PlatformStand = true
  608.                     coroutine.wrap(function()
  609.                         wait(t)
  610.                         humanoid.PlatformStand = false
  611.                     end)()
  612.                     if torso then
  613.                         coroutine.wrap(function()
  614.                             humanoid = v:WaitForChild("Humanoid")
  615.                             local ragdoll = v
  616.                             if ragdoll:findFirstChild("Right Arm") then
  617.                                 local glue = Instance.new("Glue", ragdoll.Torso)
  618.                                 glue.Part0 = ragdoll.Torso
  619.                                 glue.Part1 = ragdoll:findFirstChild("Right Arm")
  620.                                 glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  621.                                 glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  622.                                 local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Arm"))
  623.                                 limbcollider.Size = Vector3.new(1.4,1,1)
  624.                                 limbcollider.Shape = "Cylinder"
  625.                                 limbcollider.Transparency = 1
  626.                                 limbcollider.Name = "LimbCollider"
  627.                                 local limbcolliderweld = Instance.new("Weld", limbcollider)
  628.                                 limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Arm")
  629.                                 limbcolliderweld.Part1 = limbcollider
  630.                                 limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  631.                                 coroutine.wrap(function()
  632.                                     if ragdoll.Torso:findFirstChild("Right Shoulder") then
  633.                                         local limbclone = ragdoll.Torso:findFirstChild("Right Shoulder"):Clone()
  634.                                         ragdoll.Torso:findFirstChild("Right Shoulder"):destroy()
  635.                                         coroutine.wrap(function()
  636.                                             wait(t)
  637.                                             limbclone.Parent = ragdoll.Torso
  638.                                             limbclone.Part0 = ragdoll.Torso
  639.                                             limbclone.Part1 = ragdoll["Right Arm"]
  640.                                         end)()
  641.                                     end
  642.                                     wait(t)
  643.                                     glue:destroy()
  644.                                     limbcollider:destroy()
  645.                                     limbcolliderweld:destroy()
  646.                                 end)()
  647.                             end
  648.                             if ragdoll:findFirstChild("Left Arm") then
  649.                                 local glue = Instance.new("Glue", ragdoll.Torso)
  650.                                 glue.Part0 = ragdoll.Torso
  651.                                 glue.Part1 = ragdoll:findFirstChild("Left Arm")
  652.                                 glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  653.                                 glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  654.                                 local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Arm"))
  655.                                 limbcollider.Size = Vector3.new(1.4,1,1)
  656.                                 limbcollider.Shape = "Cylinder"
  657.                                 limbcollider.Name = "LimbCollider"
  658.                                 limbcollider.Transparency = 1
  659.                                 local limbcolliderweld = Instance.new("Weld", limbcollider)
  660.                                 limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Arm")        
  661.                                 limbcolliderweld.Part1 = limbcollider
  662.                                 limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  663.                                 coroutine.wrap(function()
  664.                                     if ragdoll.Torso:findFirstChild("Left Shoulder") then
  665.                                         local limbclone = ragdoll.Torso:findFirstChild("Left Shoulder"):Clone()
  666.                                         ragdoll.Torso:findFirstChild("Left Shoulder"):destroy()
  667.                                         coroutine.wrap(function()
  668.                                             wait(t)
  669.                                             limbclone.Parent = ragdoll.Torso
  670.                                             limbclone.Part0 = ragdoll.Torso
  671.                                             limbclone.Part1 = ragdoll["Left Arm"]
  672.                                         end)()
  673.                                     end
  674.                                     wait(t)
  675.                                     glue:destroy()
  676.                                     limbcollider:destroy()
  677.                                     limbcolliderweld:destroy()
  678.                                 end)()
  679.                             end
  680.                             if ragdoll:findFirstChild("Left Leg") then
  681.                                 local glue = Instance.new("Glue", ragdoll.Torso)
  682.                                 glue.Part0 = ragdoll.Torso
  683.                                 glue.Part1 = ragdoll:findFirstChild("Left Leg")
  684.                                 glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  685.                                 glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  686.                                 local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Left Leg"))
  687.                                 limbcollider.Size = Vector3.new(1.5,1,1)
  688.                                 limbcollider.Shape = "Cylinder"
  689.                                 limbcollider.Name = "LimbCollider"
  690.                                 limbcollider.Transparency = 1
  691.                                 local limbcolliderweld = Instance.new("Weld", limbcollider)
  692.                                 limbcolliderweld.Part0 = ragdoll:findFirstChild("Left Leg")
  693.                                 limbcolliderweld.Part1 = limbcollider
  694.                                 limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.2,0,0)
  695.                                 coroutine.wrap(function()
  696.                                     if ragdoll.Torso:findFirstChild("Left Hip") then
  697.                                         local limbclone = ragdoll.Torso:findFirstChild("Left Hip"):Clone()
  698.                                         ragdoll.Torso:findFirstChild("Left Hip"):destroy()
  699.                                         coroutine.wrap(function()
  700.                                             wait(t)
  701.                                             limbclone.Parent = ragdoll.Torso
  702.                                             limbclone.Part0 = ragdoll.Torso
  703.                                             limbclone.Part1 = ragdoll["Left Leg"]
  704.                                         end)()
  705.                                     end
  706.                                     wait(t)
  707.                                     glue:destroy()
  708.                                     limbcollider:destroy()
  709.                                     limbcolliderweld:destroy()
  710.                                 end)()
  711.                             end
  712.                             if ragdoll:findFirstChild("Right Leg") then
  713.                                 local glue = Instance.new("Glue", ragdoll.Torso)
  714.                                 glue.Part0 = ragdoll.Torso
  715.                                 glue.Part1 = ragdoll:findFirstChild("Right Leg")
  716.                                 glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  717.                                 glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  718.                                 local limbcollider = Instance.new("Part", ragdoll:findFirstChild("Right Leg"))
  719.                                 limbcollider.Size = Vector3.new(1.5,1,1)
  720.                                 limbcollider.Shape = "Cylinder"
  721.                                 limbcollider.Name = "LimbCollider"
  722.                                 limbcollider.Transparency = 1
  723.                                 local limbcolliderweld = Instance.new("Weld", limbcollider)
  724.                                 limbcolliderweld.Part0 = ragdoll:findFirstChild("Right Leg")
  725.                                 limbcolliderweld.Part1 = limbcollider
  726.                                 limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.2,0,0)
  727.                                 coroutine.wrap(function()
  728.                                     if ragdoll.Torso:findFirstChild("Right Hip") then
  729.                                         local limbclone = ragdoll.Torso:findFirstChild("Right Hip"):Clone()
  730.                                         ragdoll.Torso:findFirstChild("Right Hip"):destroy()
  731.                                         coroutine.wrap(function()
  732.                                             wait(t)
  733.                                             limbclone.Parent = ragdoll.Torso
  734.                                             limbclone.Part0 = ragdoll.Torso
  735.                                             limbclone.Part1 = ragdoll["Right Leg"]
  736.                                         end)()
  737.                                     end
  738.                                     wait(t)
  739.                                     glue:destroy()
  740.                                     limbcollider:destroy()
  741.                                     limbcolliderweld:destroy()
  742.                                 end)()
  743.                             end
  744.                         end)()
  745.                     end
  746.                 end
  747.             end
  748.         end
  749.     end
  750. end
  751. --
  752. tool.Activated:connect(function()
  753.     if owner ~= nil and character ~= nil and canattack then
  754.         local rightarmweld = character.Torso:findFirstChild("RightArmWeldpunch")
  755.         local leftarmweld = character.Torso:findFirstChild("LeftArmWeldpunch")
  756.         local headweld = character.Torso:findFirstChild("HeadWeldpunch")
  757.         local rootweld = character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldpunch")
  758.         for i,v in pairs(workspace:GetDescendants()) do
  759.             if v.ClassName == "Model" and v ~= character then
  760.                 local humanoid = v:findFirstChildOfClass("Humanoid")
  761.                 local headepic = v:findFirstChild("Head")
  762.                 if humanoid and headepic then
  763.                     if (headepic.Position - character.HumanoidRootPart.Position).magnitude < 5 and humanoid.PlatformStand and humanoid.Health > 0 then
  764.                         local rightlegweld = Instance.new("Weld", character.Torso)
  765.                         rightlegweld.Part0 = character.Torso
  766.                         rightlegweld.Part1 = character["Right Leg"]
  767.                         rightlegweld.C0 = CFrame.new(0.5,-2,0)
  768.                         rightlegweld.Name = "RightLegWeldbat"
  769.                         local leftlegweld = Instance.new("Weld", character.Torso)
  770.                         leftlegweld.Part0 = character.Torso
  771.                         leftlegweld.Part1 = character["Left Leg"]
  772.                         leftlegweld.C0 = CFrame.new(-0.5,-2,0)
  773.                         leftlegweld.Name = "LeftLegWeldbat"
  774.                         character:findFirstChildOfClass("Humanoid").WalkSpeed = 0
  775.                         for i = 0,1 , 0.1 do
  776.                             cananimate = false
  777.                             canattack = false
  778.                             character.HumanoidRootPart.CFrame = CFrame.new(character.HumanoidRootPart.Position, Vector3.new(headepic.Position.x,character.HumanoidRootPart.Position.y,headepic.Position.z))
  779.                             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)
  780.                             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)
  781.                             rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.5,0,0),i)
  782.                             leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-1.5,0,0),i)
  783.                             rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.939692557, -0.342020363, 0, 0.342020363, 0.939692557),i)
  784.                             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)
  785.                             runservice.Stepped:wait()
  786.                         end
  787.                         for i = 0,1 , 0.15 do
  788.                             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)
  789.                             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)
  790.                             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)
  791.                             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)
  792.                             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)
  793.                             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)
  794.                             runservice.Stepped:wait()
  795.                         end
  796.                         damage(character["Right Leg"], "stomp", 1, 3.5)
  797.                         coroutine.wrap(function()
  798.                             for i = 0,1 ,0.07 do
  799.                                 leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.5,-2,0),i)
  800.                                 rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(0.5,-2,0),i)
  801.                                 runservice.Stepped:wait()
  802.                             end
  803.                             leftlegweld:destroy()
  804.                             rightlegweld:destroy()
  805.                             character:findFirstChildOfClass("Humanoid").WalkSpeed = 16
  806.                         end)()
  807.                         cananimate = true
  808.                         canattack = true
  809.                         return
  810.                     end
  811.                 end
  812.             end
  813.         end
  814.         if character:findFirstChildOfClass("Humanoid").Jump then
  815.             canattack = false
  816.             cananimate = false
  817.             character:findFirstChildOfClass("Humanoid").PlatformStand = true
  818.             local rightlegweld = Instance.new("Weld", character.Torso)
  819.             rightlegweld.Part0 = character.Torso
  820.             rightlegweld.Part1 = character["Right Leg"]
  821.             rightlegweld.C0 = CFrame.new(0.5,-2,0)
  822.             rightlegweld.Name = "RightLegWeldpunch"
  823.             local leftlegweld = Instance.new("Weld", character.Torso)
  824.             leftlegweld.Part0 = character.Torso
  825.             leftlegweld.Part1 = character["Left Leg"]
  826.             leftlegweld.C0 = CFrame.new(-0.5,-2,0)
  827.             leftlegweld.Name = "LeftLegWeldpunch"
  828.             local vel = Instance.new("BodyVelocity", character.HumanoidRootPart)
  829.             vel.MaxForce = Vector3.new(math.huge,600,math.huge)
  830.             vel.Velocity = character.HumanoidRootPart.CFrame.lookVector * 20
  831.             for i = 0,1 , 0.13 do
  832.                 damage(character["Left Leg"], "dropkick", 3.5, 3)
  833.                 damage(character["Right Leg"], "dropkick", 3.5, 3)
  834.                 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)
  835.                 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)
  836.                 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)
  837.                 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)
  838.                 rootweld.C0 = rootweld.C0:lerp(CFrame.fromEulerAnglesXYZ(math.pi/2,0,0),i)
  839.                 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)
  840.                 runservice.Stepped:wait()
  841.             end
  842.             swishsound.PlaybackSpeed = 1+(math.random(-2,5)/12)
  843.             swishsound:Play()
  844.             for i = 0,1 , 0.13 do
  845.                 damage(character["Left Leg"], "dropkick", 3.5, 3)
  846.                 damage(character["Right Leg"], "dropkick", 3.5, 3)
  847.                 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)
  848.                 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)
  849.                 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)
  850.                 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)
  851.                 rootweld.C0 = rootweld.C0:lerp(CFrame.fromEulerAnglesXYZ((math.pi/2)-math.rad(30),0,0),i)
  852.                 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)
  853.                 runservice.Stepped:wait()
  854.             end
  855.             for i = 1,20 do
  856.                 damage(character["Left Leg"], "dropkick", 3.5, 3)
  857.                 damage(character["Right Leg"], "dropkick", 3.5, 3)
  858.                 runservice.Stepped:wait()
  859.             end
  860.             vel:destroy()
  861.             rightlegweld:destroy()
  862.             leftlegweld:destroy()
  863.             coroutine.wrap(function()
  864.                 wait(0.8)
  865.                 character:findFirstChildOfClass("Humanoid").PlatformStand = false
  866.             end)()
  867.             canattack = true
  868.             cananimate = true
  869.         else
  870.             canattack = false
  871.             cananimate = false
  872.             if attacknumber == 1 then
  873.                 local sine = 0
  874.                 local tiltval = 0
  875.                 for i = 1,20 do --17 and sine 3
  876.                     sine = sine + 1
  877.                     damage(character["Right Arm"], "punch", 1, 2)
  878.                     headweld.C0 = headweld.C0:lerp(CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(0,math.sin(sine/3.25),0),0.3)
  879.                     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)
  880.                     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)
  881.                     if i == 3 then
  882.                         swishsound.PlaybackSpeed = 1+(math.random(-2,5)/12)
  883.                         swishsound:Play()
  884.                     end
  885.                     if i > 10 then
  886.                         if i < 17 then
  887.                             tiltval = tiltval + 0.048
  888.                         end
  889.                         rightarmweld.C0 = rightarmweld.C0 * CFrame.new(-tiltval/2,0,0) * CFrame.fromEulerAnglesXYZ(0,0,-tiltval)
  890.                     end
  891.                     rootweld.C0 = rootweld.C0:lerp(CFrame.fromEulerAnglesXYZ(math.sin(sine/3.25)/8,-math.sin(sine/3.25)*2.3,0), 0.3)
  892.                     runservice.Stepped:wait()
  893.                 end
  894.                 attacknumber = 2
  895.             elseif attacknumber == 2 then
  896.                 local sine = 0
  897.                 local tiltval = 0
  898.                 for i = 1,20 do --17 and sine 3
  899.                     sine = sine + 1
  900.                     damage(character["Left Arm"], "punch", 1, 2)
  901.                     headweld.C0 = headweld.C0:lerp(CFrame.new(0,1.5,0) * CFrame.fromEulerAnglesXYZ(0,-math.sin(sine/3.25),0),0.3)
  902.                     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)
  903.                     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)
  904.                     if i == 3 then
  905.                         swishsound.PlaybackSpeed = 1+(math.random(-2,5)/12)
  906.                         swishsound:Play()
  907.                     end
  908.                     if i > 10 then
  909.                         if i < 17 then
  910.                             tiltval = tiltval + 0.048
  911.                         end
  912.                         leftarmweld.C0 = leftarmweld.C0 * CFrame.new(tiltval/2,0,0) * CFrame.fromEulerAnglesXYZ(0,0,tiltval)
  913.                     end
  914.                     rootweld.C0 = rootweld.C0:lerp(CFrame.fromEulerAnglesXYZ(math.sin(sine/3.25)/8,math.sin(sine/3.25)*2.3,0), 0.3)
  915.                     runservice.Stepped:wait()
  916.                 end
  917.                 attacknumber = 3
  918.             elseif attacknumber == 3 then
  919.                 for i = 0,1 , 0.06 do
  920.                     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)
  921.                     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)
  922.                     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)
  923.                     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)
  924.                     runservice.Stepped:wait()
  925.                 end
  926.                 swishsound.PlaybackSpeed = 1+(math.random(-2,5)/12)
  927.                 swishsound:Play()
  928.                 for i = 0.35,0.65 , 0.1 do
  929.                     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)
  930.                     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)
  931.                     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)
  932.                     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)
  933.                     runservice.Stepped:wait()
  934.                 end
  935.                 for i = 0,1 , 0.1 do
  936.                     damage(character["Right Arm"], "uppercut", 1.5, 2)
  937.                     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)
  938.                     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)
  939.                     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)
  940.                     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)
  941.                     runservice.Stepped:wait()
  942.                 end
  943.                 attacknumber = 4
  944.             elseif attacknumber == 4 then
  945.                 local rightlegweld = Instance.new("Weld", character.Torso)
  946.                 rightlegweld.Part0 = character.Torso
  947.                 rightlegweld.Part1 = character["Right Leg"]
  948.                 rightlegweld.C0 = CFrame.new(0.5,-2,0)
  949.                 rightlegweld.Name = "RightLegWeldpunch"
  950.                 local leftlegweld = Instance.new("Weld", character.Torso)
  951.                 leftlegweld.Part0 = character.Torso
  952.                 leftlegweld.Part1 = character["Left Leg"]
  953.                 leftlegweld.C0 = CFrame.new(-0.5,-2,0)
  954.                 leftlegweld.Name = "LeftLegWeldpunch"
  955.                 character:findFirstChildOfClass("Humanoid").WalkSpeed = character:findFirstChildOfClass("Humanoid").WalkSpeed - 10
  956.                 for i = 0,1 , 0.06 do
  957.                     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)
  958.                     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)
  959.                     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)
  960.                     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)
  961.                     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)
  962.                     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)
  963.                     runservice.Stepped:wait()
  964.                 end
  965.                 swishsound.PlaybackSpeed = 1+(math.random(-3,5)/12)
  966.                 swishsound:Play()
  967.                 for i = 0,1 , 0.15 do
  968.                     damage(character["Left Leg"], "kick", 1.5, 3.5)
  969.                     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)
  970.                     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)
  971.                     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)
  972.                     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)
  973.                     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)
  974.                     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)
  975.                     runservice.Stepped:wait()
  976.                 end
  977.                 coroutine.wrap(function()
  978.                     for i = 0,1 ,0.07 do
  979.                         leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.5,-2,0),i)
  980.                         rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(0.5,-2,0),i)
  981.                         runservice.Stepped:wait()
  982.                     end
  983.                     leftlegweld:destroy()
  984.                     rightlegweld:destroy()
  985.                     character:findFirstChildOfClass("Humanoid").WalkSpeed = character:findFirstChildOfClass("Humanoid").WalkSpeed + 10
  986.                 end)()
  987.                 attacknumber = 1
  988.             end
  989.             if mouseclick then
  990.                 coroutine.wrap(function()
  991.                     local humhp = character:findFirstChildOfClass("Humanoid").Health
  992.                     while runservice.Stepped:wait() and mouseclick do
  993.                         cananimate = false
  994.                         if character:findFirstChildOfClass("Humanoid").Health < humhp then
  995.                             character:findFirstChildOfClass("Humanoid").PlatformStand = false
  996.                             character:findFirstChildOfClass("Humanoid").Health = character:findFirstChildOfClass("Humanoid").Health + (humhp-character:findFirstChildOfClass("Humanoid").Health)
  997.                             character:findFirstChildOfClass("Humanoid").WalkSpeed = 16
  998.                             basssound.TimePosition = 1.525
  999.                             blocksound:Play()
  1000.                             basssound:Play()
  1001.                             coroutine.wrap(function()
  1002.                                 local thehpp = character:findFirstChildOfClass("Humanoid").Health
  1003.                                 for i = 1,20 do
  1004.                                     character:findFirstChildOfClass("Humanoid").Health = thehpp
  1005.                                     runservice.Stepped:wait()
  1006.                                 end
  1007.                             end)()
  1008.                             local nearestdistance = math.huge
  1009.                             local nearestplr = nil
  1010.                             for i,v in pairs(workspace:GetDescendants()) do
  1011.                                 if v.ClassName == "Model" and v ~= character then
  1012.                                     local headdw = v:findFirstChild("Head")
  1013.                                     local humanoiddw = v:findFirstChildOfClass("Humanoid")
  1014.                                     if humanoiddw and headdw then
  1015.                                         if (headdw.Position - character.Head.Position).magnitude < 10 and (headdw.Position - character.Head.Position).magnitude < nearestdistance then
  1016.                                             nearestdistance = (headdw.Position - character.Head.Position).magnitude
  1017.                                             nearestplr = v
  1018.                                         end
  1019.                                     end
  1020.                                 end
  1021.                             end
  1022.                             if nearestplr ~= nil then
  1023.                                 character.Head.CFrame = CFrame.new(character.Head.Position, nearestplr.Head.Position)
  1024.                                 nearestplr.Head.CFrame = CFrame.new(nearestplr.Head.Position, character.Head.Position)
  1025.                                 local noon = Instance.new("BodyVelocity", nearestplr.Head)
  1026.                                 noon.MaxForce = Vector3.new(math.huge,0,math.huge)
  1027.                                 noon.Velocity = nearestplr.Head.CFrame.lookVector * -math.random(15,25)
  1028.                                 game.Debris:AddItem(noon, 0.2)
  1029.                                 damage(nearestplr.Head, "blocked", 3, 0.5)
  1030.                             end
  1031.                             local velocity = Instance.new("BodyVelocity", character.Head)
  1032.                             velocity.MaxForce = Vector3.new(math.huge,0,math.huge)
  1033.                             velocity.Velocity = character.Head.CFrame.lookVector * -math.random(10,15)
  1034.                             game.Debris:AddItem(velocity, 0.2)
  1035.                             break
  1036.                         end
  1037.                         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)
  1038.                         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)
  1039.                         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)
  1040.                         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)
  1041.                         humhp = character:findFirstChildOfClass("Humanoid").Health
  1042.                     end
  1043.                     cananimate = true
  1044.                     canattack = true
  1045.                 end)()
  1046.             else
  1047.                 canattack = true
  1048.                 cananimate = true
  1049.             end
  1050.         end
  1051.     end
  1052. end)
  1053. --
  1054. tool.Equipped:connect(function()
  1055.     equipped = true
  1056.     owner = game:GetService("Players"):GetPlayerFromCharacter(tool.Parent)
  1057.     character = owner.Character
  1058.     local rightarm = Instance.new("Weld", character.Torso)
  1059.     rightarm.Part0 = character.Torso
  1060.     rightarm.Part1 = character["Right Arm"]
  1061.     rightarm.C0 = CFrame.new(1.5,0,0)
  1062.     rightarm.Name = "RightArmWeldpunch"
  1063.     local leftarm = Instance.new("Weld", character.Torso)
  1064.     leftarm.Part0 = character.Torso
  1065.     leftarm.Part1 = character["Left Arm"]
  1066.     leftarm.C0 = CFrame.new(-1.5,0,0)
  1067.     leftarm.Name = "LeftArmWeldpunch"
  1068.     local head = Instance.new("Weld", character.Torso)
  1069.     head.Part0 = character.Torso
  1070.     head.Part1 = character.Head
  1071.     head.C0 = CFrame.new(0,1.5,0)
  1072.     head.Name = "HeadWeldpunch"
  1073.     local humanoidrootpart = Instance.new("Weld", character.HumanoidRootPart)
  1074.     humanoidrootpart.Part0 = character.HumanoidRootPart
  1075.     humanoidrootpart.Part1 = character.Torso
  1076.     humanoidrootpart.Name = "HumanoidRootPartWeldpunch"
  1077.     for i,v in pairs(script:GetChildren()) do
  1078.         if v.ClassName == "Sound" then
  1079.             v.Parent = character.HumanoidRootPart
  1080.         end
  1081.     end
  1082.     cananimate = true
  1083.     local savedchar = character
  1084.     local lasthp = character:findFirstChildOfClass("Humanoid").Health
  1085.     coroutine.wrap(function()
  1086.         local humhp = character:findFirstChildOfClass("Humanoid").Health
  1087.         while runservice.Stepped:wait() and equipped do
  1088.             if character:findFirstChildOfClass("Humanoid").Health < humhp then
  1089.                 local thedamage = humhp - character:findFirstChildOfClass("Humanoid").Health
  1090.                 character:findFirstChildOfClass("Humanoid").Health = character:findFirstChildOfClass("Humanoid").Health + thedamage/2.5
  1091.             end
  1092.             if cananimate then
  1093.                 head.C0 = head.C0:lerp(CFrame.new(0,1.5,0),0.1)
  1094.                 humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(),0.2)
  1095.                 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)
  1096.                 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)
  1097.             end
  1098.             humhp = character:findFirstChildOfClass("Humanoid").Health
  1099.         end
  1100.     end)()
  1101. end)
  1102. tool.Unequipped:connect(function()
  1103.     equipped = false
  1104.     instancewhitelist = {}
  1105.     mouseclick = false
  1106.     cananimate = false
  1107.     for i,v in pairs(character.HumanoidRootPart:GetChildren()) do
  1108.         if v.ClassName == "Sound" then
  1109.             v.Parent = script
  1110.         end
  1111.     end
  1112.     if character.Torso:findFirstChild("LeftArmWeldpunch") then
  1113.         character.Torso:findFirstChild("LeftArmWeldpunch"):destroy()
  1114.     end
  1115.     if character.Torso:findFirstChild("RightArmWeldpunch") then
  1116.         character.Torso:findFirstChild("RightArmWeldpunch"):destroy()
  1117.     end
  1118.     if character.Torso:findFirstChild("HeadWeldpunch") then
  1119.         character.Torso:findFirstChild("HeadWeldpunch"):destroy()
  1120.     end
  1121.     if character:findFirstChild("HumanoidRootPart") then
  1122.         if character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldpunch") then
  1123.             character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldpunch"):destroy()
  1124.         end
  1125.     end
  1126. end)
  1127.  
  1128. end))
  1129. Sound2.Name = "Kick"
  1130. Sound2.Parent = Script1
  1131. Sound2.SoundId = "rbxassetid://542443306"
  1132. Sound3.Name = "Swoosh"
  1133. Sound3.Parent = Script1
  1134. Sound3.SoundId = "rbxassetid://1489705211"
  1135. Sound3.Volume = 0.69999998807907
  1136. Sound4.Name = "Punch"
  1137. Sound4.Parent = Script1
  1138. Sound4.SoundId = "rbxassetid://3932505023"
  1139. Sound5.Name = "Bass"
  1140. Sound5.Parent = Script1
  1141. Sound5.SoundId = "rbxassetid://2487714799"
  1142. Sound5.Volume = 1
  1143. Sound6.Name = "Ouch"
  1144. Sound6.Parent = Script1
  1145. Sound6.SoundId = "rbxassetid://4306991962"
  1146. Sound7.Name = "Block"
  1147. Sound7.Parent = Script1
  1148. Sound7.SoundId = "rbxassetid://4306994664"
  1149. for i,v in pairs(mas:GetChildren()) do
  1150.     v.Parent = owner.Character
  1151.     pcall(function() v:MakeJoints() end)
  1152. end
  1153. mas:Destroy()
  1154. for i,v in pairs(cors) do
  1155.     spawn(function()
  1156.         pcall(v)
  1157.     end)
  1158. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement