loldezpasteas2

Untitled

May 27th, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.65 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. m=Instance.new('Model',Character)
  9. LeftArm=Character["Left Arm"]
  10. LeftLeg=Character["Left Leg"]
  11. RightArm=Character["Right Arm"]
  12. RightLeg=Character["Right Leg"]
  13. LS=Torso["Left Shoulder"]
  14. LH=Torso["Left Hip"]
  15. RS=Torso["Right Shoulder"]
  16. RH=Torso["Right Hip"]
  17. Face = Head.face
  18. Neck=Torso.Neck
  19. it=Instance.new
  20. attacktype=1
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. cloaked=false
  26. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  29. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  30. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RootPart=Character.HumanoidRootPart
  33. RootJoint=RootPart.RootJoint
  34. RootCF=euler(-1.57,0,3.14)
  35. attack = false
  36. attackdebounce = false
  37. deb=false
  38. equipped=true
  39. hand=false
  40. MMouse=nil
  41. combo=0
  42. mana=0
  43. trispeed=.2
  44. attackmode='none'
  45. local idle=0
  46. local Anim="Idle"
  47. local Effects={}
  48. local gun=false
  49. local shoot=false
  50. player=nil
  51. mana=0
  52.  
  53. mouse=Player:GetMouse()
  54. --save shoulders
  55. RSH, LSH=nil, nil
  56. --welds
  57. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  58. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  59. LH=Torso["Left Hip"]
  60. RH=Torso["Right Hip"]
  61. TorsoColor=Torso.BrickColor
  62. function NoOutline(Part)
  63. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  64. end
  65. player=Player
  66. ch=Character
  67. RSH=ch.Torso["Right Shoulder"]
  68. LSH=ch.Torso["Left Shoulder"]
  69. --
  70. RSH.Parent=nil
  71. LSH.Parent=nil
  72. --
  73. RW.Name="Right Shoulder"
  74. RW.Part0=ch.Torso
  75. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  76. RW.C1=cf(0, 0.5, 0)
  77. RW.Part1=ch["Right Arm"]
  78. RW.Parent=ch.Torso
  79. --
  80. LW.Name="Left Shoulder"
  81. LW.Part0=ch.Torso
  82. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  83. LW.C1=cf(0, 0.5, 0)
  84. LW.Part1=ch["Left Arm"]
  85. LW.Parent=ch.Torso
  86.  
  87. Player=game:GetService('Players').LocalPlayer
  88. Character=Player.Character
  89. Mouse=Player:GetMouse()
  90. m=Instance.new('Model',Character)
  91.  
  92.  
  93. local function weldBetween(a, b)
  94. local weldd = Instance.new("ManualWeld")
  95. weldd.Part0 = a
  96. weldd.Part1 = b
  97. weldd.C0 = CFrame.new()
  98. weldd.C1 = b.CFrame:inverse() * a.CFrame
  99. weldd.Parent = a
  100. return weldd
  101. end
  102.  
  103. it=Instance.new
  104.  
  105. function nooutline(part)
  106. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  107. end
  108.  
  109. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  110. local fp=it("Part")
  111. fp.formFactor=formfactor
  112. fp.Parent=parent
  113. fp.Reflectance=reflectance
  114. fp.Transparency=transparency
  115. fp.CanCollide=false
  116. fp.Locked=true
  117. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  118. fp.Name=name
  119. fp.Size=size
  120. fp.Position=Character.Torso.Position
  121. nooutline(fp)
  122. fp.Material=material
  123. fp:BreakJoints()
  124. return fp
  125. end
  126.  
  127. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  128. local mesh=it(Mesh)
  129. mesh.Parent=part
  130. if Mesh=="SpecialMesh" then
  131. mesh.MeshType=meshtype
  132. mesh.MeshId=meshid
  133. end
  134. mesh.Offset=offset
  135. mesh.Scale=scale
  136. return mesh
  137. end
  138.  
  139. function weld(parent,part0,part1,c0,c1)
  140. local weld=it("Weld")
  141. weld.Parent=parent
  142. weld.Part0=part0
  143. weld.Part1=part1
  144. weld.C0=c0
  145. weld.C1=c1
  146. return weld
  147. end
  148.  
  149. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light blue","Handle",Vector3.new(0.446729511, 1.78691852, 0.446729511))
  150. handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),CFrame.new(-0.0698547363, -0.150375366, -1.06997299, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  151. mesh("CylinderMesh",Handle,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 1.00999999, 0.800000012))
  152. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.80000001192093,"Light blue","Part",Vector3.new(0.446729511, 2.45701289, 0.446729511))
  153. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, -2.12194824, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  154. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 1.00999999, 0.800000012))
  155. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.223364741, 0.223364741, 1.3401885))
  156. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(1.07514572, -0.569717407, 6.65945435, 0.707106829, -0.707106769, 1.66804292e-015, 0.707106769, 0.707106829, 4.10472431e-016, -1.46973229e-015, 8.89236576e-016, 1))
  157. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1.00999999))
  158. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.223364741, 0.22336477, 1.3401885))
  159. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-0.569700241, 1.07513428, 6.65945435, 0.707106829, -0.707106769, 1.66804292e-015, 0.707106769, 0.707106829, 4.10472431e-016, -1.46973229e-015, 8.89236576e-016, 1))
  160. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1.00999999))
  161. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.446729481, 0.446729511, 1.3401885))
  162. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-3.78272247, 4.91989136, 0, -9.54897824e-023, 0.707106709, -0.707106888, 2.10195802e-021, 0.707106888, 0.707106709, 1, -1.41878732e-021, -1.55383e-021))
  163. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 1.00999999))
  164. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.446729481, 0.446729511, 1.3401885))
  165. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0.710752487, -0.710754395, 6.65621185, 0.707106829, -0.707106769, 1.66804292e-015, 0.707106769, 0.707106829, 4.10472431e-016, -1.46973229e-015, 8.89236576e-016, 1))
  166. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1.00999999))
  167. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.446729481, 0.446729511, 1.3401885))
  168. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-0.710737228, 0.710739136, 6.65621185, 0.707106829, -0.707106769, 1.66804292e-015, 0.707106769, 0.707106829, 4.10472431e-016, -1.46973229e-015, 8.89236576e-016, 1))
  169. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1.00999999))
  170. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.446729481, 0.446729511, 1.3401885))
  171. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-5.63065338, 4.49343872, 0, -9.54897824e-023, 0.707106709, -0.707106888, 2.10195802e-021, 0.707106888, 0.707106709, 1, -1.41878732e-021, -1.55383e-021))
  172. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 1.00999999))
  173. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.446729481, 0.446729511, 1.3401885))
  174. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-3.585289, 5.03834152, 0, -9.54897824e-023, 0.707106709, -0.707106888, 2.10195802e-021, 0.707106888, 0.707106709, 1, -1.41878732e-021, -1.55383e-021))
  175. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 0.300000012, 1.00999999))
  176. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.223364741, 0.223364741, 1.3401885))
  177. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0.561824799, -1.08303833, 6.65942383, 0.707106829, -0.707106769, 1.66804292e-015, 0.707106769, 0.707106829, 4.10472431e-016, -1.46973229e-015, 8.89236576e-016, 1))
  178. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1.00999999))
  179. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.223364741, 0.22336477, 1.3401885))
  180. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-1.08302116, 0.561813354, 6.65942383, 0.707106829, -0.707106769, 1.66804292e-015, 0.707106769, 0.707106829, 4.10472431e-016, -1.46973229e-015, 8.89236576e-016, 1))
  181. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1.00999999))
  182. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.446729481, 0.446729511, 1.3401885))
  183. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-5.82806396, 4.37496758, 0, -9.54897824e-023, 0.707106709, -0.707106888, 2.10195802e-021, 0.707106888, 0.707106709, 1, -1.41878732e-021, -1.55383e-021))
  184. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 0.300000012, 1.00999999))
  185. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.446729481, 0.446729511, 1.3401885))
  186. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(4.65925407, 5.32264709, 0, 0, 0.707106769, 0.707106829, 0, -0.707106829, 0.707106769, 1, 0, 0))
  187. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 0.800000012, 1.00999999))
  188. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.446729481, 0.446729511, 1.3401885))
  189. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-4.09067535, 4.75403976, 0, 0, 0.707106769, -0.707106829, 0, 0.707106829, 0.707106769, 1, 0, 0))
  190. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 0.800000012, 1.00999999))
  191. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light blue","Part",Vector3.new(0.670094252, 1.34018838, 0.670094252))
  192. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(6.65624237, 0, 1.00515366, -5.96046448e-008, -1.13686892e-013, 1, -1, -3.38813381e-021, -5.96046448e-008, 1.01644002e-020, -1, -1.13686892e-013))
  193. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.899999976, 1.00999999, 0.899999976))
  194. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light blue","Part",Vector3.new(0.670094252, 1.34018838, 0.670094252))
  195. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(6.65621185, 0, -1.00513458, -5.96046448e-008, -1.13686892e-013, 1, -1, -3.38813381e-021, -5.96046448e-008, 1.01644002e-020, -1, -1.13686892e-013))
  196. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.899999976, 1.00999999, 0.899999976))
  197. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light blue","Part",Vector3.new(1.3401885, 1.3401885, 2.68037701))
  198. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, -6.65621185, 1.52587891e-005, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  199. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  200. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light blue","Part",Vector3.new(1.3401885, 1.3401885, 1.34018862))
  201. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, -6.65621948, 1.52587891e-005, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  202. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 1.01999998, 0.699999988))
  203. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light blue","Part",Vector3.new(1.3401885, 1.3401885, 1.34018862))
  204. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, -6.65623474, 1.52587891e-005, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  205. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.850000024, 1.00999999, 0.850000024))
  206. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.446729511, 6.92430687, 0.446729511))
  207. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, -2.79199982, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  208. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 1.00999999, 0.699999988))
  209. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.446729511, 0.446730256, 0.446729511))
  210. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, -4.24385834, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  211. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.899999976, 1.00999999, 0.899999976))
  212. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.446729481, 0.446729511, 0.446729511))
  213. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0.868694305, 0.868690491, 1.52587891e-005, 0, -0.707106769, -0.707106829, 0, 0.707106829, -0.707106769, 1, 0, 0))
  214. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.600000024, 1.02499998))
  215. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light blue","Part",Vector3.new(0.670094252, 0.446729302, 0.670094252))
  216. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-1.22851563, 0, 0, 0, 0, 1, -1, 0, 0, 0, -1, 0))
  217. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 1.01999998, 0.600000024))
  218. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.446729511, 1.11682439, 0.446729511))
  219. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, -5.69573212, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  220. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.899999976, 1.00999999, 0.899999976))
  221. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light blue","Part",Vector3.new(0.446729511, 2.90374231, 0.446729511))
  222. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, -4.80226898, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  223. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 1.00999999, 0.800000012))
  224. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.223364741, 0.223364741, 0.670094252))
  225. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-0.899150848, 1.10449219, 0, 0.707106829, 0, 0.707106769, 0.707106769, 0, -0.707106829, 0, 1, 0))
  226. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 1.005))
  227. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light blue","Part",Vector3.new(0.670094252, 0.446729511, 0.670094311))
  228. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, 0, -1.22851563, 0, -1, 5.96046377e-008, 1, 0, 0, 0, 5.96046377e-008, 1))
  229. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 1.00999999, 0.800000012))
  230. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.223364741, 0.223364741, 0.670094252))
  231. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-0.843868256, 0.638572693, 0, 0.707106829, 0, 0.707106769, 0.707106769, 0, -0.707106829, 0, 1, 0))
  232. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 1.005))
  233. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.40000000596046,0,"Steel blue","Part",Vector3.new(0.446729481, 0.446729511, 0.670094252))
  234. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-0.868690491, 0.86869812, 0, 0.707106829, 0, 0.707106769, 0.707106769, 0, -0.707106829, 0, 1, 0))
  235. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 0.699999988, 1.005))
  236. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light blue","Part",Vector3.new(0.670094252, 0.446729511, 0.670094311))
  237. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, 0, -1.22691345, 0, -1, 5.96046377e-008, 1, 0, 0, 0, 5.96046377e-008, 1))
  238. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  239. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.223364741, 1.3401885, 0.223364741))
  240. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-0.491386414, 0, -6.96891785, 0, -0.99999994, -2.98023206e-008, -0.999999821, 0, 0, 0, 2.98023206e-008, -0.99999994))
  241. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.005, 0.150000006))
  242. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.670094252, 1.34018838, 0.670094252))
  243. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(6.65624237, 0, -1.00513458, -5.96046448e-008, -1.13686892e-013, 1, -1, -3.38813381e-021, -5.96046448e-008, 1.01644002e-020, -1, -1.13686892e-013))
  244. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 1.01499999, 0.699999988))
  245. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.670094252, 1.34018838, 0.670094252))
  246. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(6.65621185, 0, -1.00513458, -5.96046448e-008, -1.13686892e-013, 1, -1, -3.38813381e-021, -5.96046448e-008, 1.01644002e-020, -1, -1.13686892e-013))
  247. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.005, 1))
  248. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.670094252, 1.34018838, 0.670094252))
  249. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(6.65624237, 0, 1.00515366, -5.96046448e-008, -1.13686892e-013, 1, -1, -3.38813381e-021, -5.96046448e-008, 1.01644002e-020, -1, -1.13686892e-013))
  250. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.005, 1))
  251. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.223364741, 1.3401885, 0.223364741))
  252. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-0.491386414, 0, -6.67855072, 0, -0.99999994, -2.98023206e-008, -0.999999821, 0, 0, 0, 2.98023206e-008, -0.99999994))
  253. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.005, 0.150000006))
  254. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(1.3401885, 1.3401885, 1.34018862))
  255. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, -6.65621185, 1.52587891e-005, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  256. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.899999976, 1.005, 0.899999976))
  257. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(1.3401885, 1.3401885, 1.34018862))
  258. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, -6.65367126, 1.52587891e-005, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  259. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 1.01499999, 0.800000012))
  260. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.670094252, 1.34018838, 0.670094252))
  261. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(6.65628052, 0, 1.00515366, -5.96046448e-008, -1.13686892e-013, 1, -1, -3.38813381e-021, -5.96046448e-008, 1.01644002e-020, -1, -1.13686892e-013))
  262. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 1.01499999, 0.699999988))
  263. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.223364741, 1.3401885, 0.223364741))
  264. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-4.39868164, 0, 5.34632492, 0, 0.707106769, -0.707106829, -1, 0, 0, 0, 0.707106829, 0.707106769))
  265. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.005, 0.150000006))
  266. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.223364741, 1.3401885, 0.223364741))
  267. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(5.25157166, 0, 4.30393219, 0, 0.707106769, 0.707106829, -1, 0, 0, 0, -0.707106829, 0.707106769))
  268. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.005, 0.150000006))
  269. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.223364741, 1.3401885, 0.223364741))
  270. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-4.16964531, 0, 5.10151672, 1.49011612e-008, -0.707106709, -0.707106888, 1, 5.56921513e-008, -3.46187186e-008, 6.38594315e-008, -0.707106829, 0.707106709))
  271. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.005, 0.150000006))
  272. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.223364741, 1.3401885, 0.223364741))
  273. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(4.32761955, 0, 4.75406647, 0, 0.707106769, 0.707106829, -1, 0, 0, 0, -0.707106829, 0.707106769))
  274. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.005, 0.150000006))
  275. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.223364741, 1.3401885, 0.223364741))
  276. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(5.00678253, 0, 4.0749054, 1.49011612e-008, -0.707106709, 0.707106888, 1, 5.56921513e-008, 3.46187186e-008, -6.38594315e-008, 0.707106829, 0.707106709))
  277. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.005, 0.150000006))
  278. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.223364741, 1.3401885, 0.223364741))
  279. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(4.55662537, 0, 4.99887085, 1.49011612e-008, -0.707106709, 0.707106888, 1, 5.56921513e-008, 3.46187186e-008, -6.38594315e-008, 0.707106829, 0.707106709))
  280. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.005, 0.150000006))
  281. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.223364741, 1.3401885, 0.223364741))
  282. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0.480239868, 0, -6.34349823, 0, -0.99999994, -2.98023206e-008, -0.999999821, 0, 0, 0, 2.98023206e-008, -0.99999994))
  283. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.005, 0.150000006))
  284. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.223364741, 1.3401885, 0.223364741))
  285. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-5.09362602, 0, 4.65138245, 1.49011612e-008, -0.707106709, -0.707106888, 1, 5.56921513e-008, -3.46187186e-008, 6.38594315e-008, -0.707106829, 0.707106709))
  286. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.005, 0.150000006))
  287. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.223364741, 1.3401885, 0.223364741))
  288. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0.480239868, 0, -6.63387299, 0, -0.99999994, -2.98023206e-008, -0.999999821, 0, 0, 0, 2.98023206e-008, -0.99999994))
  289. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.005, 0.150000006))
  290. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.446729511, 1.3401885, 0.446729481))
  291. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(4.70665741, 0, -4.70665741, 0, -0.707106829, 0.707106769, -1, 0, 0, 0, -0.707106769, -0.707106829))
  292. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.75999999, 1.005, 0.75999999))
  293. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.670094252, 1.3401885, 0.223364741))
  294. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(6.65621948, 0, 0.223377228, 0, -2.98023153e-008, 0.999999762, -0.999999464, 0, 0, 0, -0.999999762, -2.98023153e-008))
  295. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.005, 0.150000006))
  296. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.670094252, 1.3401885, 0.223364741))
  297. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(6.65621948, 0, -0.223358154, 0, -2.98023153e-008, 0.999999762, -0.999999464, 0, 0, 0, -0.999999762, -2.98023153e-008))
  298. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.005, 0.150000006))
  299. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.223364741, 1.3401885, 0.223364741))
  300. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-4.84880829, 0, 4.42235756, 0, 0.707106769, -0.707106829, -1, 0, 0, 0, 0.707106829, 0.707106769))
  301. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.005, 0.150000006))
  302. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.446729511, 1.3401885, 0.223364741))
  303. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-4.93790436, 7.62939453e-006, 5.09473228, -1.24978101e-006, 0.707106948, -0.70710665, -1, -8.75421676e-007, 8.92035644e-007, 1.17481154e-008, 0.70710665, 0.707106948))
  304. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.75, 1.005, 0.150000006))
  305. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.446729511, 1.3401885, 0.223364741))
  306. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(4.4708786, 0, -4.31179047, 0, -0.707106888, 0.707106709, -1, 0, 0, 0, -0.707106709, -0.707106888))
  307. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.75, 1.005, 0.150000006))
  308. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.446729511, 1.3401885, 0.223364741))
  309. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(4.46974373, 0, 4.31292725, 0, 0.707106709, 0.707106948, -1, 0, 0, 0, -0.707106948, 0.707106709))
  310. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.75, 1.005, 0.150000006))
  311. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.446729511, 1.3401885, 0.223364741))
  312. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-4.93678284, 7.62939453e-006, -5.09585571, -1.17481438e-008, -0.70710665, -0.707106948, -1, -8.75421392e-007, 8.92035416e-007, -1.24978067e-006, 0.707106948, -0.70710665))
  313. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.75, 1.005, 0.150000006))
  314. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.893458962, 0.893458962, 0.223364741))
  315. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, -6.65621185, 1.67523575, 1, 0, 0, -5.29395592e-023, 4.80898297e-016, -0.999999881, 0, 1, 4.80898244e-016))
  316. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.949999988, 0.949999988, 0.100000001))
  317. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(1.3401885, 1.3401885, 0.223364741))
  318. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, -6.65621185, 1.45185852, 1, 0, 0, -5.29395592e-023, 4.80898297e-016, -0.999999881, 0, 1, 4.80898244e-016))
  319. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.899999976, 0.899999976, 0.100000001))
  320. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(1.3401885, 1.3401885, 0.223364741))
  321. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, -6.65621185, -1.45187759, 1, 0, 0, -5.29395592e-023, 4.80898297e-016, -0.999999881, 0, 1, 4.80898244e-016))
  322. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.899999976, 0.899999976, 0.100000001))
  323. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.893458962, 0.893458962, 0.223364741))
  324. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, -6.65621185, -1.67525101, 1, 0, 0, -5.29395592e-023, 4.80898297e-016, -0.999999881, 0, 1, 4.80898244e-016))
  325. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.949999988, 0.949999988, 0.100000001))
  326. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.670094252, 0.446729511, 0.670094311))
  327. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(0, 0, -1.22850037, 0, -1, 5.96046377e-008, 1, 0, 0, 0, 5.96046377e-008, 1))
  328. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.899999976, 1.005, 0.899999976))
  329. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Bright blue","Part",Vector3.new(0.670094252, 0.446729302, 0.670094252))
  330. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-1.22851563, 0, 0, 0, 0, 1, -1, 0, 0, 0, -1, 0))
  331. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.75, 1.01499999, 0.75))
  332. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Bright blue","Hitbox",Vector3.new(0.223364741, 1.46303916, 3.29463005))
  333. Hitboxweld=weld(m,Handle,Hitbox,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, -0, -1, -0),CFrame.new(-0.122886658, -6.59224701, 0.284801483, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  334.  
  335. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  336. if hit.Parent==nil then
  337. return
  338. end
  339. h=hit.Parent:FindFirstChild("Humanoid")
  340. for _,v in pairs(hit.Parent:children()) do
  341. if v:IsA("Humanoid") then
  342. h=v
  343. end
  344. end
  345. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  346. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  347. end
  348. if hit.Parent.className=="Hat" then
  349. hit=hit.Parent.Parent:findFirstChild("Head")
  350. end
  351. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  352. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  353. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  354. return
  355. end]]
  356. -- hs(hit,1.2)
  357. c=Instance.new("ObjectValue")
  358. c.Name="creator"
  359. c.Value=game:service("Players").LocalPlayer
  360. c.Parent=h
  361. game:GetService("Debris"):AddItem(c,.5)
  362. Damage=math.random(minim,maxim)
  363. -- h:TakeDamage(Damage)
  364. blocked=false
  365. block=hit.Parent:findFirstChild("Block")
  366. if block~=nil then
  367. print(block.className)
  368. if block.className=="NumberValue" then
  369. if block.Value>0 then
  370. blocked=true
  371. if decreaseblock==nil then
  372. block.Value=block.Value-1
  373. end
  374. end
  375. end
  376. if block.className=="IntValue" then
  377. if block.Value>0 then
  378. blocked=true
  379. if decreaseblock~=nil then
  380. block.Value=block.Value-1
  381. end
  382. end
  383. end
  384. end
  385. if blocked==false then
  386. -- h:TakeDamage(Damage)
  387. h.Health=h.Health-Damage
  388. showDamage(hit.Parent,Damage,.5,BrickColor.new("Neon green"))
  389. else
  390. h.Health=h.Health-(Damage/2)
  391. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  392. end
  393. if Type=="Knockdown" then
  394. hum=hit.Parent.Humanoid
  395. hum.PlatformStand=true
  396. coroutine.resume(coroutine.create(function(HHumanoid)
  397. swait(1)
  398. HHumanoid.PlatformStand=false
  399. end),hum)
  400. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  401. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  402. local bodvol=Instance.new("BodyVelocity")
  403. bodvol.velocity=angle*knockback
  404. bodvol.P=5000
  405. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  406. bodvol.Parent=hit
  407. rl=Instance.new("BodyAngularVelocity")
  408. rl.P=3000
  409. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  410. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  411. rl.Parent=hit
  412. game:GetService("Debris"):AddItem(bodvol,.5)
  413. game:GetService("Debris"):AddItem(rl,.5)
  414. elseif Type=="Normal" then
  415. vp=Instance.new("BodyVelocity")
  416. vp.P=500
  417. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  418. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  419. if KnockbackType==1 then
  420. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  421. elseif KnockbackType==2 then
  422. vp.velocity=Property.CFrame.lookVector*knockback
  423. end
  424. if knockback>0 then
  425. vp.Parent=hit.Parent.Torso
  426. end
  427. game:GetService("Debris"):AddItem(vp,.5)
  428. elseif Type=="Up" then
  429. local bodyVelocity=Instance.new("BodyVelocity")
  430. bodyVelocity.velocity=vt(0,60,0)
  431. bodyVelocity.P=5000
  432. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  433. bodyVelocity.Parent=hit
  434. game:GetService("Debris"):AddItem(bodyVelocity,1)
  435. rl=Instance.new("BodyAngularVelocity")
  436. rl.P=3000
  437. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  438. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  439. rl.Parent=hit
  440. game:GetService("Debris"):AddItem(rl,.5)
  441. elseif Type=="Snare" then
  442. bp=Instance.new("BodyPosition")
  443. bp.P=2000
  444. bp.D=100
  445. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  446. bp.position=hit.Parent.Torso.Position
  447. bp.Parent=hit.Parent.Torso
  448. game:GetService("Debris"):AddItem(bp,1)
  449. elseif Type=="Target" then
  450. if Targetting==false then
  451. ZTarget=hit.Parent.Torso
  452. coroutine.resume(coroutine.create(function(Part)
  453. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  454. swait(5)
  455. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  456. end),ZTarget)
  457. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  458. targetgui=Instance.new("BillboardGui")
  459. targetgui.Parent=ZTarget
  460. targetgui.Size=UDim2.new(10,100,10,100)
  461. targ=Instance.new("ImageLabel")
  462. targ.Parent=targetgui
  463. targ.BackgroundTransparency=1
  464. targ.Image="rbxassetid://4834067"
  465. targ.Size=UDim2.new(1,0,1,0)
  466. cam.CameraType="Scriptable"
  467. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  468. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  469. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  470. Targetting=true
  471. RocketTarget=ZTarget
  472. for i=1,Property do
  473. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  474. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  475. swait()
  476. end
  477. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  478. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  479. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  480. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  481. end
  482. Targetting=false
  483. RocketTarget=nil
  484. targetgui.Parent=nil
  485. cam.CameraType="Custom"
  486. end
  487. end
  488. debounce=Instance.new("BoolValue")
  489. debounce.Name="DebounceHit"
  490. debounce.Parent=hit.Parent
  491. debounce.Value=true
  492. game:GetService("Debris"):AddItem(debounce,Delay)
  493. c=Instance.new("ObjectValue")
  494. c.Name="creator"
  495. c.Value=Player
  496. c.Parent=h
  497. game:GetService("Debris"):AddItem(c,.5)
  498. CRIT=false
  499. hitDeb=true
  500. AttackPos=6
  501. end
  502. end
  503.  
  504. showDamage=function(Char,Dealt,du,Color)
  505. m=Instance.new("Model")
  506. m.Name=tostring(Dealt)
  507. h=Instance.new("Humanoid")
  508. h.Health=0
  509. h.MaxHealth=0
  510. h.Parent=m
  511. c=Instance.new("Part")
  512. c.Transparency=0
  513. c.BrickColor=Color
  514. c.Name="Head"
  515. c.TopSurface=0
  516. c.BottomSurface=0
  517. c.formFactor="Plate"
  518. c.Size=Vector3.new(1,.4,1)
  519. ms=Instance.new("CylinderMesh")
  520. ms.Scale=Vector3.new(.8,.8,.8)
  521. if CRIT==true then
  522. ms.Scale=Vector3.new(1,1.25,1)
  523. end
  524. ms.Parent=c
  525. c.Reflectance=0
  526. Instance.new("BodyGyro").Parent=c
  527. c.Parent=m
  528. if Char:findFirstChild("Head")~=nil then
  529. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  530. elseif Char.Parent:findFirstChild("Head")~=nil then
  531. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  532. end
  533. f=Instance.new("BodyPosition")
  534. f.P=2000
  535. f.D=100
  536. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  537. f.position=c.Position+Vector3.new(0,3,0)
  538. f.Parent=c
  539. game:GetService("Debris"):AddItem(m,.5+du)
  540. c.CanCollide=false
  541. m.Parent=workspace
  542. c.CanCollide=false
  543. end
  544.  
  545.  
  546. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  547. local fp=it("Part")
  548. fp.formFactor=formfactor
  549. fp.Parent=parent
  550. fp.Reflectance=reflectance
  551. fp.Transparency=transparency
  552. fp.CanCollide=false
  553. fp.Locked=true
  554. fp.BrickColor=brickcolor
  555. fp.Name=name
  556. fp.Size=size
  557. fp.Position=Torso.Position
  558. NoOutline(fp)
  559. fp.Material="SmoothPlastic"
  560. fp:BreakJoints()
  561. return fp
  562. end
  563.  
  564. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  565. local mesh=it(Mesh)
  566. mesh.Parent=part
  567. if Mesh=="SpecialMesh" then
  568. mesh.MeshType=meshtype
  569. if meshid~="nil" then
  570. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  571. end
  572. end
  573. mesh.Offset=offset
  574. mesh.Scale=scale
  575. return mesh
  576. end
  577.  
  578. function weld(parent,part0,part1,c0)
  579. local weld=it("Weld")
  580. weld.Parent=parent
  581. weld.Part0=part0
  582. weld.Part1=part1
  583. weld.C0=c0
  584. return weld
  585. end
  586.  
  587. local Color1=Torso.BrickColor
  588.  
  589. local bodvel=Instance.new("BodyVelocity")
  590. local bg=Instance.new("BodyGyro")
  591.  
  592. function swait(num)
  593. if num==0 or num==nil then
  594. game:service'RunService'.Stepped:wait(0)
  595. else
  596. for i=0,num do
  597. game:service'RunService'.Stepped:wait(0)
  598. end
  599. end
  600. end
  601.  
  602.  
  603. so = function(id,par,vol,pit)
  604. coroutine.resume(coroutine.create(function()
  605. local sou = Instance.new("Sound",par or workspace)
  606. sou.Volume=vol
  607. sou.Pitch=pit or 1
  608. sou.SoundId=id
  609. swait()
  610. sou:play()
  611. game:GetService("Debris"):AddItem(sou,6)
  612. end))
  613. end
  614.  
  615. function clerp(a,b,t)
  616. local qa = {QuaternionFromCFrame(a)}
  617. local qb = {QuaternionFromCFrame(b)}
  618. local ax, ay, az = a.x, a.y, a.z
  619. local bx, by, bz = b.x, b.y, b.z
  620. local _t = 1-t
  621. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  622. end
  623.  
  624. function QuaternionFromCFrame(cf)
  625. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  626. local trace = m00 + m11 + m22
  627. if trace > 0 then
  628. local s = math.sqrt(1 + trace)
  629. local recip = 0.5/s
  630. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  631. else
  632. local i = 0
  633. if m11 > m00 then
  634. i = 1
  635. end
  636. if m22 > (i == 0 and m00 or m11) then
  637. i = 2
  638. end
  639. if i == 0 then
  640. local s = math.sqrt(m00-m11-m22+1)
  641. local recip = 0.5/s
  642. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  643. elseif i == 1 then
  644. local s = math.sqrt(m11-m22-m00+1)
  645. local recip = 0.5/s
  646. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  647. elseif i == 2 then
  648. local s = math.sqrt(m22-m00-m11+1)
  649. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  650. end
  651. end
  652. end
  653.  
  654. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  655. local xs, ys, zs = x + x, y + y, z + z
  656. local wx, wy, wz = w*xs, w*ys, w*zs
  657. local xx = x*xs
  658. local xy = x*ys
  659. local xz = x*zs
  660. local yy = y*ys
  661. local yz = y*zs
  662. local zz = z*zs
  663. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  664. end
  665.  
  666. function QuaternionSlerp(a, b, t)
  667. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  668. local startInterp, finishInterp;
  669. if cosTheta >= 0.0001 then
  670. if (1 - cosTheta) > 0.0001 then
  671. local theta = math.acos(cosTheta)
  672. local invSinTheta = 1/math.sin(theta)
  673. startInterp = math.sin((1-t)*theta)*invSinTheta
  674. finishInterp = math.sin(t*theta)*invSinTheta
  675. else
  676. startInterp = 1-t
  677. finishInterp = t
  678. end
  679. else
  680. if (1+cosTheta) > 0.0001 then
  681. local theta = math.acos(-cosTheta)
  682. local invSinTheta = 1/math.sin(theta)
  683. startInterp = math.sin((t-1)*theta)*invSinTheta
  684. finishInterp = math.sin(t*theta)*invSinTheta
  685. else
  686. startInterp = t-1
  687. finishInterp = t
  688. end
  689. end
  690. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  691. end
  692.  
  693. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  694. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  695. end
  696.  
  697. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  698. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  699. prt.Anchored=true
  700. prt.CFrame=cframe
  701. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  702. --http://www.roblox.com/asset/?id=4770560
  703. game:GetService("Debris"):AddItem(prt,2)
  704. CF=prt.CFrame
  705. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  706. for i=0,1,0.2 do
  707. wait()
  708. Part.CFrame=CF*cf(0,0,-0.4)
  709. end
  710. for i=0,1,delay do
  711. wait()
  712. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  713. Mesh.Scale=Mesh.Scale
  714. end
  715. for i=0,1,0.1 do
  716. wait()
  717. Part.Transparency=i
  718. end
  719. Part.Parent=nil
  720. end),prt,msh,CF)
  721. end
  722.  
  723. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  724. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  725. prt.Anchored=true
  726. prt.CFrame=cframe
  727. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  728. game:GetService("Debris"):AddItem(prt,5)
  729. coroutine.resume(coroutine.create(function(Part,Mesh)
  730. for i=0,1,delay do
  731. wait()
  732. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  733. Part.Transparency=i
  734. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  735. end
  736. Part.Parent=nil
  737. end),prt,msh)
  738. end
  739.  
  740. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  741. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  742. prt.Anchored=false
  743. prt.CFrame=cframe
  744. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  745. local wld=weld(prt,prt,Parent,cframe)
  746. game:GetService("Debris"):AddItem(prt,5)
  747. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  748. for i=0,1,delay do
  749. wait()
  750. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  751. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  752. Part.Transparency=i
  753. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  754. end
  755. Part.Parent=nil
  756. end),prt,msh,wld)
  757. end
  758.  
  759. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  760. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  761. prt.Anchored=false
  762. prt.CFrame=cframe
  763. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  764. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  765. game:GetService("Debris"):AddItem(prt,5)
  766. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  767. for i=0,1,delay do
  768. wait()
  769. Weld.C0=euler(i*20,0,0)
  770. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  771. Part.Transparency=i
  772. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  773. end
  774. Part.Parent=nil
  775. end),prt,msh,wld)
  776. end
  777.  
  778. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  779. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  780. prt.Anchored=true
  781. prt.CFrame=cframe
  782. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  783. game:GetService("Debris"):AddItem(prt,2)
  784. coroutine.resume(coroutine.create(function(Part,Mesh)
  785. for i=0,1,delay do
  786. wait()
  787. Part.CFrame=Part.CFrame
  788. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  789. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  790. prt2.Anchored=true
  791. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  792. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  793. game:GetService("Debris"):AddItem(prt2,2)
  794. coroutine.resume(coroutine.create(function(Part,Mesh)
  795. for i=0,1,0.1 do
  796. wait()
  797. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  798. end
  799. Part.Parent=nil
  800. end),prt2,msh2)
  801. end
  802. for i=0,1,delay*2 do
  803. wait()
  804. Part.CFrame=Part.CFrame
  805. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  806. end
  807. Part.Parent=nil
  808. end),prt,msh)
  809. end
  810.  
  811. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  812. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  813. prt.Anchored=true
  814. prt.CFrame=cframe
  815. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  816. game:GetService("Debris"):AddItem(prt,2)
  817. coroutine.resume(coroutine.create(function(Part,Mesh)
  818. for i=0,1,delay do
  819. wait()
  820. Part.CFrame=Part.CFrame
  821. Part.Transparency=i
  822. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  823. end
  824. Part.Parent=nil
  825. end),prt,msh)
  826. end
  827.  
  828. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  829. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  830. prt.Anchored=true
  831. prt.CFrame=cframe*euler(x2,y2,z2)
  832. --"http://www.roblox.com/asset/?id=168892465"
  833. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  834. game:GetService("Debris"):AddItem(prt,2)
  835. coroutine.resume(coroutine.create(function(Part,Mesh)
  836. for i=0,1,0.03 do
  837. wait()
  838. Part.CFrame=Part.CFrame
  839. Part.Transparency=i
  840. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  841. end
  842. Part.Parent=nil
  843. end),prt,msh)
  844. end
  845.  
  846. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  847. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  848. prt.Anchored=true
  849. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  850. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  851. game:GetService("Debris"):AddItem(prt,2)
  852. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  853. CF=Part.CFrame
  854. Numbb=0
  855. randnumb=math.random()/10
  856. rand1=math.random()/10
  857. for i=0,1,rand1 do
  858. wait()
  859. CF=CF*cf(0,math.random()/2,0)
  860. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  861. Part.CFrame=CF*euler(Numbb,0,0)
  862. Part.Transparency=i
  863. Numbb=Numbb+randnumb
  864. end
  865. Part.Parent=nil
  866. end),prt,CF,Numbb,randnumb)
  867. end
  868.  
  869. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  870. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  871. prt.Anchored=true
  872. prt.CFrame=cframe
  873. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  874. game:GetService("Debris"):AddItem(prt,5)
  875. coroutine.resume(coroutine.create(function(Part,Mesh)
  876. for i=0,1,delay do
  877. wait()
  878. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  879. Part.Transparency=i
  880. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  881. end
  882. Part.Parent=nil
  883. end),prt,msh)
  884. end
  885.  
  886. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  887. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  888. prt.Anchored=true
  889. prt.CFrame=cframe
  890. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  891. game:GetService("Debris"):AddItem(prt,2)
  892. coroutine.resume(coroutine.create(function(Part,Mesh)
  893. for i=0,1,delay do
  894. wait()
  895. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  896. Part.Transparency=i
  897. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  898. end
  899. Part.Parent=nil
  900. end),prt,msh)
  901. end
  902.  
  903. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  904. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  905. prt.Anchored=true
  906. prt.CFrame=cframe*cf(x,y,z)
  907. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  908. game:GetService("Debris"):AddItem(prt,5)
  909. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  910. local num=math.random()
  911. local num2=math.random(-3,2)+math.random()
  912. local numm=0
  913. for i=0,1,delay*2 do
  914. swait()
  915. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  916. Part.Transparency=i
  917. numm=numm+0.01
  918. end
  919. Part.Parent=nil
  920. Mesh.Parent=nil
  921. end),prt,msh,x,y,z)
  922. end
  923.  
  924. ring=function(way,way2,where,vector,rv1,rv2,rv3,c1,c2,color)
  925. local rng = Instance.new("Part", char.Torso)
  926. rng.Anchored = true
  927. rng.BrickColor = BrickColor.new(tostring(color))
  928. rng.CanCollide = false
  929. rng.FormFactor = 3
  930. rng.Name = "Ring"
  931. rng.Size = Vector3.new(1, 1, 1)
  932. rng.Transparency = .5
  933. rng.TopSurface = 0
  934. rng.BottomSurface = 0
  935. rng.CFrame = where * CFrame.Angles(math.rad(way), math.rad(way2), 0)
  936. local rngm = Instance.new("SpecialMesh", rng)
  937. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  938. rngm.Scale = vector--10,10,1
  939. for i = 1, 20, 1 do
  940. rngm.Scale = Vector3.new(rv1 + i*c1, rv2 + i*c2, rv3)--(10 + i*2, 10 + i*2, 1)
  941. rng.Transparency = i/20
  942. swait()
  943. end
  944. wait()
  945. rng:destroy''
  946. end
  947.  
  948. mouse.Button1Down:connect(function()
  949. if attack==false then
  950. if attacktype==1 then
  951. attack=true
  952. attacktype=2
  953. attackone()
  954. elseif attacktype==2 then
  955. attack=true
  956. attacktype=3
  957. attacktwo()
  958. elseif attacktype==3 then
  959. attack=true
  960. attacktype=1
  961. attackthree()
  962. end
  963. end
  964. end)
  965.  
  966. function attackone()
  967. attack=true
  968. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  969. for i=0,1.5,0.1 do
  970. swait()
  971. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(20)),.3)
  972. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  973. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  974. RH.C0=clerp(RH.C0,cf(1,-1,-.25)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(15)),.3)
  975. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  976. handleweld.C0=clerp(handleweld.C0,cf(0,0,.4)*angles(math.rad(80),math.rad(-20),math.rad(0)),.3)
  977. end
  978. so("http://roblox.com/asset/?id=189505639",Hitbox,1,1)
  979. for i=0,1,0.1 do
  980. swait()
  981. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(0),math.rad(10)),.3)
  982. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(25),math.rad(0),math.rad(0)),.3)
  983. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  984. RH.C0=clerp(RH.C0,cf(1,-1,-.25)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(15)),.3)
  985. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  986. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-80),math.rad(20),math.rad(0)),.3)
  987. end
  988. attack=false
  989. con1:disconnect()
  990. end
  991.  
  992. function attacktwo()
  993. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  994. attack=true
  995. for i=0,1.5,0.1 do
  996. swait()
  997. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(20)),.3)
  998. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(30),math.rad(0),math.rad(-40)),.3)
  999. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1000. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1001. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1002. --handleweld.C0=clerp(handleweld.C0,cf(0,0,.4)*angles(math.rad(80),math.rad(-20),math.rad(0)),.3)
  1003. end
  1004. so("http://roblox.com/asset/?id=189505662",Hitbox,1,1)
  1005. for i=0,1,0.1 do
  1006. swait()
  1007. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-30)),.3)
  1008. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(30),math.rad(0),math.rad(-40)),.3)
  1009. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1010. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1011. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1012. handleweld.C0=clerp(handleweld.C0,cf(0,0,.4)*angles(math.rad(-40),math.rad(0),math.rad(0)),.3)
  1013. end
  1014. attack=false
  1015. con1:disconnect()
  1016. end
  1017.  
  1018. function attackthree()
  1019. con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
  1020. attack=true
  1021. for i=0,1.5,0.1 do
  1022. swait()
  1023. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(10)),.3)
  1024. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(math.rad(100),math.rad(15),math.rad(50)),.3)
  1025. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1026. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1027. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1028. --handleweld.C0=clerp(handleweld.C0,cf(0,0,.4)*angles(math.rad(80),math.rad(-20),math.rad(0)),.3)
  1029. end
  1030. so("http://roblox.com/asset/?id=189505649",Hitbox,1,1)
  1031. for i=0,1,0.1 do
  1032. swait()
  1033. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(50)),.3)
  1034. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(math.rad(100),math.rad(15),math.rad(50)),.3)
  1035. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1036. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1037. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1038. handleweld.C0=clerp(handleweld.C0,cf(0,0,.4)*angles(math.rad(-40),math.rad(0),math.rad(0)),.3)
  1039. end
  1040. attack=false
  1041. con1:disconnect()
  1042. end
  1043.  
  1044.  
  1045. local sine = 0
  1046. local change = 1
  1047. local val = 0
  1048.  
  1049. local mananum=0
  1050. while true do
  1051. swait()
  1052. sine = sine + change
  1053. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1054. local velderp=RootPart.Velocity.y
  1055. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1056. if equipped==true or equipped==false then
  1057. if attack==false then
  1058. idle=idle+1
  1059. else
  1060. idle=0
  1061. end
  1062. if idle>=500 then
  1063. if attack==false then
  1064. --Sheath()
  1065. end
  1066. end
  1067. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1068. Anim="Jump"
  1069. if attack==false then
  1070. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1071. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1072. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-60),math.rad(0),math.rad(50)),.3)
  1073. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(50),math.rad(0),math.rad(-40)),.3)
  1074. RH.C0=clerp(RH.C0,cf(1,-1,-.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(15)),.3)
  1075. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1076. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1077. end
  1078. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1079. Anim="Fall"
  1080. if attack==false then
  1081. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1082. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1083. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(40)),.3)
  1084. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(40),math.rad(0),math.rad(-30)),.3)
  1085. RH.C0=clerp(RH.C0,cf(1,-1,-.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(15)),.3)
  1086. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1087. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1088. end
  1089. elseif torvel<1 and hitfloor~= nil then
  1090. local idleanim=0
  1091. Anim="Idle"
  1092. if attack==false then
  1093. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1094. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1095. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30)),.3)
  1096. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(math.rad(100),math.rad(15),math.rad(50)),.3)
  1097. RH.C0=clerp(RH.C0,cf(1,-1,-.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(15)),.3)
  1098. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1099. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(40),math.rad(-20),math.rad(0)),.3)
  1100. end
  1101. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1102. Anim="Walk"
  1103. if attack==false then
  1104. change=1
  1105. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),.3)
  1106. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1107. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.3)
  1108. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(30),math.rad(0),math.rad(-40)),.3)
  1109. handleweld.C0=clerp(handleweld.C0,cf(0,0,.3)*angles(math.rad(70),math.rad(-20),math.rad(0)),.3)
  1110. end
  1111. elseif torvel>=22 and hitfloor~=nil then
  1112. Anim="Run"
  1113. if attack==false then
  1114. end
  1115. end
  1116. end
  1117. end
Add Comment
Please, Sign In to add comment