Dark_EccentricYT

Untitled

Jun 20th, 2018
1,373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.77 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. local Mouse = Player:GetMouse()
  3. local Char = Player.Character
  4. local RightArm = Char["Right Arm"]
  5. local LeftArm = Char["Left Arm"]
  6. local RightLeg = Char["Right Leg"]
  7. local LeftLeg = Char["Left Leg"]
  8. local Humanoid = Char.Humanoid
  9. local Head = Char.Head
  10. local Torso = Char.Torso
  11. local Torso2 = Char.HumanoidRootPart
  12. local RenderStepped = game:GetService("RunService").RenderStepped
  13. local CanAttack = true
  14. local Slashing = false
  15. local CharAnim = "Idle"
  16. local AnimFrame = 0
  17.  
  18.  
  19. local m = Instance.new("Model")
  20. m.Name = "Blackout Sword"
  21. p1 = Instance.new("Part", m)
  22. p1.BrickColor = BrickColor.new("Really black")
  23. p1.FormFactor = Enum.FormFactor.Custom
  24. p1.Size = Vector3.new(0.200000048, 4.5999999, 0.200000048)
  25. p1.CFrame = CFrame.new(0.0438146591, 5.30618715, -12.6500006, -3.26636873e-005, 4.31581502e-005, -1, 9.29513355e-010, 1, 4.31581502e-005, 1, 4.80190998e-010, -3.26636873e-005)
  26. p1.Anchored = true
  27. p1.BottomSurface = Enum.SurfaceType.Smooth
  28. p1.TopSurface = Enum.SurfaceType.Smooth
  29. b1 = Instance.new("SpecialMesh", p1)
  30. b1.MeshType = Enum.MeshType.Brick
  31. b1.Name = "Mesh"
  32. b1.Scale = Vector3.new(0.5, 1, 2)
  33. p2 = Instance.new("Part", m)
  34. p2.BrickColor = BrickColor.new("Institutional white")
  35. p2.FormFactor = Enum.FormFactor.Custom
  36. p2.Size = Vector3.new(0.200000048, 4.5999999, 0.200000048)
  37. p2.CFrame = CFrame.new(0.0438146591, 5.30618715, -12.6500006, -3.26636873e-005, 4.31581502e-005, -1, 9.29513355e-010, 1, 4.31581502e-005, 1, 4.80190998e-010, -3.26636873e-005)
  38. p2.Anchored = true
  39. p2.BottomSurface = Enum.SurfaceType.Smooth
  40. p2.TopSurface = Enum.SurfaceType.Smooth
  41. b2 = Instance.new("SpecialMesh", p2)
  42. b2.MeshType = Enum.MeshType.Brick
  43. b2.Name = "Mesh"
  44. b2.Scale = Vector3.new(0.300000012, 1.02999997, 2.5)
  45. p3 = Instance.new("Part", m)
  46. p3.BrickColor = BrickColor.new("Institutional white")
  47. p3.Material = Enum.Material.SmoothPlastic
  48. p3.FormFactor = Enum.FormFactor.Custom
  49. p3.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
  50. p3.CFrame = CFrame.new(0.0438141823, 4.10622787, -12.6500053, -6.33001328e-005, 0.707187474, -0.707035959, -2.33650208e-005, 0.707028985, 0.707187533, 1.00000703, 5.63561916e-005, -3.02791595e-005)
  51. p3.Anchored = true
  52. p3.Elasticity = 0
  53. b3 = Instance.new("SpecialMesh", p3)
  54. b3.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  55. b3.TextureId = ""
  56. b3.MeshType = Enum.MeshType.FileMesh
  57. b3.Name = "Mesh"
  58. b3.Scale = Vector3.new(0.189999998, 0.409999996, 0.128000021)
  59. p4 = Instance.new("Part", m)
  60. p4.BrickColor = BrickColor.new("Institutional white")
  61. p4.Material = Enum.Material.SmoothPlastic
  62. p4.FormFactor = Enum.FormFactor.Custom
  63. p4.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
  64. p4.CFrame = CFrame.new(0.0438203812, 4.10622072, -12.6500025, -0.000189896455, 0.707036138, 0.70717746, 6.99744051e-005, -0.70717746, 0.707036078, 1, 0.000183747979, 8.48160562e-005)
  65. p4.Anchored = true
  66. p4.Elasticity = 0
  67. b4 = Instance.new("SpecialMesh", p4)
  68. b4.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  69. b4.TextureId = ""
  70. b4.MeshType = Enum.MeshType.FileMesh
  71. b4.Name = "Mesh"
  72. b4.Scale = Vector3.new(0.187999964, 0.409999996, 0.128000021)
  73. p5 = Instance.new("Part", m)
  74. p5.BrickColor = BrickColor.new("Institutional white")
  75. p5.Material = Enum.Material.SmoothPlastic
  76. p5.FormFactor = Enum.FormFactor.Custom
  77. p5.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
  78. p5.CFrame = CFrame.new(0.0438168049, 3.70622635, -12.6500053, -6.33001328e-005, 0.707187474, -0.707035959, -2.33650208e-005, 0.707028985, 0.707187533, 1.00000703, 5.63561916e-005, -3.02791595e-005)
  79. p5.Anchored = true
  80. p5.Elasticity = 0
  81. b5 = Instance.new("SpecialMesh", p5)
  82. b5.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  83. b5.TextureId = ""
  84. b5.MeshType = Enum.MeshType.FileMesh
  85. b5.Name = "Mesh"
  86. b5.Scale = Vector3.new(0.189999998, 0.409999996, 0.128000021)
  87. p6 = Instance.new("Part", m)
  88. p6.BrickColor = BrickColor.new("Institutional white")
  89. p6.Material = Enum.Material.SmoothPlastic
  90. p6.FormFactor = Enum.FormFactor.Custom
  91. p6.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
  92. p6.CFrame = CFrame.new(0.0438168049, 3.70622683, -12.6499987, -0.000189896455, 0.707036138, 0.70717746, 6.99744051e-005, -0.70717746, 0.707036078, 1, 0.000183747979, 8.48160562e-005)
  93. p6.Anchored = true
  94. p6.Elasticity = 0
  95. b6 = Instance.new("SpecialMesh", p6)
  96. b6.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  97. b6.TextureId = ""
  98. b6.MeshType = Enum.MeshType.FileMesh
  99. b6.Name = "Mesh"
  100. b6.Scale = Vector3.new(0.187999964, 0.409999996, 0.128000021)
  101. p7 = Instance.new("Part", m)
  102. p7.BrickColor = BrickColor.new("Institutional white")
  103. p7.Material = Enum.Material.SmoothPlastic
  104. p7.FormFactor = Enum.FormFactor.Custom
  105. p7.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
  106. p7.CFrame = CFrame.new(0.0438168049, 3.70622635, -12.6500053, -6.33001328e-005, 0.707187474, -0.707035959, -2.33650208e-005, 0.707028985, 0.707187533, 1.00000703, 5.63561916e-005, -3.02791595e-005)
  107. p7.Anchored = true
  108. p7.Elasticity = 0
  109. b7 = Instance.new("SpecialMesh", p7)
  110. b7.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  111. b7.TextureId = ""
  112. b7.MeshType = Enum.MeshType.FileMesh
  113. b7.Name = "Mesh"
  114. b7.Scale = Vector3.new(0.189999998, 0.409999996, 0.128000021)
  115. p8 = Instance.new("Part", m)
  116. p8.BrickColor = BrickColor.new("Institutional white")
  117. p8.Material = Enum.Material.SmoothPlastic
  118. p8.FormFactor = Enum.FormFactor.Custom
  119. p8.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
  120. p8.CFrame = CFrame.new(0.0438168049, 3.70622683, -12.6499987, -0.000189896455, 0.707036138, 0.70717746, 6.99744051e-005, -0.70717746, 0.707036078, 1, 0.000183747979, 8.48160562e-005)
  121. p8.Anchored = true
  122. p8.Elasticity = 0
  123. b8 = Instance.new("SpecialMesh", p8)
  124. b8.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  125. b8.TextureId = ""
  126. b8.MeshType = Enum.MeshType.FileMesh
  127. b8.Name = "Mesh"
  128. b8.Scale = Vector3.new(0.187999964, 0.409999996, 0.128000021)
  129. p9 = Instance.new("Part", m)
  130. p9.BrickColor = BrickColor.new("Institutional white")
  131. p9.Material = Enum.Material.SmoothPlastic
  132. p9.FormFactor = Enum.FormFactor.Custom
  133. p9.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
  134. p9.CFrame = CFrame.new(0.0438184738, 3.30622506, -12.6500044, -0.000189896455, 0.707036138, 0.70717746, 6.99744051e-005, -0.70717746, 0.707036078, 1, 0.000183747979, 8.48160562e-005)
  135. p9.Anchored = true
  136. p9.Elasticity = 0
  137. b9 = Instance.new("SpecialMesh", p9)
  138. b9.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  139. b9.TextureId = ""
  140. b9.MeshType = Enum.MeshType.FileMesh
  141. b9.Name = "Mesh"
  142. b9.Scale = Vector3.new(0.187999964, 0.409999996, 0.128000021)
  143. p10 = Instance.new("Part", m)
  144. p10.BrickColor = BrickColor.new("Institutional white")
  145. p10.Material = Enum.Material.SmoothPlastic
  146. p10.FormFactor = Enum.FormFactor.Custom
  147. p10.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
  148. p10.CFrame = CFrame.new(0.0438120365, 3.30622482, -12.6500044, -6.33001328e-005, 0.707187474, -0.707035959, -2.33650208e-005, 0.707028985, 0.707187533, 1.00000703, 5.63561916e-005, -3.02791595e-005)
  149. p10.Anchored = true
  150. p10.Elasticity = 0
  151. b10 = Instance.new("SpecialMesh", p10)
  152. b10.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  153. b10.TextureId = ""
  154. b10.MeshType = Enum.MeshType.FileMesh
  155. b10.Name = "Mesh"
  156. b10.Scale = Vector3.new(0.189999998, 0.409999996, 0.128000021)
  157. p11 = Instance.new("Part", m)
  158. p11.BrickColor = BrickColor.new("Institutional white")
  159. p11.FormFactor = Enum.FormFactor.Custom
  160. p11.Size = Vector3.new(0.300000012, 0.300000012, 0.300000012)
  161. p11.CFrame = CFrame.new(0.0438146591, 2.8561902, -12.6500006, -1, 3.05171125e-005, 3.05180438e-005, 3.05180438e-005, 1, 3.05171125e-005, -3.05171125e-005, 3.05180438e-005, -1)
  162. p11.Anchored = true
  163. p11.BottomSurface = Enum.SurfaceType.Smooth
  164. p11.TopSurface = Enum.SurfaceType.Smooth
  165. b11 = Instance.new("SpecialMesh", p11)
  166. b11.MeshId = "http://www.roblox.com/asset/?id=3270017"
  167. b11.TextureId = ""
  168. b11.MeshType = Enum.MeshType.FileMesh
  169. b11.Name = "Mesh"
  170. b11.Scale = Vector3.new(0.449999988, 0.449999988, 1)
  171. p12 = Instance.new("Part", m)
  172. p12.BrickColor = BrickColor.new("Really black")
  173. p12.FormFactor = Enum.FormFactor.Custom
  174. p12.Size = Vector3.new(0.300000012, 0.300000012, 0.300000012)
  175. p12.CFrame = CFrame.new(0.0438222885, 2.8561902, -12.6500006, -1, 3.05171125e-005, 3.05180438e-005, 3.05180438e-005, 1, 3.05171125e-005, -3.05171125e-005, 3.05180438e-005, -1)
  176. p12.Anchored = true
  177. p12.BottomSurface = Enum.SurfaceType.Smooth
  178. p12.TopSurface = Enum.SurfaceType.Smooth
  179. b12 = Instance.new("SpecialMesh", p12)
  180. b12.MeshId = "http://www.roblox.com/asset/?id=3270017"
  181. b12.TextureId = ""
  182. b12.MeshType = Enum.MeshType.FileMesh
  183. b12.Name = "Mesh"
  184. b12.Scale = Vector3.new(0.400000006, 0.400000006, 1)
  185. p13 = Instance.new("Part", m)
  186. p13.BrickColor = BrickColor.new("Institutional white")
  187. p13.FormFactor = Enum.FormFactor.Custom
  188. p13.Size = Vector3.new(0.300000012, 0.300000012, 0.300000012)
  189. p13.CFrame = CFrame.new(0.0438146591, 2.65619326, -12.6500006, -1, 3.05171125e-005, 3.05180438e-005, 3.05180438e-005, 1, 3.05171125e-005, -3.05171125e-005, 3.05180438e-005, -1)
  190. p13.Anchored = true
  191. p13.BottomSurface = Enum.SurfaceType.Smooth
  192. p13.TopSurface = Enum.SurfaceType.Smooth
  193. b13 = Instance.new("SpecialMesh", p13)
  194. b13.MeshId = "http://www.roblox.com/asset/?id=3270017"
  195. b13.TextureId = ""
  196. b13.MeshType = Enum.MeshType.FileMesh
  197. b13.Name = "Mesh"
  198. b13.Scale = Vector3.new(0.449999988, 0.449999988, 1)
  199. p14 = Instance.new("Part", m)
  200. p14.BrickColor = BrickColor.new("Institutional white")
  201. p14.FormFactor = Enum.FormFactor.Custom
  202. p14.Size = Vector3.new(0.300000012, 0.300000012, 0.300000012)
  203. p14.CFrame = CFrame.new(-0.256180763, 2.75619173, -12.6500006, -1, 3.05171125e-005, 3.05180438e-005, 3.05180438e-005, 1, 3.05171125e-005, -3.05171125e-005, 3.05180438e-005, -1)
  204. p14.Anchored = true
  205. p14.BottomSurface = Enum.SurfaceType.Smooth
  206. p14.TopSurface = Enum.SurfaceType.Smooth
  207. b14 = Instance.new("SpecialMesh", p14)
  208. b14.MeshId = "http://www.roblox.com/asset/?id=3270017"
  209. b14.TextureId = ""
  210. b14.MeshType = Enum.MeshType.FileMesh
  211. b14.Name = "Mesh"
  212. b14.Scale = Vector3.new(0.449999988, 0.449999988, 1)
  213. p15 = Instance.new("Part", m)
  214. p15.BrickColor = BrickColor.new("Institutional white")
  215. p15.FormFactor = Enum.FormFactor.Custom
  216. p15.Size = Vector3.new(0.300000012, 0.300000012, 0.300000012)
  217. p15.CFrame = CFrame.new(0.343817711, 2.75619173, -12.6500015, -1, 3.05171125e-005, 3.05180438e-005, 3.05180438e-005, 1, 3.05171125e-005, -3.05171125e-005, 3.05180438e-005, -1)
  218. p15.Anchored = true
  219. p15.BottomSurface = Enum.SurfaceType.Smooth
  220. p15.TopSurface = Enum.SurfaceType.Smooth
  221. b15 = Instance.new("SpecialMesh", p15)
  222. b15.MeshId = "http://www.roblox.com/asset/?id=3270017"
  223. b15.TextureId = ""
  224. b15.MeshType = Enum.MeshType.FileMesh
  225. b15.Name = "Mesh"
  226. b15.Scale = Vector3.new(0.449999988, 0.449999988, 1)
  227. p16 = Instance.new("Part", m)
  228. p16.BrickColor = BrickColor.new("Really black")
  229. p16.FormFactor = Enum.FormFactor.Custom
  230. p16.Size = Vector3.new(0.300000012, 0.300000012, 0.300000012)
  231. p16.CFrame = CFrame.new(-0.256180763, 2.75619173, -12.6500006, -1, 3.05171125e-005, 3.05180438e-005, 3.05180438e-005, 1, 3.05171125e-005, -3.05171125e-005, 3.05180438e-005, -1)
  232. p16.Anchored = true
  233. p16.BottomSurface = Enum.SurfaceType.Smooth
  234. p16.TopSurface = Enum.SurfaceType.Smooth
  235. b16 = Instance.new("SpecialMesh", p16)
  236. b16.MeshId = "http://www.roblox.com/asset/?id=3270017"
  237. b16.TextureId = ""
  238. b16.MeshType = Enum.MeshType.FileMesh
  239. b16.Name = "Mesh"
  240. b16.Scale = Vector3.new(0.400000006, 0.400000006, 1)
  241. p17 = Instance.new("Part", m)
  242. p17.BrickColor = BrickColor.new("Really black")
  243. p17.FormFactor = Enum.FormFactor.Custom
  244. p17.Size = Vector3.new(0.300000012, 0.300000012, 0.300000012)
  245. p17.CFrame = CFrame.new(0.343817711, 2.75619173, -12.6500015, -1, 3.05171125e-005, 3.05180438e-005, 3.05180438e-005, 1, 3.05171125e-005, -3.05171125e-005, 3.05180438e-005, -1)
  246. p17.Anchored = true
  247. p17.BottomSurface = Enum.SurfaceType.Smooth
  248. p17.TopSurface = Enum.SurfaceType.Smooth
  249. b17 = Instance.new("SpecialMesh", p17)
  250. b17.MeshId = "http://www.roblox.com/asset/?id=3270017"
  251. b17.TextureId = ""
  252. b17.MeshType = Enum.MeshType.FileMesh
  253. b17.Name = "Mesh"
  254. b17.Scale = Vector3.new(0.400000006, 0.400000006, 1)
  255. p18 = Instance.new("Part", m)
  256. p18.BrickColor = BrickColor.new("Really black")
  257. p18.FormFactor = Enum.FormFactor.Custom
  258. p18.Size = Vector3.new(0.300000012, 0.300000012, 0.300000012)
  259. p18.CFrame = CFrame.new(0.0438222885, 2.65619326, -12.6500006, -1, 3.05171125e-005, 3.05180438e-005, 3.05180438e-005, 1, 3.05171125e-005, -3.05171125e-005, 3.05180438e-005, -1)
  260. p18.Anchored = true
  261. p18.BottomSurface = Enum.SurfaceType.Smooth
  262. p18.TopSurface = Enum.SurfaceType.Smooth
  263. b18 = Instance.new("SpecialMesh", p18)
  264. b18.MeshId = "http://www.roblox.com/asset/?id=3270017"
  265. b18.TextureId = ""
  266. b18.MeshType = Enum.MeshType.FileMesh
  267. b18.Name = "Mesh"
  268. b18.Scale = Vector3.new(0.400000006, 0.400000006, 1)
  269. p19 = Instance.new("Part", m)
  270. p19.BrickColor = BrickColor.new("Really black")
  271. p19.Shape = Enum.PartType.Cylinder
  272. p19.FormFactor = Enum.FormFactor.Symmetric
  273. p19.Size = Vector3.new(1, 1, 1)
  274. p19.CFrame = CFrame.new(0.0438141823, 2.35618997, -12.6500006, -9.15499404e-005, 2.79379719e-009, -1, -1, 0, 9.15499404e-005, 0, 1, 2.79388246e-009)
  275. p19.Anchored = true
  276. p19.BottomSurface = Enum.SurfaceType.Smooth
  277. p19.TopSurface = Enum.SurfaceType.Smooth
  278. b19 = Instance.new("CylinderMesh", p19)
  279. b19.Name = "Mesh"
  280. b19.Scale = Vector3.new(0.299999923, 1, 1)
  281. b20 = Instance.new("SpecialMesh", p19)
  282. b20.MeshType = Enum.MeshType.Cylinder
  283. b20.Name = "Mesh"
  284. b20.Scale = Vector3.new(0.100000001, 0.300000012, 1)
  285. p20 = Instance.new("Part", m)
  286. p20.BrickColor = BrickColor.new("Really black")
  287. p20.Shape = Enum.PartType.Cylinder
  288. p20.FormFactor = Enum.FormFactor.Symmetric
  289. p20.Size = Vector3.new(1, 1, 1)
  290. p20.CFrame = CFrame.new(0.0438141823, 2.20619631, -12.6500044, -6.29425049e-005, -1.58250332e-005, -1.00000381, -0.866024613, -0.500012875, 5.9068203e-005, -0.500009, 0.866024554, 1.20401382e-005)
  291. p20.Anchored = true
  292. p20.BottomSurface = Enum.SurfaceType.Smooth
  293. p20.TopSurface = Enum.SurfaceType.Smooth
  294. b21 = Instance.new("CylinderMesh", p20)
  295. b21.Name = "Mesh"
  296. b21.Scale = Vector3.new(0.299999923, 1, 1)
  297. b22 = Instance.new("SpecialMesh", p20)
  298. b22.MeshType = Enum.MeshType.Cylinder
  299. b22.Name = "Mesh"
  300. b22.Scale = Vector3.new(0.100000001, 0.300000012, 1)
  301. p21 = Instance.new("Part", m)
  302. p21.BrickColor = BrickColor.new("Institutional white")
  303. p21.Shape = Enum.PartType.Cylinder
  304. p21.FormFactor = Enum.FormFactor.Symmetric
  305. p21.Size = Vector3.new(1, 1, 1)
  306. p21.CFrame = CFrame.new(0.0438141823, 2.00619149, -12.6500006, -9.15499404e-005, 2.79379719e-009, -1, -1, 0, 9.15499404e-005, 0, 1, 2.79388246e-009)
  307. p21.Anchored = true
  308. p21.BottomSurface = Enum.SurfaceType.Smooth
  309. p21.TopSurface = Enum.SurfaceType.Smooth
  310. b23 = Instance.new("CylinderMesh", p21)
  311. b23.Name = "Mesh"
  312. b23.Scale = Vector3.new(0.299999923, 1, 1)
  313. b24 = Instance.new("SpecialMesh", p21)
  314. b24.MeshType = Enum.MeshType.Cylinder
  315. b24.Name = "Mesh"
  316. b24.Scale = Vector3.new(1, 0.280000001, 1)
  317. p22 = Instance.new("Part", m)
  318. p22.BrickColor = BrickColor.new("Really black")
  319. p22.Shape = Enum.PartType.Cylinder
  320. p22.FormFactor = Enum.FormFactor.Symmetric
  321. p22.Size = Vector3.new(1, 1, 1)
  322. p22.CFrame = CFrame.new(0.0438141823, 2.10618997, -12.6500006, -9.15499404e-005, 2.79379719e-009, -1, -1, 0, 9.15499404e-005, 0, 1, 2.79388246e-009)
  323. p22.Anchored = true
  324. p22.BottomSurface = Enum.SurfaceType.Smooth
  325. p22.TopSurface = Enum.SurfaceType.Smooth
  326. b25 = Instance.new("CylinderMesh", p22)
  327. b25.Name = "Mesh"
  328. b25.Scale = Vector3.new(0.299999923, 1, 1)
  329. b26 = Instance.new("SpecialMesh", p22)
  330. b26.MeshType = Enum.MeshType.Cylinder
  331. b26.Name = "Mesh"
  332. b26.Scale = Vector3.new(0.100000001, 0.300000012, 1)
  333. p23 = Instance.new("Part", m)
  334. p23.BrickColor = BrickColor.new("Really black")
  335. p23.Shape = Enum.PartType.Cylinder
  336. p23.FormFactor = Enum.FormFactor.Symmetric
  337. p23.Size = Vector3.new(1, 1, 1)
  338. p23.CFrame = CFrame.new(0.0438122749, 2.00619125, -12.6499987, -0.250053704, 0.432997078, 0.866017759, -0.865987062, -0.50006628, -1.85645022e-005, 0.433058202, -0.749964833, 0.500013292)
  339. p23.Anchored = true
  340. p23.BottomSurface = Enum.SurfaceType.Smooth
  341. p23.TopSurface = Enum.SurfaceType.Smooth
  342. b27 = Instance.new("CylinderMesh", p23)
  343. b27.Name = "Mesh"
  344. b27.Scale = Vector3.new(0.299999923, 1, 1)
  345. b28 = Instance.new("SpecialMesh", p23)
  346. b28.MeshType = Enum.MeshType.Cylinder
  347. b28.Name = "Mesh"
  348. b28.Scale = Vector3.new(0.100000001, 0.300000012, 1)
  349. p24 = Instance.new("Part", m)
  350. p24.BrickColor = BrickColor.new("Really black")
  351. p24.Shape = Enum.PartType.Cylinder
  352. p24.FormFactor = Enum.FormFactor.Symmetric
  353. p24.Size = Vector3.new(1, 1, 1)
  354. p24.CFrame = CFrame.new(0.0438141823, 1.90619302, -12.6500006, -9.15499404e-005, 2.79379719e-009, -1, -1, 0, 9.15499404e-005, 0, 1, 2.79388246e-009)
  355. p24.Anchored = true
  356. p24.BottomSurface = Enum.SurfaceType.Smooth
  357. p24.TopSurface = Enum.SurfaceType.Smooth
  358. b29 = Instance.new("CylinderMesh", p24)
  359. b29.Name = "Mesh"
  360. b29.Scale = Vector3.new(0.299999923, 1, 1)
  361. b30 = Instance.new("SpecialMesh", p24)
  362. b30.MeshType = Enum.MeshType.Cylinder
  363. b30.Name = "Mesh"
  364. b30.Scale = Vector3.new(0.100000001, 0.300000012, 1)
  365. p25 = Instance.new("Part", m)
  366. p25.BrickColor = BrickColor.new("Really black")
  367. p25.Shape = Enum.PartType.Cylinder
  368. p25.FormFactor = Enum.FormFactor.Symmetric
  369. p25.Size = Vector3.new(1, 1, 1)
  370. p25.CFrame = CFrame.new(0.0438156128, 1.80618668, -12.6500006, -0.500006676, 0.866021633, 1.11703221e-005, -0.866021633, -0.500006676, 4.16880684e-005, 4.1688003e-005, 1.11705713e-005, 1)
  371. p25.Anchored = true
  372. p25.BottomSurface = Enum.SurfaceType.Smooth
  373. p25.TopSurface = Enum.SurfaceType.Smooth
  374. b31 = Instance.new("CylinderMesh", p25)
  375. b31.Name = "Mesh"
  376. b31.Scale = Vector3.new(0.299999923, 1, 1)
  377. b32 = Instance.new("SpecialMesh", p25)
  378. b32.MeshType = Enum.MeshType.Cylinder
  379. b32.Name = "Mesh"
  380. b32.Scale = Vector3.new(0.100000001, 0.300000012, 1)
  381. p26 = Instance.new("Part", m)
  382. p26.BrickColor = BrickColor.new("Really black")
  383. p26.Shape = Enum.PartType.Cylinder
  384. p26.FormFactor = Enum.FormFactor.Symmetric
  385. p26.Size = Vector3.new(1, 1, 1)
  386. p26.CFrame = CFrame.new(0.0438146591, 1.70618844, -12.6500006, -9.15499404e-005, 2.79379719e-009, -1, -1, 0, 9.15499404e-005, 0, 1, 2.79388246e-009)
  387. p26.Anchored = true
  388. p26.BottomSurface = Enum.SurfaceType.Smooth
  389. p26.TopSurface = Enum.SurfaceType.Smooth
  390. b33 = Instance.new("CylinderMesh", p26)
  391. b33.Name = "Mesh"
  392. b33.Scale = Vector3.new(0.299999923, 1, 1)
  393. b34 = Instance.new("SpecialMesh", p26)
  394. b34.MeshType = Enum.MeshType.Cylinder
  395. b34.Name = "Mesh"
  396. b34.Scale = Vector3.new(0.100000001, 0.300000012, 1)
  397. p27 = Instance.new("Part", m)
  398. p27.BrickColor = BrickColor.new("Really black")
  399. p27.Shape = Enum.PartType.Cylinder
  400. p27.FormFactor = Enum.FormFactor.Symmetric
  401. p27.Size = Vector3.new(1, 1, 1)
  402. p27.CFrame = CFrame.new(0.0438148975, 1.6061902, -12.6500006, 0.258778095, 4.58896739e-006, -0.96593684, -0.96593678, 1.22940298e-006, -0.258778095, 0, 1, 4.75079469e-006)
  403. p27.Anchored = true
  404. p27.BottomSurface = Enum.SurfaceType.Smooth
  405. p27.TopSurface = Enum.SurfaceType.Smooth
  406. b35 = Instance.new("CylinderMesh", p27)
  407. b35.Name = "Mesh"
  408. b35.Scale = Vector3.new(0.299999923, 1, 1)
  409. b36 = Instance.new("SpecialMesh", p27)
  410. b36.MeshType = Enum.MeshType.Cylinder
  411. b36.Name = "Mesh"
  412. b36.Scale = Vector3.new(0.100000001, 0.300000012, 1)
  413. p28 = Instance.new("Part", m)
  414. p28.BrickColor = BrickColor.new("Really black")
  415. p28.Shape = Enum.PartType.Cylinder
  416. p28.FormFactor = Enum.FormFactor.Symmetric
  417. p28.Size = Vector3.new(1, 1, 1)
  418. p28.CFrame = CFrame.new(0.0438141823, 1.50619149, -12.6500006, -9.15499404e-005, 2.79379719e-009, -1, -1, 0, 9.15499404e-005, 0, 1, 2.79388246e-009)
  419. p28.Anchored = true
  420. p28.BottomSurface = Enum.SurfaceType.Smooth
  421. p28.TopSurface = Enum.SurfaceType.Smooth
  422. b37 = Instance.new("CylinderMesh", p28)
  423. b37.Name = "Mesh"
  424. b37.Scale = Vector3.new(0.299999923, 1, 1)
  425. b38 = Instance.new("SpecialMesh", p28)
  426. b38.MeshType = Enum.MeshType.Cylinder
  427. b38.Name = "Mesh"
  428. b38.Scale = Vector3.new(0.100000001, 0.25, 1)
  429. p29 = Instance.new("Part", m)
  430. p29.BrickColor = BrickColor.new("Institutional white")
  431. p29.FormFactor = Enum.FormFactor.Custom
  432. p29.Size = Vector3.new(0.300000012, 0.300000012, 0.300000012)
  433. p29.CFrame = CFrame.new(0.0438146591, 1.25618386, -12.6500006, -1, 3.05171125e-005, 3.05180438e-005, 3.05180438e-005, 1, 3.05171125e-005, -3.05171125e-005, 3.05180438e-005, -1)
  434. p29.Anchored = true
  435. p29.BottomSurface = Enum.SurfaceType.Smooth
  436. p29.TopSurface = Enum.SurfaceType.Smooth
  437. b39 = Instance.new("SpecialMesh", p29)
  438. b39.MeshId = "http://www.roblox.com/asset/?id=3270017"
  439. b39.TextureId = ""
  440. b39.MeshType = Enum.MeshType.FileMesh
  441. b39.Name = "Mesh"
  442. b39.Scale = Vector3.new(0.5, 0.5, 1)
  443. p30 = Instance.new("Part", m)
  444. p30.BrickColor = BrickColor.new("Really black")
  445. p30.FormFactor = Enum.FormFactor.Custom
  446. p30.Size = Vector3.new(0.300000012, 0.300000012, 0.300000012)
  447. p30.CFrame = CFrame.new(0.0438148975, 1.25619149, -12.6500006, -1, 3.05171125e-005, 3.05180438e-005, 3.05180438e-005, 1, 3.05171125e-005, -3.05171125e-005, 3.05180438e-005, -1)
  448. p30.Anchored = true
  449. p30.BottomSurface = Enum.SurfaceType.Smooth
  450. p30.TopSurface = Enum.SurfaceType.Smooth
  451. b40 = Instance.new("SpecialMesh", p30)
  452. b40.MeshId = "http://www.roblox.com/asset/?id=3270017"
  453. b40.TextureId = ""
  454. b40.MeshType = Enum.MeshType.FileMesh
  455. b40.Name = "Mesh"
  456. b40.Scale = Vector3.new(0.449999988, 0.449999988, 1)
  457. m.Parent = Char
  458.  
  459.  
  460. local mw = Instance.new("Model")
  461. mw.Name = "Wings"
  462. m1 = Instance.new("Model")
  463. m1.Name = "wing1"
  464. m1.Parent = mw
  465. m2 = Instance.new("Model")
  466. m2.Name = "wing2"
  467. m2.Parent = mw
  468. p1 = Instance.new("Part", m1)
  469. p1.BrickColor = BrickColor.new("Really black")
  470. p1.Material = Enum.Material.SmoothPlastic
  471. p1.Transparency = 1
  472. p1.Name = "swabby"
  473. p1.CFrame = CFrame.new(28.221529, 3.08749795, 65.2934189, 0.500065207, -0.865987778, -3.4978475e-005, 0.749960601, 0.433085412, -0.499996215, 0.43300578, 0.25000447, 0.866027594)
  474. p1.Anchored = true
  475. p1.FormFactor = Enum.FormFactor.Custom
  476. p1.Size = Vector3.new(2.20000005, 0.300000012, 0.300000012)
  477. p1.BottomSurface = Enum.SurfaceType.Smooth
  478. p1.TopSurface = Enum.SurfaceType.Smooth
  479. p2 = Instance.new("Part", m1)
  480. p2.BrickColor = BrickColor.new("Really black")
  481. p2.Material = Enum.Material.SmoothPlastic
  482. p2.Transparency = 1
  483. p2.CFrame = CFrame.new(32.8597641, 3.62613487, 66.7119141, 0.981190026, -0.138223708, 0.13475275, 0.133579195, 0.990105927, 0.0429623723, -0.139358163, -0.0241530985, 0.989946902)
  484. p2.Anchored = true
  485. p2.FormFactor = Enum.FormFactor.Custom
  486. p2.Size = Vector3.new(0.5, 2.69999981, 0.399999976)
  487. p2.BottomSurface = Enum.SurfaceType.Smooth
  488. p2.TopSurface = Enum.SurfaceType.Smooth
  489. b1 = Instance.new("SpecialMesh", p2)
  490. b1.MeshType = Enum.MeshType.Brick
  491. b1.Name = "Mesh"
  492. b1.Scale = Vector3.new(0.299999923, 1, 0.299999893)
  493. p3 = Instance.new("Part", m1)
  494. p3.BrickColor = BrickColor.new("Really black")
  495. p3.Material = Enum.Material.SmoothPlastic
  496. p3.Transparency = 1
  497. p3.CFrame = CFrame.new(31.7640572, 3.33884311, 66.715683, 0.97005409, -0.242377147, 0.0156476386, 0.240812525, 0.968183577, 0.0680160224, -0.0316362567, -0.0622107349, 0.997561395)
  498. p3.Anchored = true
  499. p3.FormFactor = Enum.FormFactor.Custom
  500. p3.Size = Vector3.new(0.5, 3.5999999, 0.399999976)
  501. p3.BottomSurface = Enum.SurfaceType.Smooth
  502. p3.TopSurface = Enum.SurfaceType.Smooth
  503. b2 = Instance.new("SpecialMesh", p3)
  504. b2.MeshType = Enum.MeshType.Brick
  505. b2.Name = "Mesh"
  506. b2.Scale = Vector3.new(0.299999923, 1, 0.299999893)
  507. p4 = Instance.new("Part", m1)
  508. p4.BrickColor = BrickColor.new("Really black")
  509. p4.Material = Enum.Material.SmoothPlastic
  510. p4.Transparency = 1
  511. p4.CFrame = CFrame.new(29.1000061, 4.03660202, 65.8499908, 0.866040468, -0.499973893, -5.1980147e-005, 0.432973981, 0.750037253, -0.499977767, 0.250014782, 0.432978451, 0.866038322)
  512. p4.Anchored = true
  513. p4.FormFactor = Enum.FormFactor.Custom
  514. p4.Size = Vector3.new(0.899999976, 0.300000012, 0.300000012)
  515. p4.BottomSurface = Enum.SurfaceType.Smooth
  516. p4.TopSurface = Enum.SurfaceType.Smooth
  517. p5 = Instance.new("Part", m1)
  518. p5.BrickColor = BrickColor.new("Really black")
  519. p5.Material = Enum.Material.SmoothPlastic
  520. p5.Transparency = 1
  521. p5.CFrame = CFrame.new(30.5597649, 3.22613502, 66.411911, 0.891023576, -0.453955591, -6.15231693e-005, 0.438498497, 0.860649526, 0.258843005, -0.117451012, -0.230662003, 0.965919197)
  522. p5.Anchored = true
  523. p5.FormFactor = Enum.FormFactor.Custom
  524. p5.Size = Vector3.new(0.5, 2.69999981, 0.399999976)
  525. p5.BottomSurface = Enum.SurfaceType.Smooth
  526. p5.TopSurface = Enum.SurfaceType.Smooth
  527. b3 = Instance.new("SpecialMesh", p5)
  528. b3.MeshType = Enum.MeshType.Brick
  529. b3.Name = "Mesh"
  530. b3.Scale = Vector3.new(0.299999923, 1, 0.299999893)
  531. p6 = Instance.new("Part", m1)
  532. p6.BrickColor = BrickColor.new("Really black")
  533. p6.Material = Enum.Material.SmoothPlastic
  534. p6.Transparency = 1
  535. p6.CFrame = CFrame.new(30.5276604, 4.80992603, 66.3257141, 0.839243114, -0.543269575, -0.0230075158, 0.466465414, 0.741049647, -0.48296535, 0.279430062, 0.39459312, 0.875337183)
  536. p6.Anchored = true
  537. p6.FormFactor = Enum.FormFactor.Custom
  538. p6.Size = Vector3.new(2.60000014, 0.300000012, 0.300000012)
  539. p6.BottomSurface = Enum.SurfaceType.Smooth
  540. p6.TopSurface = Enum.SurfaceType.Smooth
  541. p7 = Instance.new("Part", m1)
  542. p7.BrickColor = BrickColor.new("Really black")
  543. p7.Material = Enum.Material.SmoothPlastic
  544. p7.Transparency = 1
  545. p7.CFrame = CFrame.new(32.7728691, 5.017416, 66.6116638, 0.961257279, 0.266243845, -0.071376808, -0.274140328, 0.896381021, -0.348335385, -0.02876647, 0.354407489, 0.934644938)
  546. p7.Anchored = true
  547. p7.FormFactor = Enum.FormFactor.Custom
  548. p7.Size = Vector3.new(2.5999999, 0.400000006, 0.300000042)
  549. p7.BottomSurface = Enum.SurfaceType.Smooth
  550. p7.TopSurface = Enum.SurfaceType.Smooth
  551. p8 = Instance.new("Part", m1)
  552. p8.BrickColor = BrickColor.new("Really black")
  553. p8.Material = Enum.Material.SmoothPlastic
  554. p8.Transparency = 1
  555. p8.CFrame = CFrame.new(29.5640564, 2.23884296, 66.015686, 0.956129313, -0.292690933, 0.0120926294, 0.291226387, 0.95418328, 0.0686937049, -0.0316451639, -0.0621581897, 0.997564435)
  556. p8.Anchored = true
  557. p8.FormFactor = Enum.FormFactor.Custom
  558. p8.Size = Vector3.new(0.5, 3.5999999, 0.399999976)
  559. p8.BottomSurface = Enum.SurfaceType.Smooth
  560. p8.TopSurface = Enum.SurfaceType.Smooth
  561. b4 = Instance.new("SpecialMesh", p8)
  562. b4.MeshType = Enum.MeshType.Brick
  563. b4.Name = "Mesh"
  564. b4.Scale = Vector3.new(0.299999923, 1, 0.299999893)
  565. p9 = Instance.new("Part", m2)
  566. p9.BrickColor = BrickColor.new("Really black")
  567. p9.Material = Enum.Material.SmoothPlastic
  568. p9.Transparency = 1
  569. p9.CFrame = CFrame.new(24.6597633, 3.22613502, 66.411911, 0.894092023, 0.39874354, 0.203957587, -0.432194024, 0.88758713, 0.15935117, -0.117488086, -0.230625331, 0.965922952)
  570. p9.Anchored = true
  571. p9.FormFactor = Enum.FormFactor.Custom
  572. p9.Size = Vector3.new(0.5, 2.69999981, 0.399999976)
  573. p9.BottomSurface = Enum.SurfaceType.Smooth
  574. p9.TopSurface = Enum.SurfaceType.Smooth
  575. b5 = Instance.new("SpecialMesh", p9)
  576. b5.MeshType = Enum.MeshType.Brick
  577. b5.Name = "Mesh"
  578. b5.Scale = Vector3.new(0.299999923, 1, 0.299999893)
  579. p10 = Instance.new("Part", m2)
  580. p10.BrickColor = BrickColor.new("Really black")
  581. p10.Material = Enum.Material.SmoothPlastic
  582. p10.Transparency = 1
  583. p10.CFrame = CFrame.new(25.851799, 4.03660202, 65.875351, -0.866004705, -0.500035882, 2.58785476e-005, 0.4330374, -0.749996781, -0.4999834, 0.250029057, -0.432976753, 0.866034985)
  584. p10.Anchored = true
  585. p10.FormFactor = Enum.FormFactor.Custom
  586. p10.Size = Vector3.new(0.899999976, 0.300000012, 0.300000012)
  587. p10.BottomSurface = Enum.SurfaceType.Smooth
  588. p10.TopSurface = Enum.SurfaceType.Smooth
  589. p11 = Instance.new("Part", m2)
  590. p11.BrickColor = BrickColor.new("Really black")
  591. p11.Material = Enum.Material.SmoothPlastic
  592. p11.Transparency = 1
  593. p11.CFrame = CFrame.new(25.5640564, 2.23884296, 65.9156799, 0.984139502, 0.172361895, 0.0419539548, -0.174551085, 0.983067989, 0.0557539612, -0.0316334926, -0.0621929318, 0.997562647)
  594. p11.Anchored = true
  595. p11.FormFactor = Enum.FormFactor.Custom
  596. p11.Size = Vector3.new(0.5, 3.5999999, 0.399999976)
  597. p11.BottomSurface = Enum.SurfaceType.Smooth
  598. p11.TopSurface = Enum.SurfaceType.Smooth
  599. b6 = Instance.new("SpecialMesh", p11)
  600. b6.MeshType = Enum.MeshType.Brick
  601. b6.Name = "Mesh"
  602. b6.Scale = Vector3.new(0.299999923, 1, 0.299999893)
  603. p12 = Instance.new("Part", m2)
  604. p12.BrickColor = BrickColor.new("Really black")
  605. p12.Material = Enum.Material.SmoothPlastic
  606. p12.Transparency = 1
  607. p12.CFrame = CFrame.new(21.9597626, 3.62613487, 67.2119064, 0.974458814, 0.174458876, 0.141394794, -0.176118717, 0.984368086, -0.000787748024, -0.139321893, -0.0241354425, 0.989952624)
  608. p12.Anchored = true
  609. p12.FormFactor = Enum.FormFactor.Custom
  610. p12.Size = Vector3.new(0.5, 2.69999981, 0.399999976)
  611. p12.BottomSurface = Enum.SurfaceType.Smooth
  612. p12.TopSurface = Enum.SurfaceType.Smooth
  613. b7 = Instance.new("SpecialMesh", p12)
  614. b7.MeshType = Enum.MeshType.Brick
  615. b7.Name = "Mesh"
  616. b7.Scale = Vector3.new(0.299999923, 1, 0.299999893)
  617. p13 = Instance.new("Part", m2)
  618. p13.BrickColor = BrickColor.new("Really black")
  619. p13.Material = Enum.Material.SmoothPlastic
  620. p13.Transparency = 1
  621. p13.CFrame = CFrame.new(22.0730019, 5.01699877, 67.1900024, 0.877745152, -0.351431221, 0.325657636, 0.421366543, 0.889733076, -0.175554335, -0.228050441, 0.29131633, 0.929044664)
  622. p13.Anchored = true
  623. p13.FormFactor = Enum.FormFactor.Custom
  624. p13.Size = Vector3.new(2.5999999, 0.400000006, 0.300000042)
  625. p13.BottomSurface = Enum.SurfaceType.Smooth
  626. p13.TopSurface = Enum.SurfaceType.Smooth
  627. p14 = Instance.new("Part", m2)
  628. p14.BrickColor = BrickColor.new("Really black")
  629. p14.Material = Enum.Material.SmoothPlastic
  630. p14.Transparency = 1
  631. p14.CFrame = CFrame.new(23.2640572, 3.43884397, 66.715683, 0.965184987, 0.257365376, 0.0466622338, -0.259638876, 0.964311302, 0.0518425517, -0.0316536501, -0.0621535219, 0.997564375)
  632. p14.Anchored = true
  633. p14.FormFactor = Enum.FormFactor.Custom
  634. p14.Size = Vector3.new(0.5, 3.5999999, 0.399999976)
  635. p14.BottomSurface = Enum.SurfaceType.Smooth
  636. p14.TopSurface = Enum.SurfaceType.Smooth
  637. b8 = Instance.new("SpecialMesh", p14)
  638. b8.MeshType = Enum.MeshType.Brick
  639. b8.Name = "Mesh"
  640. b8.Scale = Vector3.new(0.299999923, 1, 0.299999893)
  641. p15 = Instance.new("Part", m2)
  642. p15.BrickColor = BrickColor.new("Really black")
  643. p15.Material = Enum.Material.SmoothPlastic
  644. p15.Transparency = 1
  645. p15.Name = "collio"
  646. p15.CFrame = CFrame.new(26.721529, 3.08749795, 65.2934189, -0.500057757, -0.865992069, 3.56845521e-005, 0.749975026, -0.43308562, -0.49997431, 0.43298921, -0.249989271, 0.866040289)
  647. p15.Anchored = true
  648. p15.FormFactor = Enum.FormFactor.Custom
  649. p15.Size = Vector3.new(2.20000005, 0.300000012, 0.300000012)
  650. p15.BottomSurface = Enum.SurfaceType.Smooth
  651. p15.TopSurface = Enum.SurfaceType.Smooth
  652. p16 = Instance.new("Part", m2)
  653. p16.BrickColor = BrickColor.new("Really black")
  654. p16.Material = Enum.Material.SmoothPlastic
  655. p16.Transparency = 1
  656. p16.CFrame = CFrame.new(24.3072205, 4.88802481, 66.4599915, -0.82717216, -0.558397651, 0.0630738288, 0.457648247, -0.734522939, -0.501033068, 0.326104909, -0.385574937, 0.863126576)
  657. p16.Anchored = true
  658. p16.FormFactor = Enum.FormFactor.Custom
  659. p16.Size = Vector3.new(3, 0.300000012, 0.300000012)
  660. p16.BottomSurface = Enum.SurfaceType.Smooth
  661. p16.TopSurface = Enum.SurfaceType.Smooth
  662.  
  663. function stick(x, y)
  664. weld = Instance.new("Motor")
  665. weld.Name='m'
  666. weld.Part0 = x
  667. weld.Part1 = y
  668. local HitPos = x.Position
  669. local CJ = CFrame.new(HitPos)
  670. local C0 = x.CFrame:inverse() *CJ
  671. local C1 = y.CFrame:inverse() * CJ
  672. weld.C0 = C0
  673. weld.C1 = C1
  674. weld.Parent = x
  675. end
  676. c = m1:children()
  677. for n = 1, #c do
  678. if (c[n].className == "Part") then
  679. if (c[n].Name ~= "MainPart") then
  680. stick(c[n], m1.swabby)
  681. wait()
  682. c[n].Anchored = false
  683. end
  684. end
  685. end
  686. c = m2:children()
  687. for n = 1, #c do
  688. if (c[n].className == "Part") then
  689. if (c[n].Name ~= "MainPart") then
  690. stick(c[n], m2.collio)
  691. wait()
  692. c[n].Anchored = false
  693. end
  694. end
  695. end
  696. function weld(p0,p1,c0)
  697. local w=Instance.new("Motor",p0)
  698. w.Part0=p0
  699. w.Part1=p1
  700. w.C1=c0
  701. return w
  702. end
  703. mw.Parent = Char
  704. weld(Char.Torso,m1.swabby,CFrame.new(-2,0,0)*CFrame.Angles(-math.rad(30),math.rad(30),-math.rad(40)))
  705. weld(Char.Torso,m2.collio,CFrame.new(-2,0,0)*CFrame.Angles(math.rad(30),math.rad(30),math.pi+math.rad(40)))
  706.  
  707. local HitDB = {}
  708.  
  709. for i,v in pairs(m:GetChildren()) do
  710. if v.CFrame.Y > p22.CFrame.Y+1 then
  711. v.Touched:connect(function(Hit)
  712. if Slashing == true and Hit.Parent:FindFirstChild("Humanoid") and Hit.Parent.Humanoid ~= Humanoid and HitDB[Hit.Parent.Humanoid] == nil then
  713. HitDB[Hit.Parent.Humanoid] = true
  714. Hit.Parent.Humanoid:TakeDamage(math.random(45,50))
  715. wait(0.75)
  716. HitDB[Hit.Parent.Humanoid] = nil
  717. end
  718. end)
  719. end
  720. end
  721.  
  722.  
  723. local Welds = {}
  724.  
  725. local Handle = p22
  726. for i,v in pairs(m:GetChildren()) do
  727. if v:IsA("BasePart") and v ~= Handle then
  728. local Weld = Instance.new("Motor6D")
  729. Weld.Part0 = Handle
  730. Weld.Part1 = v
  731. Weld.C0 = CFrame.new()
  732. Weld.C1 = v.CFrame:inverse() * Handle.CFrame
  733. Weld.Parent = v
  734. v.CanCollide = false
  735. v.Anchored = false
  736. Welds[Weld] = Weld
  737. end
  738. end
  739. Handle.CanCollide = false
  740. Handle.Anchored = false
  741.  
  742. function ByeAnim(M)
  743. for i,v in pairs(M:GetChildren()) do
  744. if v:IsA("Animation") then
  745. v.AnimationId = ""
  746. elseif v:IsA("StringValue") then
  747. v.Value = ""
  748. end
  749. ByeAnim(v)
  750. end
  751. end
  752.  
  753. ByeAnim(Char)
  754.  
  755. Char.Animate.Disabled = true
  756. Char.Animate.Disabled = false
  757.  
  758. function ByeWelds(M)
  759. for i,v in pairs(M:GetChildren()) do
  760. if v:IsA("Weld") and Welds[v] == nil then
  761. v.Part0 = nil
  762. v.Part1 = nil
  763. v:Destroy()
  764. end
  765. ByeWelds(v)
  766. end
  767. end
  768.  
  769. --ByeWelds(Char)
  770.  
  771. local HandWeld = Instance.new("Weld",Handle)
  772. HandWeld.Part0 = RightArm
  773. HandWeld.Part1 = Handle
  774. HandWeld.C0 = CFrame.new(0,-1,-0.15)*CFrame.Angles(math.rad(90),0,math.rad(90))
  775. Welds[HandWeld] = HandWeld
  776.  
  777. local HeadWeld = Instance.new("Weld",Handle)
  778. HeadWeld.Part0 = Torso
  779. HeadWeld.Part1 = Head
  780. HeadWeld.C0 = CFrame.new(0,1,0)
  781. HeadWeld.C1 = CFrame.new(0,-0.5,0)
  782. local HWCFr = CFrame.new(0,0,0)
  783. local HWSpeed = 0.1
  784. Welds[HeadWeld] = HeadWeld
  785.  
  786. local TorsoWeld = Instance.new("Weld",Handle)
  787. TorsoWeld.Part0 = Torso2
  788. TorsoWeld.Part1 = Torso
  789. TorsoWeld.C0 = CFrame.new(0,-1,0)
  790. TorsoWeld.C1 = CFrame.new(0,-1,0)
  791. local TWCFr = CFrame.new(0,0,0)
  792. local TWSpeed = 0.1
  793. Welds[TorsoWeld] = TorsoWeld
  794.  
  795. local RA0Joint = CFrame.new(1,0.75,0)
  796. local RA1Joint = CFrame.new(-0.5,0.75,0)
  797. local RARot = CFrame.Angles(math.rad(10),math.rad(10),0)
  798. local RARotOffset = CFrame.Angles(0,0,0)
  799. local RACur = RARot
  800. local RACur2 = RARotOffset
  801. local RASpeed = 0.1
  802.  
  803. local LA0Joint = CFrame.new(-1,0.75,0)
  804. local LA1Joint = CFrame.new(0.5,0.75,0)
  805. local LARot = CFrame.Angles(0,math.rad(-10),math.rad(-5))
  806. local LARotOffset = CFrame.Angles(0,0,0)
  807. local LACur = LARot
  808. local LACur2 = LARotOffset
  809. local LASpeed = 0.1
  810.  
  811. local RL0Joint = CFrame.new(0.5,-1,0)
  812. local RL1Joint = CFrame.new(0,1,0)
  813. local RLRot = CFrame.Angles(math.rad(0),math.rad(0),math.rad(5))
  814. local RLRotOffset = CFrame.Angles(0,0,0)
  815. local RLCur = RLRot
  816. local RLCur2 = RLRotOffset
  817. local RLSpeed = 0.1
  818.  
  819. local LL0Joint = CFrame.new(-0.5,-1,0)
  820. local LL1Joint = CFrame.new(0,1,0)
  821. local LLRot = CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5))
  822. local LLRotOffset = CFrame.Angles(0,0,0)
  823. local LLCur = LLRot
  824. local LLCur2 = LLRotOffset
  825. local LLSpeed = 0.1
  826.  
  827. local RAW = Instance.new("Weld",Torso)
  828. RAW.Part0 = Torso
  829. RAW.Part1 = RightArm
  830. RAW.C0 = RA0Joint * RARot
  831. RAW.C1 = RA1Joint
  832. Welds[RAW] = RAW
  833.  
  834. local LAW = Instance.new("Weld",Torso)
  835. LAW.Part0 = Torso
  836. LAW.Part1 = LeftArm
  837. LAW.C0 = LA0Joint * LARot
  838. LAW.C1 = LA1Joint
  839. Welds[LAW] = LAW
  840.  
  841. local RLW = Instance.new("Weld",Torso)
  842. RLW.Part0 = Torso2
  843. RLW.Part1 = RightLeg
  844. RLW.C0 = RL0Joint * RLRot
  845. RLW.C1 = RL1Joint
  846. Welds[RLW] = RLW
  847.  
  848. local LLW = Instance.new("Weld",Torso)
  849. LLW.Part0 = Torso2
  850. LLW.Part1 = LeftLeg
  851. LLW.C0 = LL0Joint * LLRot
  852. LLW.C1 = LL1Joint
  853. Welds[LLW] = LLW
  854.  
  855. for i,v in pairs(Torso:GetChildren()) do
  856. if v:IsA("Weld") and Welds[v] == nil then
  857. v.Part0 = nil
  858. v.Part1 = nil
  859. v:Destroy()
  860. print(v)
  861. end
  862. end
  863.  
  864. for i,v in pairs(Torso2:GetChildren()) do
  865. if v:IsA("Weld") and Welds[v] == nil then
  866. v.Part0 = nil
  867. v.Part1 = nil
  868. v:Destroy()
  869. print(v)
  870. end
  871. end
  872.  
  873. local fromAxisAngle = CFrame.fromAxisAngle
  874. local components = CFrame.new().components
  875. local inverse = CFrame.new().inverse
  876. local v3 = Vector3.new
  877. local acos = math.acos
  878. local sqrt = math.sqrt
  879. local invroot2 = 1/math.sqrt(2)
  880.  
  881. function Interpolate(c0, c1) -- (CFrame from, CFrame to) -> (float theta, (float fraction -> CFrame between))
  882. -- The expanded matrix
  883. local _, _, _, xx, yx, zx,
  884. xy, yy, zy,
  885. xz, yz, zz = components(inverse(c0)*c1)
  886.  
  887. -- The cos-theta of the axisAngles from
  888. local cosTheta = (xx + yy + zz - 1)/2
  889.  
  890. -- Rotation axis
  891. local rotationAxis = v3(yz-zy, zx-xz, xy-yx)
  892.  
  893. -- The position to tween through
  894. local positionDelta = (c1.p - c0.p)
  895.  
  896. -- Theta
  897. local theta;
  898.  
  899. -- Catch degenerate cases
  900. if cosTheta == 0 then
  901. -- Case exact same rotation, just interpolator over the position
  902. return function(t)
  903. return c0 + positionDelta*t
  904. end
  905. elseif cosTheta >= 0.999 then
  906. -- Case very similar rotations, just lineraly interpolate, as it is a good
  907. -- approximation. At this small angle we can't reliably find a rotation axis
  908. -- for some values even if the rotation matrix would still be accurate.
  909. local startPos = c0.p
  910. local _, _, _, xx0, yx0, zx0,
  911. xy0, yy0, zy0,
  912. xz0, yz0, zz0 = components(c0)
  913. local _, _, _, xx1, yx1, zx1,
  914. xy1, yy1, zy1,
  915. xz1, yz1, zz1 = components(c1)
  916. return function(t)
  917. local a = 1 - t
  918. return CFrame.new(0, 0, 0, xx0*a+xx1*t, yx0*a+yx1*t, zx0*a+zx1*t,
  919. xy0*a+xy1*t, yy0*a+yy1*t, zy0*a+zy1*t,
  920. xz0*a+xz1*t, yz0*a+yz1*t, zz0*a+zz1*t) +
  921. (startPos + positionDelta*t)
  922. end
  923. elseif cosTheta <= -0.9999 then
  924. -- Case exactly opposite rotations, disambiguate
  925. theta = math.pi
  926. xx = (xx + 1) / 2
  927. yy = (yy + 1) / 2
  928. zz = (zz + 1) / 2
  929. if xx > yy and xx > zz then
  930. if xx < 0.0001 then
  931. rotationAxis = v3(0, invroot2, invroot2)
  932. else
  933. local x = sqrt(xx)
  934. xy = (xy + yx) / 4
  935. xz = (xz + zx) / 4
  936. rotationAxis = v3(x, xy/x, xz/x)
  937. end
  938. elseif yy > zz then
  939. if yy < 0.0001 then
  940. rotationAxis = v3(invroot2, 0, invroot2)
  941. else
  942. local y = sqrt(yy)
  943. xy = (xy + yx) / 4
  944. yz = (yz + zy) / 4
  945. rotationAxis = v3(xy/y, y, yz/y)
  946. end
  947. else
  948. if zz < 0.0001 then
  949. rotationAxis = v3(invroot2, invroot2, 0)
  950. else
  951. local z = sqrt(zz)
  952. xz = (xz + zx) / 4
  953. yz = (yz + zy) / 4
  954. rotationAxis = v3(xz/z, yz/z, z)
  955. end
  956. end
  957. else
  958. -- Normal case, get theta from cosTheta
  959. theta = acos(cosTheta)
  960. end
  961.  
  962. -- Return the interpolator
  963. return function(t)
  964. return c0*fromAxisAngle(rotationAxis, theta*t) + positionDelta*t
  965. end
  966. end
  967.  
  968. function CFrToRot(Part,Joint,CFr)
  969. local Return = (Part.CFrame*Joint):toObjectSpace(CFrame.new((Part.CFrame*Joint).p,(Part.CFrame*Joint*CFr).p))
  970. return (Return-Return.p)
  971. end
  972.  
  973. local ply = Instance.new("WedgePart")
  974. ply.Transparency = 0
  975. ply.BrickColor = BrickColor.new("Really black")
  976. ply.TopSurface = "SmoothNoOutlines"
  977. ply.BottomSurface = "SmoothNoOutlines"
  978. ply.RightSurface = "SmoothNoOutlines"
  979. ply.LeftSurface = "SmoothNoOutlines"
  980. ply.FrontSurface = "SmoothNoOutlines"
  981. ply.BackSurface = "SmoothNoOutlines"
  982. ply.CanCollide = false
  983. ply.formFactor = 3
  984. ply.TopSurface = 0
  985. ply.BottomSurface = 0
  986. ply.Anchored = true
  987. ply.Size = Vector3.new(0.2,7,7)
  988.  
  989. function ParaD(a, b, c)
  990. local dot = (b-a).x*(c-a).x + (b-a).y*(c-a).y + (b-a).z*(c-a).z
  991. return dot / (a-b).magnitude
  992. end
  993.  
  994. function PerpD(a, b, c)
  995. local par = ParaD(a, b, c)
  996. return math.sqrt((c-a).magnitude^2 - par^2)
  997. end
  998.  
  999. local _P0, _P1 = nil, nil
  1000.  
  1001. function DrawTriangle(parent, vec1, vec2, vec3)
  1002. local A, B, C = nil, nil, nil
  1003. local M0,M1
  1004. local p0, p1 = ply:clone(), ply:clone()
  1005. _P0 = p0
  1006. _P1 = p1
  1007. local s1 = (vec1 - vec2).magnitude
  1008. s2 = (vec2 - vec3).magnitude
  1009. s3 = (vec3 - vec1).magnitude
  1010. local smax = math.max(s1, s2, s3)
  1011. if (vec1 - vec2).magnitude == smax then
  1012. A = vec1
  1013. B = vec2
  1014. C = vec3
  1015. elseif (vec2 - vec3).magnitude == smax then
  1016. A = vec2
  1017. B = vec3
  1018. C = vec1
  1019. elseif (vec3 - vec1).magnitude == smax then
  1020. A = vec3
  1021. B = vec1
  1022. C = vec2
  1023. end
  1024. local perp = PerpD(A, B, C)
  1025. local para = ParaD(A, B, C)
  1026. local dif_para = (A-B).magnitude - para
  1027. local ambig = false
  1028. M0 = Vector3.new(0.1, perp, para)
  1029. p0.CFrame = CFrame.new(B, A)
  1030. local Top_Look = (p0.CFrame * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)).lookVector
  1031. local Mid_Point = A + CFrame.new(A, B).lookVector * para
  1032. local Needed_Look = CFrame.new(Mid_Point, C).lookVector
  1033. local dot = Top_Look.x*Needed_Look.x + Top_Look.y*Needed_Look.y + Top_Look.z*Needed_Look.z
  1034. p0.CFrame = p0.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, math.acos(dot))
  1035. if ((p0.CFrame * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)).lookVector - Needed_Look).magnitude > 0.01 then
  1036. p0.CFrame = p0.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, -2*math.acos(dot))
  1037. ambig = true
  1038. end
  1039. p0.Size = Vector3.new(0,0,0)
  1040. p0.CFrame = p0.CFrame * CFrame.new(0, perp/2, -(dif_para + para/2))
  1041. p0.Parent = parent
  1042. p0:BreakJoints()
  1043. local me = Instance.new("SpecialMesh",p0)
  1044. me.MeshType = "Wedge"
  1045. me.Scale = ((M0 * 0.145714286) * 7)/0.2
  1046. M1 = Vector3.new(0, perp, dif_para)
  1047. p1.CFrame = CFrame.new(B, A) * CFrame.fromEulerAnglesXYZ(0, 0, math.acos(dot)) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0)
  1048. if ((p1.CFrame * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0)).lookVector - Needed_Look).magnitude > 0.01 then
  1049. p1.CFrame = p1.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, 2*math.acos(dot))
  1050. ambig = true
  1051. end
  1052. p1.Size = Vector3.new(0,0,0)
  1053. p1.CFrame = p1.CFrame * CFrame.new(0, perp/2, dif_para/2)
  1054. p1:BreakJoints()
  1055. local me = Instance.new("SpecialMesh",p1)
  1056. me.MeshType = "Wedge"
  1057. me.Scale = ((M1 * 0.145714286) * 7)/0.2
  1058. p1.Parent = parent
  1059. local this = {}
  1060. this.SetProperty = function(self,prop,value)
  1061. p0[prop] = value
  1062. p1[prop] = value
  1063. end
  1064. this.GetProperty = function(self,prop)
  1065. return p0[prop]
  1066. end
  1067. this.Destroy = function(self)
  1068. p0:Destroy()
  1069. p1:Destroy()
  1070. end
  1071. return this
  1072. end
  1073.  
  1074. local function setupPart(part)
  1075. part.Anchored = true
  1076. part.FormFactor = 'Custom'
  1077. part.CanCollide = false
  1078. part.BrickColor = BrickColor.new("Really black")
  1079. part.TopSurface = 'SmoothNoOutlines'
  1080. part.BottomSurface = 'SmoothNoOutlines'
  1081. part.FrontSurface = 'SmoothNoOutlines'
  1082. part.BackSurface = 'SmoothNoOutlines'
  1083. part.LeftSurface = 'SmoothNoOutlines'
  1084. part.RightSurface = 'SmoothNoOutlines'
  1085. end
  1086.  
  1087. function CFrameFromTopBack(at, top, back)
  1088. local right = top:Cross(back)
  1089. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1090. end
  1091.  
  1092. function CreateTriangle(parent, a, b, c)
  1093. local this = {}
  1094. local mPart1 = Instance.new('WedgePart')
  1095. setupPart(mPart1)
  1096. local mPart2 = Instance.new('WedgePart')
  1097. setupPart(mPart2)
  1098. function this:Set(a, b, c) --[[ edg1 A ------|------>B --. '\ | / \ \part1|part2/ | \ cut / / Direction edges point in: edg3 \ / edg2 / (clockwise) \ / |/ \<- / ` \ / C --]]
  1099. local ab, bc, ca = b-a, c-b, a-c local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  1100. local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
  1101. local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
  1102. local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
  1103. if edg1 < edg2 then
  1104. if edg1 < edg3 then
  1105. -- nothing to change
  1106. else
  1107. a, b, c = c, a, b
  1108. ab, bc, ca = ca, ab, bc
  1109. abm = cam
  1110. end
  1111. else
  1112. if edg2 < edg3 then
  1113. a, b, c = b, c, a
  1114. ab, bc, ca = bc, ca, ab
  1115. abm = bcm
  1116. else
  1117. a, b, c = c, a, b
  1118. ab, bc, ca = ca, ab, bc
  1119. abm = cam
  1120. end
  1121. end
  1122.  
  1123. local len1 = -ca:Dot(ab)/abm local len2 = abm - len1 local width = (ca + ab.unit*len1).magnitude
  1124. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  1125.  
  1126. mPart1.Parent = parent
  1127. mPart1.Size = Vector3.new(1,1,1)
  1128. mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1129. local Mesh = Instance.new("SpecialMesh",mPart1)
  1130. Mesh.MeshType = "Wedge"
  1131. Mesh.Scale = Vector3.new(0.005, width, len1)
  1132.  
  1133. mPart2.Parent = parent
  1134. mPart2.Size = Vector3.new(1,1,1)
  1135. mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1136. local Mesh = Instance.new("SpecialMesh",mPart2)
  1137. Mesh.MeshType = "Wedge"
  1138. Mesh.Scale = Vector3.new(0.005, width, len2)
  1139. end
  1140.  
  1141. function this:SetProperty(prop, value)
  1142. mPart1[prop] = value
  1143. mPart2[prop] = value
  1144. end
  1145.  
  1146. function this:GetProperty(prop)
  1147. return mPart1[prop]
  1148. end
  1149.  
  1150. this:Set(a, b, c)
  1151. function this:Destroy()
  1152. mPart1:Destroy()
  1153. mPart2:Destroy()
  1154. end
  1155. return this
  1156. end
  1157.  
  1158. local SlashTime = nil
  1159.  
  1160. function Button1Down()
  1161. if CanAttack == true then
  1162. if SlashTime == nil or tick()-SlashTime > 2 then
  1163. SlashTime = tick()
  1164. CanAttack = false
  1165. RARot = CFrame.Angles(math.rad(15),math.rad(135),math.rad(50))
  1166. LARot = CFrame.Angles(math.rad(-25),math.rad(-10),0)
  1167. TWCFr = CFrame.Angles(0,math.rad(15),0)
  1168. RASpeed = 0.2
  1169. LASpeed = 0.2
  1170. wait(0.25)
  1171. RASpeed = 0.3
  1172. TWCFr = CFrame.Angles(0,math.rad(5),0)
  1173. LASpeed = 0.3
  1174. LARot = CFrame.Angles(math.rad(5),math.rad(-10),0)
  1175. RARot = CFrame.Angles(math.rad(math.random(-15,5)),math.rad(math.random(-30,-10)),math.rad(math.random(60,90)))
  1176. Slashing = true
  1177. wait(0.15)
  1178. Slashing = false
  1179. RASpeed = 0.1
  1180. LASPeed = 0.1
  1181. TWCFr = CFrame.Angles(0,0,0)
  1182. LARot = CFrame.Angles(math.rad(0),math.rad(-10),0)
  1183. RARot = CFrame.Angles(math.rad(0),math.rad(10),0)
  1184. wait(0.35)
  1185. CanAttack = true
  1186. else
  1187. SlashTime = nil
  1188. CanAttack = false
  1189. local Rot = CFrToRot(Torso2,RA0Joint,CFrame.new(math.random(-5,-1)*0.1,10,-2))
  1190. LARot = CFrame.Angles(math.rad(-35),math.rad(-10),0)
  1191. RARotOffset = CFrame.Angles(math.rad(90),0,0)
  1192. TWCFr = CFrame.Angles(math.rad(5),0,0)
  1193. RARot = Rot
  1194. LASpeed = 0.2
  1195. RASpeed = 0.2
  1196. TWSpeed = 0.2
  1197. wait(0.25)
  1198. RASpeed = 0.3
  1199. LASpeed = 0.3
  1200. TWSpeed = 0.3
  1201. Slashing = true
  1202. TWCFr = CFrame.Angles(math.rad(-5),0,0)
  1203. LARot = CFrame.Angles(math.rad(5),math.rad(-10),0)
  1204. RARot = CFrToRot(Torso2,RA0Joint,CFrame.new(math.random(1,5)*0.1,-5,-1.5))--*CFrame.Angles(math.rad(90),0,0)--CFrame.Angles(math.rad(math.random(-20,-10)),math.rad(math.random(25,40)),math.rad(math.random(60,90)))
  1205. wait(0.2)
  1206. Slashing = false
  1207. RASpeed = 0.1
  1208. LASpeed = 0.1
  1209. TWSpeed = 0.1
  1210. RARotOffset = CFrame.Angles(math.rad(0),0,0)
  1211. TWCFr = CFrame.Angles(0,0,0)
  1212. LARot = CFrame.Angles(math.rad(0),math.rad(-10),0)
  1213. RARot = CFrame.Angles(math.rad(0),math.rad(10),0)
  1214. wait(0.35)
  1215. LastTrail = nil
  1216. CanAttack = true
  1217. end
  1218. end
  1219. end
  1220.  
  1221. Mouse.KeyDown:connect(function(key)
  1222. key = key:lower()
  1223. if key == 'q' then
  1224. a=not a
  1225. if a then
  1226. for i=1,10 do wait()
  1227. for _,v in pairs(m1:GetChildren()) do if v.ClassName=="Part" then v.Transparency=v.Transparency-.1 end end
  1228. for _,v in pairs(m2:GetChildren()) do if v.ClassName=="Part" then v.Transparency=v.Transparency-.1 end end
  1229. end
  1230. else
  1231. for i=1,10 do wait()
  1232. for _,v in pairs(m1:GetChildren()) do if v.ClassName=="Part" then v.Transparency=v.Transparency+.1 end end
  1233. for _,v in pairs(m2:GetChildren()) do if v.ClassName=="Part" then v.Transparency=v.Transparency+.1 end end
  1234. end
  1235. end
  1236. end
  1237. end)
  1238.  
  1239.  
  1240. Mouse.Button1Down:connect(Button1Down)
  1241.  
  1242. local LastTrail = nil
  1243. local Trails = {}
  1244.  
  1245. Humanoid.Running:connect(function(Speed)
  1246. if Speed > 1 and CharAnim ~= "Walk" then
  1247. AnimFrame = 0
  1248. CharAnim = "Walk"
  1249. elseif Speed < 1 and CharAnim ~= "Idle" then
  1250. AnimFrame = -1
  1251. CharAnim = "Idle"
  1252. end
  1253. end)
  1254.  
  1255. Humanoid.Jumping:connect(function(IsJumping)
  1256. if IsJumping == true and CharAnim ~= "Jump" then
  1257. AnimFrame = 0
  1258. CharAnim = "Jump"
  1259. end
  1260. end)
  1261.  
  1262. while true do
  1263. local New = Interpolate(RACur,RARot)(RASpeed)
  1264. local New2 = Interpolate(RACur2,RARotOffset)(RASpeed)
  1265. RAW.C0 = RA0Joint * New2 * New
  1266. RACur = New
  1267. RACur2 = New2
  1268. local New = Interpolate(LACur,LARot)(LASpeed)
  1269. local New2 = Interpolate(LACur2,LARotOffset)(LASpeed)
  1270. LAW.C0 = LA0Joint * New2 * New
  1271. LACur = New
  1272. LACur2 = New2
  1273. local New = Interpolate(TorsoWeld.C0,CFrame.new(0,-1,0)*TWCFr)(TWSpeed)
  1274. TorsoWeld.C0 = New
  1275. local New = Interpolate(HeadWeld.C0,CFrame.new(0,1,0)*HWCFr)(HWSpeed)
  1276. HeadWeld.C0 = New
  1277. local New = Interpolate(RLCur,RLRot)(RLSpeed)
  1278. local New2 = Interpolate(RLCur2,RLRotOffset)(RLSpeed)
  1279. RLW.C0 = RL0Joint * New2 * New
  1280. RLCur = New
  1281. RLCur2 = New2
  1282. local New = Interpolate(LLCur,LLRot)(LLSpeed)
  1283. local New2 = Interpolate(LLCur2,LLRotOffset)(LLSpeed)
  1284. LLW.C0 = LL0Joint * New2 * New
  1285. LLCur = New
  1286. LLCur2 = New2
  1287. if Slashing then
  1288. local P1 = (Handle.CFrame*CFrame.new(-5.5,0,0)).p
  1289. local P2 = (Handle.CFrame*CFrame.new(-1,0,0)).p
  1290. if LastTrail then
  1291. local p1 = CreateTriangle(Char,LastTrail[2],LastTrail[1],P2)
  1292. local p2 = CreateTriangle(Char,LastTrail[1],P1,P2)
  1293. Trails[#Trails+1] = p1
  1294. Trails[#Trails+1] = p2
  1295. end
  1296. LastTrail = {P1,P2}
  1297. else
  1298. LastTrail = nil
  1299. end
  1300. for i,v in pairs(Trails) do
  1301. v:SetProperty("Transparency",v:GetProperty("Transparency")+0.025)
  1302. if v:GetProperty("Transparency") >= 1 then
  1303. v:Destroy()
  1304. Trails[i] = nil
  1305. end
  1306. end
  1307. if CharAnim == "Idle" then
  1308. if AnimFrame > 0 and CanAttack == true then
  1309. AnimFrame = AnimFrame+0.01
  1310. HWSpeed = 0.01
  1311. RASpeed = 0.01
  1312. LASpeed = 0.01
  1313. RLSpeed = 0.01
  1314. LLSpeed = 0.01
  1315. if AnimFrame < 1 then
  1316. HWCFr = CFrame.Angles(math.rad(7),0,0)
  1317. TWCFr = CFrame.Angles(math.rad(1),0,0)
  1318. RARot = CFrame.Angles(math.rad(-5),math.rad(5),math.rad(5))
  1319. LARot = CFrame.Angles(math.rad(-5),math.rad(-5),math.rad(-5))
  1320. RLRot = CFrame.Angles(math.rad(-2),0,math.rad(7))
  1321. LLRot = CFrame.Angles(math.rad(2),0,math.rad(-7))
  1322. elseif AnimFrame < 2 then
  1323. HWCFr = CFrame.Angles(0,0,0)
  1324. TWCFr = CFrame.Angles(0,0,0)
  1325. RARot = CFrame.Angles(math.rad(0),math.rad(10),0)
  1326. LARot = CFrame.Angles(math.rad(0),math.rad(-10),0)
  1327. RLRot = CFrame.Angles(math.rad(0),0,math.rad(5))
  1328. LLRot = CFrame.Angles(math.rad(0),0,math.rad(-5))
  1329. else
  1330. AnimFrame = 0
  1331. end
  1332. else
  1333. AnimFrame = AnimFrame+0.1
  1334. if CanAttack == true then
  1335. HWSpeed = 0.1
  1336. RASpeed = 0.1
  1337. LASpeed = 0.1
  1338. RLSpeed = 0.1
  1339. LLSpeed = 0.1
  1340. HWCFr = CFrame.Angles(0,0,0)
  1341. TWCFr = CFrame.Angles(0,0,0)
  1342. RARot = CFrame.Angles(math.rad(0),math.rad(10),0)
  1343. LARot = CFrame.Angles(math.rad(0),math.rad(-10),0)
  1344. RLRot = CFrame.Angles(math.rad(0),0,math.rad(5))
  1345. LLRot = CFrame.Angles(math.rad(0),0,math.rad(-5))
  1346. else
  1347. RLSpeed = 0.1
  1348. LLSpeed = 0.1
  1349. RLRot = CFrame.Angles(math.rad(0),0,math.rad(5))
  1350. LLRot = CFrame.Angles(math.rad(0),0,math.rad(-5))
  1351. end
  1352. end
  1353. elseif CharAnim == "Walk" then
  1354. if CanAttack == true then
  1355. AnimFrame = AnimFrame+0.05
  1356. HWSpeed = 0.1
  1357. RASpeed = 0.1
  1358. LASpeed = 0.1
  1359. RLSpeed = 0.1
  1360. LLSpeed = 0.1
  1361. if AnimFrame < 1 then
  1362. HWCFr = CFrame.Angles(math.rad(0),math.rad(-2),0)
  1363. TWCFr = CFrame.Angles(0,math.rad(2),0)
  1364. RARot = CFrame.Angles(math.rad(-5),math.rad(5),math.rad(5))
  1365. LARot = CFrame.Angles(math.rad(55),math.rad(-5),math.rad(-5))
  1366. RLRot = CFrame.Angles(math.rad(55),0,math.rad(7))
  1367. LLRot = CFrame.Angles(math.rad(-55),0,math.rad(-7))
  1368. elseif AnimFrame < 2 then
  1369. HWCFr = CFrame.Angles(0,math.rad(2),0)
  1370. TWCFr = CFrame.Angles(0,math.rad(-2),0)
  1371. RARot = CFrame.Angles(math.rad(15),math.rad(10),0)
  1372. LARot = CFrame.Angles(math.rad(-55),math.rad(-10),0)
  1373. RLRot = CFrame.Angles(math.rad(-55),0,math.rad(5))
  1374. LLRot = CFrame.Angles(math.rad(55),0,math.rad(-5))
  1375. else
  1376. AnimFrame = 0
  1377. end
  1378. else
  1379. AnimFrame = AnimFrame+0.05
  1380. RLSpeed = 0.1
  1381. LLSpeed = 0.1
  1382. if AnimFrame < 1 then
  1383. RLRot = CFrame.Angles(math.rad(55),0,math.rad(7))
  1384. LLRot = CFrame.Angles(math.rad(-55),0,math.rad(-7))
  1385. elseif AnimFrame < 2 then
  1386. RLRot = CFrame.Angles(math.rad(-55),0,math.rad(5))
  1387. LLRot = CFrame.Angles(math.rad(55),0,math.rad(-5))
  1388. else
  1389. AnimFrame = 0
  1390. end
  1391. end
  1392. elseif CharAnim == "Jump" then
  1393. AnimFrame = AnimFrame+0.05
  1394. if CanAttack == true then
  1395. HWSpeed = 0.1
  1396. RASpeed = 0.1
  1397. LASpeed = 0.1
  1398. RLSpeed = 0.1
  1399. LLSpeed = 0.1
  1400. if AnimFrame < 1 then
  1401. HWCFr = CFrame.Angles(math.rad(7),0,0)
  1402. TWCFr = CFrame.Angles(math.rad(4),0,0)
  1403. RARot = CFrame.Angles(math.rad(75),math.rad(5),math.rad(10))
  1404. LARot = CFrame.Angles(math.rad(140),math.rad(-5),math.rad(-50))
  1405. RLRot = CFrame.Angles(math.rad(-2),0,math.rad(15))
  1406. LLRot = CFrame.Angles(math.rad(2),0,math.rad(-15))
  1407. elseif AnimFrame < 2 then
  1408. HWCFr = CFrame.Angles(0,0,0)
  1409. TWCFr = CFrame.Angles(0,0,0)
  1410. RARot = CFrame.Angles(math.rad(0),math.rad(10),0)
  1411. LARot = CFrame.Angles(math.rad(0),math.rad(-10),0)
  1412. RLRot = CFrame.Angles(math.rad(0),0,math.rad(5))
  1413. LLRot = CFrame.Angles(math.rad(0),0,math.rad(-5))
  1414. else
  1415. AnimFrame = 0
  1416. if Torso.Velocity.Magnitude < 1 then
  1417. CharAnim = "Idle"
  1418. else
  1419. CharAnim = "Walk"
  1420. end
  1421. end
  1422. else
  1423. RLSpeed = 0.1
  1424. LLSpeed = 0.1
  1425. if AnimFrame < 1 then
  1426. RLRot = CFrame.Angles(math.rad(-2),0,math.rad(15))
  1427. LLRot = CFrame.Angles(math.rad(2),0,math.rad(-15))
  1428. elseif AnimFrame < 2 then
  1429. RLRot = CFrame.Angles(math.rad(0),0,math.rad(5))
  1430. LLRot = CFrame.Angles(math.rad(0),0,math.rad(-5))
  1431. else
  1432. AnimFrame = 0
  1433. if Torso.Velocity.Magnitude < 1 then
  1434. CharAnim = "Idle"
  1435. else
  1436. CharAnim = "Walk"
  1437. end
  1438. end
  1439. end
  1440. end
  1441. RenderStepped:wait()
  1442. end
Add Comment
Please, Sign In to add comment