KrYn0MoRe

combat script v1

May 6th, 2020
558
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 141.98 KB | None | 0 0
  1. local plr = owner
  2. local char = plr.Character
  3. local hum = char:FindFirstChildOfClass("Humanoid")
  4. local torso = char:FindFirstChild("Torso")
  5. local rootpart = char:FindFirstChild("HumanoidRootPart")
  6. local larm,rarm,lleg,rleg,head = char:FindFirstChild("Left Arm"),char:FindFirstChild("Right Arm"),char:FindFirstChild("Left Leg"),char:FindFirstChild("Right Leg"),char:FindFirstChild("Head")
  7. if larm and rarm and lleg and rleg and head--[[hum.RigType ~= Enum.HumanoidRigType.R6]] then else warn('Character must be R6.'); return; end;
  8.  
  9. ls,rs,lh,rh,neck,rj = torso:FindFirstChild("Left Shoulder"),torso:FindFirstChild("Right Shoulder"),torso:FindFirstChild("Left Hip"),torso:FindFirstChild("Right Hip"),torso:FindFirstChild("Neck"),rootpart:FindFirstChild("RootJoint")
  10.  
  11. function QuaternionFromCFrame(cf)
  12.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  13.     local trace = m00 + m11 + m22
  14.     if trace > 0 then
  15.         local s = math.sqrt(1 + trace)
  16.         local recip = 0.5 / s
  17.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  18.     else
  19.         local i = 0
  20.         if m11 > m00 then
  21.             i = 1
  22.         end
  23.         if m22 > (i == 0 and m00 or m11) then
  24.             i = 2
  25.         end
  26.         if i == 0 then
  27.             local s = math.sqrt(m00 - m11 - m22 + 1)
  28.             local recip = 0.5 / s
  29.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  30.         elseif i == 1 then
  31.             local s = math.sqrt(m11 - m22 - m00 + 1)
  32.             local recip = 0.5 / s
  33.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  34.         elseif i == 2 then
  35.             local s = math.sqrt(m22 - m00 - m11 + 1)
  36.             local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  37.         end
  38.     end
  39. end
  40.  
  41. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  42.     local xs, ys, zs = x + x, y + y, z + z
  43.     local wx, wy, wz = w * xs, w * ys, w * zs
  44.     local xx = x * xs
  45.     local xy = x * ys
  46.     local xz = x * zs
  47.     local yy = y * ys
  48.     local yz = y * zs
  49.     local zz = z * zs
  50.     return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  51. end
  52.  
  53. function QuaternionSlerp(a, b, t)
  54.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  55.     local startInterp, finishInterp;
  56.     if cosTheta >= 0.0001 then
  57.         if (1 - cosTheta) > 0.0001 then
  58.             local theta = math.acos(cosTheta)
  59.             local invSinTheta = 1 / math.sin(theta)
  60.             startInterp = math.sin((1 - t) * theta) * invSinTheta
  61.             finishInterp = math.sin(t * theta) * invSinTheta
  62.         else
  63.             startInterp = 1 - t
  64.             finishInterp = t
  65.         end
  66.     else
  67.         if (1 + cosTheta) > 0.0001 then
  68.             local theta = math.acos(-cosTheta)
  69.             local invSinTheta = 1 / math.sin(theta)
  70.             startInterp = math.sin((t - 1) * theta) * invSinTheta
  71.             finishInterp = math.sin(t * theta) * invSinTheta
  72.         else
  73.             startInterp = t - 1
  74.             finishInterp = t
  75.         end
  76.     end
  77.     return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  78. end
  79.  
  80. function clerp(a, b, t)
  81.     local qa = {QuaternionFromCFrame(a)}
  82.     local qb = {QuaternionFromCFrame(b)}
  83.     local ax, ay, az = a.x, a.y, a.z
  84.     local bx, by, bz = b.x, b.y, b.z
  85.     local _t = 1 - t
  86.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  87. end
  88.  
  89. function lerp(a,b,t)
  90.     a:lerp(b,t)
  91. end
  92.  
  93. --//=================================\\
  94. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  95. --\\=================================//
  96.  
  97. ArtificialHB = Instance.new("BindableEvent", script)
  98. ArtificialHB.Name = "ArtificialHB"
  99.  
  100. script:WaitForChild("ArtificialHB")
  101.  
  102. frame = (1/60)
  103. tf = 0
  104. allowframeloss = false
  105. tossremainder = false
  106. lastframe = tick()
  107. script.ArtificialHB:Fire()
  108.  
  109. game:GetService("RunService").Heartbeat:connect(function(s, p)
  110.     tf = tf + s
  111.     if tf >= frame then
  112.         if allowframeloss then
  113.             script.ArtificialHB:Fire()
  114.             lastframe = tick()
  115.         else
  116.             for i = 1, math.floor(tf / frame) do
  117.                 script.ArtificialHB:Fire()
  118.             end
  119.         lastframe = tick()
  120.         end
  121.         if tossremainder then
  122.             tf = 0
  123.         else
  124.             tf = tf - frame * math.floor(tf / frame)
  125.         end
  126.     end
  127. end)
  128.  
  129. function Swait(NUMBER)
  130.     if NUMBER == 0 or NUMBER == nil then
  131.         ArtificialHB.Event:wait()
  132.     else
  133.         for i = 1, NUMBER do
  134.             ArtificialHB.Event:wait()
  135.         end
  136.     end
  137. end
  138.  
  139. --//=================================\\
  140. --\\=================================//
  141.  
  142. local motors = {}
  143. local welds = {}
  144.  
  145. if ls then
  146.     table.insert(motors,1,{ls,ls.Parent})
  147.     ls.Parent = nil
  148.     ls = Instance.new("Weld")
  149.     ls.Name = 'Left Shoulder'
  150.     ls.Part0 = torso
  151.     ls.Part1 = larm
  152.     ls.Parent = torso
  153.     table.insert(welds,1,{ls,ls.Parent})
  154. end
  155.  
  156. if rs then
  157.     table.insert(motors,1,{rs,rs.Parent})
  158.     rs.Parent = nil
  159.     rs = Instance.new("Weld")
  160.     rs.Name = 'Right Shoulder'
  161.     rs.Part0 = torso
  162.     rs.Part1 = rarm
  163.     rs.Parent = torso
  164.     table.insert(welds,1,{rs,rs.Parent})
  165. end
  166.  
  167. if lh then
  168.     table.insert(motors,1,{lh,lh.Parent})
  169.     lh.Parent = nil
  170.     lh = Instance.new("Weld")
  171.     lh.Name = 'Left Hip'
  172.     lh.Part0 = torso
  173.     lh.Part1 = lleg
  174.     lh.Parent = torso
  175.     table.insert(welds,1,{lh,lh.Parent})
  176. end
  177.  
  178. if rh then
  179.     table.insert(motors,1,{rh,rh.Parent})
  180.     rh.Parent = nil
  181.     rh = Instance.new("Weld")
  182.     rh.Name = 'Right Hip'
  183.     rh.Part0 = torso
  184.     rh.Part1 = rleg
  185.     rh.Parent = torso
  186.     table.insert(welds,1,{rh,rh.Parent})
  187. end
  188.  
  189. if neck then
  190.     table.insert(motors,1,{neck,neck.Parent})
  191.     neck.Parent = nil
  192.     neck = Instance.new("Weld")
  193.     neck.Name = 'Neck'
  194.     neck.Part0 = torso
  195.     neck.Part1 = head
  196.     neck.Parent = torso
  197.     table.insert(welds,1,{neck,neck.Parent})
  198. end
  199.  
  200. if rj then
  201.     table.insert(motors,1,{rj,rj.Parent})
  202.     rj.Parent = nil
  203.     rj = Instance.new("Weld")
  204.     rj.Name = 'RootJoint'
  205.     rj.Part0 = rootpart
  206.     rj.Part1 = torso
  207.     rj.Parent = torso
  208.     table.insert(welds,1,{rj,rj.Parent})
  209. end
  210.  
  211. local remote = Instance.new("RemoteEvent")
  212. remote.Parent = plr['PlayerGui']
  213.  
  214. local blocking,blocking2 = false,false
  215. local sprinting,sprinting2 = false,false
  216. local crouching = false
  217. local attacking = false
  218. local finishing = false
  219. local dancing = false
  220. local jumping = false
  221. local falling = false
  222. local toggling_dance = false
  223. local changing_stun_type = false
  224. local fists = false
  225. local equipped = false
  226. local pa,hka,ka,sa,lka = 1,2,1,1,1
  227. local screen,healthbar,healthstat,staminabar,staminastat,blockbar,blockstat
  228. local blockhealth,blockhealthmax = 100,100
  229. local stamina,staminamax = 100,100
  230. local block_counter,stamina_counter = 0,0
  231. local last_health = hum.Health
  232. local anim_speed = 0.6
  233. local sine = 0
  234. local dmg = 20
  235. local hit_id = 0
  236. local stun_type = math.random(1,2)
  237. local stun_duration = 0.25
  238. local anim_wait = 0.02*100
  239. local anim = 'idle'
  240. local last_mpos = Vector3.new()
  241.  
  242. local animator = hum:FindFirstChildOfClass("Animator")
  243. local animate = char:FindFirstChild("Animate")
  244.  
  245. local dance_anim = Instance.new("Animation")
  246. dance_anim.AnimationId = 'rbxassetid://35654637'
  247. dance_anim.Parent = hum
  248.  
  249. local enabled = {}
  250. enabled[ls] = true
  251. enabled[rs] = true
  252. enabled[neck] = true
  253. enabled[rh] = true
  254. enabled[lh] = true
  255. enabled[rj] = true
  256.  
  257. local punches = {3932504231,3932505023,3932506183,3932506625,4306980885}
  258. local finishes = {3847883680,3847884467,3847885772,3929462677}
  259. local bonecracks = {3848986758,3848987400}
  260.  
  261. local swing_s = Instance.new("Sound")
  262. swing_s.SoundId = 'rbxassetid://138097048'
  263. swing_s.Volume = 1
  264. swing_s.Parent = torso
  265.  
  266. local punch = Instance.new("Sound")
  267. punch.SoundId = 'rbxassetid://138097048'
  268. punch.Volume = 0.7
  269. punch.Parent = torso
  270.  
  271. local finish = Instance.new("Sound")
  272. finish.SoundId = 'rbxassetid://3847883680'
  273. finish.Volume = 0.4
  274. finish.Parent = torso
  275.  
  276. local mash = Instance.new("Sound")
  277. mash.SoundId = 'rbxassetid://2517519047'
  278. mash.Looped = true
  279. mash.Volume = 1
  280. mash.Parent = torso
  281.  
  282. local bone_crack = Instance.new("Sound")
  283. bone_crack.SoundId = 'rbxassetid://138097048'
  284. bone_crack.Volume = 0.4
  285. bone_crack.Parent = torso
  286.  
  287. local dodge_s = Instance.new("Sound")
  288. dodge_s.SoundId = 'rbxassetid://4458055429'
  289. dodge_s.Volume = 0.35
  290. dodge_s.Parent = torso
  291.  
  292. local _blockingval = Instance.new("ObjectValue")
  293. _blockingval.Name = 'blocking'
  294. _blockingval.Parent = nil
  295.  
  296. local larm_trail = Instance.new("Trail")
  297. local att1,att2 = Instance.new("Attachment",larm),Instance.new("Attachment",larm)
  298. att1.Position = Vector3.new(0,-(larm.Size.Y/2),0)
  299. att2.Position = Vector3.new(0,(larm.Size.Y/2),0)
  300. larm_trail.Attachment0 = att1
  301. larm_trail.Attachment1 = att2
  302. larm_trail.LightInfluence = 1
  303. larm_trail.Transparency = NumberSequence.new(0,1)
  304. larm_trail.MinLength = 0
  305. larm_trail.Lifetime = 0.5
  306. larm_trail.Enabled = false
  307. larm_trail.Parent = larm
  308.  
  309. local rarm_trail = Instance.new("Trail")
  310. local att1,att2 = Instance.new("Attachment",rarm),Instance.new("Attachment",rarm)
  311. att1.Position = Vector3.new(0,-(rarm.Size.Y/2),0)
  312. att2.Position = Vector3.new(0,(rarm.Size.Y/2),0)
  313. rarm_trail.Attachment0 = att1
  314. rarm_trail.Attachment1 = att2
  315. rarm_trail.LightInfluence = 1
  316. rarm_trail.Transparency = NumberSequence.new(0,1)
  317. rarm_trail.MinLength = 0
  318. rarm_trail.Lifetime = 0.5
  319. rarm_trail.Enabled = false
  320. rarm_trail.Parent = rarm
  321.  
  322. local lleg_trail = Instance.new("Trail")
  323. local att1,att2 = Instance.new("Attachment",lleg),Instance.new("Attachment",lleg)
  324. att1.Position = Vector3.new(0,-(lleg.Size.Y/2),0)
  325. att2.Position = Vector3.new(0,(lleg.Size.Y/2),0)
  326. lleg_trail.Attachment0 = att1
  327. lleg_trail.Attachment1 = att2
  328. lleg_trail.LightInfluence = 1
  329. lleg_trail.Transparency = NumberSequence.new(0,1)
  330. lleg_trail.MinLength = 0
  331. lleg_trail.Lifetime = 0.5
  332. lleg_trail.Enabled = false
  333. lleg_trail.Parent = lleg
  334.  
  335. local rleg_trail = Instance.new("Trail")
  336. local att1,att2 = Instance.new("Attachment",rleg),Instance.new("Attachment",rleg)
  337. att1.Position = Vector3.new(0,-(rleg.Size.Y/2),0)
  338. att2.Position = Vector3.new(0,(rleg.Size.Y/2),0)
  339. rleg_trail.Attachment0 = att1
  340. rleg_trail.Attachment1 = att2
  341. rleg_trail.LightInfluence = 1
  342. rleg_trail.Transparency = NumberSequence.new(0,1)
  343. rleg_trail.MinLength = 0
  344. rleg_trail.Lifetime = 0.5
  345. rleg_trail.Enabled = false
  346. rleg_trail.Parent = rleg
  347.  
  348. local idle_anim = Instance.new("Animation")
  349. idle_anim.AnimationId = 'rbxassetid://125750544'
  350. idle_anim.Parent = hum
  351.  
  352. function reset_anims(mode)
  353.     if mode == false then
  354.         for i,v in pairs(motors) do v[1].Parent = v[2]; end;
  355.         for i,v in pairs(welds) do v[1].Parent = nil; end;
  356.     elseif mode == true then
  357.         for i,v in pairs(welds) do v[1].Parent = v[2]; end;
  358.         for i,v in pairs(motors) do v[1].Parent = nil; end;
  359.     end
  360.     if mode == true then
  361.         if animator then
  362.             animator.Parent = hum
  363.         end
  364.         local T = hum:GetPlayingAnimationTracks()
  365.         for i = 1,#T do
  366.             T[i]:Stop()
  367.         end
  368.         local i = hum:LoadAnimation(idle_anim)
  369.         i.Priority = Enum.AnimationPriority.Action
  370.         i:AdjustSpeed(0)
  371.         i:Play()
  372.         i.TimePosition = ((50/100)*i.Length)
  373.     elseif mode == false then
  374.         if animate then
  375.             animate.Parent = char
  376.         end
  377.         if animator then
  378.             animator.Parent = hum
  379.         end
  380.     end
  381.     --Swait(10)
  382.     if mode == true then
  383.         if animator then
  384.             animator.Parent = nil
  385.         end
  386.         ls.C0 = CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))
  387.         ls.C1 = CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))
  388.        
  389.         rs.C0 = CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  390.         rs.C1 = CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  391.        
  392.         neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))
  393.         neck.C1 = CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))
  394.        
  395.         rh.C0 = CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  396.         rh.C1 = CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  397.        
  398.         lh.C0 = CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))
  399.         lh.C1 = CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))
  400.        
  401.         rj.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))
  402.         rj.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))
  403.     end
  404. end
  405.  
  406. reset_anims(true)
  407. equipped = true
  408.  
  409. --[[
  410. local tool = Instance.new("Tool")
  411. tool.Name = 'Combat V2'
  412. tool.CanBeDropped = false
  413. tool.RequiresHandle = false
  414. tool.Parent = plr['Backpack']
  415.  
  416. tool.Equipped:Connect(function()
  417.     equipped = true
  418.     reset_anims(true)
  419. end)
  420.  
  421. tool.Unequipped:Connect(function()
  422.     equipped = false
  423.     dance(false)
  424.     reset_anims(false)
  425. end)
  426. ]]
  427.  
  428. function change_stun_type()
  429.     spawn(function()
  430.         if not changing_stun_type then else return end
  431.         changing_stun_type = true
  432.         for i,v in pairs(char:GetChildren()) do
  433.             if (v:IsA("BasePart") or v:IsA("UnionOperation")) and (v.Name ~= 'HumanoidRootPart') then
  434.                 local s = v:FindFirstChild('stun_s')
  435.                 if not s then
  436.                     s = Instance.new("SelectionBox")
  437.                     s.Visible = false
  438.                     s.Parent = v
  439.                     s.Color3 = Color3.new(1, 0.333333, 0)
  440.                     s.Adornee = v
  441.                     s.LineThickness = 0
  442.                     s.SurfaceColor = BrickColor.new("New Yeller")
  443.                     s.SurfaceColor3 = Color3.new(1, 1, 0)
  444.                     s.SurfaceTransparency = 0.8
  445.                 end
  446.                 spawn(function()
  447.                     s.Visible = true
  448.                     wait(stun_duration)
  449.                     s.Visible = false
  450.                 end)
  451.             end
  452.         end
  453.         wait(stun_duration)
  454.         stun_type = stun_type + 1
  455.         if stun_type > 2 then
  456.             stun_type = 1
  457.         end
  458.         changing_stun_type = false
  459.     end)
  460. end
  461.  
  462. function limb_collide(obj)
  463.     if (obj:IsA("UnionOperation") or obj:IsA("BasePart")) then else return end
  464.     local exists = pcall(game:GetService("PhysicsService").GetCollisionGroupId, game:GetService("PhysicsService"), 'Limb Collide')
  465.     if not exists then
  466.         game:GetService("PhysicsService"):CreateCollisionGroup('Limb Collide')
  467.     end
  468.     game:GetService("PhysicsService"):CollisionGroupSetCollidable('Limb Collide','Limb Collide',false)
  469.     --
  470.     local t = {}
  471.     --
  472.     local cb = Instance.new("Part")
  473.     cb.Name = 'limb'
  474.     cb.Transparency = 1
  475.     cb.CanCollide = true
  476.     cb.Anchored = false
  477.     cb.CFrame = obj.CFrame
  478.     cb.Size = obj.Size
  479.     cb.Massless = true
  480.     cb.Locked = true
  481.     game:GetService("PhysicsService"):SetPartCollisionGroup(cb,'Limb Collide')
  482.     game:GetService("PhysicsService"):SetPartCollisionGroup(obj,'Limb Collide')
  483.     local weld = Instance.new("Weld")
  484.     weld.Part0 = cb
  485.     weld.Part1 = obj
  486.     weld.Parent = cb
  487.     obj.Massless = true
  488.     obj.Anchored = false
  489.     cb.Parent = script
  490.     table.insert(t,1,cb)
  491.     --
  492.     if not string.match(obj.Name:lower(),'torso') and not string.match(obj.Name:lower(),'rootpart') and not string.match(obj.Name:lower(),'head') then
  493.         local lv = Vector3.new() -- Vector3.new(cb.Size.X,0,cb.Size.Z)
  494.         local cb2 = Instance.new("Part")
  495.         cb2.Name = 'limb'
  496.         cb2.Transparency = 1
  497.         cb2.CanCollide = true
  498.         cb2.Anchored = false
  499.         cb2.CFrame = obj.CFrame
  500.         cb2.Size = lv
  501.         cb2.Massless = true
  502.         cb2.Locked = true
  503.         local weld2 = Instance.new("Weld")
  504.         weld2.Part0 = cb
  505.         weld2.Part1 = cb2
  506.         weld2.C1 = CFrame.new(0,(cb.Size.Y/2),0)
  507.         weld2.Parent = cb2
  508.         cb2.Parent = script
  509.         table.insert(t,1,cb2)
  510.     end
  511.     --
  512.     return t
  513. end
  514.  
  515. function Ragdoll(targchar,headless,insta,kill)
  516.     local pc = targchar
  517.     local targhum = pc:FindFirstChild("Humanoid")
  518.     local js,js2 = {},{}
  519.     for _,obj in pairs(pc:GetDescendants()) do
  520.         if obj:IsA("BasePart") or obj:IsA("UnionOperation") then
  521.             obj.Massless = true
  522.             obj.Locked = true
  523.         end
  524.     end
  525.     if kill == true then
  526.         pc.Archivable = true
  527.         local old_pc = pc
  528.         pc = pc:Clone()
  529.         for i,v in pairs(pc:GetDescendants()) do
  530.             limb_collide(v)
  531.             if v:IsA("ParticleEmitter") then
  532.                 v.Enabled = false
  533.             end
  534.             if v:IsA("BodyVelocity") or v:IsA("BodyPosition") or v:IsA("BodyAngularVelocity") or v:IsA("BodyForce") or v:IsA("BodyGyro") or v:IsA("BodyThrust") or v:IsA("BodyMover") then
  535.                 v:Destroy()
  536.             end
  537.             if (v:IsA("Script") and v.Name == 'Health') or (v:IsA("LocalScript") and v.Name == 'Animate') then
  538.                 v:Destroy()
  539.             end
  540.             if v:IsA("Humanoid") then
  541.                 v.BreakJointsOnDeath = false
  542.                 v.Health = 0
  543.                 v.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOff
  544.                 v.PlatformStand = true
  545.             end
  546.         end
  547.         for i,v in pairs(old_pc:GetDescendants()) do
  548.             if v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA("ForceField") or v:IsA("Accessory") or v:IsA("Decal") or v:IsA("Texture") or v:IsA("SurfaceGui") then
  549.                 v:destroy()
  550.             end
  551.             if v:IsA("Humanoid") then
  552.                 v.BreakJointsOnDeath = true
  553.                 v.Health = 0
  554.                 v.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOff
  555.                 v.PlatformStand = true
  556.             end
  557.         end
  558.         pc.Parent = workspace
  559.     end
  560.     --if kill and targhum:FindFirstChild("Ragdolled") then return; end;
  561.     if pc ~= nil then
  562.         local hum = pc:FindFirstChild'Humanoid'
  563.         local LArm = pc:FindFirstChild'Left Arm'
  564.         local RArm = pc:FindFirstChild'Right Arm'
  565.         local LLeg = pc:FindFirstChild'Left Leg'
  566.         local RLeg = pc:FindFirstChild'Right Leg'
  567.         local torso = pc:FindFirstChild'Torso'
  568.         local head = pc:FindFirstChild'Head'
  569.        
  570.        
  571.         local LUA = pc:FindFirstChild'LeftUpperArm'
  572.         local LLA = pc:FindFirstChild'LeftLowerArm'
  573.         local LH = pc:FindFirstChild'LeftHand'
  574.        
  575.         local RUA = pc:FindFirstChild'RightUpperArm'
  576.         local RLA = pc:FindFirstChild'RightLowerArm'
  577.         local RH = pc:FindFirstChild'RightHand'
  578.        
  579.         local LUL = pc:FindFirstChild'LeftUpperLeg'
  580.         local LLL = pc:FindFirstChild'LeftLowerLeg'
  581.         local LF = pc:FindFirstChild'LeftFoot'
  582.        
  583.         local RUL = pc:FindFirstChild'RightUpperLeg'
  584.         local RLL = pc:FindFirstChild'RightLowerLeg'
  585.         local RF = pc:FindFirstChild'RightFoot'
  586.        
  587.         local UT = pc:FindFirstChild'UpperTorso'
  588.         local LT = pc:FindFirstChild'LowerTorso'
  589.        
  590.         if hum and LArm and RArm and LLeg and RLeg and head then
  591.             hum.BreakJointsOnDeath = false
  592.             if insta then
  593.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  594.                     for _,v in pairs(torso:GetDescendants()) do
  595.                         if (v:IsA('Motor6D') or v:IsA('Motor') or v:IsA('Weld') or v:IsA("BallSocketConstraint")) and (not string.match(v.Name:lower(),'root')) then
  596.                             if not kill then
  597.                                 table.insert(js2,1,{obj = v,par = v.Parent})
  598.                                 v.Parent = nil
  599.                             elseif kill then
  600.                                 v:Destroy()
  601.                             end
  602.                         end
  603.                     end
  604.                    local vis = false
  605.                    local vis2 = false
  606.                     if not LArm:FindFirstChild('Dismembered') then
  607.                        local at1 = Instance.new("Attachment")
  608.                        at1.Parent = torso
  609.                        at1.Visible = vis
  610.                        at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  611.                        at1.Position = Vector3.new(-1,1,0)
  612.                                        
  613.                        local at1p2 = Instance.new("Attachment")
  614.                        at1p2.Parent = LArm
  615.                        at1p2.Visible = vis
  616.                        at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  617.                        at1p2.Position = Vector3.new(.5,1,0)
  618.                            
  619.                        local bis = Instance.new("BallSocketConstraint")
  620.                        bis.Parent = LArm
  621.                        bis.Attachment0 = at1
  622.                        bis.Attachment1 = at1p2
  623.                        bis.LimitsEnabled = true
  624.                        bis.UpperAngle = 15
  625.                        bis.Visible = vis2
  626.                        bis.TwistLimitsEnabled = true
  627.                        bis.UpperAngle = -45
  628.                        bis.TwistLowerAngle = -45
  629.                         table.insert(js,1,bis)
  630.                     end
  631.                     if not RArm:FindFirstChild('Dismembered') then    
  632.                         local at2 = Instance.new("Attachment")
  633.                         at2.Parent = torso
  634.                         at2.Visible = vis
  635.                         at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  636.                         at2.Position = Vector3.new(1,1,0)
  637.                                
  638.                         local at2p2 = Instance.new("Attachment")
  639.                         at2p2.Parent = RArm
  640.                         at2p2.Visible = vis
  641.                         at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  642.                         at2p2.Position = Vector3.new(-.5,1,0)
  643.                        
  644.                         local bis2 = Instance.new("BallSocketConstraint")
  645.                         bis2.Parent = RArm
  646.                         bis2.Attachment0 = at2
  647.                         bis2.Attachment1 = at2p2
  648.                         bis2.LimitsEnabled = true
  649.                         bis2.UpperAngle = 15
  650.                         bis2.Visible = vis2
  651.                         bis2.TwistLimitsEnabled = true
  652.                         bis2.UpperAngle = -45
  653.                         bis2.TwistLowerAngle = -45
  654.                         table.insert(js,1,bis2)
  655.                     end
  656.                      if not RLeg:FindFirstChild('Dismembered') then
  657.                         local at3 = Instance.new("Attachment")
  658.                         at3.Parent = torso
  659.                         at3.Visible = vis
  660.                         at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  661.                         at3.Position = Vector3.new(.5,-1,0)
  662.                                
  663.                         local at3p2 = Instance.new("Attachment")
  664.                         at3p2.Parent = RLeg
  665.                         at3p2.Visible = vis
  666.                         at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  667.                         at3p2.Position = Vector3.new(0,1,0)
  668.                        
  669.                         local bis3 = Instance.new("BallSocketConstraint")
  670.                         bis3.Parent = RLeg
  671.                         bis3.Attachment0 = at3
  672.                         bis3.Attachment1 = at3p2
  673.                         bis3.LimitsEnabled = true
  674.                         bis3.UpperAngle = 180-15
  675.                         bis3.Visible = vis2
  676.                         table.insert(js,1,bis3)
  677.                     end
  678.                          
  679.                     if not LLeg:FindFirstChild('Dismembered') then  
  680.                         local at4 = Instance.new("Attachment")
  681.                         at4.Parent = torso
  682.                         at4.Visible = vis
  683.                         at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  684.                         at4.Position = Vector3.new(-.5,-1,0)
  685.                                
  686.                         local at4p2 = Instance.new("Attachment")
  687.                         at4p2.Parent = LLeg
  688.                         at4p2.Visible = vis
  689.                         at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  690.                         at4p2.Position = Vector3.new(0,1,0)
  691.                    
  692.                         local bis4 = Instance.new("BallSocketConstraint")
  693.                         bis4.Parent = LLeg
  694.                         bis4.Attachment0 = at4
  695.                         bis4.Attachment1 = at4p2
  696.                         bis4.LimitsEnabled = true
  697.                         bis4.UpperAngle = 180-15
  698.                         bis4.Visible = vis2
  699.                         table.insert(js,1,bis4)
  700.                     end
  701.                    
  702.                     if not headless and not head:FindFirstChild('Dismembered') then  
  703.                             local at5 = Instance.new("Attachment")
  704.                             at5.Parent = torso
  705.                             at5.Visible = vis
  706.                             at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  707.                             at5.Position = Vector3.new(0,1,0)
  708.                          
  709.                             local at5p2 = Instance.new("Attachment")
  710.                             at5p2.Parent = head
  711.                             at5p2.Visible = vis
  712.                             at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  713.                             at5p2.Position = Vector3.new(0,-.5,0)
  714.                    
  715.                             local bis5 = Instance.new("BallSocketConstraint")
  716.                             bis5.Parent = head
  717.                             bis5.Attachment0 = at5p2
  718.                             bis5.Attachment1 = at5
  719.                             bis5.LimitsEnabled = true
  720.                             bis5.UpperAngle = 75
  721.                             bis5.Visible = vis2
  722.                             bis5.TwistLimitsEnabled = true
  723.                             bis5.UpperAngle = -45
  724.                             bis5.TwistLowerAngle = -45
  725.                             table.insert(js,1,bis5)
  726.                         else
  727.                             --head:BreakJoints()
  728.                         end
  729.                     end
  730.             else
  731.                 hum.Died:Connect(function()
  732.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  733.                     for _,v in pairs(torso:GetDescendants()) do
  734.                         if (v:IsA('Motor6D') or v:IsA('Motor') or v:IsA('Weld') or v:IsA("BallSocketConstraint")) and (not string.match(v.Name:lower(),'root')) then
  735.                             if not kill then
  736.                                 table.insert(js2,1,{obj = v,par = v.Parent})
  737.                                 v.Parent = nil
  738.                             elseif kill then
  739.                                 v:Destroy()
  740.                             end
  741.                         end
  742.                     end
  743.                    local vis = false
  744.                    local vis2 = false
  745.                     if not LArm:FindFirstChild('Dismembered') then
  746.                        local at1 = Instance.new("Attachment")
  747.                        at1.Parent = torso
  748.                        at1.Visible = vis
  749.                        at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  750.                        at1.Position = Vector3.new(-1,1,0)
  751.                                        
  752.                        local at1p2 = Instance.new("Attachment")
  753.                        at1p2.Parent = LArm
  754.                        at1p2.Visible = vis
  755.                        at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  756.                        at1p2.Position = Vector3.new(.5,1,0)
  757.                            
  758.                        local bis = Instance.new("BallSocketConstraint")
  759.                        bis.Parent = LArm
  760.                        bis.Attachment0 = at1
  761.                        bis.Attachment1 = at1p2
  762.                        bis.LimitsEnabled = true
  763.                        bis.UpperAngle = 15
  764.                        bis.Visible = vis2
  765.                        bis.TwistLimitsEnabled = true
  766.                        bis.UpperAngle = -45
  767.                        bis.TwistLowerAngle = -45
  768.                         table.insert(js,1,bis)
  769.                     end
  770.                     if not RArm:FindFirstChild('Dismembered') then    
  771.                         local at2 = Instance.new("Attachment")
  772.                         at2.Parent = torso
  773.                         at2.Visible = vis
  774.                         at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  775.                         at2.Position = Vector3.new(1,1,0)
  776.                                
  777.                         local at2p2 = Instance.new("Attachment")
  778.                         at2p2.Parent = RArm
  779.                         at2p2.Visible = vis
  780.                         at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  781.                         at2p2.Position = Vector3.new(-.5,1,0)
  782.                        
  783.                         local bis2 = Instance.new("BallSocketConstraint")
  784.                         bis2.Parent = RArm
  785.                         bis2.Attachment0 = at2
  786.                         bis2.Attachment1 = at2p2
  787.                         bis2.LimitsEnabled = true
  788.                         bis2.UpperAngle = 15
  789.                         bis2.Visible = vis2
  790.                         bis2.TwistLimitsEnabled = true
  791.                         bis2.UpperAngle = -45
  792.                         bis2.TwistLowerAngle = -45
  793.                         table.insert(js,1,bis2)
  794.                     end
  795.                      if not RLeg:FindFirstChild('Dismembered') then
  796.                         local at3 = Instance.new("Attachment")
  797.                         at3.Parent = torso
  798.                         at3.Visible = vis
  799.                         at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  800.                         at3.Position = Vector3.new(.5,-1,0)
  801.                                
  802.                         local at3p2 = Instance.new("Attachment")
  803.                         at3p2.Parent = RLeg
  804.                         at3p2.Visible = vis
  805.                         at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  806.                         at3p2.Position = Vector3.new(0,1,0)
  807.                        
  808.                         local bis3 = Instance.new("BallSocketConstraint")
  809.                         bis3.Parent = RLeg
  810.                         bis3.Attachment0 = at3
  811.                         bis3.Attachment1 = at3p2
  812.                         bis3.LimitsEnabled = true
  813.                         bis3.UpperAngle = 180-15
  814.                         bis3.Visible = vis2
  815.                         table.insert(js,1,bis3)
  816.                     end
  817.                          
  818.                     if not LLeg:FindFirstChild('Dismembered') then  
  819.                         local at4 = Instance.new("Attachment")
  820.                         at4.Parent = torso
  821.                         at4.Visible = vis
  822.                         at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  823.                         at4.Position = Vector3.new(-.5,-1,0)
  824.                                
  825.                         local at4p2 = Instance.new("Attachment")
  826.                         at4p2.Parent = LLeg
  827.                         at4p2.Visible = vis
  828.                         at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  829.                         at4p2.Position = Vector3.new(0,1,0)
  830.                    
  831.                         local bis4 = Instance.new("BallSocketConstraint")
  832.                         bis4.Parent = LLeg
  833.                         bis4.Attachment0 = at4
  834.                         bis4.Attachment1 = at4p2
  835.                         bis4.LimitsEnabled = true
  836.                         bis4.UpperAngle = 180-15
  837.                         bis4.Visible = vis2
  838.                         table.insert(js,1,bis4)
  839.                     end
  840.                    
  841.                     if not headless and not head:FindFirstChild('Dismembered') then  
  842.                             local at5 = Instance.new("Attachment")
  843.                             at5.Parent = torso
  844.                             at5.Visible = vis
  845.                             at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  846.                             at5.Position = Vector3.new(0,1,0)
  847.                          
  848.                             local at5p2 = Instance.new("Attachment")
  849.                             at5p2.Parent = head
  850.                             at5p2.Visible = vis
  851.                             at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  852.                             at5p2.Position = Vector3.new(0,-.5,0)
  853.                    
  854.                             local bis5 = Instance.new("BallSocketConstraint")
  855.                             bis5.Parent = head
  856.                             bis5.Attachment0 = at5p2
  857.                             bis5.Attachment1 = at5
  858.                             bis5.LimitsEnabled = true
  859.                             bis5.UpperAngle = 75
  860.                             bis5.Visible = vis2
  861.                             bis5.TwistLimitsEnabled = true
  862.                             bis5.UpperAngle = -45
  863.                             bis5.TwistLowerAngle = -45
  864.                             table.insert(js,1,bis5)
  865.                         else
  866.                             --head:BreakJoints()
  867.                         end
  868.                     end
  869.                 end)
  870.             end
  871.         elseif head and hum then
  872.             hum.BreakJointsOnDeath = false
  873.             if insta then
  874.                 if hum.RigType==Enum.HumanoidRigType.R15 then
  875.                     for _,v in pairs(pc:GetDescendants()) do
  876.                         if (v:IsA('Motor6D') or v:IsA('Motor') or v:IsA("BallSocketConstraint")) and (not string.match(v.Name:lower(),'root')) then
  877.                             if not kill then
  878.                                 table.insert(js2,1,{obj = v,par = v.Parent})
  879.                                 v.Parent = nil
  880.                             elseif kill then
  881.                                 v:Destroy()
  882.                             end
  883.                         end
  884.                     end
  885.                     local vis = false
  886.                     local vis2 = false
  887.                        
  888.                     if not LF:FindFirstChild('Dismembered') then  
  889.                         local bsc1 = Instance.new("BallSocketConstraint",LF)
  890.                         bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  891.                         bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  892.                         table.insert(js,1,bsc1)
  893.                     end
  894.                     if not LLL:FindFirstChild('Dismembered') then  
  895.                         local bsc2 = Instance.new("BallSocketConstraint",LLL)
  896.                         bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  897.                         bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  898.                         table.insert(js,1,bsc2)
  899.                     end
  900.                     if not LUL:FindFirstChild('Dismembered') then  
  901.                         local bsc3 = Instance.new("BallSocketConstraint",LUL)
  902.                         bsc3.Attachment0 = LUL.LeftHipRigAttachment
  903.                         bsc3.Attachment1 = LT.LeftHipRigAttachment
  904.                         table.insert(js,1,bsc3)
  905.                     end
  906.                     if not RF:FindFirstChild('Dismembered') then  
  907.                         local bsc4 = Instance.new("BallSocketConstraint",RF)
  908.                         bsc4.Attachment0 = RF.RightAnkleRigAttachment
  909.                         bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  910.                         table.insert(js,1,bsc4)
  911.                     end
  912.                     if not RLL:FindFirstChild('Dismembered') then  
  913.                         local bsc5 = Instance.new("BallSocketConstraint",RLL)
  914.                         bsc5.Attachment0 = RLL.RightKneeRigAttachment
  915.                         bsc5.Attachment1 = RUL.RightKneeRigAttachment
  916.                         table.insert(js,1,bsc5)
  917.                     end
  918.                     if not RUL:FindFirstChild('Dismembered') then  
  919.                         local bsc6 = Instance.new("BallSocketConstraint",RUL)
  920.                         bsc6.Attachment0 = RUL.RightHipRigAttachment
  921.                         bsc6.Attachment1 = LT.RightHipRigAttachment
  922.                         table.insert(js,1,bsc6)
  923.                     end
  924.                     if not LH:FindFirstChild('Dismembered') then  
  925.                         local bsc7 = Instance.new("BallSocketConstraint",LH)
  926.                         bsc7.Attachment0 = LH.LeftWristRigAttachment
  927.                         bsc7.Attachment1 = LLA.LeftWristRigAttachment
  928.                         table.insert(js,1,bsc7)
  929.                     end
  930.                     if not LLA:FindFirstChild('Dismembered') then  
  931.                         local bsc8 = Instance.new("BallSocketConstraint",LLA)
  932.                         bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  933.                         bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  934.                         table.insert(js,1,bsc8)
  935.                     end
  936.                     if not LUA:FindFirstChild('Dismembered') then  
  937.                         local bsc9 = Instance.new("BallSocketConstraint",LUA)
  938.                         bsc9.Attachment0 = LUA.LeftShoulderAttachment
  939.                         bsc9.Attachment1 = UT.LeftCollarAttachment
  940.                         table.insert(js,1,bsc9)
  941.                     end
  942.                     if not RH:FindFirstChild('Dismembered') then  
  943.                         local bsc10 = Instance.new("BallSocketConstraint",RH)
  944.                         bsc10.Attachment0 = RH.RightWristRigAttachment
  945.                         bsc10.Attachment1 = RLA.RightWristRigAttachment
  946.                         table.insert(js,1,bsc10)
  947.                     end
  948.                     if not RLA:FindFirstChild('Dismembered') then  
  949.                         local bsc11 = Instance.new("BallSocketConstraint",RLA)
  950.                         bsc11.Attachment0 = RLA.RightElbowRigAttachment
  951.                         bsc11.Attachment1 = RUA.RightElbowRigAttachment
  952.                         table.insert(js,1,bsc11)
  953.                     end
  954.                     if not RUA:FindFirstChild('Dismembered') then  
  955.                         local bsc12 = Instance.new("BallSocketConstraint",RUA)
  956.                         bsc12.Attachment0 = RUA.RightShoulderAttachment
  957.                         bsc12.Attachment1 = UT.RightCollarAttachment
  958.                         table.insert(js,1,bsc12)
  959.                     end
  960.                     if not LT:FindFirstChild('Dismembered') then  
  961.                         local bsc13 = Instance.new("BallSocketConstraint",LT)
  962.                         bsc13.Attachment0 = LT.WaistRigAttachment
  963.                         bsc13.Attachment1 = UT.WaistRigAttachment
  964.                         table.insert(js,1,bsc13)
  965.                     end
  966.                     if not headless and not head:FindFirstChild('Dismembered')  then
  967.                         local bsc14 = Instance.new("BallSocketConstraint",head)
  968.                         bsc14.Attachment0 = UT.NeckRigAttachment
  969.                         bsc14.Attachment1 = head.NeckRigAttachment
  970.                         bsc14.LimitsEnabled = true
  971.                         bsc14.UpperAngle = -75
  972.                         bsc14.TwistLimitsEnabled = true
  973.                         bsc14.UpperAngle = -45
  974.                         bsc14.TwistLowerAngle = -45
  975.                         table.insert(js,1,bsc14)
  976.                     else
  977.                         --head:BreakJoints()
  978.                     end
  979.                 end
  980.             else
  981.                 hum.Died:Connect(function()
  982.                     if hum.RigType==Enum.HumanoidRigType.R15 then
  983.                         for _,v in pairs(pc:GetDescendants()) do
  984.                             if (v:IsA('Motor6D') or v:IsA('Motor') or v:IsA("BallSocketConstraint")) and (not string.match(v.Name:lower(),'root')) then
  985.                                 if not kill then
  986.                                     table.insert(js2,1,{obj = v,par = v.Parent})
  987.                                     v.Parent = nil
  988.                                 elseif kill then
  989.                                     v:Destroy()
  990.                                 end
  991.                             end
  992.                         end
  993.                         local vis = false
  994.                         local vis2 = false
  995.                            
  996.                         if not LF:FindFirstChild('Dismembered') then  
  997.                             local bsc1 = Instance.new("BallSocketConstraint",LF)
  998.                             bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  999.                             bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  1000.                             table.insert(js,1,bsc1)
  1001.                         end
  1002.                         if not LLL:FindFirstChild('Dismembered') then  
  1003.                             local bsc2 = Instance.new("BallSocketConstraint",LLL)
  1004.                             bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  1005.                             bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  1006.                             table.insert(js,1,bsc2)
  1007.                         end
  1008.                         if not LUL:FindFirstChild('Dismembered') then  
  1009.                             local bsc3 = Instance.new("BallSocketConstraint",LUL)
  1010.                             bsc3.Attachment0 = LUL.LeftHipRigAttachment
  1011.                             bsc3.Attachment1 = LT.LeftHipRigAttachment
  1012.                             table.insert(js,1,bsc3)
  1013.                         end
  1014.                         if not RF:FindFirstChild('Dismembered') then  
  1015.                             local bsc4 = Instance.new("BallSocketConstraint",RF)
  1016.                             bsc4.Attachment0 = RF.RightAnkleRigAttachment
  1017.                             bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  1018.                             table.insert(js,1,bsc4)
  1019.                         end
  1020.                         if not RLL:FindFirstChild('Dismembered') then  
  1021.                             local bsc5 = Instance.new("BallSocketConstraint",RLL)
  1022.                             bsc5.Attachment0 = RLL.RightKneeRigAttachment
  1023.                             bsc5.Attachment1 = RUL.RightKneeRigAttachment
  1024.                             table.insert(js,1,bsc5)
  1025.                         end
  1026.                         if not RUL:FindFirstChild('Dismembered') then  
  1027.                             local bsc6 = Instance.new("BallSocketConstraint",RUL)
  1028.                             bsc6.Attachment0 = RUL.RightHipRigAttachment
  1029.                             bsc6.Attachment1 = LT.RightHipRigAttachment
  1030.                             table.insert(js,1,bsc6)
  1031.                         end
  1032.                         if not LH:FindFirstChild('Dismembered') then  
  1033.                             local bsc7 = Instance.new("BallSocketConstraint",LH)
  1034.                             bsc7.Attachment0 = LH.LeftWristRigAttachment
  1035.                             bsc7.Attachment1 = LLA.LeftWristRigAttachment
  1036.                             table.insert(js,1,bsc7)
  1037.                         end
  1038.                         if not LLA:FindFirstChild('Dismembered') then  
  1039.                             local bsc8 = Instance.new("BallSocketConstraint",LLA)
  1040.                             bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  1041.                             bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  1042.                             table.insert(js,1,bsc8)
  1043.                         end
  1044.                         if not LUA:FindFirstChild('Dismembered') then  
  1045.                             local bsc9 = Instance.new("BallSocketConstraint",LUA)
  1046.                             bsc9.Attachment0 = LUA.LeftShoulderAttachment
  1047.                             bsc9.Attachment1 = UT.LeftCollarAttachment
  1048.                             table.insert(js,1,bsc9)
  1049.                         end
  1050.                         if not RH:FindFirstChild('Dismembered') then  
  1051.                             local bsc10 = Instance.new("BallSocketConstraint",RH)
  1052.                             bsc10.Attachment0 = RH.RightWristRigAttachment
  1053.                             bsc10.Attachment1 = RLA.RightWristRigAttachment
  1054.                             table.insert(js,1,bsc10)
  1055.                         end
  1056.                         if not RLA:FindFirstChild('Dismembered') then  
  1057.                             local bsc11 = Instance.new("BallSocketConstraint",RLA)
  1058.                             bsc11.Attachment0 = RLA.RightElbowRigAttachment
  1059.                             bsc11.Attachment1 = RUA.RightElbowRigAttachment
  1060.                             table.insert(js,1,bsc11)
  1061.                         end
  1062.                         if not RUA:FindFirstChild('Dismembered') then  
  1063.                             local bsc12 = Instance.new("BallSocketConstraint",RUA)
  1064.                             bsc12.Attachment0 = RUA.RightShoulderAttachment
  1065.                             bsc12.Attachment1 = UT.RightCollarAttachment
  1066.                             table.insert(js,1,bsc12)
  1067.                         end
  1068.                         if not LT:FindFirstChild('Dismembered') then  
  1069.                             local bsc13 = Instance.new("BallSocketConstraint",LT)
  1070.                             bsc13.Attachment0 = LT.WaistRigAttachment
  1071.                             bsc13.Attachment1 = UT.WaistRigAttachment
  1072.                             table.insert(js,1,bsc13)
  1073.                         end
  1074.                         if not headless and not head:FindFirstChild('Dismembered')  then
  1075.                             local bsc14 = Instance.new("BallSocketConstraint",head)
  1076.                             bsc14.Attachment0 = UT.NeckRigAttachment
  1077.                             bsc14.Attachment1 = head.NeckRigAttachment
  1078.                             bsc14.LimitsEnabled = true
  1079.                             bsc14.UpperAngle = -75
  1080.                             bsc14.TwistLimitsEnabled = true
  1081.                             bsc14.UpperAngle = -45
  1082.                             bsc14.TwistLowerAngle = -45
  1083.                             table.insert(js,1,bsc14)
  1084.                         else
  1085.                             --head:BreakJoints()
  1086.                         end
  1087.                     end
  1088.                 end)
  1089.             end
  1090.         end
  1091.     end
  1092.     return js,js2
  1093. end
  1094.  
  1095. local blood_images = {931617584,1663434319,1391189545,4533673847,3236192667,2565888666,612591729,120362139,116830967,122022304,131339257,247766282,121678640,176677800,120361912,176678070,176678086,176677869} --305296807,256293532,148713503,176678030
  1096.  
  1097. local e_s = 1
  1098.  
  1099. function add_decal(f,t,obj,d)
  1100.     spawn(function()
  1101.     local texture = Instance.new("Texture")
  1102.     texture.Parent = obj
  1103.     texture.Face = f
  1104.     texture.Texture = 'rbxassetid://' .. t
  1105.     game:GetService("Debris"):AddItem(texture,d)
  1106.     if f == 'Left' or f == 'Right' then
  1107.         texture.StudsPerTileV = obj.Size.Y + e_s
  1108.         if (obj.Size.X > obj.Size.Z) then
  1109.             texture.StudsPerTileV = obj.Size.Z + e_s
  1110.         elseif (obj.Size.Z > obj.Size.X) then
  1111.             texture.StudsPerTileU = obj.Size.X + e_s
  1112.         else
  1113.             texture.StudsPerTileU = obj.Size.X + e_s
  1114.         end
  1115.     elseif f == 'Front' or f == 'Back' then
  1116.         texture.StudsPerTileV = obj.Size.Y + e_s
  1117.         if (obj.Size.X > obj.Size.Z) then
  1118.             texture.StudsPerTileV = obj.Size.X + e_s
  1119.         elseif (obj.Size.Z > obj.Size.X) then
  1120.             texture.StudsPerTileU = obj.Size.Z + e_s
  1121.         else
  1122.             texture.StudsPerTileU = obj.Size.X + e_s
  1123.         end
  1124.     elseif f == 'Top' or f == 'Bottom' then
  1125.         texture.StudsPerTileV = obj.Size.X + e_s
  1126.         texture.StudsPerTileU = obj.Size.Z + e_s
  1127.     end
  1128.     end)
  1129. end
  1130.  
  1131. function add_blood(obj)
  1132.     local t1,t2,t3,t4,t5,t6 = blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)],blood_images[math.random(1,#blood_images)]
  1133.     add_decal('Top',t1,obj,5)
  1134.     add_decal('Bottom',t2,obj,5)
  1135.     add_decal('Left',t3,obj,5)
  1136.     add_decal('Right',t4,obj,5)
  1137.     add_decal('Front',t5,obj,5)
  1138.     add_decal('Back',t6,obj,5)
  1139. end
  1140.  
  1141. function add_blood2(obj)
  1142.     local blood_particle = Instance.new("ParticleEmitter")
  1143.     blood_particle.Parent = obj
  1144.     blood_particle.Speed = NumberRange.new(5, 14)
  1145.     blood_particle.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  1146.     blood_particle.LightEmission = 0.20000000298023
  1147.     blood_particle.LightInfluence = 1
  1148.     blood_particle.Texture = "http://www.roblox.com/asset/?id=134531274"
  1149.     blood_particle.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  1150.     blood_particle.ZOffset = 1
  1151.     blood_particle.Size = NumberSequence.new(0.12499988079071,0)
  1152.     blood_particle.Acceleration = Vector3.new(0, -20, 0)
  1153.     blood_particle.EmissionDirection = Enum.NormalId.Front
  1154.     blood_particle.Lifetime = NumberRange.new(0.5, 1.5)
  1155.     blood_particle.Rate = 100000
  1156.     blood_particle.SpreadAngle = Vector2.new(360, 360)
  1157.     blood_particle.VelocitySpread = 360
  1158.     blood_particle.Enabled = true
  1159.     spawn(function()
  1160.         wait(0.3)
  1161.         blood_particle.Enabled = false
  1162.         game:GetService("Debris"):AddItem(blood_particle,2)
  1163.     end)
  1164. end
  1165.  
  1166. function touch_dmg(p,t,current_hit_id,mode,_kb)
  1167.     local hb = Instance.new("Part")
  1168.     hb.Size = p.Size
  1169.     hb.Transparency = 1
  1170.     hb.Shape = p.Shape
  1171.     hb.CanCollide = false
  1172.     hb.Anchored = false
  1173.     hb.Massless = true
  1174.     hb.Parent = p.Parent
  1175.    
  1176.     local weld = Instance.new("Weld")
  1177.     weld.Part0 = p
  1178.     weld.Part1 = hb
  1179.     weld.Parent = p
  1180.    
  1181.     local knock = nil
  1182.  
  1183.     hb.Touched:Connect(function(obj)
  1184.         if not obj:IsDescendantOf(script) then else return end
  1185.         local targchar,targhum,targtorso,hitval,killval,knockval,blockval
  1186.         pcall(function()
  1187.             if not obj.Parent:IsA("Accessory") then
  1188.                 targchar = obj.Parent
  1189.             elseif obj.Parent:IsA("Accessory") then
  1190.                 targchar = obj.Parent.Parent
  1191.             end
  1192.         end)
  1193.         for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1194.             if v.Character and obj:IsDescendantOf(v.Character) then
  1195.                 targchar = v.Character
  1196.             end
  1197.         end
  1198.         pcall(function()
  1199.             targhum = targchar:FindFirstChildOfClass("Humanoid")
  1200.         end)
  1201.         pcall(function()
  1202.             hitval = targhum:FindFirstChild("Hit by " .. plr.Name .. current_hit_id)
  1203.         end)
  1204.         pcall(function()
  1205.             killval = targhum:FindFirstChild("killer")
  1206.         end)
  1207.         pcall(function()
  1208.             knockval = targhum:FindFirstChild("knocked")
  1209.         end)
  1210.         pcall(function()
  1211.             blockval = targhum:FindFirstChild("blocking")
  1212.         end)
  1213.         pcall(function()
  1214.             finishingval = targhum:FindFirstChild("finishing")
  1215.         end)
  1216.         pcall(function()
  1217.             targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("UpperTorso") or targchar:FindFirstChild("HumanoidRootPart")
  1218.         end)
  1219.         if targchar and targhum and targtorso --[[and targhum.Health > 0]] and not hitval --[[and not killval]] and not finishingval and ((mode ~= 2) or (mode == 2 and (targhum.PlatformStand or targhum.Sit or 0 >= targhum.Health))) then
  1220.             local temphitval = Instance.new("ObjectValue")
  1221.             temphitval.Name = ("Hit by " .. plr.Name .. current_hit_id)
  1222.             temphitval.Parent = targhum
  1223.             game:GetService("Debris"):AddItem(temphitval,t)
  1224.             local ch = targhum.Health
  1225.             local tempdamage = dmg
  1226.             if tempdamage >= targhum.Health and targhum.Health > 1 then
  1227.                 tempdamage = targhum.Health - 1
  1228.                 targhum:TakeDamage(tempdamage)
  1229.             elseif targhum.Health > dmg then
  1230.                 targhum:TakeDamage(tempdamage)
  1231.             end
  1232.             if not knockval and not killval and not blockval then
  1233.                 local tempstunval = Instance.new("ObjectValue")
  1234.                 tempstunval.Name = 'Stunned'
  1235.                 tempstunval.Parent = targhum
  1236.                 game:GetService("Debris"):AddItem(tempstunval,stun_duration)
  1237.                 if mode == 3 then
  1238.                     knock = Instance.new("ObjectValue")
  1239.                     knock.Name = 'knocked'
  1240.                     knock.Parent = targhum
  1241.                     game:GetService("Debris"):AddItem(knock,t)
  1242.                 end
  1243.             end
  1244.             if ((ch > targhum.Health) or (0 >= targhum.Health)) then
  1245.                 if obj.Name ~= 'HumanoidRootPart' then
  1246.                     add_blood(obj)
  1247.                     add_blood2(obj)
  1248.                 end
  1249.                 punch.SoundId = 'rbxassetid://' .. punches[math.random(1,#punches)]
  1250.                 punch:Play()
  1251.             end
  1252.             if 0 >= targhum.Health then
  1253.                 if not killval and not targhum:FindFirstChild("Ragdolled") then
  1254.                     local tempkillval = Instance.new("ObjectValue")
  1255.                     tempkillval.Name = 'killer'
  1256.                     tempkillval.Value = plr
  1257.                     tempkillval.Parent = targhum
  1258.                     targhum:TakeDamage(1/0)
  1259.                     targhum.AutoRotate = false
  1260.                     Ragdoll(targchar,false,true,true)
  1261.                 end
  1262.                 if mode == 2 then
  1263.                     finish.SoundId = 'rbxassetid://' .. finishes[math.random(1,#finishes)]
  1264.                     finish:Play()
  1265.                 end
  1266.             end
  1267.             if targchar and targhum and targhum ~= hum and hum and not killval then
  1268.                 spawn(function()
  1269.                     if (15 >= targhum.Health or (knock and knock.Parent)) and targhum.Health > 0 and not targhum:FindFirstChild("Ragdolled") then
  1270.                         local ragval = Instance.new("ObjectValue")
  1271.                         ragval.Name = 'Ragdolled'
  1272.                         ragval.Parent = targhum
  1273.                         spawn(function()
  1274.                             local kb = _kb or 15
  1275.                             local b = Instance.new("BodyVelocity")
  1276.                             b.Parent = targtorso
  1277.                             b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1278.                             b.Velocity = rootpart.CFrame.lookVector*kb + Vector3.new(0,2,0)
  1279.                             game:GetService("Debris"):AddItem(b,0.15)
  1280.                         end)
  1281.                         local collision_limbs = {}
  1282.                         for i,v in pairs(targchar:GetChildren()) do
  1283.                             local limbs = limb_collide(v)
  1284.                             if limbs then
  1285.                                 for i,limb in pairs(limbs) do
  1286.                                     table.insert(collision_limbs,1,limb)
  1287.                                 end
  1288.                             end
  1289.                         end
  1290.                         local js,js2 = Ragdoll(targchar,false,true)
  1291.                         local ar = targhum.AutoRotate
  1292.                         targhum.AutoRotate = false
  1293.                         while (15 >= targhum.Health or (knock and knock.Parent)) and targhum.Health > 0 do
  1294.                             targhum.PlatformStand = true
  1295.                             wait(0.1)
  1296.                         end
  1297.                         for i,v in pairs(js) do v:Destroy(); end;
  1298.                         for i,v in pairs(js2) do v.obj.Parent = v.par; end;
  1299.                         for i,v in pairs(collision_limbs) do v:Destroy(); end;
  1300.                         if targhum and 0 >= targhum.Health then
  1301.                             Ragdoll(targchar,false,true,true)
  1302.                             return;
  1303.                         end;
  1304.                         for i,v in pairs(targchar:GetChildren()) do
  1305.                             if v:IsA("BasePart") or v:IsA("UnionOperation") then
  1306.                                 v:SetPartCollisionGroup(v, "Default")
  1307.                             end
  1308.                         end
  1309.                         if ar then
  1310.                             targhum.AutoRotate = true
  1311.                         end
  1312.                         ragval:Destroy()
  1313.                         targhum.Sit = false
  1314.                         targhum.PlatformStand = false
  1315.                         targhum:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false)
  1316.                         targhum:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
  1317.                         targtorso.Velocity = Vector3.new()
  1318.                     end
  1319.                 end)
  1320.             end
  1321.         end
  1322.     end)
  1323.     spawn(function()
  1324.         repeat wait() until not attacking
  1325.         hb:Destroy()
  1326.     end)
  1327. end
  1328.  
  1329. function left_punch(speed,current_hit_id)
  1330.     stamina = stamina - 7
  1331.     swing_s.PlaybackSpeed = math.random(90,110)/100
  1332.     swing_s:Play()
  1333.     dmg = 10
  1334.     touch_dmg(larm,2,current_hit_id)
  1335.     enabled[ls] = false
  1336.     enabled[rs] = false
  1337.     enabled[neck] = false
  1338.     larm_trail.Enabled = true
  1339.     for i = 1,2 do
  1340.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1341.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(120))*CFrame.new(0,0.5,0),speed)
  1342.        
  1343.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1344.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(-150))*CFrame.new(0,0.7,0),speed)
  1345.        
  1346.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1347.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(1),math.rad(1)),speed)
  1348.         Swait(anim_wait)
  1349.     end
  1350.     enabled[ls] = false
  1351.     enabled[rs] = false
  1352.     enabled[neck] = false
  1353.     for i = 1,3 do
  1354.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1355.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(-60),math.rad(0),math.rad(110))*CFrame.new(0.7,0,0.8),speed)
  1356.        
  1357.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1358.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(-130))*CFrame.new(-0.1,0.5,0),speed)
  1359.        
  1360.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1361.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(1),math.rad(-1)),speed)
  1362.         Swait(anim_wait)
  1363.     end
  1364.     enabled[ls] = true
  1365.     enabled[rs] = true
  1366.     enabled[neck] = true
  1367.     larm_trail.Enabled = false
  1368. end
  1369.  
  1370. function right_punch(speed,current_hit_id)
  1371.     stamina = stamina - 7
  1372.     swing_s.PlaybackSpeed = math.random(90,110)/100
  1373.     swing_s:Play()
  1374.     dmg = 10
  1375.     touch_dmg(rarm,2,current_hit_id)
  1376.     enabled[ls] = false
  1377.     enabled[rs] = false
  1378.     enabled[neck] = false
  1379.     rarm_trail.Enabled = true
  1380.     for i = 1,2 do
  1381.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1382.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(150))*CFrame.new(0,0.7,0),speed)
  1383.  
  1384.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1385.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-120))*CFrame.new(0,0.5,0),speed)
  1386.  
  1387.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1388.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(1),math.rad(-1)),speed)
  1389.         Swait(anim_wait)
  1390.     end
  1391.     enabled[ls] = false
  1392.     enabled[rs] = false
  1393.     enabled[neck] = false
  1394.     for i = 1,3 do
  1395.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1396.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(130))*CFrame.new(-0.1,0.5,0),speed)
  1397.        
  1398.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1399.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(-60),math.rad(0),math.rad(-110))*CFrame.new(-0.7,0,0.8),speed)
  1400.        
  1401.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1402.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(1),math.rad(1)),speed)
  1403.         Swait(anim_wait)
  1404.     end
  1405.     enabled[ls] = true
  1406.     enabled[rs] = true
  1407.     enabled[neck] = true
  1408.     rarm_trail.Enabled = false
  1409. end
  1410.  
  1411. function air_punch(speed,current_hit_id)
  1412.     stamina = stamina - 10
  1413.     dmg = 15
  1414.     touch_dmg(larm,2,current_hit_id)
  1415.     touch_dmg(rarm,2,current_hit_id)
  1416.     enabled[ls] = false
  1417.     enabled[rs] = false
  1418.     enabled[rh] = false
  1419.     enabled[lh] = false
  1420.     enabled[rj] = false
  1421.     rarm_trail.Enabled = true
  1422.     larm_trail.Enabled = true
  1423.     for i = 1,5 do
  1424.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1425.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(140))*CFrame.new(0,0,0.5),speed)
  1426.  
  1427.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1428.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-140))*CFrame.new(0,0,0.5),speed)
  1429.  
  1430.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1431.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(45)),speed)
  1432.  
  1433.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1434.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-25)),speed)
  1435.  
  1436.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1437.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),speed)
  1438.         Swait(anim_wait)
  1439.     end
  1440.     swing_s.PlaybackSpeed = math.random(90,110)/100
  1441.     swing_s:Play()
  1442.     enabled[neck] = false
  1443.     for i = 1,5 do
  1444.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1445.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(75))*CFrame.new(0,0,0.5),speed)
  1446.  
  1447.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1448.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-75))*CFrame.new(0,0,0.5),speed)
  1449.        
  1450.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1451.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),speed)
  1452.  
  1453.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1454.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(25)),speed)
  1455.  
  1456.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1457.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15)),speed)
  1458.  
  1459.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1460.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),speed)
  1461.         Swait(anim_wait)
  1462.     end
  1463.     enabled[ls] = true
  1464.     enabled[rs] = true
  1465.     enabled[rh] = true
  1466.     enabled[lh] = true
  1467.     enabled[rj] = true
  1468.     enabled[neck] = true
  1469.     rarm_trail.Enabled = false
  1470.     larm_trail.Enabled = false
  1471. end
  1472.  
  1473. function left_kick(speed,current_hit_id)
  1474.     stamina = stamina - 13
  1475.     dmg = 16
  1476.     touch_dmg(lleg,2,current_hit_id)
  1477.     enabled[ls] = false
  1478.     enabled[rs] = false
  1479.     enabled[lh] = false
  1480.     enabled[rj] = false
  1481.     enabled[neck] = false
  1482.     lleg_trail.Enabled = true
  1483.     for i = 1,3 do
  1484.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1485.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(15),math.rad(0),math.rad(-15)),speed)
  1486.  
  1487.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1488.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(-5)),speed)
  1489.  
  1490.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1491.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-5)),speed)
  1492.  
  1493.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1494.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(-5),math.rad(-45)),speed)
  1495.  
  1496.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1497.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)),speed)
  1498.         Swait(anim_wait)
  1499.     end
  1500.     swing_s.PlaybackSpeed = math.random(90,110)/100
  1501.     swing_s:Play()
  1502.     for i = 1,4 do
  1503.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1504.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(15)),speed)
  1505.  
  1506.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1507.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(5)),speed)
  1508.  
  1509.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1510.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(5)),speed)
  1511.  
  1512.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1513.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(5),math.rad(75)),speed)
  1514.  
  1515.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1516.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)),speed)
  1517.         Swait(anim_wait)
  1518.     end
  1519.     enabled[ls] = true
  1520.     enabled[rs] = true
  1521.     enabled[rh] = true
  1522.     enabled[lh] = true
  1523.     enabled[rj] = true
  1524.     enabled[neck] = true
  1525.     lleg_trail.Enabled = false
  1526. end
  1527.  
  1528. function right_kick(speed,current_hit_id)
  1529.     stamina = stamina - 13
  1530.     dmg = 16
  1531.     touch_dmg(rleg,2,current_hit_id)
  1532.     enabled[ls] = false
  1533.     enabled[rs] = false
  1534.     enabled[rh] = false
  1535.     enabled[rj] = false
  1536.     enabled[neck] = false
  1537.     rleg_trail.Enabled = true
  1538.     for i = 1,3 do
  1539.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1540.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(5)),speed)
  1541.  
  1542.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1543.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(15),math.rad(0),math.rad(15)),speed)
  1544.  
  1545.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1546.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(5)),speed)
  1547.  
  1548.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1549.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(5),math.rad(45)),speed)
  1550.  
  1551.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1552.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15)),speed)
  1553.         Swait(anim_wait)
  1554.     end
  1555.     swing_s.PlaybackSpeed = math.random(90,110)/100
  1556.     swing_s:Play()
  1557.     for i = 1,4 do
  1558.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1559.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(-5)),speed)
  1560.  
  1561.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1562.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(-15)),speed)
  1563.  
  1564.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1565.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(-5)),speed)
  1566.  
  1567.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1568.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(-5),math.rad(-75)),speed)
  1569.  
  1570.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1571.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(10)),speed)
  1572.         Swait(anim_wait)
  1573.     end
  1574.     enabled[ls] = true
  1575.     enabled[rs] = true
  1576.     enabled[rh] = true
  1577.     enabled[lh] = true
  1578.     enabled[rj] = true
  1579.     enabled[neck] = true
  1580.     rleg_trail.Enabled = false
  1581. end
  1582.  
  1583. function air_kick(speed)
  1584.    
  1585. end
  1586.  
  1587. function right_round_house(speed,current_hit_id)
  1588.     stamina = stamina - 20
  1589.     dmg = 25
  1590.     touch_dmg(rleg,2,current_hit_id)
  1591.     enabled[ls] = false
  1592.     enabled[rs] = false
  1593.     enabled[rh] = false
  1594.     enabled[rj] = false
  1595.     enabled[neck] = false
  1596.     rleg_trail.Enabled = true
  1597.     for i = 1,3 do
  1598.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1599.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(5)),speed)
  1600.  
  1601.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1602.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(15),math.rad(0),math.rad(15)),speed)
  1603.  
  1604.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1605.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(5)),speed)
  1606.  
  1607.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1608.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(5),math.rad(45)),speed)
  1609.  
  1610.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1611.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15)),speed)
  1612.         Swait(anim_wait)
  1613.     end
  1614.     swing_s.PlaybackSpeed = math.random(90,110)/100
  1615.     swing_s:Play()
  1616.     for i = 1,4 do
  1617.  
  1618.         Swait(anim_wait)
  1619.     end
  1620.     enabled[ls] = true
  1621.     enabled[rs] = true
  1622.     enabled[rh] = true
  1623.     enabled[lh] = true
  1624.     enabled[rj] = true
  1625.     enabled[neck] = true
  1626.     rleg_trail.Enabled = true
  1627. end
  1628.  
  1629. function left_sweep(speed,current_hit_id)
  1630.     stamina = stamina - 10
  1631.     dmg = 12
  1632.     hum.WalkSpeed = 0
  1633.     enabled[ls] = false
  1634.     enabled[rs] = false
  1635.     enabled[lh] = false
  1636.     enabled[rh] = false
  1637.     enabled[rj] = false
  1638.     enabled[neck] = false
  1639.     lleg_trail.Enabled = true
  1640.     local kb = 25
  1641.     local b = Instance.new("BodyVelocity")
  1642.     b.Parent = rootpart
  1643.     b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1644.     b.Velocity = rootpart.CFrame.lookVector*kb
  1645.     game:GetService("Debris"):AddItem(b,0.15)
  1646.     for i = 1,4 do
  1647.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1648.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(-5)),speed)
  1649.  
  1650.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1651.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(-5)),speed)
  1652.  
  1653.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1654.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-35)),speed)
  1655.  
  1656.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1657.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(35),math.rad(0))*CFrame.new(0,-0.5,0),speed)
  1658.  
  1659.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1660.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(15),math.rad(0),math.rad(-45))*CFrame.new(0.5,0,0.2),speed)
  1661.  
  1662.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1663.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(60))*CFrame.new(0,0,-0.5),speed)
  1664.         Swait(anim_wait)
  1665.     end
  1666.     touch_dmg(lleg,1,current_hit_id,3,25)
  1667.     swing_s.PlaybackSpeed = math.random(90,110)/100
  1668.     swing_s:Play()
  1669.     for i = 1,4 do
  1670.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1671.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(15),math.rad(0),math.rad(-25)),speed)
  1672.  
  1673.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1674.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(-45)),speed)
  1675.  
  1676.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1677.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-35)),speed)
  1678.  
  1679.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1680.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(35),math.rad(-25))*CFrame.new(0,-1,0),speed)
  1681.  
  1682.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1683.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(-45))*CFrame.new(0.1,0.1,-0.1),speed)
  1684.  
  1685.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1686.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(45*i))*CFrame.new(0,0,-1),speed)
  1687.         Swait(anim_wait)
  1688.     end
  1689.     for i = 1,4 do
  1690.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1691.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(15),math.rad(0),math.rad(-45)),speed)
  1692.  
  1693.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1694.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(45),math.rad(-35)),speed)
  1695.  
  1696.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1697.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-35)),speed)
  1698.  
  1699.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1700.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(35),math.rad(-25))*CFrame.new(0,-1,0),speed)
  1701.  
  1702.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1703.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(-45))*CFrame.new(0.1,0.1,-0.1),speed)
  1704.  
  1705.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1706.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(180+(45*i)))*CFrame.new(0,0,-1.2),speed)
  1707.         Swait(anim_wait)
  1708.     end
  1709.     enabled[ls] = true
  1710.     enabled[rs] = true
  1711.     enabled[lh] = true
  1712.     enabled[rh] = true
  1713.     enabled[rj] = true
  1714.     enabled[neck] = true
  1715.     lleg_trail.Enabled = false
  1716. end
  1717.  
  1718. function right_sweep(speed,current_hit_id)
  1719.     stamina = stamina - 10
  1720.     dmg = 12
  1721.     hum.WalkSpeed = 0
  1722.     enabled[ls] = false
  1723.     enabled[rs] = false
  1724.     enabled[lh] = false
  1725.     enabled[rh] = false
  1726.     enabled[rj] = false
  1727.     enabled[neck] = false
  1728.     rleg_trail.Enabled = true
  1729.     local kb = 25
  1730.     local b = Instance.new("BodyVelocity")
  1731.     b.Parent = rootpart
  1732.     b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1733.     b.Velocity = rootpart.CFrame.lookVector*kb
  1734.     game:GetService("Debris"):AddItem(b,0.15)
  1735.     for i = 1,4 do
  1736.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1737.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(-5)),speed)
  1738.  
  1739.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1740.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(-5)),speed)
  1741.  
  1742.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1743.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-35)),speed)
  1744.  
  1745.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1746.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(35),math.rad(0))*CFrame.new(0,-0.5,0),speed)
  1747.  
  1748.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1749.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(15),math.rad(0),math.rad(-45))*CFrame.new(0.5,0,0.2),speed)
  1750.  
  1751.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1752.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(60))*CFrame.new(0,0,-0.5),speed)
  1753.         Swait(anim_wait)
  1754.     end
  1755.     touch_dmg(rleg,1,current_hit_id,3,25)
  1756.     swing_s.PlaybackSpeed = math.random(90,110)/100
  1757.     swing_s:Play()
  1758.     for i = 1,4 do
  1759.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1760.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(15),math.rad(0),math.rad(25)),speed)
  1761.  
  1762.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1763.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(45)),speed)
  1764.  
  1765.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1766.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-35)),speed)
  1767.  
  1768.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1769.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(45))*CFrame.new(-0.1,0.1,-0.1),speed)
  1770.  
  1771.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1772.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(-35),math.rad(25))*CFrame.new(0,-1,0),speed)
  1773.  
  1774.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1775.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(-45*i))*CFrame.new(0,0,-1),speed)
  1776.         Swait(anim_wait)
  1777.     end
  1778.     for i = 1,4 do
  1779.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1780.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(45)),speed)
  1781.  
  1782.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1783.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(15),math.rad(0),math.rad(25)),speed)
  1784.  
  1785.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1786.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-35)),speed)
  1787.  
  1788.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1789.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(45))*CFrame.new(-0.1,0.1,-0.1),speed)
  1790.  
  1791.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1792.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(-35),math.rad(25))*CFrame.new(0,-1,0),speed)
  1793.  
  1794.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1795.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(-180+(-45*i)))*CFrame.new(0,0,-1.2),speed)
  1796.         Swait(anim_wait)
  1797.     end
  1798.     enabled[ls] = true
  1799.     enabled[rs] = true
  1800.     enabled[lh] = true
  1801.     enabled[rh] = true
  1802.     enabled[rj] = true
  1803.     enabled[neck] = true
  1804.     rleg_trail.Enabled = false
  1805. end
  1806.  
  1807. function left_low_kick(speed,current_hit_id)
  1808.     stamina = stamina - 15
  1809.     dmg = 20
  1810.     hum.WalkSpeed = 8
  1811.     touch_dmg(lleg,1,current_hit_id)
  1812.     enabled[ls] = false
  1813.     enabled[rs] = false
  1814.     enabled[lh] = false
  1815.     enabled[rh] = false
  1816.     enabled[rj] = false
  1817.     enabled[neck] = false
  1818.     lleg_trail.Enabled = true
  1819.     swing_s.PlaybackSpeed = math.random(90,110)/100
  1820.     swing_s:Play()
  1821.     for i = 1,6 do
  1822.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1823.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(80))*CFrame.new(0.5,0,0),speed)
  1824.  
  1825.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1826.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-150))*CFrame.new(0,0.5,0),speed)
  1827.  
  1828.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1829.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  1830.  
  1831.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1832.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(25)),speed)
  1833.  
  1834.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1835.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(100))*CFrame.new(0.5,0,0),speed)
  1836.  
  1837.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1838.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(25),math.rad(0),math.rad(0)),speed)
  1839.         Swait(anim_wait)
  1840.     end
  1841.     enabled[ls] = true
  1842.     enabled[rs] = true
  1843.     enabled[lh] = true
  1844.     enabled[rh] = true
  1845.     enabled[rj] = true
  1846.     enabled[neck] = true
  1847.     lleg_trail.Enabled = false
  1848. end
  1849.  
  1850. function right_low_kick(speed,current_hit_id)
  1851.     stamina = stamina - 15
  1852.     dmg = 20
  1853.     hum.WalkSpeed = 8
  1854.     touch_dmg(rleg,1,current_hit_id)
  1855.     enabled[ls] = false
  1856.     enabled[rs] = false
  1857.     enabled[lh] = false
  1858.     enabled[rh] = false
  1859.     enabled[rj] = false
  1860.     enabled[neck] = false
  1861.     rleg_trail.Enabled = true
  1862.     swing_s.PlaybackSpeed = math.random(90,110)/100
  1863.     swing_s:Play()
  1864.     for i = 1,6 do
  1865.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1866.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(150))*CFrame.new(0,0.5,0),speed)
  1867.  
  1868.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1869.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-80))*CFrame.new(-0.5,0,0),speed)
  1870.  
  1871.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1872.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  1873.  
  1874.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1875.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-100))*CFrame.new(-0.5,0,0),speed)
  1876.  
  1877.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1878.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-25)),speed)
  1879.  
  1880.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1881.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(25),math.rad(0),math.rad(0)),speed)
  1882.         Swait(anim_wait)
  1883.     end
  1884.     enabled[ls] = true
  1885.     enabled[rs] = true
  1886.     enabled[lh] = true
  1887.     enabled[rh] = true
  1888.     enabled[rj] = true
  1889.     enabled[neck] = true
  1890.     rleg_trail.Enabled = false
  1891. end
  1892.  
  1893. function left_high_kick(speed,current_hit_id)
  1894.     stamina = stamina - 20
  1895.     dmg = 25
  1896.     hum.WalkSpeed = 0
  1897.     touch_dmg(lleg,1,current_hit_id,3,30)
  1898.     enabled[ls] = false
  1899.     enabled[rs] = false
  1900.     enabled[lh] = false
  1901.     enabled[rh] = false
  1902.     enabled[rj] = false
  1903.     enabled[neck] = false
  1904.     lleg_trail.Enabled = true
  1905.     swing_s.PlaybackSpeed = math.random(90,110)/100
  1906.     swing_s:Play()
  1907.     local kb = 30
  1908.     local b = Instance.new("BodyVelocity")
  1909.     b.Parent = rootpart
  1910.     b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1911.     b.Velocity = rootpart.CFrame.lookVector*kb
  1912.     game:GetService("Debris"):AddItem(b,0.15)
  1913.     for i = 1,6 do
  1914.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1915.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(150),math.rad(0),math.rad(0))*CFrame.new(0,0,-0.5),speed)
  1916.  
  1917.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1918.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(75),math.rad(-10),math.rad(10))*CFrame.new(0,0,-0.2),speed)
  1919.  
  1920.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1921.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(45)),speed)
  1922.  
  1923.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1924.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(60),math.rad(0),math.rad(0))*CFrame.new(-0.3,-1.3,0.7),speed)
  1925.  
  1926.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1927.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))*CFrame.new(0,-0.5,0),speed)
  1928.  
  1929.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1930.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(-60),math.rad(-90))*CFrame.new(0,0,-1),speed)
  1931.         Swait(anim_wait)
  1932.     end
  1933.     enabled[ls] = true
  1934.     enabled[rs] = true
  1935.     enabled[lh] = true
  1936.     enabled[rh] = true
  1937.     enabled[rj] = true
  1938.     enabled[neck] = true
  1939.     lleg_trail.Enabled = false
  1940. end
  1941.  
  1942. function right_high_kick(speed,current_hit_id)
  1943.     stamina = stamina - 20
  1944.     dmg = 25
  1945.     hum.WalkSpeed = 0
  1946.     touch_dmg(rleg,1,current_hit_id,3,30)
  1947.     enabled[ls] = false
  1948.     enabled[rs] = false
  1949.     enabled[lh] = false
  1950.     enabled[rh] = false
  1951.     enabled[rj] = false
  1952.     enabled[neck] = false
  1953.     rleg_trail.Enabled = true
  1954.     swing_s.PlaybackSpeed = math.random(90,110)/100
  1955.     swing_s:Play()
  1956.     local kb = 30
  1957.     local b = Instance.new("BodyVelocity")
  1958.     b.Parent = rootpart
  1959.     b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1960.     b.Velocity = rootpart.CFrame.lookVector*kb
  1961.     game:GetService("Debris"):AddItem(b,0.15)
  1962.     for i = 1,6 do
  1963.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1964.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(75),math.rad(10),math.rad(-10))*CFrame.new(0,0,-0.2),speed)
  1965.  
  1966.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1967.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(150),math.rad(0),math.rad(0))*CFrame.new(0,0,-0.6),speed)
  1968.  
  1969.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1970.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-45)),speed)
  1971.  
  1972.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1973.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))*CFrame.new(0,-0.5,0),speed)
  1974.  
  1975.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1976.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(60),math.rad(0),math.rad(0))*CFrame.new(0.3,-1.3,0.7),speed)
  1977.  
  1978.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  1979.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(60),math.rad(90))*CFrame.new(0,0,-1),speed)
  1980.         Swait(anim_wait)
  1981.     end
  1982.     enabled[ls] = true
  1983.     enabled[rs] = true
  1984.     enabled[lh] = true
  1985.     enabled[rh] = true
  1986.     enabled[rj] = true
  1987.     enabled[neck] = true
  1988.     rleg_trail.Enabled = false
  1989. end
  1990.  
  1991. function stomp(speed,current_hit_id)
  1992.     finishing = true
  1993.    
  1994.     local finishregion = Region3.new(rootpart.Position-(Vector3.new(3, 6, 3)/2),rootpart.Position+(Vector3.new(3, -6, 3)/2))
  1995.     local targchar,targtorso,targhum
  1996.     local regionparts = workspace:FindPartsInRegion3(finishregion)
  1997.    
  1998.     for _,obj in pairs(regionparts) do
  1999.         if not obj:IsDescendantOf(char) then
  2000.             local tempchar,temptorso,temphum
  2001.             pcall(function()
  2002.                 if not obj.Parent:IsA("Accessory") then
  2003.                     tempchar = obj.Parent
  2004.                 elseif obj.Parent:IsA("Accessory") then
  2005.                     tempchar = obj.Parent.Parent
  2006.                 end
  2007.             end)
  2008.             for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  2009.                 if v.Character and obj:IsDescendantOf(v.Character) then
  2010.                     tempchar = v.Character
  2011.                 end
  2012.             end
  2013.             pcall(function()
  2014.                 temptorso = tempchar:FindFirstChild("Torso") or tempchar:FindFirstChild("UpperTorso") or tempchar:FindFirstChild("HumanoidRootPart")
  2015.             end)
  2016.             pcall(function()
  2017.                 temphum = tempchar:FindFirstChildOfClass("Humanoid")
  2018.             end)
  2019.             if tempchar and temptorso and temphum and not temphum:FindFirstChild('killer') and temphum.Health > 0 and 15 > temphum.Health and (temphum.PlatformStand or temphum.Sit) then
  2020.                 targchar = tempchar
  2021.                 targtorso = temptorso
  2022.                 targhum = temphum
  2023.             end
  2024.         end
  2025.     end
  2026.    
  2027.     if targchar and targtorso and targhum and not targhum:FindFirstChild('killer') and targhum.Health > 0 and 15 > targhum.Health and (targhum.PlatformStand or targhum.Sit) then
  2028.         local finishval = Instance.new("ObjectValue")
  2029.         finishval.Name = 'finishing'
  2030.         finishval.Parent = hum
  2031.         targtorso.Anchored = true
  2032.         torso.Position = targtorso.Position + Vector3.new(0,4,0)
  2033.         hum.WalkSpeed = 0
  2034.         --enabled[ls] = false
  2035.         --enabled[rs] = false
  2036.         enabled[neck] = false
  2037.         enabled[rh] = false
  2038.         enabled[lh] = false
  2039.         enabled[rj] = false
  2040.         rleg_trail.Enabled = true
  2041.         for i = 1,5 do
  2042.             neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  2043.             neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  2044.  
  2045.             rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  2046.             rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15))*CFrame.new(-0.5,-0.9,0),speed)
  2047.  
  2048.             lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  2049.             lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),speed)
  2050.  
  2051.             rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  2052.             rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(0)),speed)
  2053.             Swait(anim_wait)
  2054.         end
  2055.         swing_s.PlaybackSpeed = math.random(90,110)/100
  2056.         swing_s:Play()
  2057.         for i = 1,2 do
  2058.             neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  2059.             neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  2060.  
  2061.             rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  2062.             rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15))*CFrame.new(0.7,-0.1,0),speed)
  2063.  
  2064.             lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  2065.             lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)),speed)
  2066.  
  2067.             rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  2068.             rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),speed)
  2069.             Swait(anim_wait)
  2070.         end
  2071.         finish.SoundId = 'rbxassetid://' .. finishes[math.random(1,#finishes)]
  2072.         finish:Play()
  2073.         punch.SoundId = 'rbxassetid://' .. punches[math.random(1,#punches)]
  2074.         punch:Play()
  2075.         local tempkillval = Instance.new("ObjectValue")
  2076.         tempkillval.Name = 'killer'
  2077.         tempkillval.Value = plr
  2078.         tempkillval.Parent = targhum
  2079.         targhum:TakeDamage(1/0)
  2080.         targtorso.Anchored = false
  2081.         targhum.PlatformStand = false
  2082.         targhum.Sit = false
  2083.         --Ragdoll(targchar,false,true)
  2084.         add_blood2(targtorso)
  2085.         for i = 1,3 do
  2086.             neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  2087.             neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  2088.  
  2089.             rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  2090.             rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15))*CFrame.new(-0.7,0.1,0),speed)
  2091.  
  2092.             lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  2093.             lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)),speed)
  2094.  
  2095.             rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  2096.             rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),speed)
  2097.             Swait(anim_wait)
  2098.         end
  2099.         for i = 1,5 do
  2100.             neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  2101.             neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  2102.  
  2103.             rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  2104.             rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15))*CFrame.new(-0.5,-0.9,0),speed)
  2105.  
  2106.             lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  2107.             lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),speed)
  2108.  
  2109.             rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  2110.             rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(0)),speed)
  2111.             Swait(anim_wait)
  2112.         end
  2113.         enabled[ls] = true
  2114.         enabled[rs] = true
  2115.         enabled[neck] = true
  2116.         enabled[rh] = true
  2117.         enabled[lh] = true
  2118.         enabled[rj] = true
  2119.         rleg_trail.Enabled = false
  2120.         finishval:Destroy()
  2121.     elseif stamina >= 10 then
  2122.         stamina = stamina - 10
  2123.         dmg = 10
  2124.         hum.WalkSpeed = 0
  2125.         --enabled[ls] = false
  2126.         --enabled[rs] = false
  2127.         enabled[neck] = false
  2128.         enabled[rh] = false
  2129.         enabled[lh] = false
  2130.         enabled[rj] = false
  2131.         rleg_trail.Enabled = true
  2132.         for i = 1,5 do
  2133.             neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  2134.             neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  2135.  
  2136.             rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  2137.             rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15))*CFrame.new(-0.5,-0.9,0),speed)
  2138.  
  2139.             lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  2140.             lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),speed)
  2141.  
  2142.             rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  2143.             rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(0)),speed)
  2144.             Swait(anim_wait)
  2145.         end
  2146.         touch_dmg(rleg,2,current_hit_id,2)
  2147.         swing_s.PlaybackSpeed = math.random(90,110)/100
  2148.         swing_s:Play()
  2149.         for i = 1,5 do
  2150.             neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  2151.             neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  2152.  
  2153.             rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  2154.             rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15))*CFrame.new(-0.7,0.1,0),speed)
  2155.  
  2156.             lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  2157.             lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)),speed)
  2158.  
  2159.             rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  2160.             rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),speed)
  2161.             Swait(anim_wait)
  2162.         end
  2163.         for i = 1,5 do
  2164.             neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  2165.             neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  2166.  
  2167.             rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  2168.             rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15))*CFrame.new(-0.5,-0.9,0),speed)
  2169.  
  2170.             lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  2171.             lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),speed)
  2172.  
  2173.             rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  2174.             rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(0)),speed)
  2175.             Swait(anim_wait)
  2176.         end
  2177.         enabled[ls] = true
  2178.         enabled[rs] = true
  2179.         enabled[neck] = true
  2180.         enabled[rh] = true
  2181.         enabled[lh] = true
  2182.         enabled[rj] = true
  2183.         rleg_trail.Enabled = false
  2184.     end
  2185.     finishing = false
  2186. end
  2187.  
  2188. function carry(speed)
  2189.     local finishregion = Region3.new(rootpart.Position-(Vector3.new(5, 6, 5)/2),rootpart.Position+(Vector3.new(5, -6, 5)/2))
  2190.     local targchar,targtorso,targhum
  2191.     local regionparts = workspace:FindPartsInRegion3(finishregion)
  2192.    
  2193.     for _,obj in pairs(regionparts) do
  2194.         if not obj:IsDescendantOf(char) then
  2195.             local tempchar,temptorso,temphum
  2196.             pcall(function()
  2197.                 if not obj.Parent:IsA("Accessory") then
  2198.                     tempchar = obj.Parent
  2199.                 elseif obj.Parent:IsA("Accessory") then
  2200.                     tempchar = obj.Parent.Parent
  2201.                 end
  2202.             end)
  2203.             for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  2204.                 if v.Character and obj:IsDescendantOf(v.Character) then
  2205.                     tempchar = v.Character
  2206.                 end
  2207.             end
  2208.             pcall(function()
  2209.                 temptorso = tempchar:FindFirstChild("Torso") or tempchar:FindFirstChild("UpperTorso") or tempchar:FindFirstChild("HumanoidRootPart")
  2210.             end)
  2211.             pcall(function()
  2212.                 temphum = tempchar:FindFirstChildOfClass("Humanoid")
  2213.             end)
  2214.             if tempchar and temptorso and temphum and not temphum:FindFirstChild("Being Carried") and (15 > temphum.Health) and (temphum.PlatformStand or temphum.Sit or (0 >= temphum.Health) or temphum:FindFirstChild('knocked')) then
  2215.                 targchar = tempchar
  2216.                 targtorso = temptorso
  2217.                 targhum = temphum
  2218.             end
  2219.         end
  2220.     end
  2221.    
  2222.     if (targchar and targtorso and targhum and not targhum:FindFirstChild("Being Carried") and (15 > targhum.Health) and (targhum.PlatformStand or targhum.Sit or (0 >= targhum.Health) or targhum:FindFirstChild('knocked'))) then
  2223.         carrying = true
  2224.         enabled[ls] = false
  2225.         enabled[rs] = false
  2226.         enabled[neck] = false
  2227.         local cval = Instance.new("ObjectValue")
  2228.         cval.Name = 'Being Carried'
  2229.         cval.Parent = targhum
  2230.         local bp = Instance.new("BodyPosition")
  2231.         bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  2232.         bp.P = 100000
  2233.         bp.Parent = targtorso
  2234.         while carrying and (targchar and targtorso and targhum and (15 > targhum.Health) and (targhum.PlatformStand or targhum.Sit or (0 >= targhum.Health) or targhum:FindFirstChild('knocked'))) do
  2235.             ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  2236.             ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(45))*CFrame.new(0.8,0,0.6),speed)
  2237.  
  2238.             rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  2239.             rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(-45))*CFrame.new(-0.8,0,0.6),speed)
  2240.  
  2241.             neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),speed)
  2242.             neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),speed)
  2243.             --targtorso.CFrame = torso.CFrame*CFrame.new(0,0,-4.5)
  2244.             bp.Position = (torso.CFrame*CFrame.new(0,0,-4.5)).p
  2245.             wait()
  2246.         end
  2247.         if bp then
  2248.             bp:Destroy()
  2249.         end
  2250.         if cval then
  2251.             cval:Destroy()
  2252.         end
  2253.         carrying = false
  2254.         enabled[ls] = true
  2255.         enabled[rs] = true
  2256.         enabled[neck] = true
  2257.         enabled[rh] = true
  2258.         enabled[lh] = true
  2259.         enabled[rj] = true
  2260.     end
  2261. end
  2262.  
  2263. function dance(mode)
  2264.     if not toggling_dance then else return end
  2265.     toggling_dance = true
  2266.     if mode and not dancing then
  2267.         dancing = true
  2268.         blocking = false
  2269.         blocking2 = false
  2270.         enabled[ls] = false
  2271.         enabled[rs] = false
  2272.         enabled[neck] = false
  2273.         enabled[rh] = false
  2274.         enabled[lh] = false
  2275.         enabled[rj] = false
  2276.         reset_anims(false)
  2277.         local d = hum:LoadAnimation(dance_anim)
  2278.         d.Priority = Enum.AnimationPriority.Action
  2279.         d:Play()
  2280.         mash:Play()
  2281.     elseif not mode and dancing then
  2282.         mash:Stop()
  2283.         reset_anims(true)
  2284.         enabled[ls] = true
  2285.         enabled[rs] = true
  2286.         enabled[neck] = true
  2287.         enabled[rh] = true
  2288.         enabled[lh] = true
  2289.         enabled[rj] = true
  2290.         dancing = false
  2291.     end
  2292.     toggling_dance = false
  2293. end
  2294.  
  2295. function alive()
  2296.     local alive = false
  2297.     if (plr and plr.Parent and char and char.Parent and hum and hum.Parent and hum.Health > 0 and torso and torso.Parent) then
  2298.         alive = true
  2299.     end
  2300.     return alive
  2301. end
  2302.  
  2303. function create_gui(p)
  2304.     local screen = Instance.new("ScreenGui")
  2305.     local Frame1 = Instance.new("Frame")
  2306.     local Frame2 = Instance.new("Frame")
  2307.     local staminabar = Instance.new("Frame")
  2308.     local staminastat = Instance.new("TextBox")
  2309.     local TextLabel5 = Instance.new("TextLabel")
  2310.     local Frame6 = Instance.new("Frame")
  2311.     local healthbar = Instance.new("Frame")
  2312.     local TextLabel8 = Instance.new("TextLabel")
  2313.     local healthstat = Instance.new("TextBox")
  2314.     local Frame10 = Instance.new("Frame")
  2315.     local blockbar = Instance.new("Frame")
  2316.     local blockstat = Instance.new("TextBox")
  2317.     local TextLabel13 = Instance.new("TextLabel")
  2318.     screen.Parent = p
  2319.     screen.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  2320.     Frame1.Parent = screen
  2321.     Frame1.Size = UDim2.new(1, 0, 1, 0)
  2322.     Frame1.BackgroundColor = BrickColor.new("Institutional white")
  2323.     Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
  2324.     Frame1.BackgroundTransparency = 1
  2325.     Frame2.Name = "Stamina"
  2326.     Frame2.Parent = Frame1
  2327.     Frame2.Position = UDim2.new(0.317999989, 0, 0.899393916, 0)
  2328.     Frame2.Size = UDim2.new(0.331917137, 0, 0.0316969417, 0)
  2329.     Frame2.BackgroundColor = BrickColor.new("Tr. Flu. Blue")
  2330.     Frame2.BackgroundColor3 = Color3.new(0.858824, 0.737255, 1)
  2331.     staminabar.Name = "bar"
  2332.     staminabar.Parent = Frame2
  2333.     staminabar.Size = UDim2.new(1, 0, 1, 0)
  2334.     staminabar.BackgroundColor = BrickColor.new("Fire Yellow")
  2335.     staminabar.BackgroundColor3 = Color3.new(1, 0.941177, 0.27451)
  2336.     staminastat.Name = "stat"
  2337.     staminastat.Parent = Frame2
  2338.     staminastat.Position = UDim2.new(0.325197548, 0, 0, 0)
  2339.     staminastat.Size = UDim2.new(0.5, 0, 1, 0)
  2340.     staminastat.BackgroundColor = BrickColor.new("Institutional white")
  2341.     staminastat.BackgroundColor3 = Color3.new(1, 1, 1)
  2342.     staminastat.BackgroundTransparency = 1
  2343.     staminastat.ZIndex = 3
  2344.     staminastat.Font = Enum.Font.SourceSans
  2345.     staminastat.FontSize = Enum.FontSize.Size24 staminastat.Text = tostring(math.floor(stamina)) .. "/" .. tostring(math.floor(staminamax))
  2346.     staminastat.TextColor = BrickColor.new("Institutional white")
  2347.     staminastat.TextColor3 = Color3.new(1, 1, 1)
  2348.     staminastat.TextSize = 20
  2349.     staminastat.TextStrokeTransparency = 0
  2350.     staminastat.TextWrap = true
  2351.     staminastat.TextWrapped = true
  2352.     TextLabel5.Name = "title"
  2353.     TextLabel5.Parent = Frame2
  2354.     TextLabel5.Position = UDim2.new(0.172155678, 0, 0, 0)
  2355.     TextLabel5.Size = UDim2.new(0.5, 0, 1, 0)
  2356.     TextLabel5.BackgroundColor = BrickColor.new("Institutional white")
  2357.     TextLabel5.BackgroundColor3 = Color3.new(1, 1, 1)
  2358.     TextLabel5.BackgroundTransparency = 1
  2359.     TextLabel5.ZIndex = 3
  2360.     TextLabel5.Font = Enum.Font.SourceSans
  2361.     TextLabel5.FontSize = Enum.FontSize.Size24
  2362.     TextLabel5.Text = "Stamina:"
  2363.     TextLabel5.TextColor = BrickColor.new("Institutional white")
  2364.     TextLabel5.TextColor3 = Color3.new(1, 1, 1)
  2365.     TextLabel5.TextSize = 20
  2366.     TextLabel5.TextStrokeTransparency = 0
  2367.     TextLabel5.TextWrap = true
  2368.     TextLabel5.TextWrapped = true
  2369.     Frame6.Name = "Health"
  2370.     Frame6.Parent = Frame1
  2371.     Frame6.Position = UDim2.new(0.317578763, 0, 0.859090745, 0)
  2372.     Frame6.Size = UDim2.new(0.332338333, 0, 0.0316969417, 0)
  2373.     Frame6.BackgroundColor = BrickColor.new("Persimmon")
  2374.     Frame6.BackgroundColor3 = Color3.new(1, 0.25098, 0.262745)
  2375.     healthbar.Name = "bar"
  2376.     healthbar.Parent = Frame6
  2377.     healthbar.Size = UDim2.new(1, 0, 1, 0)
  2378.     healthbar.BackgroundColor = BrickColor.new("Bright green")
  2379.     healthbar.BackgroundColor3 = Color3.new(0.286275, 1, 0.235294)
  2380.     TextLabel8.Name = "title"
  2381.     TextLabel8.Parent = Frame6
  2382.     TextLabel8.Position = UDim2.new(0.172155678, 0, 0, 0)
  2383.     TextLabel8.Size = UDim2.new(0.5, 0, 1, 0)
  2384.     TextLabel8.BackgroundColor = BrickColor.new("Institutional white")
  2385.     TextLabel8.BackgroundColor3 = Color3.new(1, 1, 1)
  2386.     TextLabel8.BackgroundTransparency = 1
  2387.     TextLabel8.ZIndex = 3
  2388.     TextLabel8.Font = Enum.Font.SourceSans
  2389.     TextLabel8.FontSize = Enum.FontSize.Size24
  2390.     TextLabel8.Text = "Health:"
  2391.     TextLabel8.TextColor = BrickColor.new("Institutional white")
  2392.     TextLabel8.TextColor3 = Color3.new(1, 1, 1)
  2393.     TextLabel8.TextSize = 20
  2394.     TextLabel8.TextStrokeTransparency = 0
  2395.     TextLabel8.TextWrap = true
  2396.     TextLabel8.TextWrapped = true
  2397.     healthstat.Name = "stat"
  2398.     healthstat.Parent = Frame6
  2399.     healthstat.Position = UDim2.new(0.325197548, 0, 0, 0)
  2400.     healthstat.Size = UDim2.new(0.5, 0, 1, 0)
  2401.     healthstat.BackgroundColor = BrickColor.new("Institutional white")
  2402.     healthstat.BackgroundColor3 = Color3.new(1, 1, 1)
  2403.     healthstat.BackgroundTransparency = 1
  2404.     healthstat.ZIndex = 3
  2405.     healthstat.Font = Enum.Font.SourceSans
  2406.     healthstat.FontSize = Enum.FontSize.Size24
  2407.     healthstat.Text = tostring(math.floor(hum.Health)) .. "/" .. tostring(math.floor(hum.MaxHealth))
  2408.     healthstat.TextColor = BrickColor.new("Institutional white")
  2409.     healthstat.TextColor3 = Color3.new(1, 1, 1)
  2410.     healthstat.TextSize = 20
  2411.     healthstat.TextStrokeTransparency = 0
  2412.     healthstat.TextWrap = true
  2413.     healthstat.TextWrapped = true
  2414.     Frame10.Name = "Block"
  2415.     Frame10.Parent = Frame1
  2416.     Frame10.Position = UDim2.new(0.317999989, 0, 0.940303028, 0)
  2417.     Frame10.Size = UDim2.new(0.331917137, 0, 0.0316969417, 0)
  2418.     Frame10.BackgroundColor = BrickColor.new("Salmon")
  2419.     Frame10.BackgroundColor3 = Color3.new(1, 0.647059, 0.619608)
  2420.     blockbar.Name = "bar"
  2421.     blockbar.Parent = Frame10
  2422.     blockbar.Size = UDim2.new(1, 0, 1, 0)
  2423.     blockbar.BackgroundColor = BrickColor.new("Carnation pink")
  2424.     blockbar.BackgroundColor3 = Color3.new(1, 0.545098, 0.827451)
  2425.     blockstat.Name = "stat"
  2426.     blockstat.Parent = Frame10
  2427.     blockstat.Position = UDim2.new(0.325197548, 0, 0, 0)
  2428.     blockstat.Size = UDim2.new(0.5, 0, 1, 0)
  2429.     blockstat.BackgroundColor = BrickColor.new("Institutional white")
  2430.     blockstat.BackgroundColor3 = Color3.new(1, 1, 1)
  2431.     blockstat.BackgroundTransparency = 1
  2432.     blockstat.ZIndex = 3
  2433.     blockstat.Font = Enum.Font.SourceSans
  2434.     blockstat.FontSize = Enum.FontSize.Size24
  2435.     blockstat.Text = tostring(math.floor(blockhealth)) .. "/" .. tostring(math.floor(blockhealthmax))
  2436.     blockstat.TextColor = BrickColor.new("Institutional white")
  2437.     blockstat.TextColor3 = Color3.new(1, 1, 1)
  2438.     blockstat.TextSize = 20
  2439.     blockstat.TextStrokeTransparency = 0
  2440.     blockstat.TextWrap = true
  2441.     blockstat.TextWrapped = true
  2442.     TextLabel13.Name = "title"
  2443.     TextLabel13.Parent = Frame10
  2444.     TextLabel13.Position = UDim2.new(0.172155678, 0, 0, 0)
  2445.     TextLabel13.Size = UDim2.new(0.5, 0, 1, 0)
  2446.     TextLabel13.BackgroundColor = BrickColor.new("Institutional white")
  2447.     TextLabel13.BackgroundColor3 = Color3.new(1, 1, 1)
  2448.     TextLabel13.BackgroundTransparency = 1
  2449.     TextLabel13.ZIndex = 3
  2450.     TextLabel13.Font = Enum.Font.SourceSans
  2451.     TextLabel13.FontSize = Enum.FontSize.Size24
  2452.     TextLabel13.Text = "Block:"
  2453.     TextLabel13.TextColor = BrickColor.new("Institutional white")
  2454.     TextLabel13.TextColor3 = Color3.new(1, 1, 1)
  2455.     TextLabel13.TextSize = 20
  2456.     TextLabel13.TextStrokeTransparency = 0
  2457.     TextLabel13.TextWrap = true
  2458.     TextLabel13.TextWrapped = true
  2459.     return screen,healthbar,healthstat,staminabar,staminastat,blockbar,blockstat
  2460. end
  2461.  
  2462. function raycast(Pos, Dir, Max, Ignore)
  2463.     return game:service("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2464. end
  2465.  
  2466. function knocked()
  2467.     local r = false
  2468.     if hum.PlatformStand and (15 > hum.Health or hum:FindFirstChild("knocked")) then
  2469.         r = true
  2470.     end
  2471.     return r
  2472. end
  2473.  
  2474. function update()
  2475.     healthstat.Text = tostring(math.floor(hum.Health)) .. "/" .. tostring(math.floor(hum.MaxHealth))
  2476.     game:GetService("TweenService"):Create(healthbar,TweenInfo.new(.25),{Size = UDim2.new((hum.Health/hum.MaxHealth), 0, 1, 0)}):Play()
  2477.     --
  2478.     staminastat.Text = tostring(math.floor(stamina)) .. "/" .. tostring(math.floor(staminamax))
  2479.     game:GetService("TweenService"):Create(staminabar,TweenInfo.new(.25),{Size = UDim2.new((stamina/staminamax), 0, 1, 0)}):Play()
  2480.     --
  2481.     blockstat.Text = tostring(math.floor(blockhealth)) .. "/" .. tostring(math.floor(blockhealthmax))
  2482.     game:GetService("TweenService"):Create(blockbar,TweenInfo.new(.25),{Size = UDim2.new((blockhealth/blockhealthmax), 0, 1, 0)}):Play()
  2483. end
  2484.  
  2485. hum.HealthChanged:Connect(function(new_health)
  2486.     if --[[alive() and]] (last_health > new_health) and blocking2 and not knocked() and (blockhealth >= 25) and not hum:FindFirstChild("Fall Damage") then
  2487.         blockhealth = blockhealth - 25
  2488.         block_counter = 1
  2489.         hum.Health = last_health
  2490.         spawn(function()
  2491.             local kb = 20
  2492.             local b = Instance.new("BodyVelocity")
  2493.             b.Parent = torso
  2494.             b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  2495.             b.Velocity = rootpart.CFrame.lookVector*-1*kb + Vector3.new(0,1,0)
  2496.             game:GetService("Debris"):AddItem(b,0.1)
  2497.         end)
  2498.         if dodge_s then
  2499.             dodge_s:Play()
  2500.         end
  2501.         local bp = torso:FindFirstChild("block_p")
  2502.         if bp then bp = bp:FindFirstChild("block_p") end
  2503.         if not bp then
  2504.             local att = Instance.new("Attachment")
  2505.             att.Name = 'block_p'
  2506.             att.Parent = torso
  2507.             bp = Instance.new("ParticleEmitter")
  2508.             bp.Name = "block_p"
  2509.             bp.Parent = att
  2510.             bp.Speed = NumberRange.new(15, 15)
  2511.             bp.Color = ColorSequence.new(Color3.new(0.921569, 1, 0.192157),Color3.new(1, 0.972549, 0.666667))
  2512.             bp.LightEmission = 1
  2513.             bp.Texture = "http://www.roblox.com/asset/?id=271370648"
  2514.             bp.Transparency = NumberSequence.new({
  2515.                 NumberSequenceKeypoint.new(0,1),
  2516.                 NumberSequenceKeypoint.new(0.1,0.25),
  2517.                 NumberSequenceKeypoint.new(0.2,0),
  2518.                 NumberSequenceKeypoint.new(0.5,0),
  2519.                 NumberSequenceKeypoint.new(0.75,0.35),
  2520.                 NumberSequenceKeypoint.new(1,1),
  2521.             })
  2522.             bp.Size = NumberSequence.new({
  2523.                 NumberSequenceKeypoint.new(0,0.3),
  2524.                 NumberSequenceKeypoint.new(0.103,0.7),
  2525.                 NumberSequenceKeypoint.new(1,0),
  2526.             })
  2527.             bp.Acceleration = Vector3.new(0, 0, 0)
  2528.             bp.Lifetime = NumberRange.new(0.35, 0.35)
  2529.             bp.Rate = 360
  2530.             bp.SpreadAngle = Vector2.new(360,360)
  2531.             bp.Speed = NumberRange.new(10,10)
  2532.             bp.Rotation = NumberRange.new(90,90)
  2533.         end
  2534.         spawn(function()
  2535.             bp.Enabled = true
  2536.             wait(0.1)
  2537.             bp.Enabled = false
  2538.         end)
  2539.     end
  2540.     last_health = hum.Health
  2541. end)
  2542.  
  2543. screen,healthbar,healthstat,staminabar,staminastat,blockbar,blockstat = create_gui(plr['PlayerGui'])
  2544.  
  2545. hum.Died:Connect(function()
  2546.     if screen then
  2547.         screen:Destroy()
  2548.     end
  2549. end)
  2550.  
  2551. spawn(function()
  2552.     while wait(0.1) do
  2553.         if screen then
  2554.             update()
  2555.         end
  2556.         if stamina_counter > 0 then
  2557.             stamina_counter = stamina_counter - 0.1
  2558.         elseif 0 > stamina_counter then
  2559.             stamina_counter = 0
  2560.         end
  2561.         if block_counter > 0 then
  2562.             block_counter = block_counter - 0.1
  2563.         elseif 0 > block_counter then
  2564.             block_counter = 0
  2565.         end
  2566.     end
  2567. end)
  2568.  
  2569. spawn(function()
  2570.     while wait(0.5) do
  2571.         if (0 >= stamina_counter) and (staminamax > stamina) then
  2572.             if 0 > stamina then
  2573.                 stamina = 0
  2574.             end
  2575.             stamina = stamina + 11
  2576.             if (stamina > staminamax) then
  2577.                 stamina = staminamax
  2578.             end
  2579.         end
  2580.         if (0 >= block_counter) and (blockhealthmax > blockhealth) then
  2581.             if (0 > blockhealth) then
  2582.                 blockhealth = 0
  2583.             end
  2584.             blockhealth = blockhealth + 15
  2585.             if (blockhealth > blockhealthmax) then
  2586.                 blockhealth = blockhealthmax
  2587.             end
  2588.         end
  2589.     end
  2590. end)
  2591.  
  2592. local footsteps = {
  2593.     Fabric = {
  2594.         4085884845,
  2595.         4085885171
  2596.     },
  2597.     Concrete = {
  2598.         4085860640,
  2599.         4085860959
  2600.     },
  2601.     Grass = {
  2602.         4085928076,
  2603.         4085927377
  2604.     },
  2605.     Dirt = {
  2606.         4085928076,
  2607.         4085927377
  2608.     },
  2609.     Glass = {
  2610.         4085888884,
  2611.         4085889170
  2612.     },
  2613.     Metal = {
  2614.         4085894561,
  2615.         4085894913
  2616.     },
  2617.     Rubble = {
  2618.         4085865543,
  2619.         4085865926
  2620.     },
  2621.     Sand = {
  2622.         4085867669,
  2623.         4085868134
  2624.     },
  2625.     Snow = {
  2626.         4085886274,
  2627.         4085886651
  2628.     },
  2629.     Water = {
  2630.         4085887687,
  2631.         4085888023
  2632.     },
  2633.     Wood = {
  2634.         4085869219,
  2635.         4085869581
  2636.     },
  2637.     Stone = {
  2638.         3744398825,
  2639.         3744399210,
  2640.         3744399642,
  2641.         3744399949
  2642.     }
  2643. };
  2644. local referenceChart = {
  2645.     [Enum.Material.Plastic]="Fabric",
  2646.     [Enum.Material.Grass]="Grass",
  2647.     [Enum.Material.Pebble]="Rubble",
  2648.     [Enum.Material.Metal]="Metal",
  2649.     [Enum.Material.Ice]="Ice",
  2650.     [Enum.Material.Grass]="Grass",
  2651.     [Enum.Material.Concrete]="Concrete",
  2652.     [Enum.Material.Marble]="Concrete",
  2653.     [Enum.Material.Wood]="Wood",
  2654.     [Enum.Material.WoodPlanks]="Wood",
  2655.     [Enum.Material.Sand]="Sand",
  2656.     [Enum.Material.Glass]="Glass",
  2657.     [Enum.Material.ForceField]="Glass",
  2658.     [Enum.Material.Neon]="Glass",
  2659.     [Enum.Material.Fabric]="Fabric",
  2660.     [Enum.Material.DiamondPlate]="Metal",
  2661.     [Enum.Material.CorrodedMetal]="Metal",
  2662.     [Enum.Material.Slate]="Stone"
  2663. };
  2664. local step_s = Instance.new("Sound");
  2665. step_s.Parent = rootpart;
  2666. step_s.Volume = 1;
  2667. step_s.Name = "FootSteps";
  2668. local material = "Stone";
  2669. local walking = false;
  2670. local walkTick = tick();
  2671.  
  2672. local function play()
  2673.     if (walking and footsteps[material]) then
  2674.         step_s.SoundId = "rbxassetid://" .. footsteps[material][math.random(1, #footsteps[material])];
  2675.         step_s:Play();
  2676.     else
  2677.         step_s:Stop();
  2678.     end
  2679. end
  2680.  
  2681. local falldamage = Instance.new("Sound")
  2682. falldamage.SoundId = 'rbxassetid://535681058'
  2683. falldamage.Volume = 2
  2684. falldamage.Parent = torso
  2685.  
  2686. local fallremote = Instance.new("RemoteEvent")
  2687. fallremote.Name = 'fallremote'
  2688. fallremote.Parent = char
  2689.  
  2690. fallremote.OnServerEvent:Connect(function(player,mag,hum)
  2691.     local fallval = Instance.new("ObjectValue")
  2692.     fallval.Name = 'Fall Damage'
  2693.     fallval.Parent = hum
  2694.     local tempdmg = ((hum.MaxHealth/100)*mag)
  2695.     hum:TakeDamage(tempdmg)
  2696.     if not alive() and not hum:FindFirstChild("Ragdolled") then
  2697.         bone_crack.SoundId = 'rbxassetid://' .. bonecracks[math.random(1,#bonecracks)]
  2698.         bone_crack:Play()
  2699.         local tempkillval = Instance.new("ObjectValue")
  2700.         tempkillval.Name = 'killer'
  2701.         tempkillval.Value = nil -- plr
  2702.         tempkillval.Parent = hum
  2703.         hum:TakeDamage(1/0)
  2704.         local ragval = Instance.new("ObjectValue")
  2705.         ragval.Name = 'Ragdolled'
  2706.         ragval.Parent = hum
  2707.         hum.AutoRotate = false
  2708.         Ragdoll(char,false,true,true)
  2709.     end
  2710.     game:GetService("Debris"):AddItem(fallval,0.1)
  2711.     if mag < 14 then
  2712.         falldamage.SoundId = "rbxassetid://4057626616"
  2713.         falldamage:Play()
  2714.     elseif mag >= 14 then
  2715.         falldamage.SoundId = "rbxassetid://535681058"
  2716.         falldamage:Play()
  2717.         if not hum:FindFirstChild("knocked") then
  2718.             knock = Instance.new("ObjectValue")
  2719.             knock.Name = 'knocked'
  2720.             knock.Parent = hum
  2721.             game:GetService("Debris"):AddItem(knock,2)
  2722.         end
  2723.         --[[spawn(function()
  2724.             local kb = 15
  2725.             local b = Instance.new("BodyVelocity")
  2726.             b.Parent = torso
  2727.             b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  2728.             b.Velocity = rootpart.CFrame.lookVector*kb + Vector3.new(0,2,0)
  2729.             game:GetService("Debris"):AddItem(b,0.15)
  2730.         end)]]
  2731.         if alive() then
  2732.             spawn(function()
  2733.                 if (knock and knock.Parent) and hum.Health > 0 and not hum:FindFirstChild("Ragdolled") then
  2734.                     local ragval = Instance.new("ObjectValue")
  2735.                     ragval.Name = 'Ragdolled'
  2736.                     ragval.Parent = hum
  2737.                     local collision_limbs = {}
  2738.                     for i,v in pairs(char:GetChildren()) do
  2739.                         local limbs = limb_collide(v)
  2740.                         if limbs then
  2741.                             for i,limb in pairs(limbs) do
  2742.                                 table.insert(collision_limbs,1,limb)
  2743.                             end
  2744.                         end
  2745.                     end
  2746.                     local js,js2 = Ragdoll(char,false,true)
  2747.                     local ar = hum.AutoRotate
  2748.                     hum.AutoRotate = false
  2749.                     while (15 >= hum.Health or (knock and knock.Parent)) and hum.Health > 0 do
  2750.                         hum.PlatformStand = true
  2751.                         wait(0.1)
  2752.                     end
  2753.                     for i,v in pairs(js) do v:Destroy(); end;
  2754.                     for i,v in pairs(js2) do v.obj.Parent = v.par; end;
  2755.                     for i,v in pairs(collision_limbs) do v:Destroy(); end;
  2756.                     if hum and 0 >= hum.Health then
  2757.                         Ragdoll(char,false,true,true)
  2758.                         return;
  2759.                     end;
  2760.                     for i,v in pairs(char:GetChildren()) do
  2761.                         if v:IsA("BasePart") or v:IsA("UnionOperation") then
  2762.                             v:SetPartCollisionGroup(v, "Default")
  2763.                         end
  2764.                     end
  2765.                     if ar then
  2766.                         hum.AutoRotate = true
  2767.                     end
  2768.                     ragval:Destroy()
  2769.                     hum.Sit = false
  2770.                     hum.PlatformStand = false
  2771.                     hum:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false)
  2772.                     hum:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
  2773.                     torso.Velocity = Vector3.new()
  2774.                 end
  2775.             end)
  2776.         end
  2777.     end
  2778. end)
  2779.  
  2780. NLS([[
  2781. player = game:GetService("Players").LocalPlayer
  2782. mouse = player:GetMouse()
  2783. repeat wait() until player.Character
  2784. char = player.Character
  2785. repeat wait() until char:FindFirstChildOfClass("Humanoid")
  2786. repeat wait() until char.Head.Anchored == false
  2787. hum = char:FindFirstChildOfClass("Humanoid")
  2788. fallremote = script.Parent
  2789. pos = Vector3.new()
  2790. isFalling = false
  2791. hum.FreeFalling:Connect(function()
  2792.     if not char:FindFirstChild("fallblock") then
  2793.         local e = Instance.new("Part")
  2794.         e.Name = "fallblock"
  2795.         e.Anchored = true
  2796.         e.CanCollide = false
  2797.         e.Massless = true
  2798.         e.Size = Vector3.new()
  2799.         e.Transparency = 1
  2800.         e.Parent = char
  2801.         e.Position = char.Torso.Position
  2802.         pos = e.Position
  2803.     elseif char:FindFirstChild("fallblock") then
  2804.         pos = char.fallblock.Position
  2805.     end
  2806. end)
  2807. hum.Climbing:Connect(function()
  2808.     isFalling = false
  2809.     pos = Vector3.new()
  2810. end)
  2811. hum.StateChanged:Connect(function(state)
  2812.     if state == Enum.HumanoidStateType.Landed then
  2813.         if char:FindFirstChild("fallblock") then
  2814.             char.fallblock:Destroy()
  2815.         end
  2816.         local mag = math.abs(pos.Y - char.Torso.Position.Y)
  2817.         pos = Vector3.new()
  2818.         if mag >= 8 then
  2819.             fallremote:FireServer(mag,hum)
  2820.         end
  2821.     elseif state == Enum.HumanoidStateType.Climbing then
  2822.         pos = Vector3.new()
  2823.         isFalling = false
  2824.     end
  2825. end)
  2826. ]],fallremote)
  2827.  
  2828. hum.Changed:Connect(function(prop)
  2829.     if (prop == "MoveDirection") and equipped then
  2830.         if (hum.Sit == false and hum.PlatformStand == false and hum.MoveDirection.Magnitude > 0) then
  2831.             if (walking == false) then
  2832.                 walking = true;
  2833.                 walkTick = tick();
  2834.                 local walkTickN = walkTick;
  2835.                 while (walking and walkTick == walkTickN) do
  2836.                     local ray = Ray.new(rootpart.Position, Vector3.new(0, -5, 0));
  2837.                     local part = workspace:FindPartOnRay(ray, char);
  2838.                     if (part) then
  2839.                         (function()
  2840.                             if (part.Material == Enum.Material.Grass and part.Color.g < .5) then
  2841.                                 material = "Dirt";
  2842.                                 return;
  2843.                             end
  2844.                             if (part.Material == Enum.Material.Sand and part.Color.r > .5 and part.Color.g > .5 and part.Color.b > .5) then
  2845.                                 material = "Snow";
  2846.                                 return;
  2847.                             end
  2848.                             material = referenceChart[part.Material] or "Air";
  2849.                         end)()
  2850.                     else
  2851.                         material = "Air";
  2852.                     end
  2853.                     play();
  2854.                     if anim == 'crouch' and crouching then
  2855.                         wait(0.6)
  2856.                     elseif anim == 'run' and not crouching then
  2857.                         wait(0.2);
  2858.                     else
  2859.                         wait(0.4);
  2860.                     end
  2861.                 end
  2862.             end
  2863.         else
  2864.             walking = false;
  2865.         end
  2866.     end
  2867.     if (prop == "Sit") and equipped then
  2868.         if (hum.Sit) then
  2869.             walking = false;
  2870.         end
  2871.     end
  2872. end)
  2873.  
  2874. remote.OnServerEvent:Connect(function(lplr,mode,mode2)
  2875.     if alive() and equipped and (plr == lplr) then else return end
  2876.     if mode == 1 and fists and not toggling_dance then
  2877.         blocking = mode2
  2878.         dance(false)
  2879.         if not knocked() and blocking and (blockhealth >= 25) then
  2880.             _blockingval.Parent = hum;
  2881.         else
  2882.             _blockingval.Parent = nil;
  2883.         end;
  2884.     elseif mode == 2 and not toggling_dance then
  2885.         sprinting = mode2
  2886.     elseif mode == 3 and not hum:FindFirstChild("Stunned") then
  2887.         if not attacking and not carrying and fists and not knocked() and not toggling_dance and not blocking2 and (anim ~= 'run') and (stamina >= 7) then else return end
  2888.         attacking = true
  2889.         dance(false)
  2890.         hit_id = hit_id + 1
  2891.         stamina_counter = 1
  2892.         if not jumping then
  2893.             if pa == 1 then
  2894.                 left_punch(0.7,hit_id)
  2895.             elseif pa == 2 then
  2896.                 right_punch(0.7,hit_id)
  2897.             end
  2898.         elseif jumping then
  2899.             if (stamina >= 10) then
  2900.                 air_punch(0.7,hit_id)
  2901.             else
  2902.                 if pa == 1 then
  2903.                     left_punch(0.7,hit_id)
  2904.                 elseif pa == 2 then
  2905.                     right_punch(0.7,hit_id)
  2906.                 end
  2907.             end
  2908.         end
  2909.         pa = pa + 1
  2910.         if pa > 2 then
  2911.             pa = 1
  2912.         end
  2913.         attacking = false
  2914.     elseif mode == 4 and not hum:FindFirstChild("Stunned") then
  2915.         if not attacking and not carrying and fists and not knocked() and not crouching and not toggling_dance and not blocking2 and (anim ~= 'run') and (stamina >= 13) then else return end
  2916.         attacking = true
  2917.         dance(false)
  2918.         hit_id = hit_id + 1
  2919.         stamina_counter = 1
  2920.         if not jumping then
  2921.             if ka == 1 then
  2922.                 left_kick(0.7,hit_id)
  2923.             elseif ka == 2 then
  2924.                 right_kick(0.7,hit_id)
  2925.             end
  2926.             ka = ka + 1
  2927.             if ka > 2 then
  2928.                 ka = 1
  2929.             end
  2930.         elseif jumping then
  2931.             if (stamina >= 15) then
  2932.                 if lka == 1 then
  2933.                     left_low_kick(0.6,hit_id)
  2934.                 elseif lka == 2 then
  2935.                     right_low_kick(0.6,hit_id)
  2936.                 end
  2937.                 lka = lka + 1
  2938.                 if lka > 2 then
  2939.                     lka = 1
  2940.                 end
  2941.             else
  2942.                 if ka == 1 then
  2943.                     left_kick(0.7,hit_id)
  2944.                 elseif ka == 2 then
  2945.                     right_kick(0.7,hit_id)
  2946.                 end
  2947.                 ka = ka + 1
  2948.                 if ka > 2 then
  2949.                     ka = 1
  2950.                 end
  2951.             end
  2952.         end
  2953.         attacking = false
  2954.     elseif mode == 5 and not hum:FindFirstChild("Stunned") then
  2955.         if not attacking and not carrying and fists and not finishing and not knocked() and not crouching and not toggling_dance and not blocking2 and (anim ~= 'run') then else return end
  2956.         attacking = true
  2957.         attacking2 = true
  2958.         dance(false)
  2959.         hit_id = hit_id + 1
  2960.         stamina_counter = 1
  2961.         stomp(0.5,hit_id)
  2962.         attacking2 = false
  2963.         attacking = false
  2964.     elseif mode == 6 then
  2965.         if not toggling_dance then else return end
  2966.         crouching = mode2
  2967.         dance(false)
  2968.     elseif mode == 7 and not hum:FindFirstChild("Stunned") then
  2969.         if not attacking and not carrying and fists and not knocked() and not toggling_dance and not blocking2 and (anim ~= 'run') and (stamina >= 20) then else return end
  2970.         attacking = true
  2971.         attacking2 = true
  2972.         dance(false)
  2973.         if not jumping then
  2974.             hit_id = hit_id + 1
  2975.             stamina_counter = 1
  2976.             if hka == 1 then
  2977.                 left_high_kick(0.6,hit_id)
  2978.             elseif hka == 2 then
  2979.                 right_high_kick(0.6,hit_id)
  2980.             end
  2981.             hka = hka + 1
  2982.             if hka > 2 then
  2983.                 hka = 1
  2984.             end
  2985.         end
  2986.         attacking2 = false
  2987.         attacking = false
  2988.     elseif mode == 8 then
  2989.         if not attacking and not carrying and not finishing and not knocked() and not toggling_dance then else return end
  2990.         fists = not fists
  2991.         blocking = false
  2992.         blocking2 = false
  2993.     elseif mode == 9 then
  2994.         last_mpos = mode2
  2995.     elseif mode == 10 and not hum:FindFirstChild("Stunned") then
  2996.         if not attacking and not carrying and fists and not knocked() and not toggling_dance and not blocking2 and (anim ~= 'run') and (stamina >= 10) then else return end
  2997.         attacking = true
  2998.         attacking2 = true
  2999.         dance(false)
  3000.         if not jumping then
  3001.             hit_id = hit_id + 1
  3002.             stamina_counter = 1
  3003.             if sa == 1 then
  3004.                 left_sweep(0.5,hit_id)
  3005.             elseif sa == 2 then
  3006.                 right_sweep(0.5,hit_id)
  3007.             end
  3008.             sa = sa + 1
  3009.             if sa > 2 then
  3010.                 sa = 1
  3011.             end
  3012.         end
  3013.         attacking2 = false
  3014.         attacking = false
  3015.     elseif mode == 11 and not hum:FindFirstChild("Stunned") then
  3016.         if not attacking and not carrying and not attacking2 and not knocked() and not toggling_dance and (anim == 'idle' or anim == 'crouch') then else return end
  3017.         dance(true)
  3018.     elseif mode == 12 and not hum:FindFirstChild("Stunned") then
  3019.         if not attacking and not attacking2 and not knocked() and not toggling_dance then else return end
  3020.         if mode2 == true then
  3021.             carry(0.6)
  3022.         elseif mode2 == false then
  3023.             carrying = false
  3024.         end
  3025.     end
  3026. end)
  3027.  
  3028. NLS([[
  3029.     local plr = game:GetService("Players").LocalPlayer
  3030.     local char = plr.Character
  3031.     local mouse = plr:GetMouse()
  3032.     local remote = script.Parent
  3033.     mouse.KeyDown:Connect(function(key)
  3034.         if key == 'f' then
  3035.             remote:FireServer(1,true)
  3036.         elseif key == '2' then
  3037.             remote:FireServer(2,true)
  3038.         elseif key == 'e' then
  3039.             remote:FireServer(4,true)
  3040.         elseif key == 'r' then
  3041.             remote:FireServer(5,true)
  3042.         elseif key == 'c' then
  3043.             remote:FireServer(6,true)
  3044.         elseif key == 'g' then
  3045.             remote:FireServer(7,true)
  3046.         elseif key == 'q' then
  3047.             remote:FireServer(8,true)
  3048.         elseif key == 'v' then
  3049.             remote:FireServer(10,true)
  3050.         elseif key == 'b' then
  3051.             remote:FireServer(11,true)
  3052.         elseif key == 't' then
  3053.             remote:FireServer(12,true)
  3054.         end
  3055.     end)
  3056.     mouse.KeyUp:Connect(function(key)
  3057.         if key == 'f' then
  3058.             remote:FireServer(1,false)
  3059.         elseif key == '2' then
  3060.             remote:FireServer(2,false)
  3061.         elseif key == 'c' then
  3062.             remote:FireServer(6,false)
  3063.         elseif key == 't' then
  3064.             remote:FireServer(12,false)
  3065.         end
  3066.     end)
  3067.     mouse.Button1Down:Connect(function()
  3068.         remote:FireServer(3,true)
  3069.     end)
  3070.     mouse.Button1Down:Connect(function()
  3071.         remote:FireServer(3,false)
  3072.     end)
  3073.     function SetCharacterLocalTransparency(transparency)
  3074.         for i,v in pairs(char:GetChildren()) do
  3075.            if (v:IsA("BasePart") and v.Name ~= 'HumanoidRootPart' and v.Name ~= 'Torso' and v.Name ~= 'Head') then
  3076.               v.LocalTransparencyModifier = transparency
  3077.            end
  3078.         end
  3079.     end
  3080.     game:GetService("RunService").RenderStepped:Connect(function()
  3081.         --remote:FireServer(9,mouse.Hit.p)
  3082.         SetCharacterLocalTransparency(0);
  3083.     end)
  3084. ]],remote)
  3085.  
  3086. warn[[
  3087. = KrY's Combat Loaded =
  3088. = Controls =
  3089. - Click to attack
  3090. - Q to Toggle Fists
  3091. - F to Block
  3092. - E to Kick
  3093. - V to Leg Sweep
  3094. - G to High Kick
  3095. - R to Finish/Stomp
  3096. - T to Carry(Hold)
  3097. - B to Dance/Taunt
  3098. - C to Crouch
  3099. - Ctrl to Sprint
  3100. = Alt Attack Variations =
  3101. - Punch(Click) while jumping
  3102. - Kick(E) while jumping
  3103. ]]
  3104.  
  3105. game:GetService("RunService").Heartbeat:Connect(function()
  3106.     if alive() and equipped then else
  3107.         attacking = false;
  3108.         attacking2 = false;
  3109.         crouching = false;
  3110.         falling = false;
  3111.         sprinting = false;
  3112.         sprinting2 = false;
  3113.         blocking = false;
  3114.         blocking2 = false;
  3115.         carrying = false;
  3116.         _blockingval.Parent = nil;
  3117.         step_s:Stop()
  3118.         return;
  3119.     end;
  3120.     sine = sine+0.1
  3121.     local bodyvel = (rootpart.Velocity*Vector3.new(1,0,1)).magnitude
  3122.     local fallvel = rootpart.Velocity.y
  3123.     local hitfloor,posfloor=raycast(rootpart.Position,(CFrame.new(rootpart.Position,rootpart.Position - Vector3.new(0,1,0))).lookVector,4,{script,char})
  3124.     local rightvector = (rootpart.Velocity * rootpart.CFrame.rightVector).X + (rootpart.Velocity * rootpart.CFrame.rightVector).Z
  3125.     local lookvector = (rootpart.Velocity * rootpart.CFrame.lookVector).X + (rootpart.Velocity * rootpart.CFrame.lookVector).Z
  3126.     if not attacking2 and sprinting and not crouching and stamina >= 0.1 then
  3127.         sprinting2 = true
  3128.         hum.WalkSpeed = 24
  3129.     elseif not attacking2 and not crouching then
  3130.         sprinting2 = false
  3131.         hum.WalkSpeed = 16
  3132.     elseif not attacking2 and crouching then
  3133.         sprinting2 = false
  3134.         hum.WalkSpeed = 8
  3135.     end
  3136.     local speed_val = hum.WalkSpeed/10
  3137.     if 0.8 >= speed_val then
  3138.         speed_val = 0.8
  3139.     elseif speed_val > 2 then
  3140.         speed_val = 2
  3141.     end
  3142.     if not hitfloor then
  3143.         jumping = true
  3144.     else
  3145.         jumping = false
  3146.     end
  3147.     if knocked() or not alive() then
  3148.         carrying = false
  3149.     end
  3150.     if knocked() or carrying or not blocking or (25 > blockhealth) then
  3151.         blocking2 = false
  3152.         _blockingval.Parent = nil
  3153.     end
  3154.     if not hitfloor and ((fallvel > 1) or (fallvel < -1)) then
  3155.         falling = true
  3156.     else
  3157.         falling = false
  3158.     end
  3159.     if lookvector > hum.WalkSpeed then
  3160.         lookvector = hum.WalkSpeed
  3161.     end
  3162.     if lookvector < -hum.WalkSpeed then
  3163.         lookvector = -hum.WalkSpeed
  3164.     end
  3165.     if rightvector > hum.WalkSpeed then
  3166.         rightvector = hum.WalkSpeed
  3167.     end
  3168.     if rightvector < -hum.WalkSpeed then
  3169.         rightvector = -hum.WalkSpeed
  3170.     end
  3171.     local lookvel = lookvector / hum.WalkSpeed
  3172.     local rightvel = rightvector / hum.WalkSpeed
  3173.     local lookvel2 = lookvel
  3174.     if lookvel2 > 0 then
  3175.         lookvel2 = 1
  3176.     elseif lookvel2 < 0 then
  3177.         lookvel2 = -1
  3178.     end
  3179.     if hum:FindFirstChild("Stunned") then
  3180.         blocking2 = false
  3181.         _blockingval.Parent = nil
  3182.         dance(false)
  3183.         hum.WalkSpeed = 0
  3184.         change_stun_type()
  3185.         local _anim_speed = anim_speed*1.5
  3186.         if stun_type == 1 then
  3187.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),_anim_speed)
  3188.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(10),math.rad(0),math.rad(10)),_anim_speed)
  3189.  
  3190.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),_anim_speed)
  3191.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(-55)),_anim_speed)
  3192.  
  3193.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),_anim_speed)
  3194.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(5),math.rad(25)),_anim_speed)
  3195.  
  3196.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),_anim_speed)
  3197.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)),_anim_speed)
  3198.  
  3199.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),_anim_speed)
  3200.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15)),_anim_speed)
  3201.  
  3202.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),_anim_speed)
  3203.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(15),math.rad(0),math.rad(0)),_anim_speed)
  3204.         elseif stun_type == 2 then
  3205.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),_anim_speed)
  3206.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(5),math.rad(0),math.rad(55)),_anim_speed)
  3207.  
  3208.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),_anim_speed)
  3209.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(10),math.rad(0),math.rad(-10)),_anim_speed)
  3210.  
  3211.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),_anim_speed)
  3212.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(5),math.rad(-25)),_anim_speed)
  3213.  
  3214.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),_anim_speed)
  3215.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)),_anim_speed)
  3216.  
  3217.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),_anim_speed)
  3218.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)),_anim_speed)
  3219.  
  3220.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),_anim_speed)
  3221.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.Angles(math.rad(15),math.rad(0),math.rad(0)),_anim_speed)
  3222.         end
  3223.         return
  3224.     end
  3225.     if anim ~= 'run' and not knocked() and not dancing and fists then
  3226.         if not blocking2 then
  3227.             if enabled[ls] then
  3228.             ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),anim_speed)
  3229.             ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.new(-0.2,-0.1,0.2)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(120)),anim_speed)
  3230.             end
  3231.             if enabled[rs] then
  3232.             rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),anim_speed)
  3233.             rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.new(0.2,-0.1,0.2)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-120)),anim_speed)
  3234.             end
  3235.         elseif blocking2 then
  3236.             if enabled[ls] then
  3237.             ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),anim_speed)
  3238.             ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.new(-0.8,0.2,0.9)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(170)),anim_speed)
  3239.             end
  3240.             if enabled[rs] then
  3241.             rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),anim_speed)
  3242.             rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.new(0.8,0.2,0.9)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-170)),anim_speed)
  3243.             end
  3244.         end
  3245.     end
  3246.     if (fallvel > 1) and falling and not knocked() then
  3247.         dance(false)
  3248.         anim = 'jump'
  3249.         if blocking and not carrying and not knocked() and (blockhealth >= 25) then
  3250.             blocking2 = blocking
  3251.             _blockingval.Parent = hum
  3252.         end
  3253.         if enabled[rh] then
  3254.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),anim_speed)
  3255.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(15))*CFrame.new(-0.5,-0.7,0),anim_speed)
  3256.         end
  3257.         if enabled[lh] then
  3258.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),anim_speed)
  3259.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-15))*CFrame.new(0.5,-0.7,0),anim_speed)
  3260.         end
  3261.     elseif (fallvel < -1) and falling and not knocked() then
  3262.         anim = 'fall'
  3263.         if blocking and not carrying and not knocked() and (blockhealth >= 25) then
  3264.             blocking2 = blocking
  3265.             _blockingval.Parent = hum
  3266.         end
  3267.         if enabled[rh] then
  3268.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),anim_speed)
  3269.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5))*CFrame.new(-0.3,0,0),anim_speed)
  3270.         end
  3271.         if enabled[lh] then
  3272.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),anim_speed)
  3273.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(5))*CFrame.new(0.3,0,0),anim_speed)
  3274.         end
  3275.     end
  3276.     if bodyvel >= 1 then
  3277.         dance(false)
  3278.     end
  3279.     if crouching and not knocked() then
  3280.         anim = 'crouch'
  3281.         if blocking and not carrying and not knocked() and (blockhealth >= 25) then
  3282.             blocking2 = blocking
  3283.             _blockingval.Parent = hum
  3284.         end
  3285.         if enabled[ls] and not fists then
  3286.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),anim_speed)
  3287.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(-1 * math.cos(sine*speed_val)),0,math.rad(-1 * math.cos(sine*speed_val))),anim_speed)
  3288.         end
  3289.         if enabled[rs] and not fists then
  3290.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),anim_speed)
  3291.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(1 * math.cos(sine*speed_val)),0,math.rad(-1 * math.cos(sine*speed_val))),anim_speed)
  3292.         end
  3293.         if enabled[neck] then
  3294.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),anim_speed)
  3295.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),anim_speed)
  3296.         end
  3297.         if enabled[rh] and not falling then
  3298.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),anim_speed)
  3299.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-0.5,-1,0),anim_speed)
  3300.         end
  3301.         if enabled[lh] and not falling then
  3302.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),anim_speed)
  3303.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-75))*CFrame.new(0.5,0.2,0),anim_speed)
  3304.         end
  3305.         if enabled[rj] then
  3306.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),anim_speed)
  3307.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.new(0,0,-1),anim_speed)
  3308.         end
  3309.     end
  3310.     if 0 >= bodyvel and not crouching then
  3311.         anim = 'idle'  
  3312.         if blocking and not carrying and not knocked() and (blockhealth >= 25) then
  3313.             blocking2 = blocking   
  3314.             _blockingval.Parent = hum
  3315.         end
  3316.         if enabled[ls] and not fists then
  3317.         ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),anim_speed)
  3318.         ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(-1 * math.cos(sine*speed_val)),0,math.rad(-1 * math.cos(sine*speed_val))),anim_speed)
  3319.         end
  3320.         if enabled[rs] and not fists then
  3321.         rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),anim_speed)
  3322.         rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(1 * math.cos(sine*speed_val)),0,math.rad(-1 * math.cos(sine*speed_val))),anim_speed)
  3323.         end
  3324.         if enabled[neck] then
  3325.         neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),anim_speed)
  3326.         neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),anim_speed)
  3327.         end
  3328.         if enabled[rh] and not falling then
  3329.         rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),anim_speed)
  3330.         rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.new(0,-0.01 * math.cos(sine*speed_val),0),anim_speed)
  3331.         end
  3332.         if enabled[lh] and not falling then
  3333.         lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),anim_speed)
  3334.         lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.new(0,-0.01 * math.cos(sine*speed_val),0),anim_speed)
  3335.         end
  3336.         if enabled[rj] then
  3337.         rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),anim_speed)
  3338.         rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.new(0,0,-0.01 * math.cos(sine*speed_val)),anim_speed)
  3339.         end
  3340.     elseif bodyvel >= 1 and not knocked() then
  3341.         if sprinting2 and not crouching then
  3342.             anim = 'run'
  3343.             blocking2 = false
  3344.             _blockingval.Parent = nil
  3345.             stamina = stamina - 0.1
  3346.             stamina_counter = 1
  3347.             if enabled[ls] then
  3348.             ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),anim_speed)
  3349.             ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(lookvel*-15 * math.sin(sine*speed_val)),math.rad(0),math.rad(lookvel2*80 * math.sin(sine*speed_val)))*CFrame.new(lookvel2*-0.1 + 0.2 * math.cos(sine*speed_val),0,0),anim_speed)
  3350.             end
  3351.             if enabled[rs] then
  3352.             rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),anim_speed)
  3353.             rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(lookvel*15 * math.sin(sine*speed_val)),math.rad(0),math.rad(lookvel2*80 * math.sin(sine*speed_val)))*CFrame.new(lookvel2*0.1 - 0.2 * math.cos(sine*speed_val),0,0),anim_speed)
  3354.             end
  3355.             if enabled[neck] then
  3356.             neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),anim_speed)
  3357.             neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),anim_speed)
  3358.             end
  3359.             if enabled[rh] and not falling then
  3360.             rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),anim_speed)
  3361.             rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(rightvel*-2 + 4 * math.sin(sine*speed_val)),math.rad(0),math.rad(lookvel2 * -75 * math.sin(sine*speed_val)))*CFrame.new(lookvel2 * -0.3 + 0.6 * math.cos(sine*speed_val),lookvel2 * 0.2 - 0.4 * math.sin(sine*speed_val),0),anim_speed)
  3362.             end
  3363.             if enabled[lh] and not falling then
  3364.             lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),anim_speed)
  3365.             lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(rightvel*-2 - 4 * math.sin(sine*speed_val)),math.rad(0),math.rad(lookvel2 * -75 * math.sin(sine*speed_val)))*CFrame.new(lookvel2 * -0.3 + 0.6 * math.cos(sine*speed_val),lookvel2 * 0.2 + 0.4 * math.sin(sine*speed_val),0),anim_speed)
  3366.             end
  3367.             if enabled[rj] then
  3368.             rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),anim_speed)
  3369.             rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.new(0,0,-0.02+(0.02 * math.sin(sine*1.5*speed_val)))*CFrame.Angles(math.rad(lookvel*-15),math.rad(rightvel*-4),math.rad(0)),anim_speed)
  3370.             end
  3371.         else
  3372.             if not crouching then
  3373.                 anim = 'walk'
  3374.             end
  3375.             if blocking and not carrying and not knocked() and (blockhealth >= 25) then
  3376.                 blocking2 = blocking
  3377.                 _blockingval.Parent = hum
  3378.             end
  3379.             if enabled[ls] and not fists then
  3380.                 if not crouching then
  3381.                 ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),anim_speed)
  3382.                 ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(lookvel*-7.5 * math.sin(sine*speed_val)),math.rad(0),math.rad(lookvel2*40 * math.sin(sine*speed_val)))*CFrame.new(lookvel2*-0.05 + 0.1 * math.cos(sine*speed_val),0,0),anim_speed)
  3383.                 else
  3384.                 ls.C0 = clerp(ls.C0,CFrame.new(-1,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),anim_speed)
  3385.                 ls.C1 = clerp(ls.C1,CFrame.new(.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(-4 * math.sin(sine*speed_val)),math.rad(0),math.rad(lookvel*20 * math.sin(sine*speed_val)))*CFrame.new(-0.025 * math.cos(sine*speed_val),0,0),anim_speed)
  3386.                 end
  3387.             end
  3388.             if enabled[rs] and not fists then
  3389.                 if not crouching then
  3390.                 rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),anim_speed)
  3391.                 rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(lookvel*7.5 * math.sin(sine*speed_val)),math.rad(0),math.rad(lookvel2*40 * math.sin(sine*speed_val)))*CFrame.new(lookvel2*0.05 - 0.1 * math.cos(sine*speed_val),0,0),anim_speed)
  3392.                 else
  3393.                 rs.C0 = clerp(rs.C0,CFrame.new(1,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),anim_speed)
  3394.                 rs.C1 = clerp(rs.C1,CFrame.new(-.5,.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(4 * math.sin(sine*speed_val)),math.rad(0),math.rad(lookvel*20 * math.sin(sine*speed_val)))*CFrame.new(0.025 * math.cos(sine*speed_val),0,0),anim_speed)
  3395.                 end
  3396.             end
  3397.             if enabled[neck] and not crouching then
  3398.             neck.C0 = clerp(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),anim_speed)
  3399.             neck.C1 = clerp(neck.C1,CFrame.new(0,-.5,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),anim_speed)
  3400.             end
  3401.             if enabled[rh] and not falling then
  3402.                 if not crouching then
  3403.                 rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),anim_speed)
  3404.                 rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(-1 + 2 * math.sin(sine*speed_val)),math.rad(0),math.rad(lookvel2 * -30 * math.sin(sine*speed_val)))*CFrame.new(lookvel2 * -0.1 + 0.2 * math.cos(sine*speed_val),lookvel2 * 0.1 - 0.2 * math.sin(sine*speed_val),0),anim_speed)
  3405.                 else
  3406.                 rh.C0 = clerp(rh.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),anim_speed)
  3407.                 rh.C1 = clerp(rh.C1,CFrame.new(.5,1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))*CFrame.new(-0.5,-1,0)*CFrame.Angles(math.rad(rightvel*-0.5 + 1 * math.sin(sine*speed_val)),math.rad(0),math.rad(lookvel2*-15 * math.sin(sine*speed_val)))*CFrame.new(lookvel2*-0.025 + 0.05 * math.cos(sine*speed_val),lookvel2*0.025 - 0.05 * math.cos(sine*speed_val),0),anim_speed)
  3408.                 end
  3409.             end
  3410.             if enabled[lh] and not falling then
  3411.                 if not crouching then
  3412.                 lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),anim_speed)
  3413.                 lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(-1 - 2 * math.sin(sine*speed_val)),math.rad(0),math.rad(lookvel2 * -30 * math.sin(sine*speed_val)))*CFrame.new(lookvel2 * -0.1 + 0.2 * math.cos(sine*speed_val),lookvel2 * 0.1 + 0.2 * math.sin(sine*speed_val),0),anim_speed)
  3414.                 else
  3415.                 lh.C0 = clerp(lh.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),anim_speed)
  3416.                 lh.C1 = clerp(lh.C1,CFrame.new(-.5,1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-75))*CFrame.new(0.5,0.2,0)*CFrame.Angles(math.rad(rightvel*-0.5 - 1 * math.sin(sine*speed_val)),math.rad(0),math.rad(lookvel2*-15 * math.sin(sine*speed_val)))*CFrame.new(lookvel2*0.025 + 0.05 * math.cos(sine*speed_val),lookvel2*-0.025 + 0.05 * math.cos(sine*speed_val),0),anim_speed)
  3417.                 end
  3418.             end
  3419.             if enabled[rj] then
  3420.             rj.C0 = clerp(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0)),anim_speed)
  3421.                 if not crouching then
  3422.                 rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.new(0,0,-0.025+(0.025 * math.sin(sine*1.5*speed_val)))*CFrame.Angles(math.rad(lookvel*-5),math.rad(rightvel*-2),math.rad(0)),anim_speed)
  3423.                 else
  3424.                 rj.C1 = clerp(rj.C1,CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(-180),math.rad(0))*CFrame.new(0,0,-1+(-0.025+(0.025 * math.sin(sine*speed_val))))*CFrame.Angles(math.rad(lookvel*-1),math.rad(rightvel*-0.4),math.rad(0)),anim_speed)
  3425.                 end
  3426.             end
  3427.         end
  3428.     end
  3429. end)
Add Comment
Please, Sign In to add comment