Madara Final Form


SUBMITTED BY: Pamlau

DATE: March 8, 2017, 12:29 p.m.

FORMAT: Lua

SIZE: 70.4 kB

HITS: 1590

  1. Player = game.Players.LocalPlayer
  2. char = Player.Character
  3. Cha = char
  4. Mau5 = Player:GetMouse()
  5. hed = char.Head
  6. rarm = char["Right Arm"]
  7. function nooutline(part)
  8. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  9. end
  10. Cha.Head.face.Texture = "http://www.roblox.com/asset/?id=101765221"
  11. Cha.Shirt:Remove()
  12. Cha.Pants:Remove()
  13. Shirt = Instance.new("Shirt",Character)
  14. Shirt.Parent = Cha
  15. Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=249639658"
  16. Pant = Instance.new("Pants",Character)
  17. Pant.Parent = Cha
  18. Pant.PantsTemplate = "http://www.roblox.com/asset/?id=249639685"
  19. lite = Instance.new("PointLight")
  20. lite.Parent = Cha.Torso
  21. lite.Brightness = 100
  22. lite.Range = 8
  23. lite.Color = Color3.new(1,1,1)
  24. -------------Chakra Balls--------------------
  25. Sphere = Instance.new("Part",Cha)
  26. Sphere.TopSurface = "Smooth"
  27. Sphere.BottomSurface = "Smooth"
  28. Sphere.FormFactor = "Custom"
  29. Sphere.Size = Vector3.new(1,1,1)
  30. Sphere.CanCollide = True
  31. Sphere.BrickColor = BrickColor.new("Really black")
  32. SphereMesh = Instance.new("SpecialMesh", Sphere)
  33. SphereMesh.MeshType = "Sphere"
  34. SphereMesh.Scale = Vector3.new(1,1,1)
  35. SphereWeld = Instance.new("Weld",Cha)
  36. SphereWeld.Part0 = Cha.Torso
  37. SphereWeld.Part1 = Sphere
  38. SphereWeld.C1 = CFrame.new(3, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  39. Sphere2 = Instance.new("Part",Cha)
  40. Sphere2.TopSurface = "Smooth"
  41. Sphere2.BottomSurface = "Smooth"
  42. Sphere2.FormFactor = "Custom"
  43. Sphere2.Size = Vector3.new(1,1,1)
  44. Sphere2.CanCollide = True
  45. Sphere2.BrickColor = BrickColor.new("Really black")
  46. Sphere2Mesh = Instance.new("SpecialMesh", Sphere2)
  47. Sphere2Mesh.MeshType = "Sphere"
  48. Sphere2Mesh.Scale = Vector3.new(1,1,1)
  49. Sphere2Weld = Instance.new("Weld",Cha)
  50. Sphere2Weld.Part0 = Cha.Torso
  51. Sphere2Weld.Part1 = Sphere2
  52. Sphere2Weld.C1 = CFrame.new(-3, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  53. Sphere3 = Instance.new("Part",Cha)
  54. Sphere3.TopSurface = "Smooth"
  55. Sphere3.BottomSurface = "Smooth"
  56. Sphere3.FormFactor = "Custom"
  57. Sphere3.Size = Vector3.new(1,1,1)
  58. Sphere3.CanCollide = True
  59. Sphere3.BrickColor = BrickColor.new("Really black")
  60. Sphere3Mesh = Instance.new("SpecialMesh", Sphere3)
  61. Sphere3Mesh.MeshType = "Sphere"
  62. Sphere3Mesh.Scale = Vector3.new(1,1,1)
  63. Sphere3Weld = Instance.new("Weld",Cha)
  64. Sphere3Weld.Part0 = Cha.Torso
  65. Sphere3Weld.Part1 = Sphere3
  66. Sphere3Weld.C1 = CFrame.new(-2, -2, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  67. Sphere4 = Instance.new("Part",Cha)
  68. Sphere4.TopSurface = "Smooth"
  69. Sphere4.BottomSurface = "Smooth"
  70. Sphere4.FormFactor = "Custom"
  71. Sphere4.Size = Vector3.new(1,1,1)
  72. Sphere4.CanCollide = True
  73. Sphere4.BrickColor = BrickColor.new("Really black")
  74. Sphere4Mesh = Instance.new("SpecialMesh", Sphere4)
  75. Sphere4Mesh.MeshType = "Sphere"
  76. Sphere4Mesh.Scale = Vector3.new(1,1,1)
  77. Sphere4Weld = Instance.new("Weld",Cha)
  78. Sphere4Weld.Part0 = Cha.Torso
  79. Sphere4Weld.Part1 = Sphere4
  80. Sphere4Weld.C1 = CFrame.new(2, -2, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  81. Sphere5 = Instance.new("Part",Cha)
  82. Sphere5.TopSurface = "Smooth"
  83. Sphere5.BottomSurface = "Smooth"
  84. Sphere5.FormFactor = "Custom"
  85. Sphere5.Size = Vector3.new(1,1,1)
  86. Sphere5.CanCollide = True
  87. Sphere5.BrickColor = BrickColor.new("Really black")
  88. Sphere5Mesh = Instance.new("SpecialMesh", Sphere5)
  89. Sphere5Mesh.MeshType = "Sphere"
  90. Sphere5Mesh.Scale = Vector3.new(1,1,1)
  91. Sphere5Weld = Instance.new("Weld",Cha)
  92. Sphere5Weld.Part0 = Cha.Torso
  93. Sphere5Weld.Part1 = Sphere5
  94. Sphere5Weld.C1 = CFrame.new(0, -4, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  95. ----------------------------------------------------
  96. local m = Instance.new("Model")
  97. m.Name = "Hair"
  98. p1 = Instance.new("Part", m)
  99. p1.BrickColor = BrickColor.new("Institutional white")
  100. p1.FormFactor = Enum.FormFactor.Symmetric
  101. p1.Size = Vector3.new(1, 1, 1)
  102. p1.CFrame = CFrame.new(12.5095692, 22.9280014, 28.5988674, -1.79592973e-007, -0.978694081, 0.205298647, -1.48348063e-008, -0.205299929, -0.978699148, 0.999994814, 2.38417414e-007, -2.98021181e-008)
  103. p1.CanCollide = false
  104. p1.Locked = true
  105. p1.BottomSurface = Enum.SurfaceType.Smooth
  106. p1.TopSurface = Enum.SurfaceType.Smooth
  107. b1 = Instance.new("SpecialMesh", p1)
  108. b1.MeshId = "http://www.roblox.com/asset/?id=12212520"
  109. b1.TextureId = ""
  110. b1.MeshType = Enum.MeshType.FileMesh
  111. b1.Name = "Mesh"
  112. b1.VertexColor = Vector3.new(0, 0, 0)
  113. b1.Scale = Vector3.new(1, 1.60000002, 1.29999995)
  114. p2 = Instance.new("Part", m)
  115. p2.BrickColor = BrickColor.new("Pastel brown")
  116. p2.Transparency = 1
  117. p2.Name = "Head"
  118. p2.FormFactor = Enum.FormFactor.Symmetric
  119. p2.Size = Vector3.new(2, 1, 1)
  120. p2.CFrame = CFrame.new(13.299921, 22.8300076, 28.5998688, -1.19988712e-007, 8.94068393e-008, -0.999995589, -1.48348125e-008, 1, -8.94068108e-008, 0.999995589, -1.48348231e-008, 2.39197504e-007)
  121. p2.CanCollide = false
  122. p2.Locked = true
  123. p2.TopSurface = Enum.SurfaceType.Smooth
  124. b2 = Instance.new("SpecialMesh", p2)
  125. b2.MeshType = Enum.MeshType.Head
  126. b2.Name = "Mesh"
  127. b2.Scale = Vector3.new(1.25, 1.25, 1.25)
  128. p3 = Instance.new("Part", m)
  129. p3.BrickColor = BrickColor.new("Institutional white")
  130. p3.FormFactor = Enum.FormFactor.Symmetric
  131. p3.Size = Vector3.new(2, 2, 2)
  132. p3.CFrame = CFrame.new(13.2999649, 23.4000015, 28.5999584, -1.19728938e-007, 5.96046092e-008, -0.999997199, -9.88988447e-009, 1, -5.96045844e-008, 0.999997199, -9.88988802e-009, 1.19728938e-007)
  133. p3.CanCollide = false
  134. p3.Locked = true
  135. p3.BottomSurface = Enum.SurfaceType.Smooth
  136. p3.TopSurface = Enum.SurfaceType.Smooth
  137. b3 = Instance.new("SpecialMesh", p3)
  138. b3.MeshId = "http://www.roblox.com/asset/?id=16627529"
  139. b3.TextureId = ""
  140. b3.MeshType = Enum.MeshType.FileMesh
  141. b3.Name = "Mesh"
  142. b3.VertexColor = Vector3.new(0, 0, 0)
  143. b3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995)
  144. p4 = Instance.new("Part", m)
  145. p4.BrickColor = BrickColor.new("Institutional white")
  146. p4.FormFactor = Enum.FormFactor.Symmetric
  147. p4.Size = Vector3.new(1, 1, 1)
  148. p4.CFrame = CFrame.new(13.220191, 23.5300064, 28.5998363, -2.39457108e-007, 1.19209027e-007, -0.99999398, -1.97797441e-008, 1, -1.19208977e-007, 0.99999398, -1.97797512e-008, 2.39457108e-007)
  149. p4.CanCollide = false
  150. p4.Locked = true
  151. p4.BottomSurface = Enum.SurfaceType.Smooth
  152. p4.TopSurface = Enum.SurfaceType.Smooth
  153. b4 = Instance.new("SpecialMesh", p4)
  154. b4.MeshId = "http://www.roblox.com/asset/?id=19326912"
  155. b4.TextureId = ""
  156. b4.MeshType = Enum.MeshType.FileMesh
  157. b4.Name = "Mesh"
  158. b4.VertexColor = Vector3.new(0, 0, 0)
  159. p5 = Instance.new("Part", m)
  160. p5.BrickColor = BrickColor.new("Institutional white")
  161. p5.FormFactor = Enum.FormFactor.Symmetric
  162. p5.Size = Vector3.new(1, 1, 1)
  163. p5.CFrame = CFrame.new(13.299963, 23.1500015, 28.5999584, -4.78911147e-007, 2.384173e-007, -0.999987543, -3.95593887e-008, 1, -2.38417186e-007, 0.999987543, -3.95594029e-008, 4.78911147e-007)
  164. p5.CanCollide = false
  165. p5.Locked = true
  166. p5.BottomSurface = Enum.SurfaceType.Smooth
  167. p5.TopSurface = Enum.SurfaceType.Smooth
  168. b5 = Instance.new("SpecialMesh", p5)
  169. b5.MeshId = "http://www.roblox.com/asset/?id=45916884"
  170. b5.TextureId = ""
  171. b5.MeshType = Enum.MeshType.FileMesh
  172. b5.Name = "Mesh"
  173. b5.VertexColor = Vector3.new(0, 0, 0)
  174. b5.Scale = Vector3.new(1, 0.899999976, 1)
  175. p6 = Instance.new("Part", m)
  176. p6.BrickColor = BrickColor.new("Institutional white")
  177. p6.FormFactor = Enum.FormFactor.Symmetric
  178. p6.Size = Vector3.new(1, 1, 1)
  179. p6.CFrame = CFrame.new(13.1003246, 23.2700119, 28.5500946, -9.57822294e-007, 4.76831474e-007, -0.999987543, -7.91193955e-008, 1, -2.84217094e-014, 0.999987543, -4.04650001e-015, 5.68434189e-014)
  180. p6.CanCollide = false
  181. p6.Locked = true
  182. p6.BottomSurface = Enum.SurfaceType.Smooth
  183. p6.TopSurface = Enum.SurfaceType.Smooth
  184. b6 = Instance.new("SpecialMesh", p6)
  185. b6.MeshId = "http://www.roblox.com/asset/?id=62246019"
  186. b6.TextureId = ""
  187. b6.MeshType = Enum.MeshType.FileMesh
  188. b6.Name = "Mesh"
  189. b6.VertexColor = Vector3.new(0, 0, 0)
  190. p7 = Instance.new("Part", m)
  191. p7.BrickColor = BrickColor.new("Institutional white")
  192. p7.FormFactor = Enum.FormFactor.Symmetric
  193. p7.Size = Vector3.new(1, 1, 1)
  194. p7.CFrame = CFrame.new(13.1008148, 23.0000076, 28.4990215, -9.57822294e-007, 4.76831502e-007, -0.999987543, -7.91194026e-008, 1, 3.5914197e-019, 0.999987543, 3.05883884e-015, 5.68434189e-014)
  195. p7.CanCollide = false
  196. p7.Locked = true
  197. p7.BottomSurface = Enum.SurfaceType.Smooth
  198. p7.TopSurface = Enum.SurfaceType.Smooth
  199. b7 = Instance.new("SpecialMesh", p7)
  200. b7.MeshId = "http://www.roblox.com/asset/?id=76056263"
  201. b7.TextureId = ""
  202. b7.MeshType = Enum.MeshType.FileMesh
  203. b7.Name = "Mesh"
  204. b7.VertexColor = Vector3.new(0, 0, 0)
  205. p8 = Instance.new("Part", m)
  206. p8.BrickColor = BrickColor.new("Institutional white")
  207. p8.FormFactor = Enum.FormFactor.Symmetric
  208. p8.Size = Vector3.new(1, 1, 1)
  209. p8.CFrame = CFrame.new(12.3756638, 22.3460064, 28.5989819, -9.57822294e-007, -0.80510509, 0.593111277, -7.91194026e-008, -0.593119025, -0.805114806, 0.999987543, -1.28919533e-014, 2.06653508e-014)
  210. p8.CanCollide = false
  211. p8.Locked = true
  212. p8.BottomSurface = Enum.SurfaceType.Smooth
  213. p8.TopSurface = Enum.SurfaceType.Smooth
  214. b8 = Instance.new("SpecialMesh", p8)
  215. b8.MeshId = "http://www.roblox.com/asset/?id=12212520"
  216. b8.TextureId = ""
  217. b8.MeshType = Enum.MeshType.FileMesh
  218. b8.Name = "Mesh"
  219. b8.VertexColor = Vector3.new(0, 0, 0)
  220. b8.Scale = Vector3.new(1, 1.60000002, 1.29999995)
  221. p9 = Instance.new("Part", m)
  222. p9.BrickColor = BrickColor.new("Institutional white")
  223. p9.FormFactor = Enum.FormFactor.Symmetric
  224. p9.Size = Vector3.new(2, 1, 2)
  225. p9.CFrame = CFrame.new(13.2349396, 23.2430096, 28.5993462, -9.57822294e-007, -0.0995007455, -0.995025039, -7.91194097e-008, 0.995037317, -0.0995024443, 0.999987543, -5.41274382e-016, -2.16294996e-014)
  226. p9.CanCollide = false
  227. p9.Locked = true
  228. p9.BottomSurface = Enum.SurfaceType.Smooth
  229. p9.TopSurface = Enum.SurfaceType.Smooth
  230. b9 = Instance.new("SpecialMesh", p9)
  231. b9.MeshId = "http://www.roblox.com/asset/?id=12259089"
  232. b9.TextureId = ""
  233. b9.MeshType = Enum.MeshType.FileMesh
  234. b9.Name = "Mesh"
  235. b9.VertexColor = Vector3.new(0, 0, 0)
  236. b9.Scale = Vector3.new(1.01999998, 1.04999995, 1.04999995)
  237. p10 = Instance.new("Part", m)
  238. p10.BrickColor = BrickColor.new("Institutional white")
  239. p10.FormFactor = Enum.FormFactor.Symmetric
  240. p10.Size = Vector3.new(1, 1, 1)
  241. p10.CFrame = CFrame.new(12.9792271, 23.7430058, 28.6003838, -9.57822294e-007, -0.68356514, -0.729872584, -7.91194097e-008, 0.729881346, -0.683573902, 0.999987543, -1.35710662e-014, -1.68509463e-014)
  242. p10.CanCollide = false
  243. p10.Locked = true
  244. p10.BottomSurface = Enum.SurfaceType.Smooth
  245. p10.TopSurface = Enum.SurfaceType.Smooth
  246. b10 = Instance.new("SpecialMesh", p10)
  247. b10.MeshId = "http://www.roblox.com/asset/?id=12212520"
  248. b10.TextureId = ""
  249. b10.MeshType = Enum.MeshType.FileMesh
  250. b10.Name = "Mesh"
  251. b10.VertexColor = Vector3.new(0, 0, 0)
  252. b10.Scale = Vector3.new(1, 1.60000002, 1.29999995)
  253. p11 = Instance.new("Part", m)
  254. p11.BrickColor = BrickColor.new("Institutional white")
  255. p11.FormFactor = Enum.FormFactor.Symmetric
  256. p11.Size = Vector3.new(1, 1, 1)
  257. p11.CFrame = CFrame.new(12.8353081, 23.4680061, 28.5991058, -9.57822294e-007, -0.989463568, -0.144696504, -7.91194026e-008, 0.144697905, -0.989475906, 0.999987543, -2.11154641e-014, -4.7186215e-015)
  258. p11.CanCollide = false
  259. p11.Locked = true
  260. p11.BottomSurface = Enum.SurfaceType.Smooth
  261. p11.TopSurface = Enum.SurfaceType.Smooth
  262. b11 = Instance.new("SpecialMesh", p11)
  263. b11.MeshId = "http://www.roblox.com/asset/?id=12212520"
  264. b11.TextureId = ""
  265. b11.MeshType = Enum.MeshType.FileMesh
  266. b11.Name = "Mesh"
  267. b11.VertexColor = Vector3.new(0, 0, 0)
  268. b11.Scale = Vector3.new(1, 1.60000002, 1.29999995)
  269. w1 = Instance.new("Weld", p1)
  270. w1.Name = "Head_Weld"
  271. w1.Part0 = p1
  272. w1.C0 = CFrame.new(-28.5990181, 16.950285, 19.8713875, 0, 0, 0.999999583, -0.97869873, -0.205299839, 5.96046448e-008, 0.20529972, -0.978699148, -7.4505806e-009)
  273. w1.Part1 = p2
  274. w1.C1 = CFrame.new(-28.5999966, -22.8300076, 13.2999811, 5.96046448e-008, 0, 0.999999642, 0, 1, 0, -0.999999642, 0, 5.96046448e-008)
  275. w2 = Instance.new("Weld", p2)
  276. w2.Name = "Weld"
  277. w2.Part0 = p2
  278. w2.C0 = CFrame.new(-28.5999527, -22.8300056, 13.2999592, -2.5997493e-010, -4.94494357e-009, 0.999998808, 2.98023224e-008, 1, -4.94494712e-009, -0.999998808, -2.98023224e-008, 1.19469163e-007)
  279. w2.Part1 = p3
  280. w2.C1 = CFrame.new(-28.5999947, -23.3999996, 13.2999821, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
  281. w3 = Instance.new("Weld", p3)
  282. w3.Name = "Weld"
  283. w3.Part0 = p3
  284. w3.C0 = CFrame.new(-28.5999012, -23.3999996, 13.2999363, -1.19728938e-007, -9.88988447e-009, 0.999997199, 5.96046092e-008, 1, -9.88988802e-009, -0.999997199, -5.96045844e-008, 1.19728938e-007)
  285. w3.Part1 = p4
  286. w3.C1 = CFrame.new(-28.5998726, -23.5300045, 13.2202082, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
  287. w4 = Instance.new("Weld", p4)
  288. w4.Name = "Weld"
  289. w4.Part0 = p4
  290. w4.C0 = CFrame.new(-28.5996857, -23.5300064, 13.2201195, -2.39457108e-007, -1.97797441e-008, 0.99999398, 1.19209027e-007, 1, -1.97797512e-008, -0.99999398, -1.19208977e-007, 2.39457108e-007)
  291. w4.Part1 = p5
  292. w4.C1 = CFrame.new(-28.5999947, -23.1499996, 13.2999821, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
  293. w5 = Instance.new("Weld", p5)
  294. w5.Name = "Weld"
  295. w5.Part0 = p5
  296. w5.C0 = CFrame.new(-28.5996189, -23.1500015, 13.2998009, -4.78911147e-007, -3.95593887e-008, 0.999987543, 2.384173e-007, 1, -3.95594029e-008, -0.999987543, -2.38417186e-007, 4.78911147e-007)
  297. w5.Part1 = p6
  298. w5.C1 = CFrame.new(-28.5501289, -23.27001, 13.1003361, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
  299. w6 = Instance.new("Weld", p6)
  300. w6.Name = "Weld"
  301. w6.Part0 = p6
  302. w6.C0 = CFrame.new(-28.5497494, -23.2700157, 13.100173, -9.57822294e-007, -7.91193955e-008, 0.999987543, 4.76831474e-007, 1, -4.04650001e-015, -0.999987543, -2.84217094e-014, 5.68434189e-014)
  303. w6.Part1 = p7
  304. w6.C1 = CFrame.new(-28.4990501, -23.0000057, 13.1008282, 0, 0, 0.999999881, 0, 1, 0, -0.999999881, 0, 0)
  305. w7 = Instance.new("Weld", p7)
  306. w7.Name = "Weld"
  307. w7.Part0 = p7
  308. w7.C0 = CFrame.new(-28.4986763, -23.0000114, 13.1006632, -9.57822294e-007, -7.91194026e-008, 0.999987543, 4.76831502e-007, 1, 3.05883884e-015, -0.999987543, 3.5914197e-019, 5.68434189e-014)
  309. w7.Part1 = p8
  310. w7.C1 = CFrame.new(-28.5990181, 23.2175999, 10.6510067, 0, 0, 0.999999583, -0.805118203, -0.59311378, -5.96046448e-008, 0.593113363, -0.80511874, 0)
  311. w8 = Instance.new("Weld", p8)
  312. w8.Name = "Weld"
  313. w8.Part0 = p8
  314. w8.C0 = CFrame.new(-28.5986366, 23.2175598, 10.6509457, -9.57822294e-007, -7.91194026e-008, 0.999987543, -0.80510509, -0.593119025, -1.28919533e-014, 0.593111277, -0.805114806, 2.06653508e-014)
  315. w8.Part1 = p9
  316. w8.C1 = CFrame.new(-28.5993843, -21.8107243, 15.4820604, 0, 0, 0.999999583, -0.0995036662, 0.995037258, 0, -0.995036721, -0.0995037258, 0)
  317. w9 = Instance.new("Weld", p9)
  318. w9.Name = "Weld"
  319. w9.Part0 = p9
  320. w9.C0 = CFrame.new(-28.598999, -21.8107738, 15.4818439, -9.57822294e-007, -7.91194097e-008, 0.999987543, -0.0995007455, 0.995037317, -5.41274382e-016, -0.995025039, -0.0995024443, -2.16294996e-014)
  321. w9.Part1 = p10
  322. w9.C1 = CFrame.new(-28.6004219, -8.45714283, 25.703455, 0, 0, 0.999999583, -0.683578134, 0.729877055, 2.98023224e-008, -0.729876637, -0.683578491, 8.94069672e-008)
  323. w10 = Instance.new("Weld", p10)
  324. w10.Name = "Weld"
  325. w10.Part0 = p10
  326. w10.C0 = CFrame.new(-28.6000366, -8.4574213, 25.703289, -9.57822294e-007, -7.91194097e-008, 0.999987543, -0.68356514, 0.729881346, -1.35710662e-014, -0.729872584, -0.683573902, -1.68509463e-014)
  327. w10.Part1 = p11
  328. w10.C1 = CFrame.new(-28.5991402, 9.30450344, 25.0782566, 0, 0, 0.999999583, -0.989475787, 0.144696504, 8.94069672e-008, -0.144696444, -0.989476025, 7.4505806e-009)
  329. m.Parent = char
  330. m:MakeJoints()
  331. ----------------------------------------------------
  332. local cor = Instance.new("Part", char.Hair)
  333. cor.Name = "Link"
  334. cor.Locked = true
  335. cor.BottomSurface = 0
  336. cor.CanCollide = false
  337. cor.Size = Vector3.new(1, 9, 1)
  338. cor.Transparency = 1
  339. cor.TopSurface = 0
  340. corw = Instance.new("Weld", cor)
  341. corw.Part0 = hed
  342. corw.Part1 = cor
  343. corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  344. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  345. weld1 = Instance.new("Weld", char.Hair)
  346. weld1.Part0 = cor
  347. weld1.Part1 = char.Hair.Head
  348. weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  349. ----------------------------------------------------
  350. local Pole = Instance.new("Part",char)
  351. Pole.Locked = true
  352. Pole.Size = Vector3.new(1,1,1)
  353. Pole.BrickColor = BrickColor.new("Really black")
  354. Pole.Material = "SmoothPlastic"
  355. Pole.CanCollide = false
  356. local pm = Instance.new("CylinderMesh",Pole)
  357. pm.Scale = Vector3.new(.3,7,.3)
  358. nooutline(Pole)
  359. local PoleWeld = Instance.new("Weld")
  360. PoleWeld.Part0 = rarm
  361. PoleWeld.Part1 = Pole
  362. PoleWeld.C0 = CFrame.new(0,-1,-0.65) * CFrame.Angles(math.rad(-90),math.rad(90),0)
  363. PoleWeld.Parent = Pole
  364. for i = 1,360*(3/4),5 do
  365. local Part = Instance.new("Part",char)
  366. local pm = Instance.new("CylinderMesh", Part)
  367. Part.BrickColor = BrickColor.new("Really black")
  368. Part.FormFactor = "Custom"
  369. Part.Size = Vector3.new(0.2,0.2,0.2)
  370. Part.CanCollide = false
  371. Part.Locked = true
  372. Part.Material = "SmoothPlastic"
  373. nooutline(Part)
  374. pm.Scale = Vector3.new(0.3/0.2,0.8,0.3/0.2)
  375. local Weld2 = Instance.new("Weld")
  376. Weld2.Part0 = Pole
  377. Weld2.Part1 = Part
  378. Weld2.C0 = CFrame.new(0,4.75,0) * CFrame.Angles(math.rad(90),math.rad(i-45),0) * CFrame.new(0,0,-1) * CFrame.Angles(0,0,math.rad(90))
  379. Weld2.Parent = PoleWeld.Part0
  380. end
  381. -----------------------------------------
  382. ----------------
  383. Player=game:GetService("Players").LocalPlayer
  384. Character=Player.Character
  385. PlayerGui=Player.PlayerGui
  386. Backpack=Player.Backpack
  387. Torso=Character.Torso
  388. Head=Character.Head
  389. Humanoid=Character.Humanoid
  390. m=Instance.new('Model',Character)
  391. LeftArm=Character["Left Arm"]
  392. LeftLeg=Character["Left Leg"]
  393. RightArm=Character["Right Arm"]
  394. RightLeg=Character["Right Leg"]
  395. LS=Torso["Left Shoulder"]
  396. LH=Torso["Left Hip"]
  397. RS=Torso["Right Shoulder"]
  398. RH=Torso["Right Hip"]
  399. Face = Head.face
  400. Neck=Torso.Neck
  401. it=Instance.new
  402. attacktype=1
  403. vt=Vector3.new
  404. cf=CFrame.new
  405. euler=CFrame.fromEulerAnglesXYZ
  406. angles=CFrame.Angles
  407. cloaked=false
  408. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  409. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  410. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  411. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  412. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  413. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  414. RootPart=Character.HumanoidRootPart
  415. RootJoint=RootPart.RootJoint
  416. RootCF=euler(-1.57,0,3.14)
  417. attack = false
  418. attackdebounce = false
  419. deb=false
  420. equipped=true
  421. hand=false
  422. MMouse=nil
  423. combo=0
  424. mana=0
  425. trispeed=.2
  426. attackmode='none'
  427. local idle=0
  428. local Anim="Idle"
  429. local Effects={}
  430. local gun=false
  431. local shoot=false
  432. player=nil
  433. mana=0
  434. Attacking=false
  435. asset = "http://www.roblox.com/asset/?id="
  436. meshes = {["blast"] = 20329976,["ring"] = 3270017,["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["cloud"] = 1095708,["diamond"] = 9756362}
  437. sounds = {["explode"] = 130792180;}
  438. torsomesh = "rbxasset://fonts/torso.mesh"
  439. colours = {"Tr. Red","Black","Tr. Blue","Black","Phosph. White","Royal purple"}
  440. local ASpeed = 10
  441. Humanoid.MaxHealth = 500
  442. wait()
  443. Humanoid.Health=500
  444. mouse=Player:GetMouse()
  445. --save shoulders
  446. RSH, LSH=nil, nil
  447. --welds
  448. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  449. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  450. LH=Torso["Left Hip"]
  451. RH=Torso["Right Hip"]
  452. TorsoColor=Torso.BrickColor
  453. function NoOutline(Part)
  454. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  455. end
  456. player=Player
  457. ch=Character
  458. RSH=ch.Torso["Right Shoulder"]
  459. LSH=ch.Torso["Left Shoulder"]
  460. --
  461. --RSH.Parent=nil
  462. --LSH.Parent=nil
  463. --
  464. RW.Name="Right Shoulder"
  465. RW.Part0=ch.Torso
  466. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  467. RW.C1=cf(0, 0.5, 0)
  468. RW.Part1=ch["Right Arm"]
  469. RW.Parent=ch.Torso
  470. --
  471. LW.Name="Left Shoulder"
  472. LW.Part0=ch.Torso
  473. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  474. LW.C1=cf(0, 0.5, 0)
  475. LW.Part1=ch["Left Arm"]
  476. LW.Parent=ch.Torso
  477. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  478. wld = Instance.new("Weld", wp1)
  479. wld.Part0 = wp0
  480. wld.Part1 = wp1
  481. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  482. end
  483. local larm = char["Left Arm"]
  484. local rarm = char["Right Arm"]
  485. local lleg = char["Left Leg"]
  486. local rleg = char["Right Leg"]
  487. local hed = char.Head
  488. local torso = char.Torso
  489. local root = char.HumanoidRootPart
  490. newWeld(torso, lleg, -0.5, -1, 0)
  491. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  492. newWeld(torso, rleg, 0.5, -1, 0)
  493. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  494. Player=game:GetService('Players').LocalPlayer
  495. Character=Player.Character
  496. Mouse=Player:GetMouse()
  497. m=Instance.new('Model',Character)
  498. local function weldBetween(a, b)
  499. local weldd = Instance.new("ManualWeld")
  500. weldd.Part0 = a
  501. weldd.Part1 = b
  502. weldd.C0 = CFrame.new()
  503. weldd.C1 = b.CFrame:inverse() * a.CFrame
  504. weldd.Parent = a
  505. return weldd
  506. end
  507. it=Instance.new
  508. function nooutline(part)
  509. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  510. end
  511. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  512. local fp=it("Part")
  513. fp.formFactor=formfactor
  514. fp.Parent=parent
  515. fp.Reflectance=reflectance
  516. fp.Transparency=transparency
  517. fp.CanCollide=false
  518. fp.Locked=true
  519. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  520. fp.Name=name
  521. fp.Size=size
  522. fp.Position=Character.Torso.Position
  523. nooutline(fp)
  524. fp.Material=material
  525. fp:BreakJoints()
  526. return fp
  527. end
  528. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  529. local mesh=it(Mesh)
  530. mesh.Parent=part
  531. if Mesh=="SpecialMesh" then
  532. mesh.MeshType=meshtype
  533. mesh.MeshId=meshid
  534. end
  535. mesh.Offset=offset
  536. mesh.Scale=scale
  537. return mesh
  538. end
  539. function weld(parent,part0,part1,c0,c1)
  540. local weld=it("Weld")
  541. weld.Parent=parent
  542. weld.Part0=part0
  543. weld.Part1=part1
  544. weld.C0=c0
  545. weld.C1=c1
  546. return weld
  547. end
  548. Player=game:GetService('Players').LocalPlayer
  549. Character=Player.Character
  550. Mouse=Player:GetMouse()
  551. m=Instance.new('Model',Character)
  552. local function weldBetween(a, b)
  553. local weldd = Instance.new("ManualWeld")
  554. weldd.Part0 = a
  555. weldd.Part1 = b
  556. weldd.C0 = CFrame.new()
  557. weldd.C1 = b.CFrame:inverse() * a.CFrame
  558. weldd.Parent = a
  559. return weldd
  560. end
  561. it=Instance.new
  562. function nooutline(part)
  563. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  564. end
  565. function swait(num)
  566. if num==0 or num==nil then
  567. game:service'RunService'.Heartbeat:wait(0)
  568. else
  569. for i=0,num do
  570. game:service'RunService'.Heartbeat:wait(0)
  571. end
  572. end
  573. end
  574. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  575. local mesh=it(Mesh)
  576. mesh.Parent=part
  577. if Mesh=="SpecialMesh" then
  578. mesh.MeshType=meshtype
  579. mesh.MeshId=meshid
  580. end
  581. mesh.Offset=offset
  582. mesh.Scale=scale
  583. return mesh
  584. end
  585. function weld(parent,part0,part1,c0,c1)
  586. local weld=it("Weld")
  587. weld.Parent=parent
  588. weld.Part0=part0
  589. weld.Part1=part1
  590. weld.C0=c0
  591. weld.C1=c1
  592. return weld
  593. end
  594. local function CFrameFromTopBack(at, top, back)
  595. local right = top:Cross(back)
  596. return CFrame.new(at.x, at.y, at.z,
  597. right.x, top.x, back.x,
  598. right.y, top.y, back.y,
  599. right.z, top.z, back.z)
  600. end
  601. function Triangle(a, b, c)
  602. local edg1 = (c-a):Dot((b-a).unit)
  603. local edg2 = (a-b):Dot((c-b).unit)
  604. local edg3 = (b-c):Dot((a-c).unit)
  605. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  606. a, b, c = a, b, c
  607. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  608. a, b, c = b, c, a
  609. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  610. a, b, c = c, a, b
  611. else
  612. assert(false, "unreachable")
  613. end
  614. local len1 = (c-a):Dot((b-a).unit)
  615. local len2 = (b-a).magnitude - len1
  616. local width = (a + (b-a).unit*len1 - c).magnitude
  617. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  618. local list = {}
  619. local Color = BrickColor.new("Really black")
  620. if len1 > 0.01 then
  621. local w1 = Instance.new('WedgePart', m)
  622. game:GetService("Debris"):AddItem(w1,5)
  623. w1.Material = "SmoothPlastic"
  624. w1.FormFactor = 'Custom'
  625. w1.BrickColor = Color
  626. w1.Transparency = 0
  627. w1.Reflectance = 0
  628. w1.Material = "SmoothPlastic"
  629. w1.CanCollide = false
  630. NoOutline(w1)
  631. local sz = Vector3.new(0.2, width, len1)
  632. w1.Size = sz
  633. local sp = Instance.new("SpecialMesh",w1)
  634. sp.MeshType = "Wedge"
  635. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  636. w1:BreakJoints()
  637. w1.Anchored = true
  638. w1.Parent = workspace
  639. w1.Transparency = 0.7
  640. table.insert(Effects,{w1,"Disappear",.01})
  641. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  642. table.insert(list,w1)
  643. end
  644. if len2 > 0.01 then
  645. local w2 = Instance.new('WedgePart', m)
  646. game:GetService("Debris"):AddItem(w2,5)
  647. w2.Material = "SmoothPlastic"
  648. w2.FormFactor = 'Custom'
  649. w2.BrickColor = Color
  650. w2.Transparency = 0
  651. w2.Reflectance = 0
  652. w2.Material = "SmoothPlastic"
  653. w2.CanCollide = false
  654. NoOutline(w2)
  655. local sz = Vector3.new(0.2, width, len2)
  656. w2.Size = sz
  657. local sp = Instance.new("SpecialMesh",w2)
  658. sp.MeshType = "Wedge"
  659. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  660. w2:BreakJoints()
  661. w2.Anchored = true
  662. w2.Parent = workspace
  663. w2.Transparency = 0.7
  664. table.insert(Effects,{w2,"Disappear",.01})
  665. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  666. table.insert(list,w2)
  667. end
  668. return unpack(list)
  669. end
  670. so = function(id,par,vol,pit)
  671. coroutine.resume(coroutine.create(function()
  672. local sou = Instance.new("Sound",par or workspace)
  673. sou.Volume=vol
  674. sou.Pitch=pit or 1
  675. sou.SoundId=id
  676. swait()
  677. sou:play()
  678. game:GetService("Debris"):AddItem(sou,6)
  679. end))
  680. end
  681. function clerp(a,b,t)
  682. local qa = {QuaternionFromCFrame(a)}
  683. local qb = {QuaternionFromCFrame(b)}
  684. local ax, ay, az = a.x, a.y, a.z
  685. local bx, by, bz = b.x, b.y, b.z
  686. local _t = 1-t
  687. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  688. end
  689. function QuaternionFromCFrame(cf)
  690. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  691. local trace = m00 + m11 + m22
  692. if trace > 0 then
  693. local s = math.sqrt(1 + trace)
  694. local recip = 0.5/s
  695. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  696. else
  697. local i = 0
  698. if m11 > m00 then
  699. i = 1
  700. end
  701. if m22 > (i == 0 and m00 or m11) then
  702. i = 2
  703. end
  704. if i == 0 then
  705. local s = math.sqrt(m00-m11-m22+1)
  706. local recip = 0.5/s
  707. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  708. elseif i == 1 then
  709. local s = math.sqrt(m11-m22-m00+1)
  710. local recip = 0.5/s
  711. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  712. elseif i == 2 then
  713. local s = math.sqrt(m22-m00-m11+1)
  714. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  715. end
  716. end
  717. end
  718. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  719. local xs, ys, zs = x + x, y + y, z + z
  720. local wx, wy, wz = w*xs, w*ys, w*zs
  721. local xx = x*xs
  722. local xy = x*ys
  723. local xz = x*zs
  724. local yy = y*ys
  725. local yz = y*zs
  726. local zz = z*zs
  727. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  728. end
  729. function QuaternionSlerp(a, b, t)
  730. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  731. local startInterp, finishInterp;
  732. if cosTheta >= 0.0001 then
  733. if (1 - cosTheta) > 0.0001 then
  734. local theta = math.acos(cosTheta)
  735. local invSinTheta = 1/math.sin(theta)
  736. startInterp = math.sin((1-t)*theta)*invSinTheta
  737. finishInterp = math.sin(t*theta)*invSinTheta
  738. else
  739. startInterp = 1-t
  740. finishInterp = t
  741. end
  742. else
  743. if (1+cosTheta) > 0.0001 then
  744. local theta = math.acos(-cosTheta)
  745. local invSinTheta = 1/math.sin(theta)
  746. startInterp = math.sin((t-1)*theta)*invSinTheta
  747. finishInterp = math.sin(t*theta)*invSinTheta
  748. else
  749. startInterp = t-1
  750. finishInterp = t
  751. end
  752. end
  753. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  754. end
  755. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  756. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  757. end
  758. local function CFrameFromTopBack(at, top, back)
  759. local right = top:Cross(back)
  760. return CFrame.new(at.x, at.y, at.z,
  761. right.x, top.x, back.x,
  762. right.y, top.y, back.y,
  763. right.z, top.z, back.z)
  764. end
  765. function Triangle(a, b, c)
  766. local edg1 = (c-a):Dot((b-a).unit)
  767. local edg2 = (a-b):Dot((c-b).unit)
  768. local edg3 = (b-c):Dot((a-c).unit)
  769. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  770. a, b, c = a, b, c
  771. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  772. a, b, c = b, c, a
  773. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  774. a, b, c = c, a, b
  775. else
  776. assert(false, "unreachable")
  777. end
  778. local len1 = (c-a):Dot((b-a).unit)
  779. local len2 = (b-a).magnitude - len1
  780. local width = (a + (b-a).unit*len1 - c).magnitude
  781. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  782. local list = {}
  783. if len1 > 0.01 then
  784. local w1 = Instance.new('WedgePart', m)
  785. game:GetService("Debris"):AddItem(w1,5)
  786. w1.Material = "SmoothPlastic"
  787. w1.FormFactor = 'Custom'
  788. w1.BrickColor = BrickColor.new("Really black")
  789. w1.Transparency = 0
  790. w1.Reflectance = 0
  791. w1.Material = "SmoothPlastic"
  792. w1.CanCollide = false
  793. NoOutline(w1)
  794. local sz = Vector3.new(0.2, width, len1)
  795. w1.Size = sz
  796. local sp = Instance.new("SpecialMesh",w1)
  797. sp.MeshType = "Wedge"
  798. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  799. w1:BreakJoints()
  800. w1.Anchored = true
  801. w1.Parent = workspace
  802. w1.Transparency = 0.7
  803. table.insert(Effects,{w1,"Disappear",.01})
  804. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  805. table.insert(list,w1)
  806. end
  807. if len2 > 0.01 then
  808. local w2 = Instance.new('WedgePart', m)
  809. game:GetService("Debris"):AddItem(w2,5)
  810. w2.Material = "SmoothPlastic"
  811. w2.FormFactor = 'Custom'
  812. w2.BrickColor = BrickColor.new("Really black")
  813. w2.Transparency = 0
  814. w2.Reflectance = 0
  815. w2.Material = "SmoothPlastic"
  816. w2.CanCollide = false
  817. NoOutline(w2)
  818. local sz = Vector3.new(0.2, width, len2)
  819. w2.Size = sz
  820. local sp = Instance.new("SpecialMesh",w2)
  821. sp.MeshType = "Wedge"
  822. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  823. w2:BreakJoints()
  824. w2.Anchored = true
  825. w2.Parent = workspace
  826. w2.Transparency = 0.7
  827. table.insert(Effects,{w2,"Disappear",.01})
  828. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  829. table.insert(list,w2)
  830. end
  831. return unpack(list)
  832. end
  833. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  834. if hit.Parent==nil then
  835. return
  836. end
  837. h=hit.Parent:FindFirstChild("Humanoid")
  838. for _,v in pairs(hit.Parent:children()) do
  839. if v:IsA("Humanoid") then
  840. h=v
  841. end
  842. end
  843. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  844. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  845. end
  846. if hit.Parent.className=="Hat" then
  847. hit=hit.Parent.Parent:findFirstChild("Head")
  848. end
  849. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  850. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  851. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  852. return
  853. end]]
  854. -- hs(hit,1.2)
  855. c=Instance.new("ObjectValue")
  856. c.Name="creator"
  857. c.Value=game:service("Players").LocalPlayer
  858. c.Parent=h
  859. game:GetService("Debris"):AddItem(c,.5)
  860. Damage=math.random(minim,maxim)
  861. -- h:TakeDamage(Damage)
  862. blocked=false
  863. block=hit.Parent:findFirstChild("Block")
  864. if block~=nil then
  865. print(block.className)
  866. if block.className=="NumberValue" then
  867. if block.Value>0 then
  868. blocked=true
  869. if decreaseblock==nil then
  870. block.Value=block.Value-1
  871. end
  872. end
  873. end
  874. if block.className=="IntValue" then
  875. if block.Value>0 then
  876. blocked=true
  877. if decreaseblock~=nil then
  878. block.Value=block.Value-1
  879. end
  880. end
  881. end
  882. end
  883. if blocked==false then
  884. -- h:TakeDamage(Damage)
  885. h.Health=h.Health-Damage
  886. showDamage(hit.Parent,Damage,.5,BrickColor.new("Dark stone grey"))
  887. else
  888. h.Health=h.Health-(Damage/2)
  889. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  890. end
  891. if Type=="Knockdown" then
  892. hum=hit.Parent.Humanoid
  893. hum.PlatformStand=true
  894. coroutine.resume(coroutine.create(function(HHumanoid)
  895. swait(1)
  896. HHumanoid.PlatformStand=false
  897. end),hum)
  898. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  899. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  900. local bodvol=Instance.new("BodyVelocity")
  901. bodvol.velocity=angle*knockback
  902. bodvol.P=5000
  903. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  904. bodvol.Parent=hit
  905. rl=Instance.new("BodyAngularVelocity")
  906. rl.P=3000
  907. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  908. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  909. rl.Parent=hit
  910. game:GetService("Debris"):AddItem(bodvol,.5)
  911. game:GetService("Debris"):AddItem(rl,.5)
  912. elseif Type=="Normal" then
  913. vp=Instance.new("BodyVelocity")
  914. vp.P=500
  915. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  916. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  917. if KnockbackType==1 then
  918. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  919. elseif KnockbackType==2 then
  920. vp.velocity=Property.CFrame.lookVector*knockback
  921. end
  922. if knockback>0 then
  923. vp.Parent=hit.Parent.Torso
  924. end
  925. game:GetService("Debris"):AddItem(vp,.5)
  926. elseif Type=="Up" then
  927. local bodyVelocity=Instance.new("BodyVelocity")
  928. bodyVelocity.velocity=vt(0,60,0)
  929. bodyVelocity.P=5000
  930. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  931. bodyVelocity.Parent=hit
  932. game:GetService("Debris"):AddItem(bodyVelocity,1)
  933. rl=Instance.new("BodyAngularVelocity")
  934. rl.P=3000
  935. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  936. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  937. rl.Parent=hit
  938. game:GetService("Debris"):AddItem(rl,.5)
  939. elseif Type=="Snare" then
  940. bp=Instance.new("BodyPosition")
  941. bp.P=2000
  942. bp.D=100
  943. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  944. bp.position=hit.Parent.Torso.Position
  945. bp.Parent=hit.Parent.Torso
  946. game:GetService("Debris"):AddItem(bp,1)
  947. elseif Type=="Target" then
  948. if Targetting==false then
  949. ZTarget=hit.Parent.Torso
  950. coroutine.resume(coroutine.create(function(Part)
  951. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  952. swait(5)
  953. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  954. end),ZTarget)
  955. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  956. targetgui=Instance.new("BillboardGui")
  957. targetgui.Parent=ZTarget
  958. targetgui.Size=UDim2.new(10,100,10,100)
  959. targ=Instance.new("ImageLabel")
  960. targ.Parent=targetgui
  961. targ.BackgroundTransparency=1
  962. targ.Image="rbxassetid://4834067"
  963. targ.Size=UDim2.new(1,0,1,0)
  964. cam.CameraType="Scriptable"
  965. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  966. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  967. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  968. Targetting=true
  969. RocketTarget=ZTarget
  970. for i=1,Property do
  971. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  972. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  973. swait()
  974. end
  975. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  976. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  977. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  978. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  979. end
  980. Targetting=false
  981. RocketTarget=nil
  982. targetgui.Parent=nil
  983. cam.CameraType="Custom"
  984. end
  985. end
  986. debounce=Instance.new("BoolValue")
  987. debounce.Name="DebounceHit"
  988. debounce.Parent=hit.Parent
  989. debounce.Value=true
  990. game:GetService("Debris"):AddItem(debounce,Delay)
  991. c=Instance.new("ObjectValue")
  992. c.Name="creator"
  993. c.Value=Player
  994. c.Parent=h
  995. game:GetService("Debris"):AddItem(c,.5)
  996. CRIT=false
  997. hitDeb=true
  998. AttackPos=6
  999. end
  1000. end
  1001. showDamage=function(Char,Dealt,du,Color)
  1002. m=Instance.new("Model")
  1003. m.Name=tostring(Dealt)
  1004. h=Instance.new("Humanoid")
  1005. h.Health=0
  1006. h.MaxHealth=0
  1007. h.Parent=m
  1008. c=Instance.new("Part")
  1009. c.Transparency=0
  1010. c.BrickColor=Color
  1011. c.Name="Head"
  1012. c.TopSurface=0
  1013. c.BottomSurface=0
  1014. c.formFactor="Plate"
  1015. c.Size=Vector3.new(1,.4,1)
  1016. ms=Instance.new("CylinderMesh")
  1017. ms.Scale=Vector3.new(.8,.8,.8)
  1018. if CRIT==true then
  1019. ms.Scale=Vector3.new(1,1.25,1)
  1020. end
  1021. ms.Parent=c
  1022. c.Reflectance=0
  1023. Instance.new("BodyGyro").Parent=c
  1024. c.Parent=m
  1025. if Char:findFirstChild("Head")~=nil then
  1026. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1027. elseif Char.Parent:findFirstChild("Head")~=nil then
  1028. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1029. end
  1030. f=Instance.new("BodyPosition")
  1031. f.P=2000
  1032. f.D=100
  1033. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1034. f.position=c.Position+Vector3.new(0,3,0)
  1035. f.Parent=c
  1036. game:GetService("Debris"):AddItem(m,.5+du)
  1037. c.CanCollide=false
  1038. m.Parent=workspace
  1039. c.CanCollide=false
  1040. end
  1041. for i,v in pairs (char:GetChildren()) do if v:IsA("Hat") then
  1042. v:remove()
  1043. end
  1044. end
  1045. local player = game.Players.LocalPlayer
  1046. local pchar = player.Character
  1047. local mouse = player:GetMouse()
  1048. local cam = workspace.CurrentCamera
  1049. local rad = math.rad
  1050. local keysDown = {}
  1051. local flySpeed = 0
  1052. local MAX_FLY_SPEED = 50
  1053. local canFly = false
  1054. local flyToggled = false
  1055. local forward, side = 0, 0
  1056. local lastForward, lastSide = 0, 0
  1057. local floatBP = Instance.new("BodyPosition")
  1058. floatBP.maxForce = Vector3.new(0, math.huge, 0)
  1059. local flyBV = Instance.new("BodyVelocity")
  1060. flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  1061. local turnBG = Instance.new("BodyGyro")
  1062. turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1063. mouse.KeyDown:connect(function(key)
  1064. keysDown[key] = true
  1065. if key == "f" then
  1066. flyToggled = not flyToggled
  1067. if not flyToggled then
  1068. floatBP.Parent = nil
  1069. flyBV.Parent = nil
  1070. turnBG.Parent = nil
  1071. pchar.Torso.Velocity = Vector3.new()
  1072. pchar.Humanoid.PlatformStand = false
  1073. end
  1074. end
  1075. end)
  1076. mouse.KeyUp:connect(function(key)
  1077. keysDown[key] = nil
  1078. end)
  1079. local function updateFly()
  1080. if not flyToggled then return end
  1081. lastForward = forward
  1082. lastSide = side
  1083. forward = 0
  1084. side = 0
  1085. if keysDown.w then
  1086. forward = forward + 1
  1087. end
  1088. if keysDown.s then
  1089. forward = forward - 1
  1090. end
  1091. if keysDown.a then
  1092. side = side - 1
  1093. end
  1094. if keysDown.d then
  1095. side = side + 1
  1096. end
  1097. canFly = (forward ~= 0 or side ~= 0)
  1098. if canFly then
  1099. turnBG.Parent = pchar.Torso
  1100. floatBP.Parent = nil
  1101. flyBV.Parent = pchar.Torso
  1102. flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED)
  1103. if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end
  1104. else
  1105. floatBP.position = pchar.Torso.Position
  1106. floatBP.Parent = pchar.Torso
  1107. flySpeed = flySpeed - 1
  1108. if flySpeed < 0 then flySpeed = 0 end
  1109. end
  1110. local camCF = cam.CoordinateFrame
  1111. local in_forward = canFly and forward or lastForward
  1112. local in_side = canFly and side or lastSide
  1113. flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side,
  1114. in_forward * 0.2, 0).p) - camCF.p) * flySpeed
  1115. turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0,
  1116. 0)
  1117. end
  1118. game:service'RunService'.RenderStepped:connect(function()
  1119. if flyToggled then
  1120. pchar.Humanoid.PlatformStand = true
  1121. end
  1122. updateFly()
  1123. end)
  1124. ----------------------------------------------------
  1125. mouse.KeyDown:connect(function(key)
  1126. if key == "e" then
  1127. for i,v in pairs(game.Players:getPlayers()) do
  1128. if v.Name~=char.Name then
  1129. for j,k in pairs(v.Character:GetChildren()) do
  1130. if k:IsA("BasePart") and k.Transparency <= 1 then
  1131. Chakra=Instance.new("SelectionBox",cam)
  1132. Chakra.Color = BrickColor.new("Really blue")
  1133. Chakra.Transparency = .5
  1134. Chakra.Adornee = k
  1135. end
  1136. end
  1137. end
  1138. end
  1139. end
  1140. end)
  1141. ----------------------------------------------------
  1142. mouse.KeyUp:connect(function(key)
  1143. if key == "e" then
  1144. for i, v in pairs(cam:children()) do
  1145. if v:IsA("SelectionBox") then
  1146. v:Destroy()
  1147. end
  1148. end
  1149. end
  1150. end)
  1151. local plrs=game:service"Players"
  1152. local p=plrs.LocalPlayer
  1153. local lam=char["Left Arm"]
  1154. local ram=char["Right Arm"]
  1155. local llg=char["Left Leg"]
  1156. local rlg=char["Right Leg"]
  1157. local hed=char.Head
  1158. local tor=char.Torso
  1159. local Cn=CFrame.new
  1160. local CA=CFrame.Angles
  1161. local hrp=char.HumanoidRootPart
  1162. local mr=math.rad
  1163. local mc=math.cos
  1164. local Vn=Vector3.new
  1165. local wrk=game:service"Workspace"
  1166. local deb=game:service"Debris"
  1167. function nwWld(wp0,wp1,wc0)
  1168. wld = Instance.new("Weld",wp1)
  1169. wld.Part0=wp0
  1170. wld.Part1=wp1
  1171. wld.C0=wc0
  1172. return wld
  1173. end
  1174. function FndHm(flnm)
  1175. for i,v in pairs(flnm:GetChildren()) do
  1176. if v:IsA("Humanoid") then
  1177. return v
  1178. end
  1179. end
  1180. end
  1181. local hum=FndHm(char)
  1182. function get(a)
  1183. local cont={}
  1184. for i,v in pairs(a:GetChildren()) do
  1185. if v==char then
  1186. else
  1187. table.insert(cont,v)
  1188. pcall(function()
  1189. for _,b in pairs(get(v)) do
  1190. table.insert(cont,b)
  1191. end
  1192. end)
  1193. end
  1194. end
  1195. return cont
  1196. end
  1197. --
  1198. function inT(qur,tbl)
  1199. local a=false
  1200. for i,v in pairs(tbl) do
  1201. if v==qur then
  1202. a=true
  1203. break
  1204. else
  1205. a=false
  1206. end
  1207. end
  1208. return a
  1209. end
  1210. function nwPrt(prnt,siz,cf,col)
  1211. local prt=Instance.new("Part")
  1212. prt.Parent=prnt
  1213. prt.FormFactor=3
  1214. prt.Name="Part"
  1215. prt.Size=siz
  1216. prt.CanCollide=false
  1217. prt.Anchored=true
  1218. prt.Locked=true
  1219. prt.TopSurface=0
  1220. prt.BottomSurface=0
  1221. prt:BreakJoints()
  1222. prt.CFrame=cf or CFrame.new(30,10,30)
  1223. prt.Material="SmoothPlastic"
  1224. prt.BrickColor=BrickColor.new(col)
  1225. m=Instance.new("SpecialMesh",prt)
  1226. m.MeshType=6
  1227. return prt
  1228. end
  1229. function newRay(start,face,range,wat)
  1230. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  1231. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  1232. return rey,hit,pos
  1233. end
  1234. function ChakraBeam()
  1235. attack=true
  1236. local sine = 0
  1237. local change = 1
  1238. for i = 0,1,0.005 do
  1239. sine = sine + change
  1240. swait()
  1241. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1242. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1243. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-50),math.rad(0),math.rad(0)),.05)
  1244. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(0)),.05)
  1245. PoleWeld.C0=clerp(PoleWeld.C0,cf(0,-1,-1)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1246. SphereWeld.C1=clerp(SphereWeld.C1,cf(3,0-0.14*math.cos(-sine/14),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1247. Sphere2Weld.C1=clerp(Sphere2Weld.C1,cf(-3,0-0.14*math.cos(-sine/14),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1248. Sphere3Weld.C1=clerp(Sphere3Weld.C1,cf(-2,-2-0.14*math.cos(-sine/14),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1249. Sphere4Weld.C1=clerp(Sphere4Weld.C1,cf(2,-2-0.14*math.cos(-sine/14),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1250. Sphere5Weld.C1=clerp(Sphere5Weld.C1,cf(0,-4-0.14*math.cos(-sine/14),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1251. end
  1252. local int=0
  1253. local cho=nwPrt(char,Vn(3,3,3),lam.CFrame*Cn(0,-0.7,0),"Really black")
  1254. cho.Transparency=0.2
  1255. cho.Reflectance=0.1
  1256. cho.Mesh.MeshType=3
  1257. deb:AddItem(cho,20)
  1258. local lfx1=nwPrt(char,Vn(1,1,1),cho.CFrame,"Really black")
  1259. lfx1.Transparency=1
  1260. lfx1.Mesh.MeshId="rbxassetid://9982590"
  1261. lfx1.Mesh.Scale=Vn(2,2,2)
  1262. deb:AddItem(lfx1,20)
  1263. local lfx2=nwPrt(char,Vn(1,1,1),cho.CFrame,"Really black")
  1264. lfx2.Transparency=1
  1265. lfx2.Mesh.MeshType=3
  1266. lfx2.Mesh.Scale=Vn(4,4,4)
  1267. deb:AddItem(lfx2,20)
  1268. local bem=nwPrt(wrk,Vn(0.2,cho.Size.X,cho.Size.X),cho.CFrame,"Really black")
  1269. bem.Name="Bem"
  1270. bem.Transparency=0.2
  1271. bem.Reflectance=0.1
  1272. bem.Mesh.MeshType=4
  1273. deb:AddItem(bem,8)
  1274. local ent=0
  1275. local unt=0
  1276. local ant=0
  1277. local ryt={bem}
  1278. for _,v in pairs(plrs:GetChildren()) do
  1279. pcall(function()
  1280. table.insert(ryt,v.Character)
  1281. end)
  1282. end
  1283. for i=1,300,4 do
  1284. ent=ent+1
  1285. int=int+1
  1286. unt=unt+1
  1287. if ent==2 then
  1288. local htd={char,bem}
  1289. local function het(ofs)
  1290. con1=bem.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1291. local r1,h1,p1=newRay(bem.CFrame*ofs*Cn(-bem.Size.X/2,0,0),cho.CFrame,bem.Size.X+1,htd)
  1292. if h1~=nil and h1.Parent~=nil then
  1293. if h1.Parent:IsA("Model") then
  1294. pcall(function()
  1295. local ht=h1.Parent
  1296. FndHm(ht).Health=FndHm(ht).Health-4
  1297. coroutine.wrap(function()
  1298. local bv=Instance.new("BodyVelocity",ht:FindFirstChild("Torso"))
  1299. bv.maxForce=Vn(math.huge,math.huge,math.huge)
  1300. local hrpasd=hrp.CFrame
  1301. bv.velocity=hrpasd.lookVector
  1302. wait(0.1)
  1303. bv:Destroy()
  1304. end)()
  1305. table.insert(htd,ht)
  1306. het(ofs)
  1307. end)
  1308. if FndHm(h1.Parent)==nil then
  1309. table.insert(htd,h1)
  1310. het(ofs)
  1311. end
  1312. end
  1313. end
  1314. end
  1315. het(Cn(0,1,0))
  1316. het(Cn(0,0,1))
  1317. het(Cn(0,-1,0))
  1318. het(Cn(0,0,-1))
  1319. ent=0
  1320. end
  1321. if unt==8 then
  1322. local fx1=nwPrt(wrk,Vn(0.2,1,1),bem.CFrame*Cn(-bem.Size.X/2,0,0)*CA(0,0,mr(90)),"Really black")
  1323. fx1.Mesh.MeshId="rbxassetid://20329976"
  1324. fx1.Mesh.Scale=Vn(bem.Size.Y,bem.Size.Y,bem.Size.Y)
  1325. deb:AddItem(fx1,1)
  1326. fx1.Transparency=0.6
  1327. table.insert(ryt,fx1)
  1328. local fx2=nwPrt(wrk,Vn(0.2,1,1),bem.CFrame*Cn(bem.Size.X/2,0,0)*CA(0,0,mr(90)),"Really black")
  1329. fx2.Mesh.MeshId="rbxassetid://20329976"
  1330. fx2.Mesh.Scale=Vn(bem.Size.Y,bem.Size.Y,bem.Size.Y)
  1331. deb:AddItem(fx2,1)
  1332. fx2.Transparency=0.6
  1333. table.insert(ryt,fx2)
  1334. coroutine.wrap(function()
  1335. for i=0.8,1,0.02 do
  1336. fx1.Transparency=i
  1337. local fx1s=fx1.Mesh.Scale
  1338. fx1.Mesh.Scale=Vn(fx1s.X+0.2,fx1s.Y+0.2,fx1s.Z+0.2)
  1339. fx2.Transparency=i
  1340. local fx2s=fx2.Mesh.Scale
  1341. fx2.Mesh.Scale=Vn(fx2s.X+0.2,fx2s.Y+0.2,fx2s.Z+0.2)
  1342. wait()
  1343. end
  1344. fx1:Destroy()
  1345. fx2:Destroy()
  1346. end)()
  1347. unt=0
  1348. end
  1349. local function chk()
  1350. local r2,h2,p2=newRay(bem.CFrame*Cn(-bem.Size.X/2,0,0),cho.CFrame,bem.Size.X,ryt)
  1351. if h2~=nil then
  1352. if h2.Parent~=nil then
  1353. if FndHm(h2.Parent)==nil then
  1354. bem.Size=Vn(((bem.CFrame*Cn(-bem.Size.X/2,0,0)).p-p2).magnitude,bem.Size.Y,bem.Size.Z)
  1355. if h2.Name=="Bem" and unt==7 then
  1356. local p1=nwPrt(bem,Vn(1,5,5),bem.CFrame*Cn(bem.Size.X/2-2,0,0)*CA(0,mr(90),0),"Bright blue")
  1357. p1.Anchored=true
  1358. p1.Transparency=0.6
  1359. local m1=p1.Mesh
  1360. m1.MeshId="rbxassetid://3270017"
  1361. local p2=nwPrt(bem,Vn(1,5,5),bem.CFrame*Cn(bem.Size.X/2-2,0,0)*CA(0,mr(90),0),"Bright blue")
  1362. p2.Anchored=true
  1363. p2.Transparency=0.6
  1364. local m2=p2.Mesh
  1365. m2.MeshId="rbxassetid://3270017"
  1366. m2.Scale=Vector3.new(0.1,0.1,0.1)
  1367. local p3=nwPrt(bem,Vn(1,5,5),bem.CFrame*Cn(bem.Size.X/2-2,0,0)*CA(0,mr(90),0),"Bright blue")
  1368. p3.Anchored=true
  1369. p3.Transparency=0.6
  1370. local m3=p3.Mesh
  1371. m3.MeshId="rbxassetid://3270017"
  1372. m3.Scale=Vector3.new(2,2,2)
  1373. deb:AddItem(p1,5)
  1374. deb:AddItem(p2,5)
  1375. deb:AddItem(p3,5)
  1376. coroutine.wrap(function()
  1377. for i=1,200 do
  1378. m1.Scale=Vector3.new(m1.Scale.X+1,m1.Scale.Y+1,m1.Scale.Z+0.5)
  1379. m2.Scale=Vector3.new(m2.Scale.X+1.25,m2.Scale.Y+1.25,m2.Scale.Z+0.5)
  1380. m3.Scale=Vector3.new(m3.Scale.X+0.75,m3.Scale.Y+0.75,m3.Scale.Z+0.5)
  1381. p1.Transparency=p1.Transparency+0.03
  1382. p2.Transparency=p2.Transparency+0.035
  1383. p3.Transparency=p3.Transparency+0.025
  1384. wait()
  1385. end
  1386. end)()
  1387. end
  1388. else
  1389. table.insert(ryt,h2.Parent)
  1390. chk()
  1391. end
  1392. end
  1393. else
  1394. bem.Size=Vn(bem.Size.X+4,bem.Size.Y,bem.Size.Z)
  1395. end
  1396. end
  1397. chk()
  1398. bem.CFrame=hrp.CFrame*Cn(-1.5,0.3,-1.2-bem.Size.X/2)*CA(0,mr(90),0)
  1399. lfx1.Mesh.Scale=Vn(2+(1*mc(int/18)),2+(1*mc(int/18)),2+(1*mc(int/18)))
  1400. lfx2.Mesh.Scale=Vn(4+(3*mc(int/18)),4+(3*mc(int/18)),4+(3*mc(int/18)))
  1401. lfx1.CFrame=cho.CFrame*CA(mr(10*mc(int/20)),mr(10*mc(int/20)),mr(10*mc(int/20)))
  1402. lfx2.CFrame=cho.CFrame*CA(mr(10*mc(int/18)),mr(10*mc(int/18)),mr(10*mc(int/18)))
  1403. wait()
  1404. end
  1405. pcall(function()
  1406. bem:Destroy()
  1407. cho:Destroy()
  1408. lfx1:Destroy()
  1409. lfx2:Destroy()
  1410. end)
  1411. attack=false
  1412. con1:disconnect()
  1413. end
  1414. function fadein(part)
  1415. part.Transparency=1
  1416. for i=1,100 do
  1417. wait()
  1418. part.Transparency = part.Transparency - 0.01
  1419. end
  1420. end
  1421. function ChakraBall()
  1422. attack=true
  1423. local sine = 0
  1424. local change = 1
  1425. for i = 0,1,0.005 do
  1426. sine = sine + change
  1427. swait()
  1428. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1429. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1430. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-50),math.rad(0),math.rad(0)),.05)
  1431. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(0)),.05)
  1432. PoleWeld.C0=clerp(PoleWeld.C0,cf(0,-1,-1)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1433. SphereWeld.C1=clerp(SphereWeld.C1,cf(3,0-0.14*math.cos(-sine/14),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1434. Sphere2Weld.C1=clerp(Sphere2Weld.C1,cf(-3,0-0.14*math.cos(-sine/14),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1435. Sphere3Weld.C1=clerp(Sphere3Weld.C1,cf(-2,-2-0.14*math.cos(-sine/14),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1436. Sphere4Weld.C1=clerp(Sphere4Weld.C1,cf(2,-2-0.14*math.cos(-sine/14),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1437. Sphere5Weld.C1=clerp(Sphere5Weld.C1,cf(0,-4-0.14*math.cos(-sine/14),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1438. end
  1439. FireBall=Instance.new('Part',Workspace)
  1440. FireBall.Size=Vector3.new(3,3,3)
  1441. FireBall.BrickColor=BrickColor.new("Really black")
  1442. FireBall.CanCollide = True
  1443. FireBall.TopSurface = "Smooth"
  1444. FireBall.BottomSurface = "Smooth"
  1445. FireBall.Position=torso.Position+torso.CFrame.lookVector*20
  1446. FireBall.Transparency = 0
  1447. FireBall.Reflectance = 0.3
  1448. FireBall:BreakJoints()
  1449. FireBallMesh = Instance.new("SpecialMesh", FireBall)
  1450. FireBallMesh.MeshType = "Sphere"
  1451. FireBallMesh.Scale = Vector3.new(1,1,1)
  1452. Shooter = Instance.new('BodyVelocity',FireBall)
  1453. Shooter.maxForce = Vector3.new()*math.huge
  1454. Shooter.velocity = torso.CFrame.lookVector*100
  1455. con1=FireBall.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1456. wait(5)
  1457. FireBall:Destroy()
  1458. con1:disconnect()
  1459. attack=false
  1460. end
  1461. function InfiniteTsukyomi()
  1462. attack = true
  1463. for i = 0,1,0.005 do
  1464. swait()
  1465. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,100)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1466. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1467. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(-50)),.05)
  1468. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(50)),.05)
  1469. PoleWeld.C0=clerp(PoleWeld.C0,cf(0,10,0)*angles(math.rad(20),math.rad(100),math.rad(40)),.05)
  1470. end
  1471. Head.face.Texture = "http://www.roblox.com/asset?id=159181532"
  1472. game.Lighting.TimeOfDay = "07:00:00"
  1473. game.Lighting.Ambient = Color3.new(0,0,0)
  1474. sky = Instance.new("Sky")
  1475. sky.Parent = game.Lighting
  1476. sky.SkyboxBk = "http://www.roblox.com/asset/?id=22079760"
  1477. sky.SkyboxDn = "http://www.roblox.com/asset/?id=22079760"
  1478. sky.SkyboxFt = "http://www.roblox.com/asset/?id=22079760"
  1479. sky.SkyboxLf = "http://www.roblox.com/asset/?id=22079760"
  1480. sky.SkyboxRt = "http://www.roblox.com/asset/?id=22079760"
  1481. sky.SkyboxUp = "http://www.roblox.com/asset/?id=22079760"
  1482. attack=false
  1483. end
  1484. attacktype=1
  1485. mouse.Button1Down:connect(function()
  1486. if attacktype == 1 then
  1487. print("You can't attack with your staff yet!")
  1488. end
  1489. end)
  1490. colours = {"Tr. Red","Black","Tr. Blue","Black","Phosph. White","Royal purple"}
  1491. mouse.KeyDown:connect(function(k)
  1492. k:lower()
  1493. if k=="r" and attack == false then
  1494. ChakraBeam()
  1495. end
  1496. if k=="q" and attack == false then
  1497. ChakraBall()
  1498. end
  1499. if k=="p" and attack == false then
  1500. InfiniteTsukyomi()
  1501. end
  1502. if k==" " and attack == false then
  1503. Humanoid.Jump = false
  1504. Torso.Velocity = Vector3.new(0,100,0)
  1505. end
  1506. end)
  1507. function Tween(a,b,c)
  1508. return a+(b-a)*c
  1509. end
  1510. --
  1511. function Avg(a,b)
  1512. return CFrame.new((a.X+b.X)/2,(a.Y+b.Y)/2,(a.Z+b.Z)/2)
  1513. end
  1514. --
  1515. function Lerp(c1,c2,tim)
  1516. local com1={c1.C0.X,c1.C0.Y,c1.C0.Z,c1.C0:toEulerAnglesXYZ()}
  1517. local com2={c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  1518. for i,v in pairs(com1) do
  1519. com1[i]=v+(com2[i]-v)*tim
  1520. end
  1521. return Cn(com1[1],com1[2],com1[3])*CA(select(4,unpack(com1)))
  1522. end
  1523. hld=false
  1524. mouse.KeyDown:connect(function(key)
  1525. key:lower()
  1526. if key == "t" and attack == false then
  1527. attack = true
  1528. hld=true
  1529. for i = 0,1,0.005 do
  1530. swait()
  1531. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.03)
  1532. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.03)
  1533. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(-50)),.03)
  1534. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(50)),.03)
  1535. PoleWeld.C0=clerp(PoleWeld.C0,cf(10,0,0)*angles(math.rad(100),math.rad(10),math.rad(40)),.03)
  1536. end
  1537. local cho=nwPrt(char,Vn(1,1,1),ram.CFrame*Cn(0,-0.7,0),"Really black")
  1538. cho.Transparency=0.2
  1539. cho.Reflectance=0.1
  1540. cho.Mesh.MeshType=3
  1541. deb:AddItem(cho,20)
  1542. local lfx1=nwPrt(char,Vn(1,1,1),cho.CFrame,"Really black")
  1543. lfx1.Transparency=0.985
  1544. lfx1.Mesh.MeshId="rbxassetid://9982590"
  1545. lfx1.Mesh.Scale=Vn(2,2,2)
  1546. deb:AddItem(lfx1,20)
  1547. local lfx2=nwPrt(char,Vn(1,1,1),cho.CFrame,"Really black")
  1548. lfx2.Transparency=0.9
  1549. lfx2.Mesh.MeshType=3
  1550. lfx2.Mesh.Scale=Vn(4,4,4)
  1551. deb:AddItem(lfx2,20)
  1552. local int=0
  1553. while hld==true do
  1554. int=int+1
  1555. if cho.Size.X<30 then
  1556. local chs=cho.Size
  1557. cho.Size=Vn(chs.X+0.01,chs.Y+0.01,chs.Z+0.01)
  1558. cho.CFrame=ram.CFrame*Cn(0,-1.4,0)
  1559. else
  1560. cho.CFrame=ram.CFrame*Cn(0,-1.4,0)
  1561. end
  1562. cho.Mesh.Scale=Vn(1+(0.05*mc(int/6)),1+(0.05*mc(int/6)),1+(0.05*mc(int/6)))
  1563. lfx1.Mesh.Scale=Vn(2+(1*mc(int/18)),2+(1*mc(int/18)),2+(1*mc(int/18)))
  1564. lfx2.Mesh.Scale=Vn(4+(3*mc(int/18)),4+(3*mc(int/18)),4+(3*mc(int/18)))
  1565. lfx1.CFrame=cho.CFrame*CA(mr(10*mc(int/20)),mr(10*mc(int/20)),mr(10*mc(int/20)))
  1566. lfx2.CFrame=cho.CFrame*CA(mr(10*mc(int/18)),mr(10*mc(int/18)),mr(10*mc(int/18)))
  1567. if int>300 then
  1568. hld=false
  1569. end
  1570. wait()
  1571. end
  1572. for i=1,6 do
  1573. int=int+1
  1574. cho.CFrame=ram.CFrame*Cn(-0.2,-1.4,0)
  1575. lfx1.Mesh.Scale=Vn(2+(1*mc(int/18)),2+(1*mc(int/18)),2+(1*mc(int/18)))
  1576. lfx2.Mesh.Scale=Vn(4+(3*mc(int/18)),4+(3*mc(int/18)),4+(3*mc(int/18)))
  1577. lfx1.CFrame=cho.CFrame*CA(mr(10*mc(int/20)),mr(10*mc(int/20)),mr(10*mc(int/20)))
  1578. lfx2.CFrame=cho.CFrame
  1579. wait()
  1580. end
  1581. local bem=nwPrt(wrk,Vn(0.2,cho.Size.X,cho.Size.X),hrp.CFrame*Cn(0,0.3,-1.4)*CA(0,mr(90),0),"Really black")
  1582. bem.Name="Bem"
  1583. bem.Transparency=0.2
  1584. bem.Reflectance=0.1
  1585. bem.Mesh.MeshType=4
  1586. deb:AddItem(bem,8)
  1587. local ent=0
  1588. local unt=0
  1589. local ant=0
  1590. local ryt={bem}
  1591. for _,v in pairs(plrs:GetChildren()) do
  1592. pcall(function()
  1593. table.insert(ryt,v.Character)
  1594. end)
  1595. end
  1596. for i=1,850,4 do
  1597. ent=ent+1
  1598. int=int+1
  1599. unt=unt+1
  1600. if ent==2 then
  1601. local htd={char,bem}--This is the table
  1602. local function het(ofs)
  1603. local r1,h1,p1=newRay(bem.CFrame*ofs*Cn(-bem.Size.X/2,0,0),bem.CFrame*ofs*Cn(1,0,0),bem.Size.X+1,htd)--The end variable is the table
  1604. if h1~=nil and h1.Parent~=nil then
  1605. if h1.Parent:IsA("Model") then
  1606. pcall(function()
  1607. local ht=h1.Parent
  1608. FndHm(ht).Health=FndHm(ht).Health-(cho.Size.X)
  1609. coroutine.wrap(function()
  1610. local bv=Instance.new("BodyVelocity",ht:FindFirstChild("Torso"))
  1611. bv.maxForce=Vn(math.huge,math.huge,math.huge)
  1612. local hrpasd=hrp.CFrame
  1613. bv.velocity=hrpasd.lookVector * 100
  1614. wait(0.1)
  1615. bv:Destroy()
  1616. end)()
  1617. table.insert(htd,ht)
  1618. het(ofs)
  1619. end)
  1620. if FndHm(h1.Parent)==nil then
  1621. table.insert(htd,h1)
  1622. het(ofs)
  1623. end
  1624. end
  1625. end
  1626. end
  1627. het(Cn(0,1,0))
  1628. het(Cn(0,0,1))
  1629. het(Cn(0,-1,0))
  1630. het(Cn(0,0,-1))
  1631. ent=0
  1632. end
  1633. if unt==44 then
  1634. local fx1=nwPrt(wrk,Vn(0.2,1,1),bem.CFrame*Cn(-bem.Size.X/2,0,0)*CA(0,0,mr(90)),"Really black")
  1635. fx1.Mesh.MeshId="rbxassetid://20329976"
  1636. fx1.Mesh.Scale=Vn(bem.Size.Y,bem.Size.Y,bem.Size.Y)
  1637. deb:AddItem(fx1,1)
  1638. fx1.Transparency=0.6
  1639. table.insert(ryt,fx1)
  1640. local fx2=nwPrt(wrk,Vn(0.2,1,1),bem.CFrame*Cn(bem.Size.X/2,0,0)*CA(0,0,mr(90)),"Really black")
  1641. fx2.Mesh.MeshId="rbxassetid://20329976"
  1642. fx2.Mesh.Scale=Vn(bem.Size.Y,bem.Size.Y,bem.Size.Y)
  1643. deb:AddItem(fx2,1)
  1644. fx2.Transparency=0.6
  1645. table.insert(ryt,fx2)
  1646. coroutine.wrap(function()
  1647. for i=0.8,1,0.02 do
  1648. fx1.Transparency=i
  1649. local fx1s=fx1.Mesh.Scale
  1650. fx1.Mesh.Scale=Vn(fx1s.X+0.2,fx1s.Y+0.2,fx1s.Z+0.2)
  1651. fx2.Transparency=i
  1652. local fx2s=fx2.Mesh.Scale
  1653. fx2.Mesh.Scale=Vn(fx2s.X+0.2,fx2s.Y+0.2,fx2s.Z+0.2)
  1654. wait()
  1655. end
  1656. fx1:Destroy()
  1657. fx2:Destroy()
  1658. end)()
  1659. unt=0
  1660. end
  1661. local function chk()
  1662. local r2,h2,p2=newRay(bem.CFrame*Cn(-bem.Size.X/2,0,0),bem.CFrame*Cn(1,0,0),bem.Size.X,ryt)
  1663. if h2~=nil then
  1664. if h2.Parent~=nil then
  1665. if FndHm(h2.Parent)==nil then
  1666. bem.Size=Vn(((bem.CFrame*Cn(-bem.Size.X/2,0,0)).p-p2).magnitude,bem.Size.Y,bem.Size.Z)
  1667. if h2.Name=="Bem" and unt==7 then
  1668. local p1=nwPrt(bem,Vn(1,5,5),bem.CFrame*Cn(bem.Size.X/2-2,0,0)*CA(0,mr(90),0),"Really black")
  1669. p1.Anchored=true
  1670. p1.Transparency=0.6
  1671. local m1=p1.Mesh
  1672. m1.MeshId="rbxassetid://3270017"
  1673. local p2=nwPrt(bem,Vn(1,5,5),bem.CFrame*Cn(bem.Size.X/2-2,0,0)*CA(0,mr(90),0),"Really black")
  1674. p2.Anchored=true
  1675. p2.Transparency=0.6
  1676. local m2=p2.Mesh
  1677. m2.MeshId="rbxassetid://3270017"
  1678. m2.Scale=Vector3.new(0.1,0.1,0.1)
  1679. local p3=nwPrt(bem,Vn(1,5,5),bem.CFrame*Cn(bem.Size.X/2-2,0,0)*CA(0,mr(90),0),"Really black")
  1680. p3.Anchored=true
  1681. p3.Transparency=0.6
  1682. local m3=p3.Mesh
  1683. m3.MeshId="rbxassetid://3270017"
  1684. m3.Scale=Vector3.new(2,2,2)
  1685. deb:AddItem(p1,5)
  1686. deb:AddItem(p2,5)
  1687. deb:AddItem(p3,5)
  1688. coroutine.wrap(function()
  1689. for i=1,200 do
  1690. m1.Scale=Vector3.new(m1.Scale.X+1,m1.Scale.Y+1,m1.Scale.Z+0.5)
  1691. m2.Scale=Vector3.new(m2.Scale.X+1.25,m2.Scale.Y+1.25,m2.Scale.Z+0.5)
  1692. m3.Scale=Vector3.new(m3.Scale.X+0.75,m3.Scale.Y+0.75,m3.Scale.Z+0.5)
  1693. p1.Transparency=p1.Transparency+0.03
  1694. p2.Transparency=p2.Transparency+0.035
  1695. p3.Transparency=p3.Transparency+0.025
  1696. wait()
  1697. end
  1698. end)()
  1699. end
  1700. else
  1701. table.insert(ryt,h2.Parent)
  1702. chk()
  1703. end
  1704. end
  1705. else
  1706. bem.Size=Vn(bem.Size.X+4,bem.Size.Y,bem.Size.Z)
  1707. end
  1708. end
  1709. chk()
  1710. bem.CFrame=hrp.CFrame*Cn(0,0.3,-1.2-bem.Size.X/2)*CA(0,mr(90),0)
  1711. lfx1.Mesh.Scale=Vn(2+(1*mc(int/18)),2+(1*mc(int/18)),2+(1*mc(int/18)))
  1712. lfx2.Mesh.Scale=Vn(4+(3*mc(int/18)),4+(3*mc(int/18)),4+(3*mc(int/18)))
  1713. lfx1.CFrame=cho.CFrame*CA(mr(10*mc(int/20)),mr(10*mc(int/20)),mr(10*mc(int/20)))
  1714. lfx2.CFrame=cho.CFrame*CA(mr(10*mc(int/18)),mr(10*mc(int/18)),mr(10*mc(int/18)))
  1715. wait()
  1716. end
  1717. pcall(function()
  1718. bem:Destroy()
  1719. cho:Destroy()
  1720. lfx1:Destroy()
  1721. lfx2:Destroy()
  1722. end)
  1723. attack=false
  1724. end
  1725. end)
  1726. mouse.KeyUp:connect(function(key)
  1727. key:lower()
  1728. if key == "t" then
  1729. hld=false
  1730. end
  1731. end)
  1732. mouse.KeyDown:connect(function(key)
  1733. key:lower()
  1734. if key:byte() == 48 then
  1735. Humanoid.WalkSpeed=70
  1736. end
  1737. end)
  1738. mouse.KeyUp:connect(function(key)
  1739. key:lower()
  1740. if key:byte() == 48 then
  1741. Humanoid.WalkSpeed=6
  1742. end
  1743. end)
  1744. Humanoid.WalkSpeed=6
  1745. local sine = 0
  1746. local change = 1
  1747. local val = 0
  1748. --game:GetService("RunService").Heartbeat:connect(function()
  1749. while true do
  1750. swait()
  1751. sine = sine + change
  1752. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1753. local velderp=RootPart.Velocity.y
  1754. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1755. if equipped==true or equipped==false then
  1756. if attack==false then
  1757. idle=idle+1
  1758. else
  1759. idle=0
  1760. end
  1761. if idle>=500 then
  1762. if attack==false then
  1763. --Sheath()
  1764. end
  1765. end
  1766. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1767. Anim="Jump"
  1768. if attack==false then
  1769. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1770. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1771. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-50),math.rad(-100),math.rad(30)),.3)
  1772. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-50),math.rad(100),math.rad(-30)),.3)
  1773. lleg.Weld.C0=clerp(lleg.Weld.C0,cf(-0.5,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1774. rleg.Weld.C0=clerp(rleg.Weld.C0,cf(0.5,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1775. PoleWeld.C0 =clerp(PoleWeld.C0,CFrame.new(0,-1,-0.65)*CFrame.Angles(math.rad(-90),math.rad(90),0),.05)
  1776. end
  1777. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1778. Anim="Fall"
  1779. if attack==false then
  1780. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1781. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1782. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-50),math.rad(-100),math.rad(30)),.3)
  1783. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-50),math.rad(100),math.rad(-30)),.3)
  1784. lleg.Weld.C0=clerp(lleg.Weld.C0,cf(-0.5,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1785. rleg.Weld.C0=clerp(rleg.Weld.C0,cf(0.5,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1786. PoleWeld.C0 =clerp(PoleWeld.C0,CFrame.new(0,-1,-0.65)*CFrame.Angles(math.rad(-90),math.rad(90),0),.05)
  1787. end
  1788. elseif torvel<1 and hitfloor~=nil then
  1789. Anim="Idle"
  1790. if attack==false then
  1791. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1-0.14*math.cos(sine/14))*angles(math.rad(0),math.rad(0),math.rad(20)),.05)
  1792. SphereWeld.C1=clerp(SphereWeld.C1,cf(3,0-0.14*math.cos(-sine/14),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1793. Sphere2Weld.C1=clerp(Sphere2Weld.C1,cf(-3,0-0.14*math.cos(-sine/14),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1794. Sphere3Weld.C1=clerp(Sphere3Weld.C1,cf(-2,-2-0.14*math.cos(-sine/14),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1795. Sphere4Weld.C1=clerp(Sphere4Weld.C1,cf(2,-2-0.14*math.cos(-sine/14),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1796. Sphere5Weld.C1=clerp(Sphere5Weld.C1,cf(0,-4-0.14*math.cos(-sine/14),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1797. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.05)
  1798. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(20)),.05)
  1799. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(0),math.rad(-10)),.05)
  1800. lleg.Weld.C0=clerp(lleg.Weld.C0,cf(-0.5,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1801. rleg.Weld.C0=clerp(rleg.Weld.C0,cf(0.5,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1802. PoleWeld.C0 =clerp(PoleWeld.C0,CFrame.new(0,-1,-0.65)*CFrame.Angles(math.rad(-90),math.rad(90),0),.05)
  1803. end
  1804. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1805. Anim="Walk"
  1806. if attack==false then
  1807. change=3
  1808. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1-0.14*math.cos(sine/14))*angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1809. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1810. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-20),math.rad(0),math.rad(10)),.3)
  1811. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  1812. lleg.Weld.C0=clerp(lleg.Weld.C0,cf(-0.5,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1813. rleg.Weld.C0=clerp(rleg.Weld.C0,cf(0.5,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1814. PoleWeld.C0 =clerp(PoleWeld.C0,CFrame.new(0,-1,-0.65)*CFrame.Angles(math.rad(-90),math.rad(90),0),.05)
  1815. end
  1816. elseif torvel>=22 and hitfloor~=nil then
  1817. Anim="Run"
  1818. if attack==false then
  1819. change=5
  1820. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1-0.14*math.cos(sine/14))*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1821. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1822. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-20),math.rad(-100),math.rad(30)),.3)
  1823. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-20),math.rad(100),math.rad(-30)),.3)
  1824. lleg.Weld.C0=clerp(lleg.Weld.C0,cf(-0.5,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1825. rleg.Weld.C0=clerp(rleg.Weld.C0,cf(0.5,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1826. PoleWeld.C0 =clerp(PoleWeld.C0,CFrame.new(0,-1,-0.65)*CFrame.Angles(math.rad(-90),math.rad(90),0),.05)
  1827. end
  1828. end
  1829. end
  1830. end
  1831. --end)

comments powered by Disqus