Advertisement
KrYn0MoRe

melee pack

Aug 25th, 2018 (edited)
577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 117.21 KB | None | 0 0
  1. function give()
  2. local function sandbox(var,func)
  3.     local env = getfenv(func)
  4.     local newenv = setmetatable({},{
  5.         __index = function(self,k)
  6.             if k=="script" then
  7.                 return var
  8.             else
  9.                 return env[k]
  10.             end
  11.         end,
  12.     })
  13.     setfenv(func,newenv)
  14.     return func
  15. end
  16. local cors = {}
  17. local mas = Instance.new("Model",game:GetService("Lighting"))
  18. local Script0 = Instance.new("Script")
  19. local Script1 = Instance.new("Script")
  20. local Script2 = Instance.new("Script")
  21. local Script3 = Instance.new("Script")
  22. Script0.Name = "Baseball Bat"
  23. Script0.Parent = mas
  24. table.insert(cors,sandbox(Script0,function()
  25. local Tool = Instance.new("Tool")
  26. local Handle = Instance.new("Part")
  27. local SpecialMesh3 = Instance.new("SpecialMesh")
  28. Tool.Name = "Baseball Bat"
  29. Tool.Parent = owner['Backpack']
  30. Tool.TextureId = "rbxassetid://131768781"
  31. Tool.Grip = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  32. Handle.Name = "Handle"
  33. Handle.Parent = Tool
  34. Handle.Position = Vector3.new()
  35. Handle.Size = Vector3.new(1.2, 1.2, 5.53)
  36. Handle.Material = Enum.Material.Wood
  37. Handle.CanCollide = false
  38. Handle.Massless = true
  39. SpecialMesh3.Parent = Handle
  40. SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=54983181 "
  41. SpecialMesh3.Scale = Vector3.new(2, 2, 2)
  42. SpecialMesh3.TextureId = "http://www.roblox.com/asset/?id=54983107"
  43. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  44. local a1,a2,Trail = Instance.new("Attachment"),Instance.new("Attachment"),Instance.new("Trail")
  45. a1.Parent = Handle
  46. a1.Position = Vector3.new(0, 0, -2.765)
  47. a2.Parent = Handle
  48. a2.Position = Vector3.new(0, 0, 2.765)
  49. Trail.Parent = Handle
  50. Trail.Attachment0 = a1
  51. Trail.Attachment1 = a2
  52. Trail.LightInfluence = 1
  53. Trail.Transparency = NumberSequence.new(0.5,1)
  54. Trail.Lifetime = 1
  55. Trail.Enabled = false
  56.    
  57. local plr = owner
  58. local char = plr.Character
  59. local hum = char:FindFirstChildOfClass("Humanoid")
  60. local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  61.  
  62. local r = game:service("RunService")
  63.  
  64. local damage = math.random(25,30)
  65. local last_attack = 0
  66. local animval = 1
  67. local attacking = false
  68. local damaging = false
  69. local equipping = false
  70. local finishing = false
  71. local bleeding = false
  72.  
  73. local FinishSound = Instance.new("Sound")
  74. FinishSound.SoundId = "rbxassetid://3781479909"
  75. FinishSound.Parent = Handle
  76. FinishSound.Volume = .6
  77.  
  78. local HitSound = Instance.new("Sound")
  79. HitSound.SoundId = "rbxassetid://175024455"
  80. HitSound.Parent = Handle
  81. HitSound.Volume = .6
  82.  
  83. local SlashSound = Instance.new("Sound")
  84. SlashSound.SoundId = "rbxassetid://169285411"
  85. SlashSound.Parent = Handle
  86. SlashSound.Volume = .6
  87.  
  88. local equip = Instance.new("Sound")
  89. equip.SoundId = "rbxassetid://2706199011"
  90. equip.Parent = Handle
  91. equip.Volume = 1
  92.  
  93. local anims = {33169596,204062532,218504594,184574340}
  94.  
  95. local idleanimation = Instance.new("Animation")
  96. idleanimation.AnimationId = "rbxassetid://1323180718"
  97.  
  98. local idleanim = hum:LoadAnimation(idleanimation)
  99.  
  100. local animation = Instance.new("Animation")
  101. animation.AnimationId = "rbxassetid://" .. anims[math.random(1,#anims)]
  102.  
  103. local swinganim = hum:LoadAnimation(animation)
  104.  
  105. function bleed(p)
  106. bleeding = true
  107. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  108. local ParticleEmitter1 = Instance.new("ParticleEmitter")
  109. local ParticleEmitter2 = Instance.new("ParticleEmitter")
  110. ParticleEmitter0.Name = "Blood"
  111. ParticleEmitter0.Parent = p
  112. ParticleEmitter0.Speed = NumberRange.new(5, 10)
  113. ParticleEmitter0.Rotation = NumberRange.new(-360, 360)
  114. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.423529, 0, 0))
  115. ParticleEmitter0.Enabled = false
  116. ParticleEmitter0.LightEmission = 0.40000000596046
  117. ParticleEmitter0.LightInfluence = 1
  118. ParticleEmitter0.Texture = "rbxassetid://73547327"
  119. ParticleEmitter0.Transparency = NumberSequence.new(0.10000000149012,0.14375001192093,0.49374997615814,1)
  120. ParticleEmitter0.Size = NumberSequence.new(0,2.8749995231628)
  121. ParticleEmitter0.Acceleration = Vector3.new(0, -5, 0)
  122. ParticleEmitter0.EmissionDirection = Enum.NormalId.Front
  123. ParticleEmitter0.Lifetime = NumberRange.new(0.30000001192093, 0.5)
  124. ParticleEmitter0.LockedToPart = true
  125. ParticleEmitter0.Rate = 1000
  126. ParticleEmitter0.RotSpeed = NumberRange.new(-40, 270)
  127. ParticleEmitter0.SpreadAngle = Vector2.new(360, 360)
  128. ParticleEmitter0.VelocitySpread = 360
  129. ParticleEmitter1.Name = "Blood2"
  130. ParticleEmitter1.Parent = p
  131. ParticleEmitter1.Speed = NumberRange.new(5, 14)
  132. ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  133. ParticleEmitter1.Enabled = false
  134. ParticleEmitter1.LightEmission = 0.20000000298023
  135. ParticleEmitter1.LightInfluence = 1
  136. ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=134531274"
  137. ParticleEmitter1.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  138. ParticleEmitter1.ZOffset = 1
  139. ParticleEmitter1.Size = NumberSequence.new(0.12499988079071,0)
  140. ParticleEmitter1.Acceleration = Vector3.new(0, -20, 0)
  141. ParticleEmitter1.EmissionDirection = Enum.NormalId.Front
  142. ParticleEmitter1.Lifetime = NumberRange.new(0.5, 1.5)
  143. ParticleEmitter1.LockedToPart = true
  144. ParticleEmitter1.Rate = 1000
  145. ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
  146. ParticleEmitter1.VelocitySpread = 360
  147. ParticleEmitter2.Name = "Blood3"
  148. ParticleEmitter2.Parent = p
  149. ParticleEmitter2.Speed = NumberRange.new(3, 7)
  150. ParticleEmitter2.Rotation = NumberRange.new(-360, 360)
  151. ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.486275, 0, 0),Color3.new(0.258824, 0, 0))
  152. ParticleEmitter2.Enabled = false
  153. ParticleEmitter2.LightEmission = 0.20000000298023
  154. ParticleEmitter2.LightInfluence = 1
  155. ParticleEmitter2.Texture = "rbxassetid://241779220"
  156. ParticleEmitter2.Transparency = NumberSequence.new(1,0.48750001192093,0.75625002384186,1)
  157. ParticleEmitter2.ZOffset = 0.5
  158. ParticleEmitter2.Size = NumberSequence.new(0,2.8749995231628)
  159. ParticleEmitter2.Acceleration = Vector3.new(0, -5, 0)
  160. ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
  161. ParticleEmitter2.Lifetime = NumberRange.new(0.40000000596046, 1)
  162. ParticleEmitter2.LockedToPart = true
  163. ParticleEmitter2.Rate = 1000
  164. ParticleEmitter2.RotSpeed = NumberRange.new(-40, 270)
  165. ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
  166. ParticleEmitter2.VelocitySpread = 360
  167. ParticleEmitter0.Enabled = true
  168. ParticleEmitter1.Enabled = true
  169. ParticleEmitter2.Enabled = true
  170. spawn(function()
  171.     game:GetService("Debris"):AddItem(ParticleEmitter0,1)
  172.     game:GetService("Debris"):AddItem(ParticleEmitter1,1)
  173.     game:GetService("Debris"):AddItem(ParticleEmitter2,1)
  174.     wait(.1)
  175.     ParticleEmitter0.Enabled = false
  176.     ParticleEmitter1.Enabled = false
  177.     ParticleEmitter2.Enabled = false
  178.     bleeding = false
  179. end)
  180. end
  181.  
  182. function Ragdoll(targchar)
  183. local pc = targchar
  184. for _,obj in pairs(pc:GetChildren()) do
  185.     if obj:IsA("Tool") then
  186.         obj:Destroy()
  187.     end
  188. end
  189. targchar.ChildAdded:Connect(function(obj)
  190.     if obj:IsA("Tool") then
  191.         pcall(function()
  192.             obj:Destroy()
  193.         end)
  194.     end
  195. end)
  196.     if pc~=nil then
  197.         local hum = pc:FindFirstChild'Humanoid'
  198.         local LArm = pc:FindFirstChild'Left Arm'
  199.         local RArm = pc:FindFirstChild'Right Arm'
  200.         local LLeg = pc:FindFirstChild'Left Leg'
  201.         local RLeg = pc:FindFirstChild'Right Leg'
  202.         local torso = pc:FindFirstChild'Torso'
  203.         local head = pc:FindFirstChild'Head'
  204.        
  205.        
  206.         local LUA = pc:FindFirstChild'LeftUpperArm'
  207.         local LLA = pc:FindFirstChild'LeftLowerArm'
  208.         local LH = pc:FindFirstChild'LeftHand'
  209.        
  210.         local RUA = pc:FindFirstChild'RightUpperArm'
  211.         local RLA = pc:FindFirstChild'RightLowerArm'
  212.         local RH = pc:FindFirstChild'RightHand'
  213.        
  214.         local LUL = pc:FindFirstChild'LeftUpperLeg'
  215.         local LLL = pc:FindFirstChild'LeftLowerLeg'
  216.         local LF = pc:FindFirstChild'LeftFoot'
  217.        
  218.         local RUL = pc:FindFirstChild'RightUpperLeg'
  219.         local RLL = pc:FindFirstChild'RightLowerLeg'
  220.         local RF = pc:FindFirstChild'RightFoot'
  221.        
  222.         local UT = pc:FindFirstChild'UpperTorso'
  223.         local LT = pc:FindFirstChild'LowerTorso'
  224.        
  225.         if hum and LArm and RArm and LLeg and RLeg and head then
  226.             hum.BreakJointsOnDeath = false
  227.             hum.Died:Connect(function()
  228.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  229.                     for _,v in pairs(torso:GetChildren())do
  230.                         if v:IsA'Motor6D'then
  231.                             v:Destroy()
  232.                         end
  233.                     end
  234.                     local vis = false
  235.                     local vis2 = false
  236.                                
  237.                     local at1 = Instance.new("Attachment",torso)
  238.                     at1.Visible = vis
  239.                     at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  240.                     at1.Position = Vector3.new(-1,1,0)
  241.                                
  242.                     local at1p2 = Instance.new("Attachment",LArm)
  243.                     at1p2.Visible = vis
  244.                     at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  245.                     at1p2.Position = Vector3.new(.5,1,0)
  246.                    
  247.                     local bis = Instance.new("BallSocketConstraint",torso)
  248.                     bis.Attachment0 = at1
  249.                     bis.Attachment1 = at1p2
  250.                     bis.LimitsEnabled = true
  251.                     bis.UpperAngle = 15
  252.                     bis.Visible = vis2
  253.                     bis.TwistLimitsEnabled = true
  254.                     bis.UpperAngle = -45
  255.                     bis.TwistLowerAngle = -45
  256.                    
  257.                     local at2 = Instance.new("Attachment",torso)
  258.                     at2.Visible = vis
  259.                     at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  260.                     at2.Position = Vector3.new(1,1,0)
  261.                            
  262.                     local at2p2 = Instance.new("Attachment",RArm)
  263.                     at2p2.Visible = vis
  264.                     at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  265.                     at2p2.Position = Vector3.new(-.5,1,0)
  266.                    
  267.                     local bis2 = Instance.new("BallSocketConstraint",torso)
  268.                     bis2.Attachment0 = at2
  269.                     bis2.Attachment1 = at2p2
  270.                     bis2.LimitsEnabled = true
  271.                     bis2.UpperAngle = 15
  272.                     bis2.Visible = vis2
  273.                     bis2.TwistLimitsEnabled = true
  274.                     bis2.UpperAngle = -45
  275.                     bis2.TwistLowerAngle = -45
  276.                    
  277.                     local at3 = Instance.new("Attachment",torso)
  278.                     at3.Visible = vis
  279.                     at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  280.                     at3.Position = Vector3.new(.5,-1,0)
  281.                            
  282.                     local at3p2 = Instance.new("Attachment",RLeg)
  283.                     at3p2.Visible = vis
  284.                     at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  285.                     at3p2.Position = Vector3.new(0,1,0)
  286.                    
  287.                     local bis3 = Instance.new("BallSocketConstraint",torso)
  288.                     bis3.Attachment0 = at3
  289.                     bis3.Attachment1 = at3p2
  290.                     bis3.LimitsEnabled = true
  291.                     bis3.UpperAngle = 180-15
  292.                     bis3.Visible = vis2
  293.                        
  294.                     local at4 = Instance.new("Attachment",torso)
  295.                     at4.Visible = vis
  296.                     at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  297.                     at4.Position = Vector3.new(-.5,-1,0)
  298.                            
  299.                     local at4p2 = Instance.new("Attachment",LLeg)
  300.                     at4p2.Visible = vis
  301.                     at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  302.                     at4p2.Position = Vector3.new(0,1,0)
  303.                
  304.                     local bis4 = Instance.new("BallSocketConstraint",torso)
  305.                     bis4.Attachment0 = at4
  306.                     bis4.Attachment1 = at4p2
  307.                     bis4.LimitsEnabled = true
  308.                     bis4.UpperAngle = 180-15
  309.                     bis4.Visible = vis2
  310.                
  311.                
  312.                     local at5 = Instance.new("Attachment",torso)
  313.                     at5.Visible = vis
  314.                     at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  315.                     at5.Position = Vector3.new(0,1,0)
  316.                        
  317.                     local at5p2 = Instance.new("Attachment",head)
  318.                     at5p2.Visible = vis
  319.                     at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  320.                     at5p2.Position = Vector3.new(0,-.5,0)
  321.                
  322.                     local bis5 = Instance.new("BallSocketConstraint",torso)
  323.                     bis5.Attachment0 = at5p2
  324.                     bis5.Attachment1 = at5
  325.                     bis5.LimitsEnabled = true
  326.                     bis5.UpperAngle = 75
  327.                     bis5.Visible = vis2
  328.                     bis5.TwistLimitsEnabled = true
  329.                     bis5.UpperAngle = -45
  330.                     bis5.TwistLowerAngle = -45
  331.                 end
  332.             end)
  333.         elseif head and hum then
  334.             hum.BreakJointsOnDeath = false
  335.             hum.Died:Connect(function()
  336.                 if hum.RigType==Enum.HumanoidRigType.R15 then
  337.                     for _,v in pairs(pc:GetDescendants())do
  338.                         if v:IsA'Motor6D'then
  339.                             v:Destroy()
  340.                         end
  341.                     end
  342.                     local vis = false
  343.                     local vis2 = false
  344.                    
  345.                     local bsc1 = Instance.new("BallSocketConstraint",UT)
  346.                     bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  347.                     bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  348.                    
  349.                     local bsc2 = Instance.new("BallSocketConstraint",UT)
  350.                     bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  351.                     bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  352.                    
  353.                     local bsc3 = Instance.new("BallSocketConstraint",UT)
  354.                     bsc3.Attachment0 = LUL.LeftHipRigAttachment
  355.                     bsc3.Attachment1 = LT.LeftHipRigAttachment
  356.                    
  357.                     local bsc4 = Instance.new("BallSocketConstraint",UT)
  358.                     bsc4.Attachment0 = RF.RightAnkleRigAttachment
  359.                     bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  360.                    
  361.                     local bsc5 = Instance.new("BallSocketConstraint",UT)
  362.                     bsc5.Attachment0 = RLL.RightKneeRigAttachment
  363.                     bsc5.Attachment1 = RUL.RightKneeRigAttachment
  364.                    
  365.                     local bsc6 = Instance.new("BallSocketConstraint",UT)
  366.                     bsc6.Attachment0 = RUL.RightHipRigAttachment
  367.                     bsc6.Attachment1 = LT.RightHipRigAttachment
  368.                    
  369.                    
  370.                     local bsc7 = Instance.new("BallSocketConstraint",UT)
  371.                     bsc7.Attachment0 = LH.LeftWristRigAttachment
  372.                     bsc7.Attachment1 = LLA.LeftWristRigAttachment
  373.                    
  374.                     local bsc8 = Instance.new("BallSocketConstraint",UT)
  375.                     bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  376.                     bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  377.                    
  378.                     local bsc9 = Instance.new("BallSocketConstraint",UT)
  379.                     bsc9.Attachment0 = LUA.LeftShoulderAttachment
  380.                     bsc9.Attachment1 = UT.LeftCollarAttachment
  381.                    
  382.                     local bsc10 = Instance.new("BallSocketConstraint",UT)
  383.                     bsc10.Attachment0 = RH.RightWristRigAttachment
  384.                     bsc10.Attachment1 = RLA.RightWristRigAttachment
  385.                    
  386.                     local bsc11 = Instance.new("BallSocketConstraint",UT)
  387.                     bsc11.Attachment0 = RLA.RightElbowRigAttachment
  388.                     bsc11.Attachment1 = RUA.RightElbowRigAttachment
  389.                    
  390.                     local bsc12 = Instance.new("BallSocketConstraint",UT)
  391.                     bsc12.Attachment0 = RUA.RightShoulderAttachment
  392.                     bsc12.Attachment1 = UT.RightCollarAttachment
  393.                    
  394.                     local bsc13 = Instance.new("BallSocketConstraint",UT)
  395.                     bsc13.Attachment0 = LT.WaistRigAttachment
  396.                     bsc13.Attachment1 = UT.WaistRigAttachment
  397.                    
  398.                     local bsc14 = Instance.new("BallSocketConstraint",UT)
  399.                     bsc14.Attachment0 = UT.NeckRigAttachment
  400.                     bsc14.Attachment1 = head.NeckRigAttachment
  401.                     bsc14.LimitsEnabled = true
  402.                     bsc14.UpperAngle = -75
  403.                     bsc14.TwistLimitsEnabled = true
  404.                     bsc14.UpperAngle = -45
  405.                     bsc14.TwistLowerAngle = -45
  406.                    
  407.                 end
  408.             end)
  409.         end
  410.     end
  411. end
  412.  
  413. function blow(hit)
  414.     local targchar,targtorso,targhum,killval,hitval,finishval
  415.     pcall(function()
  416.         targchar = hit.Parent
  417.     end)
  418.     pcall(function()
  419.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  420.     end)
  421.     pcall(function()
  422.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  423.     end)
  424.     pcall(function()
  425.         killval = targhum:FindFirstChild("killer")
  426.     end)
  427.     pcall(function()
  428.         hitval = targhum:FindFirstChild("hit")
  429.     end)
  430.     pcall(function()
  431.         finishval = targhum:FindFirstChild("finishing")
  432.     end)
  433.     if targchar and targhum and targhum ~= hum and hum and not killval and not hitval and not finishval and attacking and damaging then
  434.         local temphitval = Instance.new("ObjectValue",targhum)
  435.         temphitval.Name = ("hit")
  436.         game:GetService("Debris"):AddItem(temphitval,.7)
  437.         local tempdamage = damage
  438.         if damage > targhum.Health and targhum.Health > 10 then
  439.             tempdamage = targhum.Health - 1
  440.             targhum:TakeDamage(tempdamage)
  441.         elseif targhum.Health > damage then
  442.             targhum:TakeDamage(tempdamage)
  443.         end
  444.         if not bleeding then
  445.             bleed(targtorso)
  446.         end
  447.         wait()
  448.         HitSound.PlaybackSpeed = math.random(9,12)/10
  449.         HitSound:Play()
  450.     end
  451.     if targchar and targhum and targhum ~= hum and hum and not killval and not finishval and attacking and damaging then
  452.         spawn(function()
  453.             if 10 > targhum.Health then
  454.                 while 10 > targhum.Health do
  455.                     if 10 > targhum.Health then
  456.                         targhum.PlatformStand = true
  457.                     end
  458.                     wait(.1)
  459.                 end
  460.             else
  461.                 for i = 0,1.5,.1 do
  462.                     targhum.PlatformStand = true
  463.                     wait(.1)
  464.                 end
  465.             end
  466.             targhum.PlatformStand = false
  467.         end)
  468.     end
  469. end
  470.  
  471. function attack()
  472.     damage = math.random(25,30)
  473.     SlashSound.PlaybackSpeed = math.random(95,105)/100
  474.     SlashSound:play()
  475.     animval = animval + 1
  476.     if animval > 3 then animval = 1 end
  477.     animation.AnimationId = "rbxassetid://" .. anims[animval]
  478.     swinganim = hum:LoadAnimation(animation)
  479.     if animval == 1 then
  480.         swinganim:Play(.05,1,1) -- front swing
  481.     elseif animval == 2 then
  482.         Tool.Grip = CFrame.new(-0.0223260075, 0.0523529053, -1.89661765, 0, 0.999803424, -0.0198284388, 0.852713764, 0.0103579508, 0.522275805, 0.522378504, -0.0169079825, -0.852546155)
  483.         swinganim:Play(.04,1,1.2) -- left swing
  484.     elseif animval == 3 then
  485.         Tool.Grip = CFrame.new(-0.0223260075, 0.0523529053, -1.89661765, 0, 0.999803424, -0.0198284388, 0.852713764, 0.0103579508, 0.522275805, 0.522378504, -0.0169079825, -0.852546155)
  486.         swinganim:Play(.04,1,1) -- right swing
  487.     end
  488. end
  489.  
  490. function Activated()
  491.     if hum.PlatformStand or attacking or finishing or equipping or not char or not hum or not torso or hum.PlatformStand or torso.Anchored or 0 >= hum.Health then return end
  492.    
  493.     attacking = true
  494.  
  495.     local finishregion = Region3.new(torso.Position-(Vector3.new(1.5, 6, 1.5)/2),torso.Position+(Vector3.new(1.5, -3, 1.5)/2))
  496.     local targchar,targhum
  497.     local regionparts = workspace:FindPartsInRegion3(finishregion)
  498.    
  499.     for _,obj in pairs(regionparts) do
  500.         if obj.Parent ~= char then
  501.             local tempchar,temphum
  502.             pcall(function()
  503.                 tempchar = obj.Parent
  504.             end)
  505.             pcall(function()
  506.                 temphum = tempchar:FindFirstChildOfClass("Humanoid")
  507.             end)
  508.             if tempchar and temphum and not temphum:FindFirstChild("hit with melee") and temphum.Health > 0 and 10 > temphum.Health and temphum.PlatformStand then
  509.                 targchar = tempchar
  510.                 targhum = temphum
  511.             end
  512.         end
  513.     end
  514.    
  515.     if targchar and targhum and not targhum:FindFirstChild("hit with melee") and targhum.Health > 0 and 10 > targhum.Health and targhum.PlatformStand then
  516.         pcall(function()
  517.             finish(targchar)
  518.         end)
  519.     else
  520.         pcall(function()
  521.             attack()
  522.         end)
  523.         Trail.Enabled = true
  524.         damaging = true
  525.         wait(.7)
  526.     end
  527.    
  528.     damaging = false
  529.     Tool.Grip = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  530.     damage = math.random(25,30)
  531.     hum.WalkSpeed = 16
  532.  
  533.     Trail.Enabled = false
  534.     attacking = false
  535. end
  536.  
  537. function finish(targchar)
  538.     if finishing or equipping or not char or not hum then return end
  539.    
  540.     local finishingval = Instance.new("ObjectValue",hum)
  541.     finishingval.Name = "finishing"
  542.    
  543.     local targtorso,targhum,killval,finishval
  544.     pcall(function()
  545.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  546.     end)
  547.     pcall(function()
  548.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  549.     end)
  550.     pcall(function()
  551.         killval = targhum:FindFirstChild("killer")
  552.     end)
  553.     pcall(function()
  554.         finishval = targhum:FindFirstChild("finishing")
  555.     end)
  556.    
  557.     if finishval then finishingval:Destroy() return end
  558.    
  559.     finishing = true
  560.    
  561.     animation.AnimationId = "rbxassetid://" .. anims[#anims]
  562.     swinganim = hum:LoadAnimation(animation)
  563.    
  564.     targtorso.Anchored = true
  565.    
  566.     hum.WalkSpeed = 0
  567.    
  568.     swinganim:Play(.1,1,1)
  569.     Trail.Enabled = true
  570.    
  571.     wait(.9)
  572.     Tool.Grip = CFrame.new(0.0747570097, 0.105259255, -2.29442072, -0.00690278085, 0.994355798, -0.10587208, 0.996230125, 0.0159939751, 0.0852627456, 0.086474821, -0.104884408, -0.99071759)
  573.     pcall(function()
  574.         Ragdoll(targchar)
  575.     end)
  576.     targhum:TakeDamage(1/0)
  577.     if targhum and 0 >= targhum.Health then
  578.         local tempkillval = Instance.new("ObjectValue",targhum)
  579.         tempkillval.Name = "killer"
  580.         tempkillval.Value = plr
  581.         targtorso.Anchored = false
  582.         FinishSound:Play()
  583.         if not bleeding then
  584.             bleed(targtorso)
  585.         end
  586.     end
  587.     HitSound.PlaybackSpeed = math.random(9,12)/10
  588.     HitSound:Play()
  589.     wait(1.2)
  590.     Trail.Enabled = false
  591.     swinganim:Stop()
  592.     hum.WalkSpeed = 16
  593.    
  594.     Tool.Grip = CFrame.new(0, 0, -1.5, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  595.     damage = math.random(25,30)
  596.    
  597.     finishingval:Destroy()
  598.  
  599.     finishing = false
  600. end
  601.  
  602. function CheckIfAlive()
  603.     local alive = false
  604.     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
  605.         alive = true
  606.     end
  607.     return alive
  608. end
  609.  
  610. function equip_anim()
  611.     for i = 0,15 do
  612.         Tool.Grip = Tool.Grip * CFrame.Angles(math.rad(-22.5),0,0)
  613.         wait(0)
  614.     end
  615. end
  616.  
  617. function Equipped()
  618.     if attacking or finishing or equipping then return end
  619.     char = Tool.Parent
  620.     plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  621.     hum = char:FindFirstChildOfClass("Humanoid")
  622.     torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  623.     swinganim = hum:LoadAnimation(animation)
  624.     idleanim = hum:LoadAnimation(idleanimation)
  625.     if not CheckIfAlive() then Tool.Parent = nil return end
  626.     equipped = true
  627.     equipping = true
  628.     idleanim:Play()
  629.     equip:play()
  630.     --equip_anim()
  631.     equipping = false
  632. end
  633.  
  634. function Unequipped()
  635.     equipped = false
  636.     swinganim:Stop()
  637.     idleanim:Stop()
  638. end
  639.  
  640. Tool.Activated:connect(Activated)
  641. Tool.Equipped:connect(Equipped)
  642. Tool.Unequipped:connect(Unequipped)
  643. Handle.Touched:Connect(blow)
  644. end))
  645. Script1.Name = "Katana"
  646. Script1.Parent = mas
  647. table.insert(cors,sandbox(Script1,function()
  648. local Tool = Instance.new("Tool")
  649. local Handle = Instance.new("Part")
  650. local SpecialMesh3 = Instance.new("SpecialMesh")
  651. Tool.Name = "Katana"
  652. Tool.Parent = owner['Backpack']
  653. Tool.TextureId = "rbxassetid://193892385"
  654. Tool.Grip = CFrame.new(1.31134158e-07, -0.0329501629, 1.95680952, 1, -8.74227766e-08, -4.37113883e-08, 4.37113883e-08, -3.82137093e-15, 1, -8.74227766e-08, -1, 0)
  655. Handle.Name = "Handle"
  656. Handle.Parent = Tool
  657. Handle.Position = Vector3.new()
  658. Handle.Size = Vector3.new(0.66, 0.8, 5.57)
  659. Handle.Material = Enum.Material.Metal
  660. Handle.CanCollide = false
  661. Handle.Massless = true
  662. SpecialMesh3.Parent = Handle
  663. SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=157152278"
  664. SpecialMesh3.Scale = Vector3.new(1, 1, 0.9)
  665. SpecialMesh3.TextureId = "http://www.roblox.com/asset/?id=290307814"
  666. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  667. local a1,a2,Trail = Instance.new("Attachment"),Instance.new("Attachment"),Instance.new("Trail")
  668. a1.Parent = Handle
  669. a1.Position = Vector3.new(0, 0.07, -2.74)
  670. a2.Parent = Handle
  671. a2.Position = Vector3.new(0, -0.17, 1.04)
  672. Trail.Parent = Handle
  673. Trail.Attachment0 = a1
  674. Trail.Attachment1 = a2
  675. Trail.LightInfluence = 1
  676. Trail.Transparency = NumberSequence.new(0.5,1)
  677. Trail.Lifetime = 1
  678. Trail.Enabled = false
  679.  
  680. local plr = owner
  681. local char = plr.Character
  682. local hum = char:FindFirstChildOfClass("Humanoid")
  683. local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  684.  
  685. local r = game:service("RunService")
  686.  
  687. local damage = math.random(30,35)
  688. local last_attack = 0
  689. local animval = 1
  690. local attacking = false
  691. local damaging = false
  692. local equipping = false
  693. local finishing = false
  694. local bleeding = false
  695. local usingattack = false
  696.  
  697. local FinishSound = Instance.new("Sound")
  698. FinishSound.SoundId = "rbxassetid://3781479909"
  699. FinishSound.Parent = Handle
  700. FinishSound.Volume = .6
  701.  
  702. local HitSound = Instance.new("Sound")
  703. HitSound.SoundId = "rbxassetid://344936319"
  704. HitSound.Parent = Handle
  705. HitSound.Volume = .6
  706.  
  707. local SlashSound = Instance.new("Sound")
  708. SlashSound.SoundId = "rbxassetid://2227999690"
  709. SlashSound.Parent = Handle
  710. SlashSound.Volume = .6
  711.  
  712. local equip = Instance.new("Sound")
  713. equip.SoundId = "rbxassetid://2706199011"
  714. equip.Parent = Handle
  715. equip.Volume = 1
  716.  
  717. local anims = {33169596,204062532,218504594,186934910,184574340}
  718.  
  719. local animation = Instance.new("Animation")
  720. animation.AnimationId = "rbxassetid://" .. anims[math.random(1,#anims)]
  721.  
  722. local swinganim = hum:LoadAnimation(animation)
  723.  
  724. function bleed(p)
  725. bleeding = true
  726. bleeding = true
  727. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  728. local ParticleEmitter1 = Instance.new("ParticleEmitter")
  729. local ParticleEmitter2 = Instance.new("ParticleEmitter")
  730. ParticleEmitter0.Name = "Blood"
  731. ParticleEmitter0.Parent = p
  732. ParticleEmitter0.Speed = NumberRange.new(5, 10)
  733. ParticleEmitter0.Rotation = NumberRange.new(-360, 360)
  734. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.423529, 0, 0))
  735. ParticleEmitter0.Enabled = false
  736. ParticleEmitter0.LightEmission = 0.40000000596046
  737. ParticleEmitter0.LightInfluence = 1
  738. ParticleEmitter0.Texture = "rbxassetid://73547327"
  739. ParticleEmitter0.Transparency = NumberSequence.new(0.10000000149012,0.14375001192093,0.49374997615814,1)
  740. ParticleEmitter0.Size = NumberSequence.new(0,2.8749995231628)
  741. ParticleEmitter0.Acceleration = Vector3.new(0, -5, 0)
  742. ParticleEmitter0.EmissionDirection = Enum.NormalId.Front
  743. ParticleEmitter0.Lifetime = NumberRange.new(0.30000001192093, 0.5)
  744. ParticleEmitter0.LockedToPart = true
  745. ParticleEmitter0.Rate = 1000
  746. ParticleEmitter0.RotSpeed = NumberRange.new(-40, 270)
  747. ParticleEmitter0.SpreadAngle = Vector2.new(360, 360)
  748. ParticleEmitter0.VelocitySpread = 360
  749. ParticleEmitter1.Name = "Blood2"
  750. ParticleEmitter1.Parent = p
  751. ParticleEmitter1.Speed = NumberRange.new(5, 14)
  752. ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  753. ParticleEmitter1.Enabled = false
  754. ParticleEmitter1.LightEmission = 0.20000000298023
  755. ParticleEmitter1.LightInfluence = 1
  756. ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=134531274"
  757. ParticleEmitter1.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  758. ParticleEmitter1.ZOffset = 1
  759. ParticleEmitter1.Size = NumberSequence.new(0.12499988079071,0)
  760. ParticleEmitter1.Acceleration = Vector3.new(0, -20, 0)
  761. ParticleEmitter1.EmissionDirection = Enum.NormalId.Front
  762. ParticleEmitter1.Lifetime = NumberRange.new(0.5, 1.5)
  763. ParticleEmitter1.LockedToPart = true
  764. ParticleEmitter1.Rate = 1000
  765. ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
  766. ParticleEmitter1.VelocitySpread = 360
  767. ParticleEmitter2.Name = "Blood3"
  768. ParticleEmitter2.Parent = p
  769. ParticleEmitter2.Speed = NumberRange.new(3, 7)
  770. ParticleEmitter2.Rotation = NumberRange.new(-360, 360)
  771. ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.486275, 0, 0),Color3.new(0.258824, 0, 0))
  772. ParticleEmitter2.Enabled = false
  773. ParticleEmitter2.LightEmission = 0.20000000298023
  774. ParticleEmitter2.LightInfluence = 1
  775. ParticleEmitter2.Texture = "rbxassetid://241779220"
  776. ParticleEmitter2.Transparency = NumberSequence.new(1,0.48750001192093,0.75625002384186,1)
  777. ParticleEmitter2.ZOffset = 0.5
  778. ParticleEmitter2.Size = NumberSequence.new(0,2.8749995231628)
  779. ParticleEmitter2.Acceleration = Vector3.new(0, -5, 0)
  780. ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
  781. ParticleEmitter2.Lifetime = NumberRange.new(0.40000000596046, 1)
  782. ParticleEmitter2.LockedToPart = true
  783. ParticleEmitter2.Rate = 1000
  784. ParticleEmitter2.RotSpeed = NumberRange.new(-40, 270)
  785. ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
  786. ParticleEmitter2.VelocitySpread = 360
  787. ParticleEmitter0.Enabled = true
  788. ParticleEmitter1.Enabled = true
  789. ParticleEmitter2.Enabled = true
  790. spawn(function()
  791.     game:GetService("Debris"):AddItem(ParticleEmitter0,1)
  792.     game:GetService("Debris"):AddItem(ParticleEmitter1,1)
  793.     game:GetService("Debris"):AddItem(ParticleEmitter2,1)
  794.     wait(.1)
  795.     ParticleEmitter0.Enabled = false
  796.     ParticleEmitter1.Enabled = false
  797.     ParticleEmitter2.Enabled = false
  798.     bleeding = false
  799. end)
  800. end
  801.  
  802. function decap(hit)
  803. local targchar,targtorso,targhum,killval,hitval,finishval
  804. pcall(function()
  805.     targchar = hit.Parent
  806. end)
  807. pcall(function()
  808.     targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  809. end)
  810. pcall(function()
  811.     targhum = targchar:FindFirstChildOfClass("Humanoid")
  812. end)
  813. pcall(function()
  814.     killval = targhum:FindFirstChild("killer")
  815. end)
  816. pcall(function()
  817.     hitval = targhum:FindFirstChild("hit")
  818. end)
  819. pcall(function()
  820.     finishval = targhum:FindFirstChild("finishing")
  821. end)
  822. if targchar and targhum and targhum ~= hum and hum and not killval and not hitval and not finishval and attacking and damaging and not usingattack then else return end
  823. usingattack = true
  824.  
  825. local tempkillval = Instance.new("ObjectValue",targhum)
  826. tempkillval.Name = "killer"
  827. tempkillval.Value = plr
  828.  
  829. pcall(function()
  830.     Ragdoll(targchar)
  831. end)
  832. targhum:TakeDamage(1/0)
  833.  
  834. pcall(function()
  835.     targchar:FindFirstChild("Head"):Destroy()
  836. end)
  837.  
  838. FinishSound:Play()
  839. HitSound.PlaybackSpeed = math.random(9,12)/10
  840. HitSound:Play()
  841.  
  842. local pe0 = Instance.new("ParticleEmitter")
  843. local pe1 = Instance.new("ParticleEmitter")
  844. local pe2 = Instance.new("ParticleEmitter")
  845. pe0.Name = "Blood"
  846. pe0.Parent = targtorso
  847. pe0.Speed = NumberRange.new(5, 10)
  848. pe0.Rotation = NumberRange.new(-360, 360)
  849. pe0.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.423529, 0, 0))
  850. pe0.LightEmission = 0.40000000596046
  851. pe0.LightInfluence = 1
  852. pe0.Texture = "rbxassetid://73547327"
  853. pe0.Transparency = NumberSequence.new(0.10000000149012,0.14375001192093,0.49374997615814,1)
  854. pe0.Size = NumberSequence.new(0,2.8749995231628)
  855. pe0.Acceleration = Vector3.new(0, -5, 0)
  856. pe0.Lifetime = NumberRange.new(0.30000001192093, 0.5)
  857. pe0.LockedToPart = true
  858. pe0.Rate = 100
  859. pe0.RotSpeed = NumberRange.new(-40, 270)
  860. pe1.Name = "Blood2"
  861. pe1.Parent = targtorso
  862. pe1.Speed = NumberRange.new(5, 14)
  863. pe1.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  864. pe1.LightEmission = 0.20000000298023
  865. pe1.LightInfluence = 1
  866. pe1.Texture = "http://www.roblox.com/asset/?id=134531274"
  867. pe1.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  868. pe1.ZOffset = 1
  869. pe1.Size = NumberSequence.new(0.12499988079071,0)
  870. pe1.Acceleration = Vector3.new(0, -20, 0)
  871. pe1.Lifetime = NumberRange.new(0.5, 1.5)
  872. pe1.LockedToPart = true
  873. pe1.Rate = 100
  874. pe2.Name = "Blood3"
  875. pe2.Parent = targtorso
  876. pe2.Speed = NumberRange.new(3, 7)
  877. pe2.Rotation = NumberRange.new(-360, 360)
  878. pe2.Color = ColorSequence.new(Color3.new(0.486275, 0, 0),Color3.new(0.258824, 0, 0))
  879. pe2.LightEmission = 0.20000000298023
  880. pe2.LightInfluence = 1
  881. pe2.Texture = "rbxassetid://241779220"
  882. pe2.Transparency = NumberSequence.new(1,0.48750001192093,0.75625002384186,1)
  883. pe2.ZOffset = 0.5
  884. pe2.Size = NumberSequence.new(0,2.8749995231628)
  885. pe2.Acceleration = Vector3.new(0, -5, 0)
  886. pe2.Lifetime = NumberRange.new(0.40000000596046, 1)
  887. pe2.LockedToPart = true
  888. pe2.Rate = 100
  889. pe2.RotSpeed = NumberRange.new(-40, 270)
  890. usingattack = false
  891. end
  892.  
  893. function Ragdoll(targchar)
  894. local pc = targchar
  895. for _,obj in pairs(pc:GetChildren()) do
  896.     if obj:IsA("Tool") then
  897.         obj:Destroy()
  898.     end
  899. end
  900. targchar.ChildAdded:Connect(function(obj)
  901.     if obj:IsA("Tool") then
  902.         pcall(function()
  903.             obj:Destroy()
  904.         end)
  905.     end
  906. end)
  907.     if pc~=nil then
  908.         local hum = pc:FindFirstChild'Humanoid'
  909.         local LArm = pc:FindFirstChild'Left Arm'
  910.         local RArm = pc:FindFirstChild'Right Arm'
  911.         local LLeg = pc:FindFirstChild'Left Leg'
  912.         local RLeg = pc:FindFirstChild'Right Leg'
  913.         local torso = pc:FindFirstChild'Torso'
  914.         local head = pc:FindFirstChild'Head'
  915.        
  916.        
  917.         local LUA = pc:FindFirstChild'LeftUpperArm'
  918.         local LLA = pc:FindFirstChild'LeftLowerArm'
  919.         local LH = pc:FindFirstChild'LeftHand'
  920.        
  921.         local RUA = pc:FindFirstChild'RightUpperArm'
  922.         local RLA = pc:FindFirstChild'RightLowerArm'
  923.         local RH = pc:FindFirstChild'RightHand'
  924.        
  925.         local LUL = pc:FindFirstChild'LeftUpperLeg'
  926.         local LLL = pc:FindFirstChild'LeftLowerLeg'
  927.         local LF = pc:FindFirstChild'LeftFoot'
  928.        
  929.         local RUL = pc:FindFirstChild'RightUpperLeg'
  930.         local RLL = pc:FindFirstChild'RightLowerLeg'
  931.         local RF = pc:FindFirstChild'RightFoot'
  932.        
  933.         local UT = pc:FindFirstChild'UpperTorso'
  934.         local LT = pc:FindFirstChild'LowerTorso'
  935.        
  936.         if hum and LArm and RArm and LLeg and RLeg and head then
  937.             hum.BreakJointsOnDeath = false
  938.             hum.Died:Connect(function()
  939.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  940.                     for _,v in pairs(torso:GetChildren())do
  941.                         if v:IsA'Motor6D'then
  942.                             v:Destroy()
  943.                         end
  944.                     end
  945.                     local vis = false
  946.                     local vis2 = false
  947.                                
  948.                     local at1 = Instance.new("Attachment",torso)
  949.                     at1.Visible = vis
  950.                     at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  951.                     at1.Position = Vector3.new(-1,1,0)
  952.                                
  953.                     local at1p2 = Instance.new("Attachment",LArm)
  954.                     at1p2.Visible = vis
  955.                     at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  956.                     at1p2.Position = Vector3.new(.5,1,0)
  957.                    
  958.                     local bis = Instance.new("BallSocketConstraint",torso)
  959.                     bis.Attachment0 = at1
  960.                     bis.Attachment1 = at1p2
  961.                     bis.LimitsEnabled = true
  962.                     bis.UpperAngle = 15
  963.                     bis.Visible = vis2
  964.                     bis.TwistLimitsEnabled = true
  965.                     bis.UpperAngle = -45
  966.                     bis.TwistLowerAngle = -45
  967.                    
  968.                     local at2 = Instance.new("Attachment",torso)
  969.                     at2.Visible = vis
  970.                     at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  971.                     at2.Position = Vector3.new(1,1,0)
  972.                            
  973.                     local at2p2 = Instance.new("Attachment",RArm)
  974.                     at2p2.Visible = vis
  975.                     at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  976.                     at2p2.Position = Vector3.new(-.5,1,0)
  977.                    
  978.                     local bis2 = Instance.new("BallSocketConstraint",torso)
  979.                     bis2.Attachment0 = at2
  980.                     bis2.Attachment1 = at2p2
  981.                     bis2.LimitsEnabled = true
  982.                     bis2.UpperAngle = 15
  983.                     bis2.Visible = vis2
  984.                     bis2.TwistLimitsEnabled = true
  985.                     bis2.UpperAngle = -45
  986.                     bis2.TwistLowerAngle = -45
  987.                    
  988.                     local at3 = Instance.new("Attachment",torso)
  989.                     at3.Visible = vis
  990.                     at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  991.                     at3.Position = Vector3.new(.5,-1,0)
  992.                            
  993.                     local at3p2 = Instance.new("Attachment",RLeg)
  994.                     at3p2.Visible = vis
  995.                     at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  996.                     at3p2.Position = Vector3.new(0,1,0)
  997.                    
  998.                     local bis3 = Instance.new("BallSocketConstraint",torso)
  999.                     bis3.Attachment0 = at3
  1000.                     bis3.Attachment1 = at3p2
  1001.                     bis3.LimitsEnabled = true
  1002.                     bis3.UpperAngle = 180-15
  1003.                     bis3.Visible = vis2
  1004.                        
  1005.                     local at4 = Instance.new("Attachment",torso)
  1006.                     at4.Visible = vis
  1007.                     at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  1008.                     at4.Position = Vector3.new(-.5,-1,0)
  1009.                            
  1010.                     local at4p2 = Instance.new("Attachment",LLeg)
  1011.                     at4p2.Visible = vis
  1012.                     at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  1013.                     at4p2.Position = Vector3.new(0,1,0)
  1014.                
  1015.                     local bis4 = Instance.new("BallSocketConstraint",torso)
  1016.                     bis4.Attachment0 = at4
  1017.                     bis4.Attachment1 = at4p2
  1018.                     bis4.LimitsEnabled = true
  1019.                     bis4.UpperAngle = 180-15
  1020.                     bis4.Visible = vis2
  1021.                
  1022.                
  1023.                     local at5 = Instance.new("Attachment",torso)
  1024.                     at5.Visible = vis
  1025.                     at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  1026.                     at5.Position = Vector3.new(0,1,0)
  1027.                        
  1028.                     local at5p2 = Instance.new("Attachment",head)
  1029.                     at5p2.Visible = vis
  1030.                     at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  1031.                     at5p2.Position = Vector3.new(0,-.5,0)
  1032.                
  1033.                     local bis5 = Instance.new("BallSocketConstraint",torso)
  1034.                     bis5.Attachment0 = at5p2
  1035.                     bis5.Attachment1 = at5
  1036.                     bis5.LimitsEnabled = true
  1037.                     bis5.UpperAngle = 75
  1038.                     bis5.Visible = vis2
  1039.                     bis5.TwistLimitsEnabled = true
  1040.                     bis5.UpperAngle = -45
  1041.                     bis5.TwistLowerAngle = -45
  1042.                 end
  1043.             end)
  1044.         elseif head and hum then
  1045.             hum.BreakJointsOnDeath = false
  1046.             hum.Died:Connect(function()
  1047.                 if hum.RigType==Enum.HumanoidRigType.R15 then
  1048.                     for _,v in pairs(pc:GetDescendants())do
  1049.                         if v:IsA'Motor6D'then
  1050.                             v:Destroy()
  1051.                         end
  1052.                     end
  1053.                     local vis = false
  1054.                     local vis2 = false
  1055.                    
  1056.                     local bsc1 = Instance.new("BallSocketConstraint",UT)
  1057.                     bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  1058.                     bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  1059.                    
  1060.                     local bsc2 = Instance.new("BallSocketConstraint",UT)
  1061.                     bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  1062.                     bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  1063.                    
  1064.                     local bsc3 = Instance.new("BallSocketConstraint",UT)
  1065.                     bsc3.Attachment0 = LUL.LeftHipRigAttachment
  1066.                     bsc3.Attachment1 = LT.LeftHipRigAttachment
  1067.                    
  1068.                     local bsc4 = Instance.new("BallSocketConstraint",UT)
  1069.                     bsc4.Attachment0 = RF.RightAnkleRigAttachment
  1070.                     bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  1071.                    
  1072.                     local bsc5 = Instance.new("BallSocketConstraint",UT)
  1073.                     bsc5.Attachment0 = RLL.RightKneeRigAttachment
  1074.                     bsc5.Attachment1 = RUL.RightKneeRigAttachment
  1075.                    
  1076.                     local bsc6 = Instance.new("BallSocketConstraint",UT)
  1077.                     bsc6.Attachment0 = RUL.RightHipRigAttachment
  1078.                     bsc6.Attachment1 = LT.RightHipRigAttachment
  1079.                    
  1080.                    
  1081.                     local bsc7 = Instance.new("BallSocketConstraint",UT)
  1082.                     bsc7.Attachment0 = LH.LeftWristRigAttachment
  1083.                     bsc7.Attachment1 = LLA.LeftWristRigAttachment
  1084.                    
  1085.                     local bsc8 = Instance.new("BallSocketConstraint",UT)
  1086.                     bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  1087.                     bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  1088.                    
  1089.                     local bsc9 = Instance.new("BallSocketConstraint",UT)
  1090.                     bsc9.Attachment0 = LUA.LeftShoulderAttachment
  1091.                     bsc9.Attachment1 = UT.LeftCollarAttachment
  1092.                    
  1093.                     local bsc10 = Instance.new("BallSocketConstraint",UT)
  1094.                     bsc10.Attachment0 = RH.RightWristRigAttachment
  1095.                     bsc10.Attachment1 = RLA.RightWristRigAttachment
  1096.                    
  1097.                     local bsc11 = Instance.new("BallSocketConstraint",UT)
  1098.                     bsc11.Attachment0 = RLA.RightElbowRigAttachment
  1099.                     bsc11.Attachment1 = RUA.RightElbowRigAttachment
  1100.                    
  1101.                     local bsc12 = Instance.new("BallSocketConstraint",UT)
  1102.                     bsc12.Attachment0 = RUA.RightShoulderAttachment
  1103.                     bsc12.Attachment1 = UT.RightCollarAttachment
  1104.                    
  1105.                     local bsc13 = Instance.new("BallSocketConstraint",UT)
  1106.                     bsc13.Attachment0 = LT.WaistRigAttachment
  1107.                     bsc13.Attachment1 = UT.WaistRigAttachment
  1108.                    
  1109.                     local bsc14 = Instance.new("BallSocketConstraint",UT)
  1110.                     bsc14.Attachment0 = UT.NeckRigAttachment
  1111.                     bsc14.Attachment1 = head.NeckRigAttachment
  1112.                     bsc14.LimitsEnabled = true
  1113.                     bsc14.UpperAngle = -75
  1114.                     bsc14.TwistLimitsEnabled = true
  1115.                     bsc14.UpperAngle = -45
  1116.                     bsc14.TwistLowerAngle = -45
  1117.                    
  1118.                 end
  1119.             end)
  1120.         end
  1121.     end
  1122. end
  1123.  
  1124. function blow(hit)
  1125.     local targchar,targtorso,targhum,killval,hitval,finishval
  1126.     pcall(function()
  1127.         targchar = hit.Parent
  1128.     end)
  1129.     pcall(function()
  1130.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  1131.     end)
  1132.     pcall(function()
  1133.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  1134.     end)
  1135.     pcall(function()
  1136.         killval = targhum:FindFirstChild("killer")
  1137.     end)
  1138.     pcall(function()
  1139.         hitval = targhum:FindFirstChild("hit")
  1140.     end)
  1141.     pcall(function()
  1142.         finishval = targhum:FindFirstChild("finishing")
  1143.     end)
  1144.     if targchar and targhum and targhum ~= hum and hum and not killval and not hitval and not finishval and attacking and damaging and not usingattack then
  1145.         local temphitval = Instance.new("ObjectValue",targhum)
  1146.         temphitval.Name = ("hit")
  1147.         game:GetService("Debris"):AddItem(temphitval,.7)
  1148.         local tempdamage = damage
  1149.         if damage > targhum.Health and targhum.Health > 10 then
  1150.             tempdamage = targhum.Health - 1
  1151.             targhum:TakeDamage(tempdamage)
  1152.         elseif targhum.Health > damage then
  1153.             targhum:TakeDamage(tempdamage)
  1154.         end
  1155.         if not bleeding then
  1156.             bleed(targtorso)
  1157.         end
  1158.         wait()
  1159.         HitSound.PlaybackSpeed = math.random(9,12)/10
  1160.         HitSound:Play()
  1161.     end
  1162.     if targchar and targhum and targhum ~= hum and hum and not killval and not finishval and attacking and damaging then
  1163.         spawn(function()
  1164.             if 10 > targhum.Health then
  1165.                 while 10 > targhum.Health do
  1166.                     if 10 > targhum.Health then
  1167.                         targhum.PlatformStand = true
  1168.                     end
  1169.                     wait(.1)
  1170.                 end
  1171.             else
  1172.                 for i = 0,0.8,.1 do
  1173.                     targhum.PlatformStand = true
  1174.                     wait(.1)
  1175.                 end
  1176.             end
  1177.             targhum.PlatformStand = false
  1178.         end)
  1179.     end
  1180.     usingattack = false
  1181. end
  1182.  
  1183. function attack()
  1184.     damage = math.random(30,35)
  1185.     SlashSound.PlaybackSpeed = math.random(95,105)/100
  1186.     SlashSound:play()
  1187.     animval = animval + 1
  1188.     if animval > #anims-1 then animval = 1 end
  1189.     animation.AnimationId = "rbxassetid://" .. anims[animval]
  1190.     swinganim = hum:LoadAnimation(animation)
  1191.     if animval == 1 then
  1192.         swinganim:Play(.05,1,1) -- front swing
  1193.     elseif animval == 2 then
  1194.         Tool.Grip = CFrame.new(-0.0433726497, 1.30431943e-07, 1.82345986, -7.54978942e-08, -1, -1.19248815e-08, 1, -7.54978942e-08, -4.37113883e-08, 4.37113883e-08, -1.19248842e-08, 1)
  1195.         swinganim:Play(.04,1,1.2) -- left swing
  1196.     elseif animval == 3 then
  1197.         Tool.Grip = CFrame.new(-0.0644850433, -0.192117706, 1.77630055, 4.37113883e-08, 1, -4.37113847e-08, -1, 4.37113883e-08, 4.37113918e-08, 4.37113918e-08, 4.37113847e-08, 1)
  1198.         swinganim:Play(.04,1,1) -- right swing
  1199.     elseif animval == 4 then
  1200.         Tool.Grip = CFrame.new(-0.0644850433, -0.192117706, 1.77630055, 4.37113883e-08, 1, -4.37113847e-08, -1, 4.37113883e-08, 4.37113918e-08, 4.37113918e-08, 4.37113847e-08, 1)
  1201.         swinganim:Play(.04,1,1) -- right 360 spin
  1202.     end
  1203. end
  1204.  
  1205. function hitdecide(obj)
  1206.     local targhum,killval,hitval,finishval
  1207.     pcall(function()
  1208.         targhum = obj.Parent:FindFirstChildOfClass("Humanoid")
  1209.     end)
  1210.     pcall(function()
  1211.         killval = targhum:FindFirstChild("killer")
  1212.     end)
  1213.     pcall(function()
  1214.         hitval = targhum:FindFirstChild("hit")
  1215.     end)
  1216.     pcall(function()
  1217.         finishval = targhum:FindFirstChild("finishing")
  1218.     end)
  1219.     if animval == 4 and targhum and not killval and not finishval and targhum.PlatformStand then
  1220.         decap(obj)
  1221.     else
  1222.         blow(obj)
  1223.     end
  1224. end
  1225.  
  1226. function Activated()
  1227.     if hum.PlatformStand or attacking or finishing or usingattack or equipping or not char or not hum or not torso or hum.PlatformStand or torso.Anchored or 0 >= hum.Health then return end
  1228.    
  1229.     attacking = true
  1230.  
  1231.     local finishregion = Region3.new(torso.Position-(Vector3.new(1.5, 6, 1.5)/2),torso.Position+(Vector3.new(1.5, -3, 1.5)/2))
  1232.     local targchar,targhum
  1233.     local regionparts = workspace:FindPartsInRegion3(finishregion)
  1234.    
  1235.     for _,obj in pairs(regionparts) do
  1236.         if obj.Parent ~= char then
  1237.             local tempchar,temphum
  1238.             pcall(function()
  1239.                 tempchar = obj.Parent
  1240.             end)
  1241.             pcall(function()
  1242.                 temphum = tempchar:FindFirstChildOfClass("Humanoid")
  1243.             end)
  1244.             if tempchar and temphum and not temphum:FindFirstChild("hit with melee") and temphum.Health > 0 and 10 > temphum.Health and temphum.PlatformStand then
  1245.                 targchar = tempchar
  1246.                 targhum = temphum
  1247.             end
  1248.         end
  1249.     end
  1250.    
  1251.     if targchar and targhum and not targhum:FindFirstChild("hit with melee") and targhum.Health > 0 and 10 > targhum.Health and targhum.PlatformStand then
  1252.         pcall(function()
  1253.             finish(targchar)
  1254.         end)
  1255.     else
  1256.         pcall(function()
  1257.             attack()
  1258.         end)
  1259.         damaging = true
  1260.         Trail.Enabled = true
  1261.         wait(.7)
  1262.     end
  1263.    
  1264.     damaging = false
  1265.     Tool.Grip = CFrame.new(1.31134158e-07, -0.0329501629, 1.95680952, 1, -8.74227766e-08, -4.37113883e-08, 4.37113883e-08, -3.82137093e-15, 1, -8.74227766e-08, -1, 0)
  1266.     damage = math.random(30,35)
  1267.     hum.WalkSpeed = 16
  1268.  
  1269.     Trail.Enabled = false
  1270.     attacking = false
  1271. end
  1272.  
  1273. function finish(targchar)
  1274.     if hum.PlatformStand or finishing or equipping or not char or not hum or hum.PlatformStand then return end
  1275.    
  1276.     local finishingval = Instance.new("ObjectValue",hum)
  1277.     finishingval.Name = "finishing"
  1278.    
  1279.     local targtorso,targhum,killval,finishval
  1280.     pcall(function()
  1281.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  1282.     end)
  1283.     pcall(function()
  1284.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  1285.     end)
  1286.     pcall(function()
  1287.         killval = targhum:FindFirstChild("killer")
  1288.     end)
  1289.     pcall(function()
  1290.         finishval = targhum:FindFirstChild("finishing")
  1291.     end)
  1292.    
  1293.     if finishval then finishingval:Destroy() return end
  1294.    
  1295.     finishing = true
  1296.    
  1297.     animation.AnimationId = "rbxassetid://" .. anims[#anims]
  1298.     swinganim = hum:LoadAnimation(animation)
  1299.    
  1300.     targtorso.Anchored = true
  1301.    
  1302.     hum.WalkSpeed = 0
  1303.    
  1304.     swinganim:Play(.1,1,1)
  1305.     Trail.Enabled = true
  1306.    
  1307.     wait(.9)
  1308.     Tool.Grip = CFrame.new(0.0853362679, -0.138822764, 1.8955003, 0.996399045, -0.00547825033, 0.0846105888, 9.00643187e-08, 0.997910559, 0.0646102801, -0.0847877562, -0.0643776134, 0.994317114)
  1309.     pcall(function()
  1310.         Ragdoll(targchar)
  1311.     end)
  1312.     targhum:TakeDamage(1/0)
  1313.     if targhum and 0 >= targhum.Health then
  1314.         local tempkillval = Instance.new("ObjectValue",targhum)
  1315.         tempkillval.Name = "killer"
  1316.         tempkillval.Value = plr
  1317.         targtorso.Anchored = false
  1318.         FinishSound:Play()
  1319.         if not bleeding then
  1320.             bleed(targtorso)
  1321.         end
  1322.     end
  1323.     HitSound.PlaybackSpeed = math.random(9,12)/10
  1324.     HitSound:Play()
  1325.     wait(1.2)
  1326.     Trail.Enabled = false
  1327.     swinganim:Stop()
  1328.     hum.WalkSpeed = 16
  1329.    
  1330.     Tool.Grip = CFrame.new(1.31134158e-07, -0.0329501629, 1.95680952, 1, -8.74227766e-08, -4.37113883e-08, 4.37113883e-08, -3.82137093e-15, 1, -8.74227766e-08, -1, 0)
  1331.     damage = math.random(30,35)
  1332.    
  1333.     finishingval:Destroy()
  1334.  
  1335.     finishing = false
  1336. end
  1337.  
  1338. function CheckIfAlive()
  1339.     local alive = false
  1340.     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
  1341.         alive = true
  1342.     end
  1343.     return alive
  1344. end
  1345.  
  1346. function equip_anim()
  1347.     for i = 0,15 do
  1348.         Tool.Grip = Tool.Grip * CFrame.Angles(math.rad(-22.5),0,0)
  1349.         wait(0)
  1350.     end
  1351. end
  1352.  
  1353. function Equipped()
  1354.     if attacking or finishing or equipping then return end
  1355.     char = Tool.Parent
  1356.     plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  1357.     hum = char:FindFirstChildOfClass("Humanoid")
  1358.     torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  1359.     swinganim = hum:LoadAnimation(animation)
  1360.     if not CheckIfAlive() then Tool.Parent = nil return end
  1361.     equipped = true
  1362.     --equipping = true
  1363.     equip:play()
  1364.     --equip_anim()
  1365.     --equipping = false
  1366. end
  1367.  
  1368. function Unequipped()
  1369.     equipped = false
  1370.     swinganim:Stop()
  1371. end
  1372.  
  1373. Tool.Activated:connect(Activated)
  1374. Tool.Equipped:connect(Equipped)
  1375. Tool.Unequipped:connect(Unequipped)
  1376. Handle.Touched:Connect(hitdecide)
  1377. end))
  1378. Script2.Name = "Shanker"
  1379. Script2.Parent = mas
  1380. table.insert(cors,sandbox(Script2,function()
  1381. local Tool = Instance.new("Tool")
  1382. local Handle = Instance.new("Part")
  1383. local SpecialMesh3 = Instance.new("SpecialMesh")
  1384. Tool.Name = "Shanker"
  1385. Tool.Parent = owner['Backpack']
  1386. Tool.TextureId = "rbxassetid://221579057"
  1387. Tool.Grip = CFrame.new(0.58370018, 0.107090458, -2.22044605e-16, 0, -1, 1.19248806e-08, 1.19248806e-08, 1.19248806e-08, 1, -1, 1.42202776e-16, 1.19248806e-08)
  1388. Handle.Name = "Handle"
  1389. Handle.Parent = Tool
  1390. Handle.Position = Vector3.new()
  1391. Handle.Size = Vector3.new(2.049, 0.419, 0.096)
  1392. Handle.Material = Enum.Material.Wood
  1393. Handle.CanCollide = false
  1394. Handle.Massless = true
  1395. SpecialMesh3.Parent = Handle
  1396. SpecialMesh3.MeshId = "rbxassetid://432429191"
  1397. SpecialMesh3.Scale = Vector3.new(0.21, 0.21, 0.21)
  1398. SpecialMesh3.TextureId = "rbxassetid://432429255"
  1399. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  1400. local a1,a2,Trail = Instance.new("Attachment"),Instance.new("Attachment"),Instance.new("Trail")
  1401. a1.Parent = Handle
  1402. a1.Position = Vector3.new(-1.025, 0, 0)
  1403. a2.Parent = Handle
  1404. a2.Position = Vector3.new(1.025, 0, 0)
  1405. Trail.Parent = Handle
  1406. Trail.Attachment0 = a1
  1407. Trail.Attachment1 = a2
  1408. Trail.LightInfluence = 1
  1409. Trail.Transparency = NumberSequence.new(0.5,1)
  1410. Trail.Lifetime = 1
  1411. Trail.Enabled = false
  1412.  
  1413. local plr = owner
  1414. local char = plr.Character
  1415. local hum = char:FindFirstChildOfClass("Humanoid")
  1416. local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  1417.  
  1418. local r = game:service("RunService")
  1419.  
  1420. local damage = math.random(20,25)
  1421. local last_attack = 0
  1422. local animval = 1
  1423. local attacking = false
  1424. local damaging = false
  1425. local equipping = false
  1426. local finishing = false
  1427. local bleeding = false
  1428.  
  1429. local FinishSound = Instance.new("Sound")
  1430. FinishSound.SoundId = "rbxassetid://3781479909"
  1431. FinishSound.Parent = Handle
  1432. FinishSound.Volume = .6
  1433.  
  1434. local HitSound = Instance.new("Sound")
  1435. HitSound.SoundId = "rbxassetid://204139415"
  1436. HitSound.Parent = Handle
  1437. HitSound.Volume = .6
  1438.  
  1439. local SlashSound = Instance.new("Sound")
  1440. SlashSound.SoundId = "rbxassetid://154965929"
  1441. SlashSound.Parent = Handle
  1442. SlashSound.Volume = .6
  1443.  
  1444. local equip = Instance.new("Sound")
  1445. equip.SoundId = "rbxassetid://2706199011"
  1446. equip.Parent = Handle
  1447. equip.Volume = 1
  1448.  
  1449. local anims = {204062532,218504594,2954124238,184574340}
  1450.  
  1451. local idleanimation = Instance.new("Animation")
  1452. idleanimation.AnimationId = "rbxassetid://241279220"
  1453.  
  1454. local idleanim = hum:LoadAnimation(idleanimation)
  1455.  
  1456. local animation = Instance.new("Animation")
  1457. animation.AnimationId = "rbxassetid://" .. anims[math.random(1,#anims)]
  1458.  
  1459. local swinganim = hum:LoadAnimation(animation)
  1460.  
  1461. function bleed(p)
  1462. bleeding = true
  1463. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  1464. local ParticleEmitter1 = Instance.new("ParticleEmitter")
  1465. local ParticleEmitter2 = Instance.new("ParticleEmitter")
  1466. ParticleEmitter0.Name = "Blood"
  1467. ParticleEmitter0.Parent = p
  1468. ParticleEmitter0.Speed = NumberRange.new(5, 10)
  1469. ParticleEmitter0.Rotation = NumberRange.new(-360, 360)
  1470. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.423529, 0, 0))
  1471. ParticleEmitter0.Enabled = false
  1472. ParticleEmitter0.LightEmission = 0.40000000596046
  1473. ParticleEmitter0.LightInfluence = 1
  1474. ParticleEmitter0.Texture = "rbxassetid://73547327"
  1475. ParticleEmitter0.Transparency = NumberSequence.new(0.10000000149012,0.14375001192093,0.49374997615814,1)
  1476. ParticleEmitter0.Size = NumberSequence.new(0,2.8749995231628)
  1477. ParticleEmitter0.Acceleration = Vector3.new(0, -5, 0)
  1478. ParticleEmitter0.EmissionDirection = Enum.NormalId.Front
  1479. ParticleEmitter0.Lifetime = NumberRange.new(0.30000001192093, 0.5)
  1480. ParticleEmitter0.LockedToPart = true
  1481. ParticleEmitter0.Rate = 1000
  1482. ParticleEmitter0.RotSpeed = NumberRange.new(-40, 270)
  1483. ParticleEmitter0.SpreadAngle = Vector2.new(360, 360)
  1484. ParticleEmitter0.VelocitySpread = 360
  1485. ParticleEmitter1.Name = "Blood2"
  1486. ParticleEmitter1.Parent = p
  1487. ParticleEmitter1.Speed = NumberRange.new(5, 14)
  1488. ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  1489. ParticleEmitter1.Enabled = false
  1490. ParticleEmitter1.LightEmission = 0.20000000298023
  1491. ParticleEmitter1.LightInfluence = 1
  1492. ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=134531274"
  1493. ParticleEmitter1.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  1494. ParticleEmitter1.ZOffset = 1
  1495. ParticleEmitter1.Size = NumberSequence.new(0.12499988079071,0)
  1496. ParticleEmitter1.Acceleration = Vector3.new(0, -20, 0)
  1497. ParticleEmitter1.EmissionDirection = Enum.NormalId.Front
  1498. ParticleEmitter1.Lifetime = NumberRange.new(0.5, 1.5)
  1499. ParticleEmitter1.LockedToPart = true
  1500. ParticleEmitter1.Rate = 1000
  1501. ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
  1502. ParticleEmitter1.VelocitySpread = 360
  1503. ParticleEmitter2.Name = "Blood3"
  1504. ParticleEmitter2.Parent = p
  1505. ParticleEmitter2.Speed = NumberRange.new(3, 7)
  1506. ParticleEmitter2.Rotation = NumberRange.new(-360, 360)
  1507. ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.486275, 0, 0),Color3.new(0.258824, 0, 0))
  1508. ParticleEmitter2.Enabled = false
  1509. ParticleEmitter2.LightEmission = 0.20000000298023
  1510. ParticleEmitter2.LightInfluence = 1
  1511. ParticleEmitter2.Texture = "rbxassetid://241779220"
  1512. ParticleEmitter2.Transparency = NumberSequence.new(1,0.48750001192093,0.75625002384186,1)
  1513. ParticleEmitter2.ZOffset = 0.5
  1514. ParticleEmitter2.Size = NumberSequence.new(0,2.8749995231628)
  1515. ParticleEmitter2.Acceleration = Vector3.new(0, -5, 0)
  1516. ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
  1517. ParticleEmitter2.Lifetime = NumberRange.new(0.40000000596046, 1)
  1518. ParticleEmitter2.LockedToPart = true
  1519. ParticleEmitter2.Rate = 1000
  1520. ParticleEmitter2.RotSpeed = NumberRange.new(-40, 270)
  1521. ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
  1522. ParticleEmitter2.VelocitySpread = 360
  1523. ParticleEmitter0.Enabled = true
  1524. ParticleEmitter1.Enabled = true
  1525. ParticleEmitter2.Enabled = true
  1526. spawn(function()
  1527.     game:GetService("Debris"):AddItem(ParticleEmitter0,1)
  1528.     game:GetService("Debris"):AddItem(ParticleEmitter1,1)
  1529.     game:GetService("Debris"):AddItem(ParticleEmitter2,1)
  1530.     wait(.1)
  1531.     ParticleEmitter0.Enabled = false
  1532.     ParticleEmitter1.Enabled = false
  1533.     ParticleEmitter2.Enabled = false
  1534.     bleeding = false
  1535. end)
  1536. end
  1537.  
  1538. function Ragdoll(targchar)
  1539. local pc = targchar
  1540. for _,obj in pairs(pc:GetChildren()) do
  1541.     if obj:IsA("Tool") then
  1542.         pcall(function()
  1543.             obj:Destroy()
  1544.         end)
  1545.     end
  1546. end
  1547. targchar.ChildAdded:Connect(function(obj)
  1548.     if obj:IsA("Tool") then
  1549.         pcall(function()
  1550.             obj:Destroy()
  1551.         end)
  1552.     end
  1553. end)
  1554.     if pc~=nil then
  1555.         local hum = pc:FindFirstChild'Humanoid'
  1556.         local LArm = pc:FindFirstChild'Left Arm'
  1557.         local RArm = pc:FindFirstChild'Right Arm'
  1558.         local LLeg = pc:FindFirstChild'Left Leg'
  1559.         local RLeg = pc:FindFirstChild'Right Leg'
  1560.         local torso = pc:FindFirstChild'Torso'
  1561.         local head = pc:FindFirstChild'Head'
  1562.        
  1563.        
  1564.         local LUA = pc:FindFirstChild'LeftUpperArm'
  1565.         local LLA = pc:FindFirstChild'LeftLowerArm'
  1566.         local LH = pc:FindFirstChild'LeftHand'
  1567.        
  1568.         local RUA = pc:FindFirstChild'RightUpperArm'
  1569.         local RLA = pc:FindFirstChild'RightLowerArm'
  1570.         local RH = pc:FindFirstChild'RightHand'
  1571.        
  1572.         local LUL = pc:FindFirstChild'LeftUpperLeg'
  1573.         local LLL = pc:FindFirstChild'LeftLowerLeg'
  1574.         local LF = pc:FindFirstChild'LeftFoot'
  1575.        
  1576.         local RUL = pc:FindFirstChild'RightUpperLeg'
  1577.         local RLL = pc:FindFirstChild'RightLowerLeg'
  1578.         local RF = pc:FindFirstChild'RightFoot'
  1579.        
  1580.         local UT = pc:FindFirstChild'UpperTorso'
  1581.         local LT = pc:FindFirstChild'LowerTorso'
  1582.        
  1583.         if hum and LArm and RArm and LLeg and RLeg and head then
  1584.             hum.BreakJointsOnDeath = false
  1585.             hum.Died:Connect(function()
  1586.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  1587.                     for _,v in pairs(torso:GetChildren())do
  1588.                         if v:IsA'Motor6D'then
  1589.                             v:Destroy()
  1590.                         end
  1591.                     end
  1592.                     local vis = false
  1593.                     local vis2 = false
  1594.                                
  1595.                     local at1 = Instance.new("Attachment",torso)
  1596.                     at1.Visible = vis
  1597.                     at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  1598.                     at1.Position = Vector3.new(-1,1,0)
  1599.                                
  1600.                     local at1p2 = Instance.new("Attachment",LArm)
  1601.                     at1p2.Visible = vis
  1602.                     at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  1603.                     at1p2.Position = Vector3.new(.5,1,0)
  1604.                    
  1605.                     local bis = Instance.new("BallSocketConstraint",torso)
  1606.                     bis.Attachment0 = at1
  1607.                     bis.Attachment1 = at1p2
  1608.                     bis.LimitsEnabled = true
  1609.                     bis.UpperAngle = 15
  1610.                     bis.Visible = vis2
  1611.                     bis.TwistLimitsEnabled = true
  1612.                     bis.UpperAngle = -45
  1613.                     bis.TwistLowerAngle = -45
  1614.                    
  1615.                     local at2 = Instance.new("Attachment",torso)
  1616.                     at2.Visible = vis
  1617.                     at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  1618.                     at2.Position = Vector3.new(1,1,0)
  1619.                            
  1620.                     local at2p2 = Instance.new("Attachment",RArm)
  1621.                     at2p2.Visible = vis
  1622.                     at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  1623.                     at2p2.Position = Vector3.new(-.5,1,0)
  1624.                    
  1625.                     local bis2 = Instance.new("BallSocketConstraint",torso)
  1626.                     bis2.Attachment0 = at2
  1627.                     bis2.Attachment1 = at2p2
  1628.                     bis2.LimitsEnabled = true
  1629.                     bis2.UpperAngle = 15
  1630.                     bis2.Visible = vis2
  1631.                     bis2.TwistLimitsEnabled = true
  1632.                     bis2.UpperAngle = -45
  1633.                     bis2.TwistLowerAngle = -45
  1634.                    
  1635.                     local at3 = Instance.new("Attachment",torso)
  1636.                     at3.Visible = vis
  1637.                     at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  1638.                     at3.Position = Vector3.new(.5,-1,0)
  1639.                            
  1640.                     local at3p2 = Instance.new("Attachment",RLeg)
  1641.                     at3p2.Visible = vis
  1642.                     at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  1643.                     at3p2.Position = Vector3.new(0,1,0)
  1644.                    
  1645.                     local bis3 = Instance.new("BallSocketConstraint",torso)
  1646.                     bis3.Attachment0 = at3
  1647.                     bis3.Attachment1 = at3p2
  1648.                     bis3.LimitsEnabled = true
  1649.                     bis3.UpperAngle = 180-15
  1650.                     bis3.Visible = vis2
  1651.                        
  1652.                     local at4 = Instance.new("Attachment",torso)
  1653.                     at4.Visible = vis
  1654.                     at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  1655.                     at4.Position = Vector3.new(-.5,-1,0)
  1656.                            
  1657.                     local at4p2 = Instance.new("Attachment",LLeg)
  1658.                     at4p2.Visible = vis
  1659.                     at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  1660.                     at4p2.Position = Vector3.new(0,1,0)
  1661.                
  1662.                     local bis4 = Instance.new("BallSocketConstraint",torso)
  1663.                     bis4.Attachment0 = at4
  1664.                     bis4.Attachment1 = at4p2
  1665.                     bis4.LimitsEnabled = true
  1666.                     bis4.UpperAngle = 180-15
  1667.                     bis4.Visible = vis2
  1668.                
  1669.                
  1670.                     local at5 = Instance.new("Attachment",torso)
  1671.                     at5.Visible = vis
  1672.                     at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  1673.                     at5.Position = Vector3.new(0,1,0)
  1674.                        
  1675.                     local at5p2 = Instance.new("Attachment",head)
  1676.                     at5p2.Visible = vis
  1677.                     at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  1678.                     at5p2.Position = Vector3.new(0,-.5,0)
  1679.                
  1680.                     local bis5 = Instance.new("BallSocketConstraint",torso)
  1681.                     bis5.Attachment0 = at5p2
  1682.                     bis5.Attachment1 = at5
  1683.                     bis5.LimitsEnabled = true
  1684.                     bis5.UpperAngle = 75
  1685.                     bis5.Visible = vis2
  1686.                     bis5.TwistLimitsEnabled = true
  1687.                     bis5.UpperAngle = -45
  1688.                     bis5.TwistLowerAngle = -45
  1689.                 end
  1690.             end)
  1691.         elseif head and hum then
  1692.             hum.BreakJointsOnDeath = false
  1693.             hum.Died:Connect(function()
  1694.                 if hum.RigType==Enum.HumanoidRigType.R15 then
  1695.                     for _,v in pairs(pc:GetDescendants())do
  1696.                         if v:IsA'Motor6D'then
  1697.                             v:Destroy()
  1698.                         end
  1699.                     end
  1700.                     local vis = false
  1701.                     local vis2 = false
  1702.                    
  1703.                     local bsc1 = Instance.new("BallSocketConstraint",UT)
  1704.                     bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  1705.                     bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  1706.                    
  1707.                     local bsc2 = Instance.new("BallSocketConstraint",UT)
  1708.                     bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  1709.                     bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  1710.                    
  1711.                     local bsc3 = Instance.new("BallSocketConstraint",UT)
  1712.                     bsc3.Attachment0 = LUL.LeftHipRigAttachment
  1713.                     bsc3.Attachment1 = LT.LeftHipRigAttachment
  1714.                    
  1715.                     local bsc4 = Instance.new("BallSocketConstraint",UT)
  1716.                     bsc4.Attachment0 = RF.RightAnkleRigAttachment
  1717.                     bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  1718.                    
  1719.                     local bsc5 = Instance.new("BallSocketConstraint",UT)
  1720.                     bsc5.Attachment0 = RLL.RightKneeRigAttachment
  1721.                     bsc5.Attachment1 = RUL.RightKneeRigAttachment
  1722.                    
  1723.                     local bsc6 = Instance.new("BallSocketConstraint",UT)
  1724.                     bsc6.Attachment0 = RUL.RightHipRigAttachment
  1725.                     bsc6.Attachment1 = LT.RightHipRigAttachment
  1726.                    
  1727.                    
  1728.                     local bsc7 = Instance.new("BallSocketConstraint",UT)
  1729.                     bsc7.Attachment0 = LH.LeftWristRigAttachment
  1730.                     bsc7.Attachment1 = LLA.LeftWristRigAttachment
  1731.                    
  1732.                     local bsc8 = Instance.new("BallSocketConstraint",UT)
  1733.                     bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  1734.                     bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  1735.                    
  1736.                     local bsc9 = Instance.new("BallSocketConstraint",UT)
  1737.                     bsc9.Attachment0 = LUA.LeftShoulderAttachment
  1738.                     bsc9.Attachment1 = UT.LeftCollarAttachment
  1739.                    
  1740.                     local bsc10 = Instance.new("BallSocketConstraint",UT)
  1741.                     bsc10.Attachment0 = RH.RightWristRigAttachment
  1742.                     bsc10.Attachment1 = RLA.RightWristRigAttachment
  1743.                    
  1744.                     local bsc11 = Instance.new("BallSocketConstraint",UT)
  1745.                     bsc11.Attachment0 = RLA.RightElbowRigAttachment
  1746.                     bsc11.Attachment1 = RUA.RightElbowRigAttachment
  1747.                    
  1748.                     local bsc12 = Instance.new("BallSocketConstraint",UT)
  1749.                     bsc12.Attachment0 = RUA.RightShoulderAttachment
  1750.                     bsc12.Attachment1 = UT.RightCollarAttachment
  1751.                    
  1752.                     local bsc13 = Instance.new("BallSocketConstraint",UT)
  1753.                     bsc13.Attachment0 = LT.WaistRigAttachment
  1754.                     bsc13.Attachment1 = UT.WaistRigAttachment
  1755.                    
  1756.                     local bsc14 = Instance.new("BallSocketConstraint",UT)
  1757.                     bsc14.Attachment0 = UT.NeckRigAttachment
  1758.                     bsc14.Attachment1 = head.NeckRigAttachment
  1759.                     bsc14.LimitsEnabled = true
  1760.                     bsc14.UpperAngle = -75
  1761.                     bsc14.TwistLimitsEnabled = true
  1762.                     bsc14.UpperAngle = -45
  1763.                     bsc14.TwistLowerAngle = -45
  1764.                    
  1765.                 end
  1766.             end)
  1767.         end
  1768.     end
  1769. end
  1770.  
  1771. function blow(hit)
  1772.     local targchar,targtorso,targhum,killval,hitval,finishval
  1773.     pcall(function()
  1774.         targchar = hit.Parent
  1775.     end)
  1776.     pcall(function()
  1777.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  1778.     end)
  1779.     pcall(function()
  1780.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  1781.     end)
  1782.     pcall(function()
  1783.         killval = targhum:FindFirstChild("killer")
  1784.     end)
  1785.     pcall(function()
  1786.         hitval = targhum:FindFirstChild("hit")
  1787.     end)
  1788.     pcall(function()
  1789.         finishval = targhum:FindFirstChild("finishing")
  1790.     end)
  1791.     if targchar and targhum and targhum ~= hum and hum and not killval and not hitval and not finishval and attacking and damaging then
  1792.         local temphitval = Instance.new("ObjectValue",targhum)
  1793.         temphitval.Name = ("hit")
  1794.         game:GetService("Debris"):AddItem(temphitval,.5)
  1795.         local tempdamage = damage
  1796.         if damage > targhum.Health and targhum.Health > 10 then
  1797.             tempdamage = targhum.Health - 1
  1798.             targhum:TakeDamage(tempdamage)
  1799.         elseif targhum.Health > damage then
  1800.             targhum:TakeDamage(tempdamage)
  1801.         end
  1802.         if not bleeding then
  1803.             bleed(targtorso)
  1804.         end
  1805.         wait()
  1806.         HitSound.PlaybackSpeed = math.random(9,12)/10
  1807.         HitSound:Play()
  1808.     end
  1809.     if targchar and targhum and targhum ~= hum and hum and not killval and not finishval and attacking and damaging then
  1810.         spawn(function()
  1811.             if 10 > targhum.Health then
  1812.                 while 10 > targhum.Health do
  1813.                     if 10 > targhum.Health then
  1814.                         targhum.PlatformStand = true
  1815.                     end
  1816.                     wait(.1)
  1817.                 end
  1818.             else
  1819.                 for i = 0,2,.1 do
  1820.                     targhum.PlatformStand = true
  1821.                     wait(.1)
  1822.                 end
  1823.             end
  1824.             targhum.PlatformStand = false
  1825.         end)
  1826.     end
  1827. end
  1828.  
  1829. function attack()
  1830.     damage = math.random(20,25)
  1831.     SlashSound.PlaybackSpeed = math.random(95,105)/100
  1832.     SlashSound:play()
  1833.     animval = animval + 1
  1834.     if animval > #anims-1 then animval = 1 end
  1835.     animation.AnimationId = "rbxassetid://" .. anims[animval]
  1836.     swinganim = hum:LoadAnimation(animation)
  1837.     if animval == 1 then
  1838.         Tool.Grip = CFrame.new(0.581854284, 0.0794715807, 0.084312439, 1.19248806e-08, 5.56362707e-08, 1, 1, 1.19248806e-08, -1.19248815e-08, -1.19248815e-08, 1, -5.56362707e-08)
  1839.         swinganim:Play(.04,1,1.2) -- left swing
  1840.     elseif animval == 2 then
  1841.         Tool.Grip = CFrame.new(0.581854284, -0.0794715881, -0.0843124315, 1.19248806e-08, 5.56362707e-08, 1, -1, -9.9347659e-08, 1.1924886e-08, 9.9347659e-08, -1, 5.56362707e-08)
  1842.         swinganim:Play(.04,1,1) -- right swing
  1843.     elseif animval == 3 then
  1844.         swinganim:Play(.1,1,2.5) -- quick stab left swing
  1845.     end
  1846. end
  1847.  
  1848. function Activated()
  1849.     if hum.PlatformStand or attacking or finishing or equipping or not char or not hum or not torso or hum.PlatformStand or torso.Anchored or 0 >= hum.Health then return end
  1850.    
  1851.     attacking = true
  1852.  
  1853.     local finishregion = Region3.new(torso.Position-(Vector3.new(1.5, 6, 1.5)/2),torso.Position+(Vector3.new(1.5, -3, 1.5)/2))
  1854.     local targchar,targhum
  1855.     local regionparts = workspace:FindPartsInRegion3(finishregion)
  1856.    
  1857.     for _,obj in pairs(regionparts) do
  1858.         if obj.Parent ~= char then
  1859.             local tempchar,temphum
  1860.             pcall(function()
  1861.                 tempchar = obj.Parent
  1862.             end)
  1863.             pcall(function()
  1864.                 temphum = tempchar:FindFirstChildOfClass("Humanoid")
  1865.             end)
  1866.             if tempchar and temphum and not temphum:FindFirstChild("hit with melee") and temphum.Health > 0 and 10 > temphum.Health and temphum.PlatformStand then
  1867.                 targchar = tempchar
  1868.                 targhum = temphum
  1869.             end
  1870.         end
  1871.     end
  1872.    
  1873.     if targchar and targhum and not targhum:FindFirstChild("hit with melee") and targhum.Health > 0 and 10 > targhum.Health and targhum.PlatformStand then
  1874.         pcall(function()
  1875.             finish(targchar)
  1876.         end)
  1877.     else
  1878.         pcall(function()
  1879.             attack()
  1880.         end)
  1881.         Trail.Enabled = true
  1882.         damaging = true
  1883.         wait(.5)
  1884.     end
  1885.    
  1886.     damaging = false
  1887.     Tool.Grip = CFrame.new(0.58370018, 0.107090458, -2.22044605e-16, 0, -1, 1.19248806e-08, 1.19248806e-08, 1.19248806e-08, 1, -1, 1.42202776e-16, 1.19248806e-08)
  1888.     damage = math.random(20,25)
  1889.     hum.WalkSpeed = 16
  1890.  
  1891.     Trail.Enabled = false
  1892.     attacking = false
  1893. end
  1894.  
  1895. function finish(targchar)
  1896.     if finishing or equipping or not char or not hum then return end
  1897.    
  1898.     local finishingval = Instance.new("ObjectValue",hum)
  1899.     finishingval.Name = "finishing"
  1900.    
  1901.     local targtorso,targhum,killval,finishval
  1902.     pcall(function()
  1903.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  1904.     end)
  1905.     pcall(function()
  1906.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  1907.     end)
  1908.     pcall(function()
  1909.         killval = targhum:FindFirstChild("killer")
  1910.     end)
  1911.     pcall(function()
  1912.         finishval = targhum:FindFirstChild("finishing")
  1913.     end)
  1914.    
  1915.     if finishval then finishingval:Destroy() return end
  1916.    
  1917.     finishing = true
  1918.    
  1919.     animation.AnimationId = "rbxassetid://" .. anims[#anims]
  1920.     swinganim = hum:LoadAnimation(animation)
  1921.    
  1922.     targtorso.Anchored = true
  1923.    
  1924.     hum.WalkSpeed = 0
  1925.    
  1926.     swinganim:Play(.1,1,1)
  1927.     Trail.Enabled = true
  1928.    
  1929.     wait(.9)
  1930.     Tool.Grip = CFrame.new(0.478746921, 0.0952520296, -0.0485328957, -0.100857906, 5.53525723e-08, 0.994900823, -5.21253064e-16, 1, -5.56362707e-08, -0.994900823, -5.61135849e-09, -0.100857906)
  1931.     pcall(function()
  1932.         Ragdoll(targchar)
  1933.     end)
  1934.     targhum:TakeDamage(1/0)
  1935.     if targhum and 0 >= targhum.Health then
  1936.         local tempkillval = Instance.new("ObjectValue",targhum)
  1937.         tempkillval.Name = "killer"
  1938.         tempkillval.Value = plr
  1939.         targtorso.Anchored = false
  1940.         FinishSound:Play()
  1941.         if not bleeding then
  1942.             bleed(targtorso)
  1943.         end
  1944.     end
  1945.     --HitSound.PlaybackSpeed = math.random(9,12)/10
  1946.     --HitSound:Play()
  1947.     wait(1.2)
  1948.     Trail.Enabled = false
  1949.     swinganim:Stop()
  1950.     hum.WalkSpeed = 16
  1951.    
  1952.     Tool.Grip = CFrame.new(0.58370018, 0.107090458, -2.22044605e-16, 0, -1, 1.19248806e-08, 1.19248806e-08, 1.19248806e-08, 1, -1, 1.42202776e-16, 1.19248806e-08)
  1953.     damage = math.random(20,25)
  1954.    
  1955.     finishingval:Destroy()
  1956.  
  1957.     finishing = false
  1958. end
  1959.  
  1960. function CheckIfAlive()
  1961.     local alive = false
  1962.     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
  1963.         alive = true
  1964.     end
  1965.     return alive
  1966. end
  1967.  
  1968. function equip_anim()
  1969.     for i = 0,15 do
  1970.         Tool.Grip = Tool.Grip * CFrame.Angles(math.rad(-22.5),0,0)
  1971.         wait(0)
  1972.     end
  1973. end
  1974.  
  1975. function Equipped()
  1976.     if attacking or finishing or equipping then return end
  1977.     char = Tool.Parent
  1978.     plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  1979.     hum = char:FindFirstChildOfClass("Humanoid")
  1980.     torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  1981.     swinganim = hum:LoadAnimation(animation)
  1982.     idleanim = hum:LoadAnimation(idleanimation)
  1983.     if not CheckIfAlive() then Tool.Parent = nil return end
  1984.     equipped = true
  1985.     --equipping = true
  1986.     idleanim:Play()
  1987.     equip:play()
  1988.     --equip_anim()
  1989.     --equipping = false
  1990. end
  1991.  
  1992. function Unequipped()
  1993.     equipped = false
  1994.     swinganim:Stop()
  1995.     idleanim:Stop()
  1996. end
  1997.  
  1998. Tool.Activated:connect(Activated)
  1999. Tool.Equipped:connect(Equipped)
  2000. Tool.Unequipped:connect(Unequipped)
  2001. Handle.Touched:Connect(blow)
  2002. end))
  2003. Script3.Name = "Pan"
  2004. Script3.Parent = mas
  2005. table.insert(cors,sandbox(Script3,function()
  2006. local Tool = Instance.new("Tool")
  2007. local Handle = Instance.new("Part")
  2008. local SpecialMesh3 = Instance.new("SpecialMesh")
  2009. Tool.Name = "Pan"
  2010. Tool.Parent = owner['Backpack']
  2011. Tool.TextureId = "rbxassetid://24379116"
  2012. Tool.Grip = CFrame.new(0.160528198, -0.076538071, -1.09314132, 3.17865059e-08, -1.19248798e-08, -1, -1, -1.19248815e-08, -3.17865059e-08, -1.19248806e-08, 1, -1.19248806e-08)
  2013. Handle.Name = "Handle"
  2014. Handle.Parent = Tool
  2015. Handle.Position = Vector3.new()
  2016. Handle.Size = Vector3.new(1, 2, 3)
  2017. Handle.Material = Enum.Material.Metal
  2018. Handle.CanCollide = false
  2019. Handle.Massless = true
  2020. SpecialMesh3.Parent = Handle
  2021. SpecialMesh3.MeshId = "rbxassetid://24342877"
  2022. SpecialMesh3.Scale = Vector3.new(2, 2, 2)
  2023. SpecialMesh3.TextureId = "rbxassetid://24342832"
  2024. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  2025. local a1,a2,Trail = Instance.new("Attachment"),Instance.new("Attachment"),Instance.new("Trail")
  2026. a1.Parent = Handle
  2027. a1.Position = Vector3.new(0, 0, -1.5)
  2028. a2.Parent = Handle
  2029. a2.Position = Vector3.new(0, 0, 1.5)
  2030. Trail.Parent = Handle
  2031. Trail.Attachment0 = a1
  2032. Trail.Attachment1 = a2
  2033. Trail.LightInfluence = 1
  2034. Trail.Transparency = NumberSequence.new(0.5,1)
  2035. Trail.Lifetime = 1
  2036. Trail.Enabled = false
  2037.  
  2038. local plr = owner
  2039. local char = plr.Character
  2040. local hum = char:FindFirstChildOfClass("Humanoid")
  2041. local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  2042.  
  2043. local r = game:service("RunService")
  2044.  
  2045. local damage = math.random(12,15)
  2046. local last_attack = 0
  2047. local animval = 1
  2048. local attacking = false
  2049. local damaging = false
  2050. local equipping = false
  2051. local finishing = false
  2052. local bleeding = false
  2053.  
  2054. local FinishSound = Instance.new("Sound")
  2055. FinishSound.SoundId = "rbxassetid://3781479909"
  2056. FinishSound.Parent = Handle
  2057. FinishSound.Volume = .6
  2058.  
  2059. local HitSound = Instance.new("Sound")
  2060. HitSound.SoundId = "rbxassetid://861978247"
  2061. HitSound.Parent = Handle
  2062. HitSound.Volume = .6
  2063.  
  2064. local SlashSound = Instance.new("Sound")
  2065. SlashSound.SoundId = "rbxassetid://169285411"
  2066. SlashSound.Parent = Handle
  2067. SlashSound.Volume = .6
  2068.  
  2069. local equip = Instance.new("Sound")
  2070. equip.SoundId = "rbxassetid://2706199011"
  2071. equip.Parent = Handle
  2072. equip.Volume = 1
  2073.  
  2074. local anims = {204062532,218504594,184574340}
  2075.  
  2076. local idleanimation = Instance.new("Animation")
  2077. idleanimation.AnimationId = "rbxassetid://241279220"
  2078.  
  2079. local idleanim = hum:LoadAnimation(idleanimation)
  2080.  
  2081. local animation = Instance.new("Animation")
  2082. animation.AnimationId = "rbxassetid://" .. anims[math.random(1,#anims)]
  2083.  
  2084. local swinganim = hum:LoadAnimation(animation)
  2085.  
  2086. function bleed(p)
  2087. bleeding = true
  2088. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  2089. local ParticleEmitter1 = Instance.new("ParticleEmitter")
  2090. local ParticleEmitter2 = Instance.new("ParticleEmitter")
  2091. ParticleEmitter0.Name = "Blood"
  2092. ParticleEmitter0.Parent = p
  2093. ParticleEmitter0.Speed = NumberRange.new(5, 10)
  2094. ParticleEmitter0.Rotation = NumberRange.new(-360, 360)
  2095. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.423529, 0, 0))
  2096. ParticleEmitter0.Enabled = false
  2097. ParticleEmitter0.LightEmission = 0.40000000596046
  2098. ParticleEmitter0.LightInfluence = 1
  2099. ParticleEmitter0.Texture = "rbxassetid://73547327"
  2100. ParticleEmitter0.Transparency = NumberSequence.new(0.10000000149012,0.14375001192093,0.49374997615814,1)
  2101. ParticleEmitter0.Size = NumberSequence.new(0,2.8749995231628)
  2102. ParticleEmitter0.Acceleration = Vector3.new(0, -5, 0)
  2103. ParticleEmitter0.EmissionDirection = Enum.NormalId.Front
  2104. ParticleEmitter0.Lifetime = NumberRange.new(0.30000001192093, 0.5)
  2105. ParticleEmitter0.LockedToPart = true
  2106. ParticleEmitter0.Rate = 1000
  2107. ParticleEmitter0.RotSpeed = NumberRange.new(-40, 270)
  2108. ParticleEmitter0.SpreadAngle = Vector2.new(360, 360)
  2109. ParticleEmitter0.VelocitySpread = 360
  2110. ParticleEmitter1.Name = "Blood2"
  2111. ParticleEmitter1.Parent = p
  2112. ParticleEmitter1.Speed = NumberRange.new(5, 14)
  2113. ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  2114. ParticleEmitter1.Enabled = false
  2115. ParticleEmitter1.LightEmission = 0.20000000298023
  2116. ParticleEmitter1.LightInfluence = 1
  2117. ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=134531274"
  2118. ParticleEmitter1.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  2119. ParticleEmitter1.ZOffset = 1
  2120. ParticleEmitter1.Size = NumberSequence.new(0.12499988079071,0)
  2121. ParticleEmitter1.Acceleration = Vector3.new(0, -20, 0)
  2122. ParticleEmitter1.EmissionDirection = Enum.NormalId.Front
  2123. ParticleEmitter1.Lifetime = NumberRange.new(0.5, 1.5)
  2124. ParticleEmitter1.LockedToPart = true
  2125. ParticleEmitter1.Rate = 1000
  2126. ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
  2127. ParticleEmitter1.VelocitySpread = 360
  2128. ParticleEmitter2.Name = "Blood3"
  2129. ParticleEmitter2.Parent = p
  2130. ParticleEmitter2.Speed = NumberRange.new(3, 7)
  2131. ParticleEmitter2.Rotation = NumberRange.new(-360, 360)
  2132. ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.486275, 0, 0),Color3.new(0.258824, 0, 0))
  2133. ParticleEmitter2.Enabled = false
  2134. ParticleEmitter2.LightEmission = 0.20000000298023
  2135. ParticleEmitter2.LightInfluence = 1
  2136. ParticleEmitter2.Texture = "rbxassetid://241779220"
  2137. ParticleEmitter2.Transparency = NumberSequence.new(1,0.48750001192093,0.75625002384186,1)
  2138. ParticleEmitter2.ZOffset = 0.5
  2139. ParticleEmitter2.Size = NumberSequence.new(0,2.8749995231628)
  2140. ParticleEmitter2.Acceleration = Vector3.new(0, -5, 0)
  2141. ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
  2142. ParticleEmitter2.Lifetime = NumberRange.new(0.40000000596046, 1)
  2143. ParticleEmitter2.LockedToPart = true
  2144. ParticleEmitter2.Rate = 1000
  2145. ParticleEmitter2.RotSpeed = NumberRange.new(-40, 270)
  2146. ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
  2147. ParticleEmitter2.VelocitySpread = 360
  2148. ParticleEmitter0.Enabled = true
  2149. ParticleEmitter1.Enabled = true
  2150. ParticleEmitter2.Enabled = true
  2151. spawn(function()
  2152.     game:GetService("Debris"):AddItem(ParticleEmitter0,1)
  2153.     game:GetService("Debris"):AddItem(ParticleEmitter1,1)
  2154.     game:GetService("Debris"):AddItem(ParticleEmitter2,1)
  2155.     wait(.1)
  2156.     ParticleEmitter0.Enabled = false
  2157.     ParticleEmitter1.Enabled = false
  2158.     ParticleEmitter2.Enabled = false
  2159.     bleeding = false
  2160. end)
  2161. end
  2162.  
  2163. function Ragdoll(targchar)
  2164. local pc = targchar
  2165. for _,obj in pairs(pc:GetChildren()) do
  2166.     if obj:IsA("Tool") then
  2167.         pcall(function()
  2168.             obj:Destroy()
  2169.         end)
  2170.     end
  2171. end
  2172. targchar.ChildAdded:Connect(function(obj)
  2173.     if obj:IsA("Tool") then
  2174.         pcall(function()
  2175.             obj:Destroy()
  2176.         end)
  2177.     end
  2178. end)
  2179.     if pc~=nil then
  2180.         local hum = pc:FindFirstChild'Humanoid'
  2181.         local LArm = pc:FindFirstChild'Left Arm'
  2182.         local RArm = pc:FindFirstChild'Right Arm'
  2183.         local LLeg = pc:FindFirstChild'Left Leg'
  2184.         local RLeg = pc:FindFirstChild'Right Leg'
  2185.         local torso = pc:FindFirstChild'Torso'
  2186.         local head = pc:FindFirstChild'Head'
  2187.        
  2188.        
  2189.         local LUA = pc:FindFirstChild'LeftUpperArm'
  2190.         local LLA = pc:FindFirstChild'LeftLowerArm'
  2191.         local LH = pc:FindFirstChild'LeftHand'
  2192.        
  2193.         local RUA = pc:FindFirstChild'RightUpperArm'
  2194.         local RLA = pc:FindFirstChild'RightLowerArm'
  2195.         local RH = pc:FindFirstChild'RightHand'
  2196.        
  2197.         local LUL = pc:FindFirstChild'LeftUpperLeg'
  2198.         local LLL = pc:FindFirstChild'LeftLowerLeg'
  2199.         local LF = pc:FindFirstChild'LeftFoot'
  2200.        
  2201.         local RUL = pc:FindFirstChild'RightUpperLeg'
  2202.         local RLL = pc:FindFirstChild'RightLowerLeg'
  2203.         local RF = pc:FindFirstChild'RightFoot'
  2204.        
  2205.         local UT = pc:FindFirstChild'UpperTorso'
  2206.         local LT = pc:FindFirstChild'LowerTorso'
  2207.        
  2208.         if hum and LArm and RArm and LLeg and RLeg and head then
  2209.             hum.BreakJointsOnDeath = false
  2210.             hum.Died:Connect(function()
  2211.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  2212.                     for _,v in pairs(torso:GetChildren())do
  2213.                         if v:IsA'Motor6D'then
  2214.                             v:Destroy()
  2215.                         end
  2216.                     end
  2217.                     local vis = false
  2218.                     local vis2 = false
  2219.                                
  2220.                     local at1 = Instance.new("Attachment",torso)
  2221.                     at1.Visible = vis
  2222.                     at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  2223.                     at1.Position = Vector3.new(-1,1,0)
  2224.                                
  2225.                     local at1p2 = Instance.new("Attachment",LArm)
  2226.                     at1p2.Visible = vis
  2227.                     at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  2228.                     at1p2.Position = Vector3.new(.5,1,0)
  2229.                    
  2230.                     local bis = Instance.new("BallSocketConstraint",torso)
  2231.                     bis.Attachment0 = at1
  2232.                     bis.Attachment1 = at1p2
  2233.                     bis.LimitsEnabled = true
  2234.                     bis.UpperAngle = 15
  2235.                     bis.Visible = vis2
  2236.                     bis.TwistLimitsEnabled = true
  2237.                     bis.UpperAngle = -45
  2238.                     bis.TwistLowerAngle = -45
  2239.                    
  2240.                     local at2 = Instance.new("Attachment",torso)
  2241.                     at2.Visible = vis
  2242.                     at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  2243.                     at2.Position = Vector3.new(1,1,0)
  2244.                            
  2245.                     local at2p2 = Instance.new("Attachment",RArm)
  2246.                     at2p2.Visible = vis
  2247.                     at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  2248.                     at2p2.Position = Vector3.new(-.5,1,0)
  2249.                    
  2250.                     local bis2 = Instance.new("BallSocketConstraint",torso)
  2251.                     bis2.Attachment0 = at2
  2252.                     bis2.Attachment1 = at2p2
  2253.                     bis2.LimitsEnabled = true
  2254.                     bis2.UpperAngle = 15
  2255.                     bis2.Visible = vis2
  2256.                     bis2.TwistLimitsEnabled = true
  2257.                     bis2.UpperAngle = -45
  2258.                     bis2.TwistLowerAngle = -45
  2259.                    
  2260.                     local at3 = Instance.new("Attachment",torso)
  2261.                     at3.Visible = vis
  2262.                     at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  2263.                     at3.Position = Vector3.new(.5,-1,0)
  2264.                            
  2265.                     local at3p2 = Instance.new("Attachment",RLeg)
  2266.                     at3p2.Visible = vis
  2267.                     at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  2268.                     at3p2.Position = Vector3.new(0,1,0)
  2269.                    
  2270.                     local bis3 = Instance.new("BallSocketConstraint",torso)
  2271.                     bis3.Attachment0 = at3
  2272.                     bis3.Attachment1 = at3p2
  2273.                     bis3.LimitsEnabled = true
  2274.                     bis3.UpperAngle = 180-15
  2275.                     bis3.Visible = vis2
  2276.                        
  2277.                     local at4 = Instance.new("Attachment",torso)
  2278.                     at4.Visible = vis
  2279.                     at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  2280.                     at4.Position = Vector3.new(-.5,-1,0)
  2281.                            
  2282.                     local at4p2 = Instance.new("Attachment",LLeg)
  2283.                     at4p2.Visible = vis
  2284.                     at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  2285.                     at4p2.Position = Vector3.new(0,1,0)
  2286.                
  2287.                     local bis4 = Instance.new("BallSocketConstraint",torso)
  2288.                     bis4.Attachment0 = at4
  2289.                     bis4.Attachment1 = at4p2
  2290.                     bis4.LimitsEnabled = true
  2291.                     bis4.UpperAngle = 180-15
  2292.                     bis4.Visible = vis2
  2293.                
  2294.                
  2295.                     local at5 = Instance.new("Attachment",torso)
  2296.                     at5.Visible = vis
  2297.                     at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  2298.                     at5.Position = Vector3.new(0,1,0)
  2299.                        
  2300.                     local at5p2 = Instance.new("Attachment",head)
  2301.                     at5p2.Visible = vis
  2302.                     at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  2303.                     at5p2.Position = Vector3.new(0,-.5,0)
  2304.                
  2305.                     local bis5 = Instance.new("BallSocketConstraint",torso)
  2306.                     bis5.Attachment0 = at5p2
  2307.                     bis5.Attachment1 = at5
  2308.                     bis5.LimitsEnabled = true
  2309.                     bis5.UpperAngle = 75
  2310.                     bis5.Visible = vis2
  2311.                     bis5.TwistLimitsEnabled = true
  2312.                     bis5.UpperAngle = -45
  2313.                     bis5.TwistLowerAngle = -45
  2314.                 end
  2315.             end)
  2316.         elseif head and hum then
  2317.             hum.BreakJointsOnDeath = false
  2318.             hum.Died:Connect(function()
  2319.                 if hum.RigType==Enum.HumanoidRigType.R15 then
  2320.                     for _,v in pairs(pc:GetDescendants())do
  2321.                         if v:IsA'Motor6D'then
  2322.                             v:Destroy()
  2323.                         end
  2324.                     end
  2325.                     local vis = false
  2326.                     local vis2 = false
  2327.                    
  2328.                     local bsc1 = Instance.new("BallSocketConstraint",UT)
  2329.                     bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  2330.                     bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  2331.                    
  2332.                     local bsc2 = Instance.new("BallSocketConstraint",UT)
  2333.                     bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  2334.                     bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  2335.                    
  2336.                     local bsc3 = Instance.new("BallSocketConstraint",UT)
  2337.                     bsc3.Attachment0 = LUL.LeftHipRigAttachment
  2338.                     bsc3.Attachment1 = LT.LeftHipRigAttachment
  2339.                    
  2340.                     local bsc4 = Instance.new("BallSocketConstraint",UT)
  2341.                     bsc4.Attachment0 = RF.RightAnkleRigAttachment
  2342.                     bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  2343.                    
  2344.                     local bsc5 = Instance.new("BallSocketConstraint",UT)
  2345.                     bsc5.Attachment0 = RLL.RightKneeRigAttachment
  2346.                     bsc5.Attachment1 = RUL.RightKneeRigAttachment
  2347.                    
  2348.                     local bsc6 = Instance.new("BallSocketConstraint",UT)
  2349.                     bsc6.Attachment0 = RUL.RightHipRigAttachment
  2350.                     bsc6.Attachment1 = LT.RightHipRigAttachment
  2351.                    
  2352.                    
  2353.                     local bsc7 = Instance.new("BallSocketConstraint",UT)
  2354.                     bsc7.Attachment0 = LH.LeftWristRigAttachment
  2355.                     bsc7.Attachment1 = LLA.LeftWristRigAttachment
  2356.                    
  2357.                     local bsc8 = Instance.new("BallSocketConstraint",UT)
  2358.                     bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  2359.                     bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  2360.                    
  2361.                     local bsc9 = Instance.new("BallSocketConstraint",UT)
  2362.                     bsc9.Attachment0 = LUA.LeftShoulderAttachment
  2363.                     bsc9.Attachment1 = UT.LeftCollarAttachment
  2364.                    
  2365.                     local bsc10 = Instance.new("BallSocketConstraint",UT)
  2366.                     bsc10.Attachment0 = RH.RightWristRigAttachment
  2367.                     bsc10.Attachment1 = RLA.RightWristRigAttachment
  2368.                    
  2369.                     local bsc11 = Instance.new("BallSocketConstraint",UT)
  2370.                     bsc11.Attachment0 = RLA.RightElbowRigAttachment
  2371.                     bsc11.Attachment1 = RUA.RightElbowRigAttachment
  2372.                    
  2373.                     local bsc12 = Instance.new("BallSocketConstraint",UT)
  2374.                     bsc12.Attachment0 = RUA.RightShoulderAttachment
  2375.                     bsc12.Attachment1 = UT.RightCollarAttachment
  2376.                    
  2377.                     local bsc13 = Instance.new("BallSocketConstraint",UT)
  2378.                     bsc13.Attachment0 = LT.WaistRigAttachment
  2379.                     bsc13.Attachment1 = UT.WaistRigAttachment
  2380.                    
  2381.                     local bsc14 = Instance.new("BallSocketConstraint",UT)
  2382.                     bsc14.Attachment0 = UT.NeckRigAttachment
  2383.                     bsc14.Attachment1 = head.NeckRigAttachment
  2384.                     bsc14.LimitsEnabled = true
  2385.                     bsc14.UpperAngle = -75
  2386.                     bsc14.TwistLimitsEnabled = true
  2387.                     bsc14.UpperAngle = -45
  2388.                     bsc14.TwistLowerAngle = -45
  2389.                    
  2390.                 end
  2391.             end)
  2392.         end
  2393.     end
  2394. end
  2395.  
  2396. function blow(hit)
  2397.     local targchar,targtorso,targhum,killval,hitval,finishval
  2398.     pcall(function()
  2399.         targchar = hit.Parent
  2400.     end)
  2401.     pcall(function()
  2402.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  2403.     end)
  2404.     pcall(function()
  2405.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  2406.     end)
  2407.     pcall(function()
  2408.         killval = targhum:FindFirstChild("killer")
  2409.     end)
  2410.     pcall(function()
  2411.         hitval = targhum:FindFirstChild("hit")
  2412.     end)
  2413.     pcall(function()
  2414.         finishval = targhum:FindFirstChild("finishing")
  2415.     end)
  2416.     if targchar and targhum and targhum ~= hum and hum and not killval and not hitval and not finishval and attacking and damaging then
  2417.         local temphitval = Instance.new("ObjectValue",targhum)
  2418.         temphitval.Name = ("hit")
  2419.         game:GetService("Debris"):AddItem(temphitval,.5)
  2420.         local tempdamage = damage
  2421.         if damage > targhum.Health and targhum.Health > 10 then
  2422.             tempdamage = targhum.Health - 1
  2423.             targhum:TakeDamage(tempdamage)
  2424.         elseif targhum.Health > damage then
  2425.             targhum:TakeDamage(tempdamage)
  2426.         end
  2427.         if not bleeding then
  2428.             bleed(targtorso)
  2429.         end
  2430.         wait()
  2431.         HitSound.PlaybackSpeed = math.random(9,12)/10
  2432.         HitSound:Play()
  2433.     end
  2434.     if targchar and targhum and targhum ~= hum and hum and not killval and not finishval and attacking and damaging then
  2435.         spawn(function()
  2436.             if 10 > targhum.Health then
  2437.                 while 10 > targhum.Health do
  2438.                     if 10 > targhum.Health then
  2439.                         targhum.PlatformStand = true
  2440.                     end
  2441.                     wait(.1)
  2442.                 end
  2443.             else
  2444.                 for i = 0,2.5,.1 do
  2445.                     targhum.PlatformStand = true
  2446.                     wait(.1)
  2447.                 end
  2448.             end
  2449.             targhum.PlatformStand = false
  2450.         end)
  2451.     end
  2452. end
  2453.  
  2454. function attack()
  2455.     damage = math.random(12,15)
  2456.     SlashSound.PlaybackSpeed = math.random(95,105)/100
  2457.     SlashSound:play()
  2458.     animval = animval + 1
  2459.     if animval > #anims-1 then animval = 1 end
  2460.     animation.AnimationId = "rbxassetid://" .. anims[animval]
  2461.     swinganim = hum:LoadAnimation(animation)
  2462.     if animval == 1 then
  2463.         Tool.Grip = CFrame.new(0.0604715198, 0.0624101833, -0.755537868, -0.984136403, -0.177413553, -2.14116298e-08, -0.177413553, 0.984136403, -6.03930346e-08, 3.17865059e-08, -5.56362671e-08, -1)
  2464.         swinganim:Play(.04,1,1.2) -- left swing
  2465.     elseif animval == 2 then
  2466.         Tool.Grip = CFrame.new(0.265857041, -0.0624101944, -0.755537868, 0.984136403, 0.177413464, 2.14116351e-08, 0.177413464, -0.984136403, 6.03930346e-08, 3.17865059e-08, -5.56362671e-08, -1)
  2467.         swinganim:Play(.04,1,1) -- right swing
  2468.     end
  2469. end
  2470.  
  2471. function Activated()
  2472.     if hum.PlatformStand or attacking or finishing or equipping or not char or not hum or not torso or hum.PlatformStand or torso.Anchored or 0 >= hum.Health then return end
  2473.    
  2474.     attacking = true
  2475.  
  2476.     local finishregion = Region3.new(torso.Position-(Vector3.new(1.5, 6, 1.5)/2),torso.Position+(Vector3.new(1.5, -3, 1.5)/2))
  2477.     local targchar,targhum
  2478.     local regionparts = workspace:FindPartsInRegion3(finishregion)
  2479.    
  2480.     for _,obj in pairs(regionparts) do
  2481.         if obj.Parent ~= char then
  2482.             local tempchar,temphum
  2483.             pcall(function()
  2484.                 tempchar = obj.Parent
  2485.             end)
  2486.             pcall(function()
  2487.                 temphum = tempchar:FindFirstChildOfClass("Humanoid")
  2488.             end)
  2489.             if tempchar and temphum and not temphum:FindFirstChild("hit with melee") and temphum.Health > 0 and 10 > temphum.Health and temphum.PlatformStand then
  2490.                 targchar = tempchar
  2491.                 targhum = temphum
  2492.             end
  2493.         end
  2494.     end
  2495.    
  2496.     if targchar and targhum and not targhum:FindFirstChild("hit with melee") and targhum.Health > 0 and 10 > targhum.Health and targhum.PlatformStand then
  2497.         pcall(function()
  2498.             finish(targchar)
  2499.         end)
  2500.     else
  2501.         pcall(function()
  2502.             attack()
  2503.         end)
  2504.         Trail.Enabled = true
  2505.         damaging = true
  2506.         wait(.5)
  2507.     end
  2508.    
  2509.     damaging = false
  2510.     Tool.Grip = CFrame.new(0.160528198, -0.076538071, -1.09314132, 3.17865059e-08, -1.19248798e-08, -1, -1, -1.19248815e-08, -3.17865059e-08, -1.19248806e-08, 1, -1.19248806e-08)
  2511.     damage = math.random(12,15)
  2512.     hum.WalkSpeed = 16
  2513.  
  2514.     Trail.Enabled = false
  2515.     attacking = false
  2516. end
  2517.  
  2518. function finish(targchar)
  2519.     if finishing or equipping or not char or not hum then return end
  2520.    
  2521.     local finishingval = Instance.new("ObjectValue",hum)
  2522.     finishingval.Name = "finishing"
  2523.    
  2524.     local targtorso,targhum,killval,finishval
  2525.     pcall(function()
  2526.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  2527.     end)
  2528.     pcall(function()
  2529.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  2530.     end)
  2531.     pcall(function()
  2532.         killval = targhum:FindFirstChild("killer")
  2533.     end)
  2534.     pcall(function()
  2535.         finishval = targhum:FindFirstChild("finishing")
  2536.     end)
  2537.    
  2538.     if finishval then finishingval:Destroy() return end
  2539.    
  2540.     finishing = true
  2541.    
  2542.     animation.AnimationId = "rbxassetid://" .. anims[#anims]
  2543.     swinganim = hum:LoadAnimation(animation)
  2544.    
  2545.     targtorso.Anchored = true
  2546.    
  2547.     hum.WalkSpeed = 0
  2548.    
  2549.     swinganim:Play(.1,1,1)
  2550.     Trail.Enabled = true
  2551.    
  2552.     wait(.9)
  2553.     Tool.Grip = CFrame.new(0.0951038897, -0.102372862, -0.843571067, 1.38934215e-08, -0.998034477, -0.0626674592, -0.995669305, 0.00582592748, -0.0927832425, 0.092965968, 0.0623960644, -0.993712306)
  2554.     pcall(function()
  2555.         Ragdoll(targchar)
  2556.     end)
  2557.     targhum:TakeDamage(1/0)
  2558.     if targhum and 0 >= targhum.Health then
  2559.         local tempkillval = Instance.new("ObjectValue",targhum)
  2560.         tempkillval.Name = "killer"
  2561.         tempkillval.Value = plr
  2562.         targtorso.Anchored = false
  2563.         FinishSound:Play()
  2564.         if not bleeding then
  2565.             bleed(targtorso)
  2566.         end
  2567.     end
  2568.     --HitSound.PlaybackSpeed = math.random(9,12)/10
  2569.     --HitSound:Play()
  2570.     wait(1.2)
  2571.     Trail.Enabled = false
  2572.     swinganim:Stop()
  2573.     hum.WalkSpeed = 16
  2574.    
  2575.     Tool.Grip = CFrame.new(0.160528198, -0.076538071, -1.09314132, 3.17865059e-08, -1.19248798e-08, -1, -1, -1.19248815e-08, -3.17865059e-08, -1.19248806e-08, 1, -1.19248806e-08)
  2576.     damage = math.random(12,15)
  2577.    
  2578.     finishingval:Destroy()
  2579.  
  2580.     finishing = false
  2581. end
  2582.  
  2583. function CheckIfAlive()
  2584.     local alive = false
  2585.     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
  2586.         alive = true
  2587.     end
  2588.     return alive
  2589. end
  2590.  
  2591. function equip_anim()
  2592.     for i = 0,15 do
  2593.         Tool.Grip = Tool.Grip * CFrame.Angles(math.rad(-22.5),0,0)
  2594.         wait(0)
  2595.     end
  2596. end
  2597.  
  2598. function Equipped()
  2599.     if attacking or finishing or equipping then return end
  2600.     char = Tool.Parent
  2601.     plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  2602.     hum = char:FindFirstChildOfClass("Humanoid")
  2603.     torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  2604.     swinganim = hum:LoadAnimation(animation)
  2605.     idleanim = hum:LoadAnimation(idleanimation)
  2606.     if not CheckIfAlive() then Tool.Parent = nil return end
  2607.     equipped = true
  2608.     --equipping = true
  2609.     idleanim:Play()
  2610.     equip:play()
  2611.     --equip_anim()
  2612.     --equipping = false
  2613. end
  2614.  
  2615. function Unequipped()
  2616.     equipped = false
  2617.     swinganim:Stop()
  2618.     idleanim:Stop()
  2619. end
  2620.  
  2621. Tool.Activated:connect(Activated)
  2622. Tool.Equipped:connect(Equipped)
  2623. Tool.Unequipped:connect(Unequipped)
  2624. Handle.Touched:Connect(blow)
  2625. end))
  2626. Script1.Name = "Dual Blade"
  2627. Script1.Parent = mas
  2628. table.insert(cors,sandbox(Script1,function()
  2629. local Tool = Instance.new("Tool")
  2630. local Handle = Instance.new("Part")
  2631. local SpecialMesh3 = Instance.new("SpecialMesh")
  2632. Tool.Name = "Dual Blade"
  2633. Tool.Parent = owner['Backpack']
  2634. Tool.TextureId = "rbxassetid://180085257"
  2635. Tool.Grip = CFrame.new(-0, -2.2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2636. Handle.Name = "Handle"
  2637. Handle.Parent = Tool
  2638. Handle.Position = Vector3.new()
  2639. Handle.Size = Vector3.new(0.5, 4.94, 1.34)
  2640. Handle.Material = Enum.Material.Metal
  2641. Handle.CanCollide = false
  2642. Handle.Massless = true
  2643. SpecialMesh3.Parent = Handle
  2644. SpecialMesh3.MeshId = "rbxassetid://135463436"
  2645. SpecialMesh3.Scale = Vector3.new(1, 1, 0.9)
  2646. SpecialMesh3.TextureId = "rbxassetid://135463899"
  2647. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  2648. local a1,a2,Trail = Instance.new("Attachment"),Instance.new("Attachment"),Instance.new("Trail")
  2649. a1.Parent = Handle
  2650. a1.Position = Vector3.new(0, 2.47, 0)
  2651. a2.Parent = Handle
  2652. a2.Position = Vector3.new(0, -2.47, 0)
  2653. Trail.Parent = Handle
  2654. Trail.Attachment0 = a1
  2655. Trail.Attachment1 = a2
  2656. Trail.LightInfluence = 1
  2657. Trail.Transparency = NumberSequence.new(0.5,1)
  2658. Trail.Lifetime = 1
  2659. Trail.Enabled = false
  2660. local cosmetic_particle = Instance.new("ParticleEmitter")
  2661. cosmetic_particle.Name = "particle"
  2662. cosmetic_particle.Parent = Handle
  2663. cosmetic_particle.Speed = NumberRange.new(0, 0)
  2664. cosmetic_particle.LightEmission = 0.69999998807907
  2665. cosmetic_particle.Texture = "rbxassetid://244157186"
  2666. cosmetic_particle.ZOffset = 1
  2667. cosmetic_particle.Size = NumberSequence.new(0.1, 0.1)
  2668. cosmetic_particle.Lifetime = NumberRange.new(10, 10)
  2669. cosmetic_particle.Rate = 10
  2670. cosmetic_particle.RotSpeed = NumberRange.new(20, 20)
  2671.  
  2672. local plr = owner
  2673. local char = plr.Character
  2674. local hum = char:FindFirstChildOfClass("Humanoid")
  2675. local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  2676. local FakeHandle,FakeTrail,FakeWeld
  2677.  
  2678. local r = game:service("RunService")
  2679.  
  2680. local damage = math.random(10,15)
  2681. local last_attack = 0
  2682. local animval = 1
  2683. local attacking = false
  2684. local damaging = false
  2685. local equipping = false
  2686. local finishing = false
  2687. local bleeding = false
  2688. local usingattack = false
  2689.  
  2690. local FinishSound = Instance.new("Sound")
  2691. FinishSound.SoundId = "rbxassetid://3781479909"
  2692. FinishSound.Parent = Handle
  2693. FinishSound.Volume = .6
  2694.  
  2695. local HitSound = Instance.new("Sound")
  2696. HitSound.SoundId = "rbxassetid://344936319"
  2697. HitSound.Parent = Handle
  2698. HitSound.Volume = .6
  2699.  
  2700. local SlashSound = Instance.new("Sound")
  2701. SlashSound.SoundId = "rbxassetid://2227999690"
  2702. SlashSound.Parent = Handle
  2703. SlashSound.Volume = .6
  2704.  
  2705. local equip = Instance.new("Sound")
  2706. equip.SoundId = "rbxassetid://2706199011"
  2707. equip.Parent = Handle
  2708. equip.Volume = 1
  2709.  
  2710. local anims = {186001341,186934910,184574340}
  2711.  
  2712. local idleanimation = Instance.new("Animation")
  2713. idleanimation.AnimationId = "rbxassetid://185824714"
  2714.  
  2715. local idleanim = hum:LoadAnimation(idleanimation)
  2716.  
  2717. local animation = Instance.new("Animation")
  2718. animation.AnimationId = "rbxassetid://" .. anims[math.random(1,#anims)]
  2719.  
  2720. local swinganim = hum:LoadAnimation(animation)
  2721.  
  2722. function bleed(p)
  2723. bleeding = true
  2724. bleeding = true
  2725. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  2726. local ParticleEmitter1 = Instance.new("ParticleEmitter")
  2727. local ParticleEmitter2 = Instance.new("ParticleEmitter")
  2728. ParticleEmitter0.Name = "Blood"
  2729. ParticleEmitter0.Parent = p
  2730. ParticleEmitter0.Speed = NumberRange.new(5, 10)
  2731. ParticleEmitter0.Rotation = NumberRange.new(-360, 360)
  2732. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.423529, 0, 0))
  2733. ParticleEmitter0.Enabled = false
  2734. ParticleEmitter0.LightEmission = 0.40000000596046
  2735. ParticleEmitter0.LightInfluence = 1
  2736. ParticleEmitter0.Texture = "rbxassetid://73547327"
  2737. ParticleEmitter0.Transparency = NumberSequence.new(0.10000000149012,0.14375001192093,0.49374997615814,1)
  2738. ParticleEmitter0.Size = NumberSequence.new(0,2.8749995231628)
  2739. ParticleEmitter0.Acceleration = Vector3.new(0, -5, 0)
  2740. ParticleEmitter0.EmissionDirection = Enum.NormalId.Front
  2741. ParticleEmitter0.Lifetime = NumberRange.new(0.30000001192093, 0.5)
  2742. ParticleEmitter0.LockedToPart = true
  2743. ParticleEmitter0.Rate = 1000
  2744. ParticleEmitter0.RotSpeed = NumberRange.new(-40, 270)
  2745. ParticleEmitter0.SpreadAngle = Vector2.new(360, 360)
  2746. ParticleEmitter0.VelocitySpread = 360
  2747. ParticleEmitter1.Name = "Blood2"
  2748. ParticleEmitter1.Parent = p
  2749. ParticleEmitter1.Speed = NumberRange.new(5, 14)
  2750. ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  2751. ParticleEmitter1.Enabled = false
  2752. ParticleEmitter1.LightEmission = 0.20000000298023
  2753. ParticleEmitter1.LightInfluence = 1
  2754. ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=134531274"
  2755. ParticleEmitter1.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  2756. ParticleEmitter1.ZOffset = 1
  2757. ParticleEmitter1.Size = NumberSequence.new(0.12499988079071,0)
  2758. ParticleEmitter1.Acceleration = Vector3.new(0, -20, 0)
  2759. ParticleEmitter1.EmissionDirection = Enum.NormalId.Front
  2760. ParticleEmitter1.Lifetime = NumberRange.new(0.5, 1.5)
  2761. ParticleEmitter1.LockedToPart = true
  2762. ParticleEmitter1.Rate = 1000
  2763. ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
  2764. ParticleEmitter1.VelocitySpread = 360
  2765. ParticleEmitter2.Name = "Blood3"
  2766. ParticleEmitter2.Parent = p
  2767. ParticleEmitter2.Speed = NumberRange.new(3, 7)
  2768. ParticleEmitter2.Rotation = NumberRange.new(-360, 360)
  2769. ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.486275, 0, 0),Color3.new(0.258824, 0, 0))
  2770. ParticleEmitter2.Enabled = false
  2771. ParticleEmitter2.LightEmission = 0.20000000298023
  2772. ParticleEmitter2.LightInfluence = 1
  2773. ParticleEmitter2.Texture = "rbxassetid://241779220"
  2774. ParticleEmitter2.Transparency = NumberSequence.new(1,0.48750001192093,0.75625002384186,1)
  2775. ParticleEmitter2.ZOffset = 0.5
  2776. ParticleEmitter2.Size = NumberSequence.new(0,2.8749995231628)
  2777. ParticleEmitter2.Acceleration = Vector3.new(0, -5, 0)
  2778. ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
  2779. ParticleEmitter2.Lifetime = NumberRange.new(0.40000000596046, 1)
  2780. ParticleEmitter2.LockedToPart = true
  2781. ParticleEmitter2.Rate = 1000
  2782. ParticleEmitter2.RotSpeed = NumberRange.new(-40, 270)
  2783. ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
  2784. ParticleEmitter2.VelocitySpread = 360
  2785. ParticleEmitter0.Enabled = true
  2786. ParticleEmitter1.Enabled = true
  2787. ParticleEmitter2.Enabled = true
  2788. spawn(function()
  2789.     game:GetService("Debris"):AddItem(ParticleEmitter0,1)
  2790.     game:GetService("Debris"):AddItem(ParticleEmitter1,1)
  2791.     game:GetService("Debris"):AddItem(ParticleEmitter2,1)
  2792.     wait(.1)
  2793.     ParticleEmitter0.Enabled = false
  2794.     ParticleEmitter1.Enabled = false
  2795.     ParticleEmitter2.Enabled = false
  2796.     bleeding = false
  2797. end)
  2798. end
  2799.  
  2800. function decap(hit)
  2801. local targchar,targtorso,targhum,killval,hitval,finishval
  2802. pcall(function()
  2803.     targchar = hit.Parent
  2804. end)
  2805. pcall(function()
  2806.     targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  2807. end)
  2808. pcall(function()
  2809.     targhum = targchar:FindFirstChildOfClass("Humanoid")
  2810. end)
  2811. pcall(function()
  2812.     killval = targhum:FindFirstChild("killer")
  2813. end)
  2814. pcall(function()
  2815.     hitval = targhum:FindFirstChild("hit")
  2816. end)
  2817. pcall(function()
  2818.     finishval = targhum:FindFirstChild("finishing")
  2819. end)
  2820. if targchar and targhum and targhum ~= hum and hum and not killval and not hitval and not finishval and attacking and damaging and not usingattack then else return end
  2821. usingattack = true
  2822.  
  2823. local tempkillval = Instance.new("ObjectValue",targhum)
  2824. tempkillval.Name = "killer"
  2825. tempkillval.Value = plr
  2826.  
  2827. pcall(function()
  2828.     Ragdoll(targchar)
  2829. end)
  2830. targhum:TakeDamage(1/0)
  2831.  
  2832. pcall(function()
  2833.     targchar:FindFirstChild("Head"):Destroy()
  2834. end)
  2835.  
  2836. FinishSound:Play()
  2837. HitSound.PlaybackSpeed = math.random(9,12)/10
  2838. HitSound:Play()
  2839.  
  2840. local pe0 = Instance.new("ParticleEmitter")
  2841. local pe1 = Instance.new("ParticleEmitter")
  2842. local pe2 = Instance.new("ParticleEmitter")
  2843. pe0.Name = "Blood"
  2844. pe0.Parent = targtorso
  2845. pe0.Speed = NumberRange.new(5, 10)
  2846. pe0.Rotation = NumberRange.new(-360, 360)
  2847. pe0.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.423529, 0, 0))
  2848. pe0.LightEmission = 0.40000000596046
  2849. pe0.LightInfluence = 1
  2850. pe0.Texture = "rbxassetid://73547327"
  2851. pe0.Transparency = NumberSequence.new(0.10000000149012,0.14375001192093,0.49374997615814,1)
  2852. pe0.Size = NumberSequence.new(0,2.8749995231628)
  2853. pe0.Acceleration = Vector3.new(0, -5, 0)
  2854. pe0.Lifetime = NumberRange.new(0.30000001192093, 0.5)
  2855. pe0.LockedToPart = true
  2856. pe0.Rate = 100
  2857. pe0.RotSpeed = NumberRange.new(-40, 270)
  2858. pe1.Name = "Blood2"
  2859. pe1.Parent = targtorso
  2860. pe1.Speed = NumberRange.new(5, 14)
  2861. pe1.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  2862. pe1.LightEmission = 0.20000000298023
  2863. pe1.LightInfluence = 1
  2864. pe1.Texture = "http://www.roblox.com/asset/?id=134531274"
  2865. pe1.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  2866. pe1.ZOffset = 1
  2867. pe1.Size = NumberSequence.new(0.12499988079071,0)
  2868. pe1.Acceleration = Vector3.new(0, -20, 0)
  2869. pe1.Lifetime = NumberRange.new(0.5, 1.5)
  2870. pe1.LockedToPart = true
  2871. pe1.Rate = 100
  2872. pe2.Name = "Blood3"
  2873. pe2.Parent = targtorso
  2874. pe2.Speed = NumberRange.new(3, 7)
  2875. pe2.Rotation = NumberRange.new(-360, 360)
  2876. pe2.Color = ColorSequence.new(Color3.new(0.486275, 0, 0),Color3.new(0.258824, 0, 0))
  2877. pe2.LightEmission = 0.20000000298023
  2878. pe2.LightInfluence = 1
  2879. pe2.Texture = "rbxassetid://241779220"
  2880. pe2.Transparency = NumberSequence.new(1,0.48750001192093,0.75625002384186,1)
  2881. pe2.ZOffset = 0.5
  2882. pe2.Size = NumberSequence.new(0,2.8749995231628)
  2883. pe2.Acceleration = Vector3.new(0, -5, 0)
  2884. pe2.Lifetime = NumberRange.new(0.40000000596046, 1)
  2885. pe2.LockedToPart = true
  2886. pe2.Rate = 100
  2887. pe2.RotSpeed = NumberRange.new(-40, 270)
  2888. usingattack = false
  2889. end
  2890.  
  2891. function Ragdoll(targchar)
  2892. local pc = targchar
  2893. for _,obj in pairs(pc:GetChildren()) do
  2894.     if obj:IsA("Tool") then
  2895.         obj:Destroy()
  2896.     end
  2897. end
  2898. targchar.ChildAdded:Connect(function(obj)
  2899.     if obj:IsA("Tool") then
  2900.         pcall(function()
  2901.             obj:Destroy()
  2902.         end)
  2903.     end
  2904. end)
  2905.     if pc~=nil then
  2906.         local hum = pc:FindFirstChild'Humanoid'
  2907.         local LArm = pc:FindFirstChild'Left Arm'
  2908.         local RArm = pc:FindFirstChild'Right Arm'
  2909.         local LLeg = pc:FindFirstChild'Left Leg'
  2910.         local RLeg = pc:FindFirstChild'Right Leg'
  2911.         local torso = pc:FindFirstChild'Torso'
  2912.         local head = pc:FindFirstChild'Head'
  2913.        
  2914.        
  2915.         local LUA = pc:FindFirstChild'LeftUpperArm'
  2916.         local LLA = pc:FindFirstChild'LeftLowerArm'
  2917.         local LH = pc:FindFirstChild'LeftHand'
  2918.        
  2919.         local RUA = pc:FindFirstChild'RightUpperArm'
  2920.         local RLA = pc:FindFirstChild'RightLowerArm'
  2921.         local RH = pc:FindFirstChild'RightHand'
  2922.        
  2923.         local LUL = pc:FindFirstChild'LeftUpperLeg'
  2924.         local LLL = pc:FindFirstChild'LeftLowerLeg'
  2925.         local LF = pc:FindFirstChild'LeftFoot'
  2926.        
  2927.         local RUL = pc:FindFirstChild'RightUpperLeg'
  2928.         local RLL = pc:FindFirstChild'RightLowerLeg'
  2929.         local RF = pc:FindFirstChild'RightFoot'
  2930.        
  2931.         local UT = pc:FindFirstChild'UpperTorso'
  2932.         local LT = pc:FindFirstChild'LowerTorso'
  2933.        
  2934.         if hum and LArm and RArm and LLeg and RLeg and head then
  2935.             hum.BreakJointsOnDeath = false
  2936.             hum.Died:Connect(function()
  2937.                 if hum.RigType==Enum.HumanoidRigType.R6 then
  2938.                     for _,v in pairs(torso:GetChildren())do
  2939.                         if v:IsA'Motor6D'then
  2940.                             v:Destroy()
  2941.                         end
  2942.                     end
  2943.                     local vis = false
  2944.                     local vis2 = false
  2945.                                
  2946.                     local at1 = Instance.new("Attachment",torso)
  2947.                     at1.Visible = vis
  2948.                     at1.Orientation = torso.Orientation + Vector3.new(0,180,0)
  2949.                     at1.Position = Vector3.new(-1,1,0)
  2950.                                
  2951.                     local at1p2 = Instance.new("Attachment",LArm)
  2952.                     at1p2.Visible = vis
  2953.                     at1p2.Orientation = LArm.Orientation + Vector3.new(0,180,0)
  2954.                     at1p2.Position = Vector3.new(.5,1,0)
  2955.                    
  2956.                     local bis = Instance.new("BallSocketConstraint",torso)
  2957.                     bis.Attachment0 = at1
  2958.                     bis.Attachment1 = at1p2
  2959.                     bis.LimitsEnabled = true
  2960.                     bis.UpperAngle = 15
  2961.                     bis.Visible = vis2
  2962.                     bis.TwistLimitsEnabled = true
  2963.                     bis.UpperAngle = -45
  2964.                     bis.TwistLowerAngle = -45
  2965.                    
  2966.                     local at2 = Instance.new("Attachment",torso)
  2967.                     at2.Visible = vis
  2968.                     at2.Orientation = torso.Orientation + Vector3.new(0,0,0)
  2969.                     at2.Position = Vector3.new(1,1,0)
  2970.                            
  2971.                     local at2p2 = Instance.new("Attachment",RArm)
  2972.                     at2p2.Visible = vis
  2973.                     at2p2.Orientation = RArm.Orientation + Vector3.new(0,0,0)
  2974.                     at2p2.Position = Vector3.new(-.5,1,0)
  2975.                    
  2976.                     local bis2 = Instance.new("BallSocketConstraint",torso)
  2977.                     bis2.Attachment0 = at2
  2978.                     bis2.Attachment1 = at2p2
  2979.                     bis2.LimitsEnabled = true
  2980.                     bis2.UpperAngle = 15
  2981.                     bis2.Visible = vis2
  2982.                     bis2.TwistLimitsEnabled = true
  2983.                     bis2.UpperAngle = -45
  2984.                     bis2.TwistLowerAngle = -45
  2985.                    
  2986.                     local at3 = Instance.new("Attachment",torso)
  2987.                     at3.Visible = vis
  2988.                     at3.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  2989.                     at3.Position = Vector3.new(.5,-1,0)
  2990.                            
  2991.                     local at3p2 = Instance.new("Attachment",RLeg)
  2992.                     at3p2.Visible = vis
  2993.                     at3p2.Orientation = RLeg.Orientation + Vector3.new(90,0,-90)
  2994.                     at3p2.Position = Vector3.new(0,1,0)
  2995.                    
  2996.                     local bis3 = Instance.new("BallSocketConstraint",torso)
  2997.                     bis3.Attachment0 = at3
  2998.                     bis3.Attachment1 = at3p2
  2999.                     bis3.LimitsEnabled = true
  3000.                     bis3.UpperAngle = 180-15
  3001.                     bis3.Visible = vis2
  3002.                        
  3003.                     local at4 = Instance.new("Attachment",torso)
  3004.                     at4.Visible = vis
  3005.                     at4.Orientation = torso.Orientation + Vector3.new(90,0,-90)
  3006.                     at4.Position = Vector3.new(-.5,-1,0)
  3007.                            
  3008.                     local at4p2 = Instance.new("Attachment",LLeg)
  3009.                     at4p2.Visible = vis
  3010.                     at4p2.Orientation = LLeg.Orientation + Vector3.new(90,0,-90)
  3011.                     at4p2.Position = Vector3.new(0,1,0)
  3012.                
  3013.                     local bis4 = Instance.new("BallSocketConstraint",torso)
  3014.                     bis4.Attachment0 = at4
  3015.                     bis4.Attachment1 = at4p2
  3016.                     bis4.LimitsEnabled = true
  3017.                     bis4.UpperAngle = 180-15
  3018.                     bis4.Visible = vis2
  3019.                
  3020.                
  3021.                     local at5 = Instance.new("Attachment",torso)
  3022.                     at5.Visible = vis
  3023.                     at5.Orientation = torso.Orientation + Vector3.new(180,90,0)
  3024.                     at5.Position = Vector3.new(0,1,0)
  3025.                        
  3026.                     local at5p2 = Instance.new("Attachment",head)
  3027.                     at5p2.Visible = vis
  3028.                     at5p2.Orientation = head.Orientation + Vector3.new(180,90,0)
  3029.                     at5p2.Position = Vector3.new(0,-.5,0)
  3030.                
  3031.                     local bis5 = Instance.new("BallSocketConstraint",torso)
  3032.                     bis5.Attachment0 = at5p2
  3033.                     bis5.Attachment1 = at5
  3034.                     bis5.LimitsEnabled = true
  3035.                     bis5.UpperAngle = 75
  3036.                     bis5.Visible = vis2
  3037.                     bis5.TwistLimitsEnabled = true
  3038.                     bis5.UpperAngle = -45
  3039.                     bis5.TwistLowerAngle = -45
  3040.                 end
  3041.             end)
  3042.         elseif head and hum then
  3043.             hum.BreakJointsOnDeath = false
  3044.             hum.Died:Connect(function()
  3045.                 if hum.RigType==Enum.HumanoidRigType.R15 then
  3046.                     for _,v in pairs(pc:GetDescendants())do
  3047.                         if v:IsA'Motor6D'then
  3048.                             v:Destroy()
  3049.                         end
  3050.                     end
  3051.                     local vis = false
  3052.                     local vis2 = false
  3053.                    
  3054.                     local bsc1 = Instance.new("BallSocketConstraint",UT)
  3055.                     bsc1.Attachment0 = LF.LeftAnkleRigAttachment
  3056.                     bsc1.Attachment1 = LLL.LeftAnkleRigAttachment
  3057.                    
  3058.                     local bsc2 = Instance.new("BallSocketConstraint",UT)
  3059.                     bsc2.Attachment0 = LLL.LeftKneeRigAttachment
  3060.                     bsc2.Attachment1 = LUL.LeftKneeRigAttachment
  3061.                    
  3062.                     local bsc3 = Instance.new("BallSocketConstraint",UT)
  3063.                     bsc3.Attachment0 = LUL.LeftHipRigAttachment
  3064.                     bsc3.Attachment1 = LT.LeftHipRigAttachment
  3065.                    
  3066.                     local bsc4 = Instance.new("BallSocketConstraint",UT)
  3067.                     bsc4.Attachment0 = RF.RightAnkleRigAttachment
  3068.                     bsc4.Attachment1 = RLL.RightAnkleRigAttachment
  3069.                    
  3070.                     local bsc5 = Instance.new("BallSocketConstraint",UT)
  3071.                     bsc5.Attachment0 = RLL.RightKneeRigAttachment
  3072.                     bsc5.Attachment1 = RUL.RightKneeRigAttachment
  3073.                    
  3074.                     local bsc6 = Instance.new("BallSocketConstraint",UT)
  3075.                     bsc6.Attachment0 = RUL.RightHipRigAttachment
  3076.                     bsc6.Attachment1 = LT.RightHipRigAttachment
  3077.                    
  3078.                    
  3079.                     local bsc7 = Instance.new("BallSocketConstraint",UT)
  3080.                     bsc7.Attachment0 = LH.LeftWristRigAttachment
  3081.                     bsc7.Attachment1 = LLA.LeftWristRigAttachment
  3082.                    
  3083.                     local bsc8 = Instance.new("BallSocketConstraint",UT)
  3084.                     bsc8.Attachment0 = LLA.LeftElbowRigAttachment
  3085.                     bsc8.Attachment1 = LUA.LeftElbowRigAttachment
  3086.                    
  3087.                     local bsc9 = Instance.new("BallSocketConstraint",UT)
  3088.                     bsc9.Attachment0 = LUA.LeftShoulderAttachment
  3089.                     bsc9.Attachment1 = UT.LeftCollarAttachment
  3090.                    
  3091.                     local bsc10 = Instance.new("BallSocketConstraint",UT)
  3092.                     bsc10.Attachment0 = RH.RightWristRigAttachment
  3093.                     bsc10.Attachment1 = RLA.RightWristRigAttachment
  3094.                    
  3095.                     local bsc11 = Instance.new("BallSocketConstraint",UT)
  3096.                     bsc11.Attachment0 = RLA.RightElbowRigAttachment
  3097.                     bsc11.Attachment1 = RUA.RightElbowRigAttachment
  3098.                    
  3099.                     local bsc12 = Instance.new("BallSocketConstraint",UT)
  3100.                     bsc12.Attachment0 = RUA.RightShoulderAttachment
  3101.                     bsc12.Attachment1 = UT.RightCollarAttachment
  3102.                    
  3103.                     local bsc13 = Instance.new("BallSocketConstraint",UT)
  3104.                     bsc13.Attachment0 = LT.WaistRigAttachment
  3105.                     bsc13.Attachment1 = UT.WaistRigAttachment
  3106.                    
  3107.                     local bsc14 = Instance.new("BallSocketConstraint",UT)
  3108.                     bsc14.Attachment0 = UT.NeckRigAttachment
  3109.                     bsc14.Attachment1 = head.NeckRigAttachment
  3110.                     bsc14.LimitsEnabled = true
  3111.                     bsc14.UpperAngle = -75
  3112.                     bsc14.TwistLimitsEnabled = true
  3113.                     bsc14.UpperAngle = -45
  3114.                     bsc14.TwistLowerAngle = -45
  3115.                    
  3116.                 end
  3117.             end)
  3118.         end
  3119.     end
  3120. end
  3121.  
  3122. function blow(hit,blade)
  3123.     local targchar,targtorso,targhum,killval,hitval,finishval
  3124.     pcall(function()
  3125.         targchar = hit.Parent
  3126.     end)
  3127.     pcall(function()
  3128.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  3129.     end)
  3130.     pcall(function()
  3131.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  3132.     end)
  3133.     pcall(function()
  3134.         killval = targhum:FindFirstChild("killer")
  3135.     end)
  3136.     pcall(function()
  3137.         hitval = targhum:FindFirstChild("hit blade " .. blade)
  3138.     end)
  3139.     if targchar and targhum and targhum ~= hum and hum and not killval and not hitval and not finishval and attacking and damaging and not usingattack then
  3140.         local temphitval = Instance.new("ObjectValue",targhum)
  3141.         temphitval.Name = ("hit blade " .. blade)
  3142.         game:GetService("Debris"):AddItem(temphitval,.7)
  3143.         local tempdamage = damage
  3144.         if damage > targhum.Health and targhum.Health > 6 then
  3145.             tempdamage = targhum.Health - 1
  3146.             targhum:TakeDamage(tempdamage)
  3147.         elseif targhum.Health > damage then
  3148.             targhum:TakeDamage(tempdamage)
  3149.         end
  3150.         if not bleeding then
  3151.             bleed(targtorso)
  3152.         end
  3153.         wait()
  3154.         HitSound.PlaybackSpeed = math.random(9,12)/10
  3155.         HitSound:Play()
  3156.     end
  3157.     if targchar and targhum and targhum ~= hum and hum and not killval and not finishval and attacking and damaging then
  3158.         spawn(function()
  3159.             if 10 > targhum.Health then
  3160.                 while 10 > targhum.Health do
  3161.                     if 10 > targhum.Health then
  3162.                         targhum.PlatformStand = true
  3163.                     end
  3164.                     wait(.1)
  3165.                 end
  3166.             else
  3167.                 for i = 0,1.4,.1 do
  3168.                     targhum.PlatformStand = true
  3169.                     wait(.1)
  3170.                 end
  3171.             end
  3172.             targhum.PlatformStand = false
  3173.         end)
  3174.     end
  3175.     usingattack = false
  3176. end
  3177.  
  3178. function attack()
  3179.     damage = math.random(10,15)
  3180.     SlashSound.PlaybackSpeed = math.random(95,105)/100
  3181.     SlashSound:play()
  3182.     animval = animval + 1
  3183.     if animval > #anims-1 then animval = 1 end
  3184.     animation.AnimationId = "rbxassetid://" .. anims[animval]
  3185.     swinganim = hum:LoadAnimation(animation)
  3186.     if animval == 1 then
  3187.         swinganim:Play(.05,1,1) -- lazy to label
  3188.     elseif animval == 2 then
  3189.         Tool.Grip = CFrame.new(-0.0593283735, -1.93600047, 0.00935958698, 0.155831799, -0.987783551, 4.31773906e-08, 0, -4.37113883e-08, -1, 0.987783551, 0.155831799, -6.81162415e-09)
  3190.         FakeWeld.C0 = Tool.Grip:Inverse() * CFrame.Angles(0,math.rad(-90),math.rad(-90)) + Vector3.new(3,-1,1.8)
  3191.         swinganim:Play(.04,1,1) -- right 360 spin
  3192.     end
  3193. end
  3194.  
  3195. function hitdecide(obj,blade)
  3196.     local targhum,killval,hitval,finishval
  3197.     pcall(function()
  3198.         targhum = obj.Parent:FindFirstChildOfClass("Humanoid")
  3199.     end)
  3200.     pcall(function()
  3201.         killval = targhum:FindFirstChild("killer")
  3202.     end)
  3203.     pcall(function()
  3204.         hitval = targhum:FindFirstChild("hit blade " .. blade)
  3205.     end)
  3206.     pcall(function()
  3207.         finishval = targhum:FindFirstChild("finishing")
  3208.     end)
  3209.     if animval == 2 and targhum and not killval and not finishval and targhum.PlatformStand and (10 > targhum.Health) then
  3210.         decap(obj)
  3211.     else
  3212.         blow(obj,blade)
  3213.     end
  3214. end
  3215.  
  3216. function Activated()
  3217.     if hum.PlatformStand or attacking or finishing or usingattack or equipping or not char or not hum or not torso or hum.PlatformStand or torso.Anchored or 0 >= hum.Health then return end
  3218.    
  3219.     attacking = true
  3220.  
  3221.     local finishregion = Region3.new(torso.Position-(Vector3.new(1.5, 6, 1.5)/2),torso.Position+(Vector3.new(1.5, -3, 1.5)/2))
  3222.     local targchar,targhum
  3223.     local regionparts = workspace:FindPartsInRegion3(finishregion)
  3224.    
  3225.     for _,obj in pairs(regionparts) do
  3226.         if obj.Parent ~= char then
  3227.             local tempchar,temphum
  3228.             pcall(function()
  3229.                 tempchar = obj.Parent
  3230.             end)
  3231.             pcall(function()
  3232.                 temphum = tempchar:FindFirstChildOfClass("Humanoid")
  3233.             end)
  3234.             if tempchar and temphum and not temphum:FindFirstChild("hit with melee") and temphum.Health > 0 and 10 > temphum.Health and temphum.PlatformStand then
  3235.                 targchar = tempchar
  3236.                 targhum = temphum
  3237.             end
  3238.         end
  3239.     end
  3240.    
  3241.     if targchar and targhum and not targhum:FindFirstChild("hit with melee") and targhum.Health > 0 and 10 > targhum.Health and targhum.PlatformStand then
  3242.         pcall(function()
  3243.             finish(targchar)
  3244.         end)
  3245.     else
  3246.         pcall(function()
  3247.             attack()
  3248.         end)
  3249.         damaging = true
  3250.         Trail.Enabled = true
  3251.         pcall(function()
  3252.             FakeTrail.Enabled = true
  3253.         end)
  3254.         wait(.7)
  3255.     end
  3256.    
  3257.     damaging = false
  3258.     Tool.Grip = CFrame.new(-0, -2.2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3259.     FakeWeld.C0 = Tool.Grip:Inverse()
  3260.     damage = math.random(10,15)
  3261.     hum.WalkSpeed = 16
  3262.  
  3263.     Trail.Enabled = false
  3264.     pcall(function()
  3265.         FakeTrail.Enabled = false
  3266.     end)
  3267.     attacking = false
  3268. end
  3269.  
  3270. function finish(targchar)
  3271.     if hum.PlatformStand or finishing or equipping or not char or not hum or hum.PlatformStand then return end
  3272.    
  3273.     local finishingval = Instance.new("ObjectValue",hum)
  3274.     finishingval.Name = "finishing"
  3275.    
  3276.     local targtorso,targhum,killval,finishval
  3277.     pcall(function()
  3278.         targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
  3279.     end)
  3280.     pcall(function()
  3281.         targhum = targchar:FindFirstChildOfClass("Humanoid")
  3282.     end)
  3283.     pcall(function()
  3284.         killval = targhum:FindFirstChild("killer")
  3285.     end)
  3286.     pcall(function()
  3287.         finishval = targhum:FindFirstChild("finishing")
  3288.     end)
  3289.    
  3290.     if finishval then finishingval:Destroy() return end
  3291.    
  3292.     finishing = true
  3293.    
  3294.     animation.AnimationId = "rbxassetid://" .. anims[#anims]
  3295.     swinganim = hum:LoadAnimation(animation)
  3296.    
  3297.     targtorso.Anchored = true
  3298.    
  3299.     hum.WalkSpeed = 0
  3300.    
  3301.     swinganim:Play(.1,1,1)
  3302.     Trail.Enabled = true
  3303.     pcall(function()
  3304.         FakeTrail.Enabled = true
  3305.     end)
  3306.    
  3307.     wait(.9)
  3308.     Tool.Grip = CFrame.new(0.0825450197, -1.77881193, -0.00506217778, 0.993925989, -0.00985812489, 0.109608412, 0.110050835, 0.0890338197, -0.989930272, 0, 0.995979846, 0.0895779207)
  3309.    
  3310.     pcall(function()
  3311.         Ragdoll(targchar)
  3312.     end)
  3313.     targhum:TakeDamage(1/0)
  3314.     if targhum and 0 >= targhum.Health then
  3315.         local tempkillval = Instance.new("ObjectValue",targhum)
  3316.         tempkillval.Name = "killer"
  3317.         tempkillval.Value = plr
  3318.         targtorso.Anchored = false
  3319.         FinishSound:Play()
  3320.         if not bleeding then
  3321.             bleed(targtorso)
  3322.         end
  3323.     end
  3324.     HitSound.PlaybackSpeed = math.random(9,12)/10
  3325.     HitSound:Play()
  3326.     wait(1.2)
  3327.     Trail.Enabled = false
  3328.     pcall(function()
  3329.         FakeTrail.Enabled = false
  3330.     end)
  3331.     swinganim:Stop()
  3332.     hum.WalkSpeed = 16
  3333.    
  3334.     Tool.Grip = CFrame.new(-0, -2.2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3335.     damage = math.random(10,15)
  3336.    
  3337.     finishingval:Destroy()
  3338.  
  3339.     finishing = false
  3340. end
  3341.  
  3342. function CheckIfAlive()
  3343.     local alive = false
  3344.     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
  3345.         alive = true
  3346.     end
  3347.     return alive
  3348. end
  3349.  
  3350. function equip_anim()
  3351.     for i = 0,15 do
  3352.         Tool.Grip = Tool.Grip * CFrame.Angles(math.rad(-22.5),0,0)
  3353.         FakeWeld.C0 = Tool.Grip:Inverse()
  3354.         wait(0)
  3355.     end
  3356. end
  3357.  
  3358. function MakeDual()
  3359.     if FakeHandle and FakeHandle.Parent then pcall(FakeHandle:Destroy()) end
  3360.     local LeftArm = char:FindFirstChild("Left Arm")
  3361.     if LeftArm then
  3362.         FakeHandle = Handle:Clone()
  3363.         FakeHandle.Name = "FakeHandle"
  3364.         FakeWeld = Instance.new("Weld")
  3365.         FakeWeld.Part0 = LeftArm
  3366.         FakeWeld.Part1 = FakeHandle
  3367.         FakeWeld.C0 = Tool.Grip:Inverse()
  3368.         FakeWeld.C1 = Tool.Grip * CFrame.Angles(math.rad(-90),0,0):Inverse() + Vector3.new(0,0,3.2)
  3369.         FakeWeld.Parent = FakeHandle
  3370.         FakeHandle.Parent = Tool
  3371.     end
  3372.     pcall(function()
  3373.         FakeTrail = FakeHandle:FindFirstChildOfClass("Trail")
  3374.     end)
  3375.     if FakeHandle then
  3376.         FakeHandle.Touched:Connect(function(obj)
  3377.             hitdecide(obj,2)
  3378.         end)
  3379.     end
  3380. end
  3381.  
  3382. function Equipped()
  3383.     if attacking or finishing or equipping then return end
  3384.     char = Tool.Parent
  3385.     plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  3386.     hum = char:FindFirstChildOfClass("Humanoid")
  3387.     torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  3388.     swinganim = hum:LoadAnimation(animation)
  3389.     idleanim = hum:LoadAnimation(idleanimation)
  3390.     if not CheckIfAlive() then Tool.Parent = nil return end
  3391.     equipped = true
  3392.     --equipping = true
  3393.     idleanim:Play()
  3394.     equip:play()
  3395.     pcall(MakeDual)
  3396.     --equip_anim()
  3397.     --equipping = false
  3398. end
  3399.  
  3400. function Unequipped()
  3401.     equipped = false
  3402.     for i, v in pairs({FakeHandle}) do
  3403.         if v and v.Parent then
  3404.             v:Destroy()
  3405.         end
  3406.     end
  3407.     swinganim:Stop()
  3408.     idleanim:Stop()
  3409. end
  3410.  
  3411. Tool.Activated:connect(Activated)
  3412. Tool.Equipped:connect(Equipped)
  3413. Tool.Unequipped:connect(Unequipped)
  3414. Handle.Touched:Connect(function(obj)
  3415.     hitdecide(obj,1)
  3416. end)
  3417. end))
  3418. for i,v in pairs(mas:GetChildren()) do
  3419.     v.Parent = owner['Backpack']
  3420.     pcall(function() v:MakeJoints() end)
  3421. end
  3422. mas:Destroy()
  3423. for i,v in pairs(cors) do
  3424.     spawn(function()
  3425.         pcall(v)
  3426.     end)
  3427. end
  3428. end
  3429.  
  3430. local plr = owner
  3431. local char,torso,hum
  3432.  
  3433. function CheckIfAlive()
  3434.     local alive = false
  3435.     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
  3436.         alive = true
  3437.     end
  3438.     return alive
  3439. end
  3440.  
  3441. function newchar()
  3442.     repeat wait() until plr.Character
  3443.     char = plr.Character
  3444.     torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
  3445.     hum = char:FindFirstChildOfClass("Humanoid")
  3446.     if CheckIfAlive() then else newchar() end
  3447. end
  3448.  
  3449. wait()
  3450. if not CheckIfAlive() then
  3451.     newchar()
  3452. end
  3453. if CheckIfAlive() then
  3454.     give()
  3455. end
  3456.  
  3457. plr.CharacterAdded:Connect(function()
  3458.     wait(.1)
  3459.     if not CheckIfAlive() then
  3460.         newchar()
  3461.     end
  3462.     if CheckIfAlive() then
  3463.         give()
  3464.     end
  3465. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement