Advertisement
00fjg

Untitled

Jul 6th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.93 KB | None | 0 0
  1. --Crashing Issues, requires fix--
  2.  
  3. local Player = game.Players.LocalPlayer
  4. local Mouse = Player:GetMouse()
  5. local Char = Player.Character
  6. local RightArm = Char["Right Arm"]
  7. local LeftArm = Char["Left Arm"]
  8. local RightLeg = Char["Right Leg"]
  9. local LeftLeg = Char["Left Leg"]
  10. local Humanoid = Char.Humanoid
  11. local Head = Char.Head
  12. local Torso = Char.Torso
  13. local Torso2 = Char.HumanoidRootPart
  14. local RenderStepped = game:GetService("RunService").RenderStepped
  15. local CanAttack = true
  16. local Slashing = false
  17. local CharAnim = "Idle"
  18. local AnimFrame = 0
  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-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05)
  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-05, 4.31581502e-05, -1, 9.29513355e-10, 1, 4.31581502e-05, 1, 4.80190998e-10, -3.26636873e-05)
  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-05, 0.707187474, -0.707035959, -2.33650208e-05, 0.707028985, 0.707187533, 1.00000703, 5.63561916e-05, -3.02791595e-05)
  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-05, -0.70717746, 0.707036078, 1, 0.000183747979, 8.48160562e-05)
  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-05, 0.707187474, -0.707035959, -2.33650208e-05, 0.707028985, 0.707187533, 1.00000703, 5.63561916e-05, -3.02791595e-05)
  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-05, -0.70717746, 0.707036078, 1, 0.000183747979, 8.48160562e-05)
  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-05, 0.707187474, -0.707035959, -2.33650208e-05, 0.707028985, 0.707187533, 1.00000703, 5.63561916e-05, -3.02791595e-05)
  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-05, -0.70717746, 0.707036078, 1, 0.000183747979, 8.48160562e-05)
  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-05, -0.70717746, 0.707036078, 1, 0.000183747979, 8.48160562e-05)
  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-05, 0.707187474, -0.707035959, -2.33650208e-05, 0.707028985, 0.707187533, 1.00000703, 5.63561916e-05, -3.02791595e-05)
  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-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -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-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -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-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -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-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -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-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -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-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -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-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -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-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -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-05, 2.79379719e-09, -1, -1, 0, 9.15499404e-05, 0, 1, 2.79388246e-09)
  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-05, -1.58250332e-05, -1.00000381, -0.866024613, -0.500012875, 5.9068203e-05, -0.500009, 0.866024554, 1.20401382e-05)
  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-05, 2.79379719e-09, -1, -1, 0, 9.15499404e-05, 0, 1, 2.79388246e-09)
  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-05, 2.79379719e-09, -1, -1, 0, 9.15499404e-05, 0, 1, 2.79388246e-09)
  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-05, 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-05, 2.79379719e-09, -1, -1, 0, 9.15499404e-05, 0, 1, 2.79388246e-09)
  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-05, -0.866021633, -0.500006676, 4.16880684e-05, 4.1688003e-05, 1.11705713e-05, 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-05, 2.79379719e-09, -1, -1, 0, 9.15499404e-05, 0, 1, 2.79388246e-09)
  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-06, -0.96593684, -0.96593678, 1.22940298e-06, -0.258778095, 0, 1, 4.75079469e-06)
  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-05, 2.79379719e-09, -1, -1, 0, 9.15499404e-05, 0, 1, 2.79388246e-09)
  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-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -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-05, 3.05180438e-05, 3.05180438e-05, 1, 3.05171125e-05, -3.05171125e-05, 3.05180438e-05, -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. local mw = Instance.new("Model")
  459. mw.Name = "Wings"
  460. m1 = Instance.new("Model")
  461. m1.Name = "wing1"
  462. m1.Parent = mw
  463. m2 = Instance.new("Model")
  464. m2.Name = "wing2"
  465. m2.Parent = mw
  466. p1 = Instance.new("Part", m1)
  467. p1.BrickColor = BrickColor.new("Really black")
  468. p1.Material = Enum.Material.SmoothPlastic
  469. p1.Transparency = 1
  470. p1.Name = "swabby"
  471. p1.CFrame = CFrame.new(28.221529, 3.08749795, 65.2934189, 0.500065207, -0.865987778, -3.4978475e-05, 0.749960601, 0.433085412, -0.499996215, 0.43300578, 0.25000447, 0.866027594)
  472. p1.Anchored = true
  473. p1.FormFactor = Enum.FormFactor.Custom
  474. p1.Size = Vector3.new(2.20000005, 0.300000012, 0.300000012)
  475. p1.BottomSurface = Enum.SurfaceType.Smooth
  476. p1.TopSurface = Enum.SurfaceType.Smooth
  477. p2 = Instance.new("Part", m1)
  478. p2.BrickColor = BrickColor.new("Really black")
  479. p2.Material = Enum.Material.SmoothPlastic
  480. p2.Transparency = 1
  481. 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)
  482. p2.Anchored = true
  483. p2.FormFactor = Enum.FormFactor.Custom
  484. p2.Size = Vector3.new(0.5, 2.69999981, 0.399999976)
  485. p2.BottomSurface = Enum.SurfaceType.Smooth
  486. p2.TopSurface = Enum.SurfaceType.Smooth
  487. b1 = Instance.new("SpecialMesh", p2)
  488. b1.MeshType = Enum.MeshType.Brick
  489. b1.Name = "Mesh"
  490. b1.Scale = Vector3.new(0.299999923, 1, 0.299999893)
  491. p3 = Instance.new("Part", m1)
  492. p3.BrickColor = BrickColor.new("Really black")
  493. p3.Material = Enum.Material.SmoothPlastic
  494. p3.Transparency = 1
  495. 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)
  496. p3.Anchored = true
  497. p3.FormFactor = Enum.FormFactor.Custom
  498. p3.Size = Vector3.new(0.5, 3.5999999, 0.399999976)
  499. p3.BottomSurface = Enum.SurfaceType.Smooth
  500. p3.TopSurface = Enum.SurfaceType.Smooth
  501. b2 = Instance.new("SpecialMesh", p3)
  502. b2.MeshType = Enum.MeshType.Brick
  503. b2.Name = "Mesh"
  504. b2.Scale = Vector3.new(0.299999923, 1, 0.299999893)
  505. p4 = Instance.new("Part", m1)
  506. p4.BrickColor = BrickColor.new("Really black")
  507. p4.Material = Enum.Material.SmoothPlastic
  508. p4.Transparency = 1
  509. p4.CFrame = CFrame.new(29.1000061, 4.03660202, 65.8499908, 0.866040468, -0.499973893, -5.1980147e-05, 0.432973981, 0.750037253, -0.499977767, 0.250014782, 0.432978451, 0.866038322)
  510. p4.Anchored = true
  511. p4.FormFactor = Enum.FormFactor.Custom
  512. p4.Size = Vector3.new(0.899999976, 0.300000012, 0.300000012)
  513. p4.BottomSurface = Enum.SurfaceType.Smooth
  514. p4.TopSurface = Enum.SurfaceType.Smooth
  515. p5 = Instance.new("Part", m1)
  516. p5.BrickColor = BrickColor.new("Really black")
  517. p5.Material = Enum.Material.SmoothPlastic
  518. p5.Transparency = 1
  519. p5.CFrame = CFrame.new(30.5597649, 3.22613502, 66.411911, 0.891023576, -0.453955591, -6.15231693e-05, 0.438498497, 0.860649526, 0.258843005, -0.117451012, -0.230662003, 0.965919197)
  520. p5.Anchored = true
  521. p5.FormFactor = Enum.FormFactor.Custom
  522. p5.Size = Vector3.new(0.5, 2.69999981, 0.399999976)
  523. p5.BottomSurface = Enum.SurfaceType.Smooth
  524. p5.TopSurface = Enum.SurfaceType.Smooth
  525. b3 = Instance.new("SpecialMesh", p5)
  526. b3.MeshType = Enum.MeshType.Brick
  527. b3.Name = "Mesh"
  528. b3.Scale = Vector3.new(0.299999923, 1, 0.299999893)
  529. p6 = Instance.new("Part", m1)
  530. p6.BrickColor = BrickColor.new("Really black")
  531. p6.Material = Enum.Material.SmoothPlastic
  532. p6.Transparency = 1
  533. 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)
  534. p6.Anchored = true
  535. p6.FormFactor = Enum.FormFactor.Custom
  536. p6.Size = Vector3.new(2.60000014, 0.300000012, 0.300000012)
  537. p6.BottomSurface = Enum.SurfaceType.Smooth
  538. p6.TopSurface = Enum.SurfaceType.Smooth
  539. p7 = Instance.new("Part", m1)
  540. p7.BrickColor = BrickColor.new("Really black")
  541. p7.Material = Enum.Material.SmoothPlastic
  542. p7.Transparency = 1
  543. 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)
  544. p7.Anchored = true
  545. p7.FormFactor = Enum.FormFactor.Custom
  546. p7.Size = Vector3.new(2.5999999, 0.400000006, 0.300000042)
  547. p7.BottomSurface = Enum.SurfaceType.Smooth
  548. p7.TopSurface = Enum.SurfaceType.Smooth
  549. p8 = Instance.new("Part", m1)
  550. p8.BrickColor = BrickColor.new("Really black")
  551. p8.Material = Enum.Material.SmoothPlastic
  552. p8.Transparency = 1
  553. 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)
  554. p8.Anchored = true
  555. p8.FormFactor = Enum.FormFactor.Custom
  556. p8.Size = Vector3.new(0.5, 3.5999999, 0.399999976)
  557. p8.BottomSurface = Enum.SurfaceType.Smooth
  558. p8.TopSurface = Enum.SurfaceType.Smooth
  559. b4 = Instance.new("SpecialMesh", p8)
  560. b4.MeshType = Enum.MeshType.Brick
  561. b4.Name = "Mesh"
  562. b4.Scale = Vector3.new(0.299999923, 1, 0.299999893)
  563. p9 = Instance.new("Part", m2)
  564. p9.BrickColor = BrickColor.new("Really black")
  565. p9.Material = Enum.Material.SmoothPlastic
  566. p9.Transparency = 1
  567. 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)
  568. p9.Anchored = true
  569. p9.FormFactor = Enum.FormFactor.Custom
  570. p9.Size = Vector3.new(0.5, 2.69999981, 0.399999976)
  571. p9.BottomSurface = Enum.SurfaceType.Smooth
  572. p9.TopSurface = Enum.SurfaceType.Smooth
  573. b5 = Instance.new("SpecialMesh", p9)
  574. b5.MeshType = Enum.MeshType.Brick
  575. b5.Name = "Mesh"
  576. b5.Scale = Vector3.new(0.299999923, 1, 0.299999893)
  577. p10 = Instance.new("Part", m2)
  578. p10.BrickColor = BrickColor.new("Really black")
  579. p10.Material = Enum.Material.SmoothPlastic
  580. p10.Transparency = 1
  581. p10.CFrame = CFrame.new(25.851799, 4.03660202, 65.875351, -0.866004705, -0.500035882, 2.58785476e-05, 0.4330374, -0.749996781, -0.4999834, 0.250029057, -0.432976753, 0.866034985)
  582. p10.Anchored = true
  583. p10.FormFactor = Enum.FormFactor.Custom
  584. p10.Size = Vector3.new(0.899999976, 0.300000012, 0.300000012)
  585. p10.BottomSurface = Enum.SurfaceType.Smooth
  586. p10.TopSurface = Enum.SurfaceType.Smooth
  587. p11 = Instance.new("Part", m2)
  588. p11.BrickColor = BrickColor.new("Really black")
  589. p11.Material = Enum.Material.SmoothPlastic
  590. p11.Transparency = 1
  591. 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)
  592. p11.Anchored = true
  593. p11.FormFactor = Enum.FormFactor.Custom
  594. p11.Size = Vector3.new(0.5, 3.5999999, 0.399999976)
  595. p11.BottomSurface = Enum.SurfaceType.Smooth
  596. p11.TopSurface = Enum.SurfaceType.Smooth
  597. b6 = Instance.new("SpecialMesh", p11)
  598. b6.MeshType = Enum.MeshType.Brick
  599. b6.Name = "Mesh"
  600. b6.Scale = Vector3.new(0.299999923, 1, 0.299999893)
  601. p12 = Instance.new("Part", m2)
  602. p12.BrickColor = BrickColor.new("Really black")
  603. p12.Material = Enum.Material.SmoothPlastic
  604. p12.Transparency = 1
  605. 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)
  606. p12.Anchored = true
  607. p12.FormFactor = Enum.FormFactor.Custom
  608. p12.Size = Vector3.new(0.5, 2.69999981, 0.399999976)
  609. p12.BottomSurface = Enum.SurfaceType.Smooth
  610. p12.TopSurface = Enum.SurfaceType.Smooth
  611. b7 = Instance.new("SpecialMesh", p12)
  612. b7.MeshType = Enum.MeshType.Brick
  613. b7.Name = "Mesh"
  614. b7.Scale = Vector3.new(0.299999923, 1, 0.299999893)
  615. p13 = Instance.new("Part", m2)
  616. p13.BrickColor = BrickColor.new("Really black")
  617. p13.Material = Enum.Material.SmoothPlastic
  618. p13.Transparency = 1
  619. 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)
  620. p13.Anchored = true
  621. p13.FormFactor = Enum.FormFactor.Custom
  622. p13.Size = Vector3.new(2.5999999, 0.400000006, 0.300000042)
  623. p13.BottomSurface = Enum.SurfaceType.Smooth
  624. p13.TopSurface = Enum.SurfaceType.Smooth
  625. p14 = Instance.new("Part", m2)
  626. p14.BrickColor = BrickColor.new("Really black")
  627. p14.Material = Enum.Material.SmoothPlastic
  628. p14.Transparency = 1
  629. 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)
  630. p14.Anchored = true
  631. p14.FormFactor = Enum.FormFactor.Custom
  632. p14.Size = Vector3.new(0.5, 3.5999999, 0.399999976)
  633. p14.BottomSurface = Enum.SurfaceType.Smooth
  634. p14.TopSurface = Enum.SurfaceType.Smooth
  635. b8 = Instance.new("SpecialMesh", p14)
  636. b8.MeshType = Enum.MeshType.Brick
  637. b8.Name = "Mesh"
  638. b8.Scale = Vector3.new(0.299999923, 1, 0.299999893)
  639. p15 = Instance.new("Part", m2)
  640. p15.BrickColor = BrickColor.new("Really black")
  641. p15.Material = Enum.Material.SmoothPlastic
  642. p15.Transparency = 1
  643. p15.Name = "collio"
  644. p15.CFrame = CFrame.new(26.721529, 3.08749795, 65.2934189, -0.500057757, -0.865992069, 3.56845521e-05, 0.749975026, -0.43308562, -0.49997431, 0.43298921, -0.249989271, 0.866040289)
  645. p15.Anchored = true
  646. p15.FormFactor = Enum.FormFactor.Custom
  647. p15.Size = Vector3.new(2.20000005, 0.300000012, 0.300000012)
  648. p15.BottomSurface = Enum.SurfaceType.Smooth
  649. p15.TopSurface = Enum.SurfaceType.Smooth
  650. p16 = Instance.new("Part", m2)
  651. p16.BrickColor = BrickColor.new("Really black")
  652. p16.Material = Enum.Material.SmoothPlastic
  653. p16.Transparency = 1
  654. 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)
  655. p16.Anchored = true
  656. p16.FormFactor = Enum.FormFactor.Custom
  657. p16.Size = Vector3.new(3, 0.300000012, 0.300000012)
  658. p16.BottomSurface = Enum.SurfaceType.Smooth
  659. p16.TopSurface = Enum.SurfaceType.Smooth
  660. stick = function(x, y)
  661. weld = Instance.new("Motor")
  662. weld.Name = "m"
  663. weld.Part0 = x
  664. weld.Part1 = y
  665. local HitPos = x.Position
  666. local CJ = CFrame.new(HitPos)
  667. local C0 = x.CFrame:inverse() * CJ
  668. local C1 = y.CFrame:inverse() * CJ
  669. weld.C0 = C0
  670. weld.C1 = C1
  671. weld.Parent = x
  672. end
  673. c = m1:children()
  674. for n = 1, #c do
  675. if c[n].className == "Part" and c[n].Name ~= "MainPart" then
  676. stick(c[n], m1.swabby)
  677. wait()
  678. c[n].Anchored = false
  679. end
  680. end
  681. c = m2:children()
  682. for n = 1, #c do
  683. if c[n].className == "Part" and c[n].Name ~= "MainPart" then
  684. stick(c[n], m2.collio)
  685. wait()
  686. c[n].Anchored = false
  687. end
  688. end
  689. weld = function(p0, p1, c0)
  690. local w = Instance.new("Motor", p0)
  691. w.Part0 = p0
  692. w.Part1 = p1
  693. w.C1 = c0
  694. return w
  695. end
  696. mw.Parent = Char
  697. weld(Char.Torso, m1.swabby, CFrame.new(-2, 0, 0) * CFrame.Angles(-math.rad(30), math.rad(30), -math.rad(40)))
  698. weld(Char.Torso, m2.collio, CFrame.new(-2, 0, 0) * CFrame.Angles(math.rad(30), math.rad(30), math.pi + math.rad(40)))
  699. local HitDB = {}
  700. for i,v in pairs(m:GetChildren()) do
  701. if p22.CFrame.Y + 1 < v.CFrame.Y then
  702. v.Touched:connect(function(Hit)
  703. if Slashing == true and Hit.Parent:FindFirstChild("Humanoid") and Hit.Parent.Humanoid ~= Humanoid and HitDB[Hit.Parent.Humanoid] == nil then
  704. HitDB[Hit.Parent.Humanoid] = true
  705. Hit.Parent.Humanoid:TakeDamage(math.random(45, 50))
  706. wait(0.75)
  707. HitDB[Hit.Parent.Humanoid] = nil
  708. end
  709. end)
  710. end
  711. end
  712. local Welds = {}
  713. local Handle = p22
  714. for i,v in pairs(m:GetChildren()) do
  715. if v:IsA("BasePart") and v ~= Handle then
  716. local Weld = Instance.new("Motor6D")
  717. Weld.Part0 = Handle
  718. Weld.Part1 = v
  719. Weld.C0 = CFrame.new()
  720. Weld.C1 = v.CFrame:inverse() * Handle.CFrame
  721. Weld.Parent = v
  722. v.CanCollide = false
  723. v.Anchored = false
  724. Welds[Weld] = Weld
  725. end
  726. end
  727. Handle.CanCollide = false
  728. Handle.Anchored = false
  729. ByeAnim = function(M)
  730. for i,v in pairs(M:GetChildren()) do
  731. if v:IsA("Animation") then
  732. v.AnimationId = ""
  733. else
  734. if v:IsA("StringValue") then
  735. v.Value = ""
  736. end
  737. end
  738. ByeAnim(v)
  739. end
  740. end
  741. ByeAnim(Char)
  742. Char.Animate.Disabled = true
  743. Char.Animate.Disabled = false
  744. ByeWelds = function(M)
  745. for i,v in pairs(M:GetChildren()) do
  746. if v:IsA("Weld") and Welds[v] == nil then
  747. v.Part0 = nil
  748. v.Part1 = nil
  749. v:Destroy()
  750. end
  751. ByeWelds(v)
  752. end
  753. end
  754. local HandWeld = Instance.new("Weld", Handle)
  755. HandWeld.Part0 = RightArm
  756. HandWeld.Part1 = Handle
  757. HandWeld.C0 = CFrame.new(0, -1, -0.15) * CFrame.Angles(math.rad(90), 0, math.rad(90))
  758. Welds[HandWeld] = HandWeld
  759. local HeadWeld = Instance.new("Weld", Handle)
  760. HeadWeld.Part0 = Torso
  761. HeadWeld.Part1 = Head
  762. HeadWeld.C0 = CFrame.new(0, 1, 0)
  763. HeadWeld.C1 = CFrame.new(0, -0.5, 0)
  764. local HWCFr = CFrame.new(0, 0, 0)
  765. local HWSpeed = 0.1
  766. Welds[HeadWeld] = HeadWeld
  767. local TorsoWeld = Instance.new("Weld", Handle)
  768. TorsoWeld.Part0 = Torso2
  769. TorsoWeld.Part1 = Torso
  770. TorsoWeld.C0 = CFrame.new(0, -1, 0)
  771. TorsoWeld.C1 = CFrame.new(0, -1, 0)
  772. local TWCFr = CFrame.new(0, 0, 0)
  773. local TWSpeed = 0.1
  774. Welds[TorsoWeld] = TorsoWeld
  775. local RA0Joint = CFrame.new(1, 0.75, 0)
  776. local RA1Joint = CFrame.new(-0.5, 0.75, 0)
  777. local RARot = CFrame.Angles(math.rad(10), math.rad(10), 0)
  778. local RARotOffset = CFrame.Angles(0, 0, 0)
  779. local RACur = RARot
  780. local RACur2 = RARotOffset
  781. local RASpeed = 0.1
  782. local LA0Joint = CFrame.new(-1, 0.75, 0)
  783. local LA1Joint = CFrame.new(0.5, 0.75, 0)
  784. local LARot = CFrame.Angles(0, math.rad(-10), math.rad(-5))
  785. local LARotOffset = CFrame.Angles(0, 0, 0)
  786. local LACur = LARot
  787. local LACur2 = LARotOffset
  788. local LASpeed = 0.1
  789. local RL0Joint = CFrame.new(0.5, -1, 0)
  790. local RL1Joint = CFrame.new(0, 1, 0)
  791. local RLRot = CFrame.Angles(math.rad(0), math.rad(0), math.rad(5))
  792. local RLRotOffset = CFrame.Angles(0, 0, 0)
  793. local RLCur = RLRot
  794. local RLCur2 = RLRotOffset
  795. local RLSpeed = 0.1
  796. local LL0Joint = CFrame.new(-0.5, -1, 0)
  797. local LL1Joint = CFrame.new(0, 1, 0)
  798. local LLRot = CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5))
  799. local LLRotOffset = CFrame.Angles(0, 0, 0)
  800. local LLCur = LLRot
  801. local LLCur2 = LLRotOffset
  802. local LLSpeed = 0.1
  803. local RAW = Instance.new("Weld", Torso)
  804. RAW.Part0 = Torso
  805. RAW.Part1 = RightArm
  806. RAW.C0 = RA0Joint * RARot
  807. RAW.C1 = RA1Joint
  808. Welds[RAW] = RAW
  809. local LAW = Instance.new("Weld", Torso)
  810. LAW.Part0 = Torso
  811. LAW.Part1 = LeftArm
  812. LAW.C0 = LA0Joint * LARot
  813. LAW.C1 = LA1Joint
  814. Welds[LAW] = LAW
  815. local RLW = Instance.new("Weld", Torso)
  816. RLW.Part0 = Torso2
  817. RLW.Part1 = RightLeg
  818. RLW.C0 = RL0Joint * RLRot
  819. RLW.C1 = RL1Joint
  820. Welds[RLW] = RLW
  821. local LLW = Instance.new("Weld", Torso)
  822. LLW.Part0 = Torso2
  823. LLW.Part1 = LeftLeg
  824. LLW.C0 = LL0Joint * LLRot
  825. LLW.C1 = LL1Joint
  826. Welds[LLW] = LLW
  827. for i,v in pairs(Torso:GetChildren()) do
  828. if v:IsA("Weld") and Welds[v] == nil then
  829. v.Part0 = nil
  830. v.Part1 = nil
  831. v:Destroy()
  832. print(v)
  833. end
  834. end
  835. for i,v in pairs(Torso2:GetChildren()) do
  836. if v:IsA("Weld") and Welds[v] == nil then
  837. v.Part0 = nil
  838. v.Part1 = nil
  839. v:Destroy()
  840. print(v)
  841. end
  842. end
  843. local fromAxisAngle = CFrame.fromAxisAngle
  844. local components = CFrame.new().components
  845. local inverse = CFrame.new().inverse
  846. local v3 = Vector3.new
  847. local acos = math.acos
  848. local sqrt = math.sqrt
  849. local invroot2 = 1 / math.sqrt(2)
  850. Interpolate = function(c0, c1)
  851. local _, _, _, xx, yx, zx, xy, yy, zy, xz, yz, zz = components(inverse(c0) * c1)
  852. local cosTheta = (xx + yy + zz - 1) / 2
  853. local rotationAxis = v3(yz - zy, zx - xz, xy - yx)
  854. local positionDelta = c1.p - c0.p
  855. local theta = nil
  856. if cosTheta == 0 then
  857. return function(t)
  858. return c0 + positionDelta * t
  859. end
  860. else
  861. if cosTheta >= 0.999 then
  862. local startPos = c0.p
  863. do
  864. local _, _, _, xx0, yx0, zx0, xy0, yy0, zy0, xz0, yz0, zz0 = components(c0)
  865. local _, _, _, xx1, yx1, zx1, xy1, yy1, zy1, xz1, yz1, zz1 = components(c1)
  866. return function(t)
  867. local a = 1 - t
  868. return CFrame.new(0, 0, 0, xx0 * a + xx1 * t, yx0 * a + yx1 * t, zx0 * a + zx1 * t, xy0 * a + xy1 * t, yy0 * a + yy1 * t, zy0 * a + zy1 * t, xz0 * a + xz1 * t, yz0 * a + yz1 * t, zz0 * a + zz1 * t) + (startPos + positionDelta * t)
  869. end
  870. end
  871. else
  872. do
  873. if cosTheta <= -0.9999 then
  874. theta = math.pi
  875. xx = (xx + 1) / 2
  876. yy = (yy + 1) / 2
  877. zz = (zz + 1) / 2
  878. if yy < xx and zz < xx then
  879. if xx < 0.0001 then
  880. rotationAxis = v3(0, invroot2, invroot2)
  881. else
  882. local x = sqrt(xx)
  883. xy = (xy + yx) / 4
  884. xz = (xz + zx) / 4
  885. rotationAxis = v3(x, xy / x, xz / x)
  886. end
  887. else
  888. do
  889. if zz < yy then
  890. if yy < 0.0001 then
  891. rotationAxis = v3(invroot2, 0, invroot2)
  892. else
  893. local y = sqrt(yy)
  894. xy = (xy + yx) / 4
  895. yz = (yz + zy) / 4
  896. rotationAxis = v3(xy / y, y, yz / y)
  897. end
  898. else
  899. do
  900. if zz < 0.0001 then
  901. rotationAxis = v3(invroot2, invroot2, 0)
  902. else
  903. local z = sqrt(zz)
  904. xz = (xz + zx) / 4
  905. yz = (yz + zy) / 4
  906. rotationAxis = v3(xz / z, yz / z, z)
  907. end
  908. do
  909. theta = acos(cosTheta)
  910. return function(t)
  911. return c0 * fromAxisAngle(rotationAxis, theta * t) + positionDelta * t
  912. end
  913. end
  914. end
  915. end
  916. end
  917. end
  918. end
  919. end
  920. end
  921. end
  922. end
  923. CFrToRot = function(Part, Joint, CFr)
  924. local Return = Part.CFrame * Joint:toObjectSpace(CFrame.new(Part.CFrame * Joint.p, Part.CFrame * Joint * CFr.p))
  925. return Return - Return.p
  926. end
  927. local ply = Instance.new("WedgePart")
  928. ply.Transparency = 0
  929. ply.BrickColor = BrickColor.new("Really black")
  930. ply.TopSurface = "SmoothNoOutlines"
  931. ply.BottomSurface = "SmoothNoOutlines"
  932. ply.RightSurface = "SmoothNoOutlines"
  933. ply.LeftSurface = "SmoothNoOutlines"
  934. ply.FrontSurface = "SmoothNoOutlines"
  935. ply.BackSurface = "SmoothNoOutlines"
  936. ply.CanCollide = false
  937. ply.formFactor = 3
  938. ply.TopSurface = 0
  939. ply.BottomSurface = 0
  940. ply.Anchored = true
  941. ply.Size = Vector3.new(0.2, 7, 7)
  942. ParaD = function(a, b, c)
  943. local dot = b - a.x * c - a.x + b - a.y * c - a.y + b - a.z * c - a.z
  944. return dot / (a - b).magnitude
  945. end
  946. PerpD = function(a, b, c)
  947. local par = ParaD(a, b, c)
  948. return math.sqrt((c - a).magnitude ^ 2 - par ^ 2)
  949. end
  950. local _P0, _P1 = nil, nil
  951. DrawTriangle = function(parent, vec1, vec2, vec3)
  952. local A, B, C, M0, M1 = nil, nil, nil, nil, nil
  953. local p0, p1 = ply:clone(), ply:clone()
  954. _P0 = p0
  955. _P1 = p1
  956. local s1 = (vec1 - vec2).magnitude
  957. s2 = (vec2 - vec3).magnitude
  958. s3 = (vec3 - vec1).magnitude
  959. local smax = math.max(s1, s2, s3)
  960. if (vec1 - vec2).magnitude == smax then
  961. A = vec1
  962. B = vec2
  963. C = vec3
  964. else
  965. if (vec2 - vec3).magnitude == smax then
  966. A = vec2
  967. B = vec3
  968. C = vec1
  969. else
  970. if (vec3 - vec1).magnitude == smax then
  971. A = vec3
  972. B = vec1
  973. C = vec2
  974. end
  975. end
  976. end
  977. local perp = PerpD(A, B, C)
  978. local para = ParaD(A, B, C)
  979. local dif_para = (A - B).magnitude - para
  980. local ambig = false
  981. M0 = Vector3.new(0.1, perp, para)
  982. p0.CFrame = CFrame.new(B, A)
  983. local Top_Look = p0.CFrame * CFrame.fromEulerAnglesXYZ(math.pi / 2, 0, 0).lookVector
  984. local Mid_Point = A + CFrame.new(A, B).lookVector * para
  985. local Needed_Look = CFrame.new(Mid_Point, C).lookVector
  986. local dot = Top_Look.x * Needed_Look.x + Top_Look.y * Needed_Look.y + Top_Look.z * Needed_Look.z
  987. p0.CFrame = p0.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, math.acos(dot))
  988. if p0.CFrame * CFrame.fromEulerAnglesXYZ(math.pi / 2, 0, 0).lookVector - Needed_Look.magnitude > 0.01 then
  989. p0.CFrame = p0.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, -2 * math.acos(dot))
  990. ambig = true
  991. end
  992. p0.Size = Vector3.new(0, 0, 0)
  993. p0.CFrame = p0.CFrame * CFrame.new(0, perp / 2, -(dif_para + para / 2))
  994. p0.Parent = parent
  995. p0:BreakJoints()
  996. local me = Instance.new("SpecialMesh", p0)
  997. me.MeshType = "Wedge"
  998. me.Scale = M0 * 0.145714286 * 7 / 0.2
  999. M1 = Vector3.new(0, perp, dif_para)
  1000. p1.CFrame = CFrame.new(B, A) * CFrame.fromEulerAnglesXYZ(0, 0, math.acos(dot)) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0)
  1001. if p1.CFrame * CFrame.fromEulerAnglesXYZ(math.pi / 2, 0, 0).lookVector - Needed_Look.magnitude > 0.01 then
  1002. p1.CFrame = p1.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, 2 * math.acos(dot))
  1003. ambig = true
  1004. end
  1005. p1.Size = Vector3.new(0, 0, 0)
  1006. p1.CFrame = p1.CFrame * CFrame.new(0, perp / 2, dif_para / 2)
  1007. p1:BreakJoints()
  1008. local me = Instance.new("SpecialMesh", p1)
  1009. me.MeshType = "Wedge"
  1010. me.Scale = M1 * 0.145714286 * 7 / 0.2
  1011. p1.Parent = parent
  1012. local this = {}
  1013. this.SetProperty = function(self, prop, value)
  1014. p0[prop] = value
  1015. p1[prop] = value
  1016. end
  1017. this.GetProperty = function(self, prop)
  1018. return p0[prop]
  1019. end
  1020. this.Destroy = function(self)
  1021. p0:Destroy()
  1022. p1:Destroy()
  1023. end
  1024. return this
  1025. end
  1026. local setupPart = function(part)
  1027. part.Anchored = true
  1028. part.FormFactor = "Custom"
  1029. part.CanCollide = false
  1030. part.BrickColor = BrickColor.new("Really black")
  1031. part.TopSurface = "SmoothNoOutlines"
  1032. part.BottomSurface = "SmoothNoOutlines"
  1033. part.FrontSurface = "SmoothNoOutlines"
  1034. part.BackSurface = "SmoothNoOutlines"
  1035. part.LeftSurface = "SmoothNoOutlines"
  1036. part.RightSurface = "SmoothNoOutlines"
  1037. end
  1038. CFrameFromTopBack = function(at, top, back)
  1039. local right = top:Cross(back)
  1040. 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)
  1041. end
  1042. CreateTriangle = function(parent, a, b, c)
  1043. local this = {}
  1044. local mPart1 = Instance.new("WedgePart")
  1045. setupPart(mPart1)
  1046. local mPart2 = Instance.new("WedgePart")
  1047. setupPart(mPart2)
  1048. this.Set = function(self, a, b, c)
  1049. local ab, bc, ca = b - a, c - b, a - c
  1050. local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  1051. local edg1 = math.abs(0.5 + ca:Dot(ab) / (abm * abm))
  1052. local edg2 = math.abs(0.5 + ab:Dot(bc) / (bcm * bcm))
  1053. local edg3 = math.abs(0.5 + bc:Dot(ca) / (cam * cam))
  1054. if edg1 < edg2 then
  1055. if edg1 < edg3 then
  1056. a = c
  1057. ab = ca
  1058. abm = cam
  1059. -- DECOMPILER ERROR at PC54: Overwrote pending register: R3 in 'AssignReg'
  1060.  
  1061. -- DECOMPILER ERROR at PC55: Overwrote pending register: R2 in 'AssignReg'
  1062.  
  1063. if edg2 < edg3 then
  1064. a = b
  1065. -- DECOMPILER ERROR at PC59: Overwrote pending register: R6 in 'AssignReg'
  1066.  
  1067. -- DECOMPILER ERROR at PC60: Overwrote pending register: R5 in 'AssignReg'
  1068.  
  1069. ab = bc
  1070. abm = bcm
  1071. else
  1072. -- DECOMPILER ERROR at PC66: Overwrote pending register: R3 in 'AssignReg'
  1073.  
  1074. -- DECOMPILER ERROR at PC67: Overwrote pending register: R2 in 'AssignReg'
  1075.  
  1076. a = c
  1077. -- DECOMPILER ERROR at PC71: Overwrote pending register: R6 in 'AssignReg'
  1078.  
  1079. -- DECOMPILER ERROR at PC72: Overwrote pending register: R5 in 'AssignReg'
  1080.  
  1081. ab = ca
  1082. abm = cam
  1083. end
  1084. local len1 = -ca:Dot(ab) / abm
  1085. local len2 = abm - len1
  1086. local width = ((ca + ab.unit) * len1).magnitude
  1087. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  1088. mPart1.Parent = parent
  1089. mPart1.Size = Vector3.new(1, 1, 1)
  1090. mPart1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  1091. local Mesh = Instance.new("SpecialMesh", mPart1)
  1092. Mesh.MeshType = "Wedge"
  1093. Mesh.Scale = Vector3.new(0.005, width, len1)
  1094. mPart2.Parent = parent
  1095. mPart2.Size = Vector3.new(1, 1, 1)
  1096. mPart2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  1097. local Mesh = Instance.new("SpecialMesh", mPart2)
  1098. Mesh.MeshType = "Wedge"
  1099. Mesh.Scale = Vector3.new(0.005, width, len2)
  1100. end
  1101. end
  1102. end
  1103. this.SetProperty = function(self, prop, value)
  1104. mPart1[prop] = value
  1105. mPart2[prop] = value
  1106. end
  1107. this.GetProperty = function(self, prop)
  1108. return mPart1[prop]
  1109. end
  1110. this:Set(a, b, c)
  1111. this.Destroy = function(self)
  1112. mPart1:Destroy()
  1113. mPart2:Destroy()
  1114. end
  1115. return this
  1116. end
  1117. local SlashTime = nil
  1118. Button1Down = function()
  1119. if CanAttack == true then
  1120. if SlashTime == nil or tick() - SlashTime > 2 then
  1121. SlashTime = tick()
  1122. CanAttack = false
  1123. RARot = CFrame.Angles(math.rad(15), math.rad(135), math.rad(50))
  1124. LARot = CFrame.Angles(math.rad(-25), math.rad(-10), 0)
  1125. TWCFr = CFrame.Angles(0, math.rad(15), 0)
  1126. RASpeed = 0.2
  1127. LASpeed = 0.2
  1128. wait(0.25)
  1129. RASpeed = 0.3
  1130. TWCFr = CFrame.Angles(0, math.rad(5), 0)
  1131. LASpeed = 0.3
  1132. LARot = CFrame.Angles(math.rad(5), math.rad(-10), 0)
  1133. RARot = CFrame.Angles(math.rad(math.random(-15, 5)), math.rad(math.random(-30, -10)), math.rad(math.random(60, 90)))
  1134. Slashing = true
  1135. wait(0.15)
  1136. Slashing = false
  1137. RASpeed = 0.1
  1138. LASPeed = 0.1
  1139. TWCFr = CFrame.Angles(0, 0, 0)
  1140. LARot = CFrame.Angles(math.rad(0), math.rad(-10), 0)
  1141. RARot = CFrame.Angles(math.rad(0), math.rad(10), 0)
  1142. wait(0.35)
  1143. CanAttack = true
  1144. else
  1145. SlashTime = nil
  1146. CanAttack = false
  1147. local Rot = CFrToRot(Torso2, RA0Joint, CFrame.new(math.random(-5, -1) * 0.1, 10, -2))
  1148. LARot = CFrame.Angles(math.rad(-35), math.rad(-10), 0)
  1149. RARotOffset = CFrame.Angles(math.rad(90), 0, 0)
  1150. TWCFr = CFrame.Angles(math.rad(5), 0, 0)
  1151. RARot = Rot
  1152. LASpeed = 0.2
  1153. RASpeed = 0.2
  1154. TWSpeed = 0.2
  1155. wait(0.25)
  1156. RASpeed = 0.3
  1157. LASpeed = 0.3
  1158. TWSpeed = 0.3
  1159. Slashing = true
  1160. TWCFr = CFrame.Angles(math.rad(-5), 0, 0)
  1161. LARot = CFrame.Angles(math.rad(5), math.rad(-10), 0)
  1162. RARot = CFrToRot(Torso2, RA0Joint, CFrame.new(math.random(1, 5) * 0.1, -5, -1.5))
  1163. wait(0.2)
  1164. Slashing = false
  1165. RASpeed = 0.1
  1166. LASpeed = 0.1
  1167. TWSpeed = 0.1
  1168. RARotOffset = CFrame.Angles(math.rad(0), 0, 0)
  1169. TWCFr = CFrame.Angles(0, 0, 0)
  1170. LARot = CFrame.Angles(math.rad(0), math.rad(-10), 0)
  1171. RARot = CFrame.Angles(math.rad(0), math.rad(10), 0)
  1172. wait(0.35)
  1173. LastTrail = nil
  1174. CanAttack = true
  1175. end
  1176. end
  1177. end
  1178. Mouse.KeyDown:connect(function(key)
  1179. key = key:lower()
  1180. if key == "q" then
  1181. a = not a
  1182. if a then
  1183. for i = 1, 10 do
  1184. wait()
  1185. for _,v in pairs(m1:GetChildren()) do
  1186. if v.ClassName == "Part" then
  1187. v.Transparency = v.Transparency - 0.1
  1188. end
  1189. end
  1190. for _,v in pairs(m2:GetChildren()) do
  1191. if v.ClassName == "Part" then
  1192. v.Transparency = v.Transparency - 0.1
  1193. end
  1194. end
  1195. end
  1196. else
  1197. do
  1198. for i = 1, 10 do
  1199. wait()
  1200. for _,v in pairs(m1:GetChildren()) do
  1201. if v.ClassName == "Part" then
  1202. v.Transparency = v.Transparency + 0.1
  1203. end
  1204. end
  1205. for _,v in pairs(m2:GetChildren()) do
  1206. if v.ClassName == "Part" then
  1207. v.Transparency = v.Transparency + 0.1
  1208. end
  1209. end
  1210. end
  1211. end
  1212. end
  1213. end
  1214. end)
  1215. Mouse.Button1Down:connect(Button1Down)
  1216. local LastTrail = nil
  1217. local Trails = {}
  1218. Humanoid.Running:connect(function(Speed)
  1219. if Speed > 1 and CharAnim ~= "Walk" then
  1220. AnimFrame = 0
  1221. CharAnim = "Walk"
  1222. else
  1223. if Speed < 1 and CharAnim ~= "Idle" then
  1224. AnimFrame = -1
  1225. CharAnim = "Idle"
  1226. end
  1227. end
  1228. end)
  1229. Humanoid.Jumping:connect(function(IsJumping)
  1230. if IsJumping == true and CharAnim ~= "Jump" then
  1231. AnimFrame = 0
  1232. CharAnim = "Jump"
  1233. end
  1234. end)
  1235. while wait() do
  1236. local New = Interpolate(RACur, RARot)(RASpeed)
  1237. local New2 = Interpolate(RACur2, RARotOffset)(RASpeed)
  1238. RAW.C0 = RA0Joint * New2 * New
  1239. RACur = New
  1240. RACur2 = New2
  1241. local New = Interpolate(LACur, LARot)(LASpeed)
  1242. local New2 = Interpolate(LACur2, LARotOffset)(LASpeed)
  1243. LAW.C0 = LA0Joint * New2 * New
  1244. LACur = New
  1245. LACur2 = New2
  1246. local New = Interpolate(TorsoWeld.C0, CFrame.new(0, -1, 0) * TWCFr)(TWSpeed)
  1247. TorsoWeld.C0 = New
  1248. local New = Interpolate(HeadWeld.C0, CFrame.new(0, 1, 0) * HWCFr)(HWSpeed)
  1249. HeadWeld.C0 = New
  1250. local New = Interpolate(RLCur, RLRot)(RLSpeed)
  1251. local New2 = Interpolate(RLCur2, RLRotOffset)(RLSpeed)
  1252. RLW.C0 = RL0Joint * New2 * New
  1253. RLCur = New
  1254. RLCur2 = New2
  1255. local New = Interpolate(LLCur, LLRot)(LLSpeed)
  1256. local New2 = Interpolate(LLCur2, LLRotOffset)(LLSpeed)
  1257. LLW.C0 = LL0Joint * New2 * New
  1258. LLCur = New
  1259. LLCur2 = New2
  1260. if Slashing then
  1261. local P1 = Handle.CFrame * CFrame.new(-5.5, 0, 0).p
  1262. local P2 = Handle.CFrame * CFrame.new(-1, 0, 0).p
  1263. if LastTrail then
  1264. local p1 = CreateTriangle(Char, LastTrail[2], LastTrail[1], P2)
  1265. local p2 = CreateTriangle(Char, LastTrail[1], P1, P2)
  1266. Trails[#Trails + 1] = p1
  1267. Trails[#Trails + 1] = p2
  1268. end
  1269. do
  1270. do
  1271. do
  1272. LastTrail = {P1, P2}
  1273. LastTrail = nil
  1274. for i,v in pairs(Trails) do
  1275. v:SetProperty("Transparency", v:GetProperty("Transparency") + 0.025)
  1276. if 1 <= v:GetProperty("Transparency") then
  1277. v:Destroy()
  1278. Trails[i] = nil
  1279. end
  1280. end
  1281. if CharAnim == "Idle" then
  1282. if 0 < AnimFrame and CanAttack == true then
  1283. AnimFrame = AnimFrame + 0.01
  1284. HWSpeed = 0.01
  1285. RASpeed = 0.01
  1286. LASpeed = 0.01
  1287. RLSpeed = 0.01
  1288. LLSpeed = 0.01
  1289. if AnimFrame < 1 then
  1290. HWCFr = CFrame.Angles(math.rad(7), 0, 0)
  1291. TWCFr = CFrame.Angles(math.rad(1), 0, 0)
  1292. RARot = CFrame.Angles(math.rad(-5), math.rad(5), math.rad(5))
  1293. LARot = CFrame.Angles(math.rad(-5), math.rad(-5), math.rad(-5))
  1294. RLRot = CFrame.Angles(math.rad(-2), 0, math.rad(7))
  1295. LLRot = CFrame.Angles(math.rad(2), 0, math.rad(-7))
  1296. else
  1297. if AnimFrame < 2 then
  1298. HWCFr = CFrame.Angles(0, 0, 0)
  1299. TWCFr = CFrame.Angles(0, 0, 0)
  1300. RARot = CFrame.Angles(math.rad(0), math.rad(10), 0)
  1301. LARot = CFrame.Angles(math.rad(0), math.rad(-10), 0)
  1302. RLRot = CFrame.Angles(math.rad(0), 0, math.rad(5))
  1303. LLRot = CFrame.Angles(math.rad(0), 0, math.rad(-5))
  1304. else
  1305. AnimFrame = 0
  1306. end
  1307. end
  1308. else
  1309. AnimFrame = AnimFrame + 0.1
  1310. if CanAttack == true then
  1311. HWSpeed = 0.1
  1312. RASpeed = 0.1
  1313. LASpeed = 0.1
  1314. RLSpeed = 0.1
  1315. LLSpeed = 0.1
  1316. HWCFr = CFrame.Angles(0, 0, 0)
  1317. TWCFr = CFrame.Angles(0, 0, 0)
  1318. RARot = CFrame.Angles(math.rad(0), math.rad(10), 0)
  1319. LARot = CFrame.Angles(math.rad(0), math.rad(-10), 0)
  1320. RLRot = CFrame.Angles(math.rad(0), 0, math.rad(5))
  1321. LLRot = CFrame.Angles(math.rad(0), 0, math.rad(-5))
  1322. else
  1323. RLSpeed = 0.1
  1324. LLSpeed = 0.1
  1325. RLRot = CFrame.Angles(math.rad(0), 0, math.rad(5))
  1326. LLRot = CFrame.Angles(math.rad(0), 0, math.rad(-5))
  1327. end
  1328. end
  1329. else
  1330. if CharAnim == "Walk" then
  1331. if CanAttack == true then
  1332. AnimFrame = AnimFrame + 0.05
  1333. HWSpeed = 0.1
  1334. RASpeed = 0.1
  1335. LASpeed = 0.1
  1336. RLSpeed = 0.1
  1337. LLSpeed = 0.1
  1338. if AnimFrame < 1 then
  1339. HWCFr = CFrame.Angles(math.rad(0), math.rad(-2), 0)
  1340. TWCFr = CFrame.Angles(0, math.rad(2), 0)
  1341. RARot = CFrame.Angles(math.rad(-5), math.rad(5), math.rad(5))
  1342. LARot = CFrame.Angles(math.rad(55), math.rad(-5), math.rad(-5))
  1343. RLRot = CFrame.Angles(math.rad(55), 0, math.rad(7))
  1344. LLRot = CFrame.Angles(math.rad(-55), 0, math.rad(-7))
  1345. else
  1346. if AnimFrame < 2 then
  1347. HWCFr = CFrame.Angles(0, math.rad(2), 0)
  1348. TWCFr = CFrame.Angles(0, math.rad(-2), 0)
  1349. RARot = CFrame.Angles(math.rad(15), math.rad(10), 0)
  1350. LARot = CFrame.Angles(math.rad(-55), math.rad(-10), 0)
  1351. RLRot = CFrame.Angles(math.rad(-55), 0, math.rad(5))
  1352. LLRot = CFrame.Angles(math.rad(55), 0, math.rad(-5))
  1353. else
  1354. AnimFrame = 0
  1355. end
  1356. end
  1357. else
  1358. AnimFrame = AnimFrame + 0.05
  1359. RLSpeed = 0.1
  1360. LLSpeed = 0.1
  1361. if AnimFrame < 1 then
  1362. RLRot = CFrame.Angles(math.rad(55), 0, math.rad(7))
  1363. LLRot = CFrame.Angles(math.rad(-55), 0, math.rad(-7))
  1364. else
  1365. if AnimFrame < 2 then
  1366. RLRot = CFrame.Angles(math.rad(-55), 0, math.rad(5))
  1367. LLRot = CFrame.Angles(math.rad(55), 0, math.rad(-5))
  1368. else
  1369. AnimFrame = 0
  1370. end
  1371. end
  1372. end
  1373. else
  1374. if CharAnim == "Jump" then
  1375. AnimFrame = AnimFrame + 0.05
  1376. if CanAttack == true then
  1377. HWSpeed = 0.1
  1378. RASpeed = 0.1
  1379. LASpeed = 0.1
  1380. RLSpeed = 0.1
  1381. LLSpeed = 0.1
  1382. if AnimFrame < 1 then
  1383. HWCFr = CFrame.Angles(math.rad(7), 0, 0)
  1384. TWCFr = CFrame.Angles(math.rad(4), 0, 0)
  1385. RARot = CFrame.Angles(math.rad(75), math.rad(5), math.rad(10))
  1386. LARot = CFrame.Angles(math.rad(140), math.rad(-5), math.rad(-50))
  1387. RLRot = CFrame.Angles(math.rad(-2), 0, math.rad(15))
  1388. LLRot = CFrame.Angles(math.rad(2), 0, math.rad(-15))
  1389. else
  1390. if AnimFrame < 2 then
  1391. HWCFr = CFrame.Angles(0, 0, 0)
  1392. TWCFr = CFrame.Angles(0, 0, 0)
  1393. RARot = CFrame.Angles(math.rad(0), math.rad(10), 0)
  1394. LARot = CFrame.Angles(math.rad(0), math.rad(-10), 0)
  1395. RLRot = CFrame.Angles(math.rad(0), 0, math.rad(5))
  1396. LLRot = CFrame.Angles(math.rad(0), 0, math.rad(-5))
  1397. else
  1398. AnimFrame = 0
  1399. if Torso.Velocity.Magnitude < 1 then
  1400. CharAnim = "Idle"
  1401. else
  1402. CharAnim = "Walk"
  1403. end
  1404. end
  1405. end
  1406. else
  1407. RLSpeed = 0.1
  1408. LLSpeed = 0.1
  1409. if AnimFrame < 1 then
  1410. RLRot = CFrame.Angles(math.rad(-2), 0, math.rad(15))
  1411. LLRot = CFrame.Angles(math.rad(2), 0, math.rad(-15))
  1412. else
  1413. if AnimFrame < 2 then
  1414. RLRot = CFrame.Angles(math.rad(0), 0, math.rad(5))
  1415. LLRot = CFrame.Angles(math.rad(0), 0, math.rad(-5))
  1416. else
  1417. AnimFrame = 0
  1418. if Torso.Velocity.Magnitude < 1 then
  1419. CharAnim = "Idle"
  1420. else
  1421. CharAnim = "Walk"
  1422. end
  1423. end
  1424. end
  1425. end
  1426. end
  1427. end
  1428. end
  1429. RenderStepped:wait()
  1430. -- DECOMPILER ERROR at PC5634: LeaveBlock: unexpected jumping out DO_STMT
  1431.  
  1432. -- DECOMPILER ERROR at PC5634: LeaveBlock: unexpected jumping out DO_STMT
  1433.  
  1434. -- DECOMPILER ERROR at PC5634: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1435.  
  1436. -- DECOMPILER ERROR at PC5634: LeaveBlock: unexpected jumping out IF_STMT
  1437.  
  1438. end
  1439. end
  1440. end
  1441. end
  1442. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement