Advertisement
Gametoy

Untitled

Feb 22nd, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 96.45 KB | None | 0 0
  1. local Player = game.Players.localPlayer
  2. local Character = Player.Character
  3. local red = 255
  4. local green = 255
  5. local blue = 255
  6. local Humanoid = Character.Humanoid
  7. local mouse = Player:GetMouse()
  8. local m = Instance.new("Model", Character)
  9. m.Name = "WeaponModel"
  10. local LeftArm = Character["Left Arm"]
  11. local RightArm = Character["Right Arm"]
  12. local LeftLeg = Character["Left Leg"]
  13. local RightLeg = Character["Right Leg"]
  14. local Head = Character.Head
  15. local Torso = Character.Torso
  16. local cam = game.Workspace.CurrentCamera
  17. local RootPart = Character.HumanoidRootPart
  18. local RootJoint = RootPart.RootJoint
  19. local equipped = false
  20. local attack = false
  21. local Anim = "Idle"
  22. local idle = 0
  23. local attacktype = 1
  24. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  25. local velocity = RootPart.Velocity.y
  26. local sine = 0
  27. local change = 1
  28. local grabbed = false
  29. local cn = CFrame.new
  30. local mr = math.rad
  31. local angles = CFrame.Angles
  32. local ud = UDim2.new
  33. local c3 = Color3.new
  34. local lim = 0
  35. local st = 0
  36. local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  37. local attacktype = 1
  38. local ZTarget, RocketTarget = nil, nil
  39. local euler = CFrame.fromEulerAnglesXYZ
  40. function clerp(a,b,t)
  41. local qa = {QuaternionFromCFrame(a)}
  42. local qb = {QuaternionFromCFrame(b)}
  43. local ax, ay, az = a.x, a.y, a.z
  44. local bx, by, bz = b.x, b.y, b.z
  45. local _t = 1-t
  46. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  47. end
  48.  
  49. function QuaternionFromCFrame(cf)
  50. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  51. local trace = m00 + m11 + m22
  52. if trace > 0 then
  53. local s = math.sqrt(1 + trace)
  54. local recip = 0.5/s
  55. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  56. else
  57. local i = 0
  58. if m11 > m00 then
  59. i = 1
  60. end
  61. if m22 > (i == 0 and m00 or m11) then
  62. i = 2
  63. end
  64. if i == 0 then
  65. local s = math.sqrt(m00-m11-m22+1)
  66. local recip = 0.5/s
  67. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  68. elseif i == 1 then
  69. local s = math.sqrt(m11-m22-m00+1)
  70. local recip = 0.5/s
  71. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  72. elseif i == 2 then
  73. local s = math.sqrt(m22-m00-m11+1)
  74. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  75. end
  76. end
  77. end
  78.  
  79. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  80. local xs, ys, zs = x + x, y + y, z + z
  81. local wx, wy, wz = w*xs, w*ys, w*zs
  82. local xx = x*xs
  83. local xy = x*ys
  84. local xz = x*zs
  85. local yy = y*ys
  86. local yz = y*zs
  87. local zz = z*zs
  88. 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))
  89. end
  90.  
  91. function QuaternionSlerp(a, b, t)
  92. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  93. local startInterp, finishInterp;
  94. if cosTheta >= 0.0001 then
  95. if (1 - cosTheta) > 0.0001 then
  96. local theta = math.acos(cosTheta)
  97. local invSinTheta = 1/math.sin(theta)
  98. startInterp = math.sin((1-t)*theta)*invSinTheta
  99. finishInterp = math.sin(t*theta)*invSinTheta
  100. else
  101. startInterp = 1-t
  102. finishInterp = t
  103. end
  104. else
  105. if (1+cosTheta) > 0.0001 then
  106. local theta = math.acos(-cosTheta)
  107. local invSinTheta = 1/math.sin(theta)
  108. startInterp = math.sin((t-1)*theta)*invSinTheta
  109. finishInterp = math.sin(t*theta)*invSinTheta
  110. else
  111. startInterp = t-1
  112. finishInterp = t
  113. end
  114. end
  115. 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
  116. end
  117. rayCast = function(Position, Direction, Range, Ignore)
  118. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  119. end
  120. local v = game.Players.localPlayer
  121. local torso = v.Character.Torso
  122. wait(1)
  123. local p = Instance.new("Part", v.Character)
  124. p.Name = "kit"
  125. p.Anchored = true
  126. p.Transparency = 0
  127. p.Material = "Plastic"
  128. p.CanCollide = false
  129. p.TopSurface = 0
  130. p.BottomSurface = 0
  131. p.Size = Vector3.new(0.2, 0.2, 0.2)
  132. p.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  133. local msh = Instance.new("SpecialMesh", p)
  134. msh.Scale = Vector3.new(-2, 2, 2)
  135. msh.MeshId = "http://www.roblox.com/asset/?id=0"
  136. msh.TextureId = "http://www.roblox.com/asset/?id=0"
  137. msh.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  138. local pn = Instance.new("Part", v.Character.kit)
  139. pn.Name = "tail2"
  140. pn.Anchored = true
  141. pn.Transparency = 0
  142. pn.Material = "Plastic"
  143. pn.CanCollide = false
  144. pn.TopSurface = 0
  145. pn.BottomSurface = 0
  146. pn.Size = Vector3.new(5, 3, 3)
  147. pn.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  148. local mshn = Instance.new("SpecialMesh", pn)
  149. mshn.Scale = Vector3.new(2, 2, 2)
  150. mshn.MeshId = "http://www.roblox.com/asset/?id=0"
  151. mshn.TextureId = "http://www.roblox.com/asset/?id=0"
  152. mshn.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  153. local pn3 = Instance.new("Part", v.Character.kit)
  154. pn3.Name = "tail3"
  155. pn3.Anchored = true
  156. pn3.Transparency = 0
  157. pn3.Material = "Plastic"
  158. pn3.CanCollide = false
  159. pn3.TopSurface = 0
  160. pn3.BottomSurface = 0
  161. pn3.Size = Vector3.new(0.2, 0.2, 0.2)
  162. pn3.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  163. local mshn3 = Instance.new("SpecialMesh", pn3)
  164. mshn3.Scale = Vector3.new(2, 2, 2)
  165. mshn3.MeshId = "http://www.roblox.com/asset/?id=0"
  166. mshn3.TextureId = "http://www.roblox.com/asset/?id=0"
  167. mshn3.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  168. local pn4 = Instance.new("Part", v.Character.kit)
  169. pn4.Name = "tail4"
  170. pn4.Anchored = true
  171. pn4.Transparency = 0
  172. pn4.Material = "Plastic"
  173. pn4.CanCollide = false
  174. pn4.TopSurface = 0
  175. pn4.BottomSurface = 0
  176. pn4.Size = Vector3.new(0.2, 0.2, 0.2)
  177. pn4.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  178. local mshn4 = Instance.new("SpecialMesh", pn4)
  179. mshn4.Scale = Vector3.new(-2, 2, 2)
  180. mshn4.MeshId = "http://www.roblox.com/asset/?id=0"
  181. mshn4.TextureId = "http://www.roblox.com/asset/?id=0"
  182. mshn4.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  183. local pn5 = Instance.new("Part", v.Character.kit)
  184. pn5.Name = "tail5"
  185. pn5.Anchored = true
  186. pn5.Transparency = 0
  187. pn5.Material = "Plastic"
  188. pn5.CanCollide = false
  189. pn5.TopSurface = 0
  190. pn5.BottomSurface = 0
  191. pn5.Size = Vector3.new(0.2, 0.2, 0.2)
  192. pn5.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  193. local mshn5 = Instance.new("SpecialMesh", pn5)
  194. mshn5.Scale = Vector3.new(2, 2, 2)
  195. mshn5.MeshId = "http://www.roblox.com/asset/?id=0"
  196. mshn5.TextureId = "http://www.roblox.com/asset/?id=0"
  197. mshn5.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  198. local pn6 = Instance.new("Part", v.Character.kit)
  199. pn6.Name = "tail6"
  200. pn6.Anchored = true
  201. pn6.Transparency = 0
  202. pn6.Material = "Plastic"
  203. pn6.CanCollide = false
  204. pn6.TopSurface = 0
  205. pn6.BottomSurface = 0
  206. pn6.Size = Vector3.new(0.2, 0.2, 0.2)
  207. pn6.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  208. local mshn6 = Instance.new("SpecialMesh", pn6)
  209. mshn6.Scale = Vector3.new(2, 2, 2)
  210. mshn6.MeshId = "http://www.roblox.com/asset/?id=0"
  211. mshn6.TextureId = "http://www.roblox.com/asset/?id=0"
  212. mshn6.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  213. local pn7 = Instance.new("Part", v.Character.kit)
  214. pn7.Name = "tail7"
  215. pn7.Anchored = true
  216. pn7.Transparency = 0
  217. pn7.Material = "Plastic"
  218. pn7.CanCollide = false
  219. pn7.TopSurface = 0
  220. pn7.BottomSurface = 0
  221. pn7.Size = Vector3.new(0.2, 0.2, 0.2)
  222. pn7.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  223. local mshn7 = Instance.new("SpecialMesh", pn7)
  224. mshn7.Scale = Vector3.new(2, 2, 2)
  225. mshn7.MeshId = "http://www.roblox.com/asset/?id=0"
  226. mshn7.TextureId = "http://www.roblox.com/asset/?id=0"
  227. mshn7.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  228. local pn8 = Instance.new("Part", v.Character.kit)
  229. pn8.Name = "tail8"
  230. pn8.Anchored = true
  231. pn8.Transparency = 0
  232. pn8.Material = "Plastic"
  233. pn8.CanCollide = false
  234. pn8.TopSurface = 0
  235. pn8.BottomSurface = 0
  236. pn8.Size = Vector3.new(0.2, 0.2, 0.2)
  237. pn8.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  238. local mshn8 = Instance.new("SpecialMesh", pn8)
  239. mshn8.Scale = Vector3.new(-2, 2, 2)
  240. mshn8.MeshId = "http://www.roblox.com/asset/?id=0"
  241. mshn8.TextureId = "http://www.roblox.com/asset/?id=0"
  242. mshn8.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  243. local pn9 = Instance.new("Part", v.Character.kit)
  244. pn9.Name = "tail9"
  245. pn9.Anchored = true
  246. pn9.Transparency = 0
  247. pn9.Material = "Plastic"
  248. pn9.CanCollide = false
  249. pn9.TopSurface = 0
  250. pn9.BottomSurface = 0
  251. pn9.Size = Vector3.new(0.2, 0.2, 0.2)
  252. pn9.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  253. local mshn9 = Instance.new("SpecialMesh", pn9)
  254. mshn9.Scale = Vector3.new(-2, 2, 2)
  255. mshn9.MeshId = "http://www.roblox.com/asset/?id=0"
  256. mshn9.TextureId = "http://www.roblox.com/asset/?id=0"
  257. mshn9.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  258. local pn0 = Instance.new("Part", v.Character.kit)
  259. pn0.Name = "ears"
  260. pn0.Anchored = true
  261. pn0.Transparency = 0
  262. pn0.Material = "Plastic"
  263. pn0.CanCollide = false
  264. pn0.TopSurface = 0
  265. pn0.BottomSurface = 0
  266. pn0.Size = Vector3.new(0.2, 0.2, 0.2)
  267. pn0.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  268. local mshn0 = Instance.new("SpecialMesh", pn0)
  269. mshn0.Scale = Vector3.new(0.5, 0.5, 0.5)
  270. mshn0.MeshId = "http://www.roblox.com/asset/?id=361948302"
  271. mshn0.TextureId = "http://www.roblox.com/asset/?id=50657528"
  272. mshn0.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  273. p.Anchored = false
  274. local motor1 = Instance.new("Weld", p)
  275. motor1.Part0 = p
  276. motor1.Part1 = torso
  277. motor1.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  278. motor1.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  279. pn.Anchored = false
  280. local motor2 = Instance.new("Weld", pn)
  281. motor2.Part0 = pn
  282. motor2.Part1 = torso
  283. motor2.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  284. motor2.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  285. pn3.Anchored = false
  286. local motor3 = Instance.new("Weld", pn3)
  287. motor3.Part0 = pn3
  288. motor3.Part1 = torso
  289. motor3.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  290. motor3.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  291. pn4.Anchored = false
  292. local motor4 = Instance.new("Weld", pn4)
  293. motor4.Part0 = pn4
  294. motor4.Part1 = torso
  295. motor4.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  296. motor4.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  297. pn5.Anchored = false
  298. local motor5 = Instance.new("Weld", pn5)
  299. motor5.Part0 = pn5
  300. motor5.Part1 = torso
  301. motor5.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  302. motor5.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  303. pn6.Anchored = false
  304. local motor6 = Instance.new("Weld", pn6)
  305. motor6.Part0 = pn6
  306. motor6.Part1 = torso
  307. motor6.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  308. motor6.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  309. pn7.Anchored = false
  310. local motor7 = Instance.new("Weld", pn7)
  311. motor7.Part0 = pn7
  312. motor7.Part1 = torso
  313. motor7.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  314. motor7.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  315. pn8.Anchored = false
  316. local motor8 = Instance.new("Weld", pn8)
  317. motor8.Part0 = pn8
  318. motor8.Part1 = torso
  319. motor8.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  320. motor8.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  321. pn9.Anchored = false
  322. local motor9 = Instance.new("Weld", pn9)
  323. motor9.Part0 = pn9
  324. motor9.Part1 = torso
  325. motor9.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  326. motor9.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  327. pn0.Anchored = false
  328. local motor0 = Instance.new("Weld", pn0)
  329. motor0.Part0 = pn0
  330. motor0.Part1 = v.Character.Head
  331. motor0.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  332. game:GetService("RunService").Stepped:connect(function()
  333. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  334. velocity = RootPart.Velocity.y
  335. sine = sine + change
  336. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  337. if equipped == true or equipped == false then
  338. if RootPart.Velocity.y > 1 and hit == nil then
  339. Anim = "Jump"
  340. if attack == false then
  341. motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1)
  342. motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  343. motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-110 + 0 * math.cos(sine / 25))), 0.1)
  344. motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(110 + 0 * math.cos(sine / 25))), 0.1)
  345. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  346. motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  347. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  348. motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1)
  349. motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1)
  350. end
  351. else
  352. if RootPart.Velocity.y < -1 and hit == nil then
  353. Anim = "Fall"
  354. if attack == false then
  355. motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
  356. motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  357. motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  358. motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
  359. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  360. motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  361. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  362. motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
  363. motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
  364. end
  365. else
  366. if Torsovelocity < 1 and hit ~= nil then
  367. Anim = "Idle"
  368. if attack == false then
  369. change = 1
  370. motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-5 + 5 * math.cos(sine / 50)), math.rad(0 + 5 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  371. motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-5 + -5 * math.cos(sine / 70)), math.rad(0 + -5 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  372. motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-5 + -5 * math.cos(sine / 80)), math.rad(0 + 5 * math.cos(sine / 65)), math.rad(-50 + 0 * math.cos(sine / 25))), 0.1)
  373. motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(0 + 5 * math.cos(sine / 40)), math.rad(0 + 5 * math.cos(sine / 70)), math.rad(-40 + 0 * math.cos(sine / 25))), 0.1)
  374. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(0 + 5 * math.cos(sine / 60)), math.rad(0 + 5 * math.cos(sine / 65)), math.rad(40 + 0 * math.cos(sine / 25))), 0.1)
  375. motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 35)), math.rad(0 + 5 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  376. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 70)), math.rad(0 + 5 * math.cos(sine / 35)), math.rad(-45 + 0 * math.cos(sine / 25))), 0.1)
  377. motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 55)), math.rad(0 + 5 * math.cos(sine / 55)), math.rad(-10 + 0 * math.cos(sine / 25))), 0.1)
  378. motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 65)), math.rad(0 + 5 * math.cos(sine / 60)), math.rad(35 + 0 * math.cos(sine / 25))), 0.1)
  379. end
  380. else
  381. if Torsovelocity > 2 and hit ~= nil then
  382. Anim = "Walk"
  383. if attack == false then
  384. motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
  385. motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  386. motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  387. motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
  388. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  389. motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  390. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  391. motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
  392. motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
  393. end
  394. end
  395. end
  396. end
  397. end
  398. end
  399. end)
  400. ParticleSettings = {
  401. Lifetime = 1,
  402. Texture = 'rbxassetid://1209757190',
  403. --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  404. Color1 = ColorSequence.new(BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color,BrickColor.new('Black').Color),
  405. Color2 = ColorSequence.new(BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color,BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color),
  406. AllBody = true,
  407. UpperBodyOnly = false,
  408. LowerBodyOnly = false,
  409. Accessories = true,
  410. Extras = true,
  411. }
  412. TrailSettings = {
  413. Lifetime = 1,
  414. Texture = 'rbxassetid://1209757190',
  415. --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  416. Color1 = ColorSequence.new(BrickColor.new('Deep orange').Color,BrickColor.new('Black').Color),
  417. Color2 = ColorSequence.new(BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color,BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color),
  418. AllBody = true,
  419. UpperBodyOnly = false,
  420. LowerBodyOnly = false,
  421. Accessories = true,
  422. Extras = true,
  423. }
  424. m = game:service'Players'.LocalPlayer:GetMouse()
  425. local p=game:service("Players").LocalPlayer
  426. Instance.new("ForceField", game.Players.LocalPlayer.Character). Visible = false
  427. local char=p.Character
  428. script.Parent=char
  429. local tor=char.Torso
  430. local hed=char.Head
  431. local larm=char:FindFirstChild("Left Arm")
  432. local rarm=char:FindFirstChild("Right Arm")
  433. local lleg=char:FindFirstChild("Left Leg")
  434. local rleg=char:FindFirstChild("Right Leg")
  435. local hum=char.Humanoid
  436. local cam=workspace.CurrentCamera
  437. local root=char.HumanoidRootPart
  438. local mouse=p:GetMouse()
  439. local hb=game:service("RunService").Heartbeat
  440. local rs=game:service("RunService").Stepped
  441. hum.MaxHealth= math.huge
  442. hum.Health=hum.MaxHealth
  443. local hair4 = Instance.new("Part",char)
  444. hair4.Material="Neon"
  445. hair4.CanCollide=false
  446. hair4.Size=Vector3.new(.5,2,0)
  447. hair4.BrickColor=BrickColor.Red()
  448. hair4.Transparency=1
  449.  
  450.  
  451.  
  452. local w = Instance.new("Weld",hair4)
  453. w.Part1=hair4
  454. w.Part0=tor
  455. w.C0=CFrame.new(-0.7,0,0.5)
  456.  
  457. local hair3 = Instance.new("Part",char)
  458. hair3.Material="Neon"
  459. hair3.CanCollide=false
  460. hair3.Size=Vector3.new(.5,2,0)
  461. hair3.BrickColor=BrickColor.Red()
  462. hair3.Transparency=1
  463.  
  464.  
  465.  
  466. local w = Instance.new("Weld",hair3)
  467. w.Part1=hair3
  468. w.Part0=tor
  469. w.C0=CFrame.new(0.7,0,0.5)
  470.  
  471.  
  472. local hat = Instance.new("Part",char)
  473. hat.Transparency = 0
  474. hat.CanCollide= false
  475. local image =Instance.new("SpecialMesh",hat)
  476. image.Scale = Vector3.new(1, 1, 1.15)
  477. image.MeshId = 'http://www.roblox.com/asset/?id=1365696'
  478. image.TextureId ='rbxassetid://13656931'
  479. image.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  480. local w = Instance.new("Weld",hat)
  481. w.Part1=hat
  482. w.Part0=hed
  483. w.C0=CFrame.new(0,0.1,0.2)
  484. -----------------------------------------------------
  485. ----------------------------------------
  486. local bladee = Instance.new("ParticleEmitter",hair4)
  487. bladee.Texture = "http://www.roblox.com/asset/?id=298984512"
  488. bladee.LightEmission = 0.625
  489. bladee.EmissionDirection = "Left"
  490. bladee.LockedToPart = true
  491. bladee.Color = ParticleSettings.Color2
  492. bladee.Rate = 1000
  493. bladee.Lifetime = NumberRange.new(.5)
  494. bladee.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  495. bladee.Speed = NumberRange.new(5)
  496. bladee.Acceleration = Vector3.new(-50,40,0)
  497.  
  498. local bladee3 = Instance.new("ParticleEmitter",hair3)
  499. bladee3.Texture = "http://www.roblox.com/asset/?id=298984512"
  500. bladee3.LightEmission = 0.625
  501. bladee3.EmissionDirection = "Right"
  502. bladee3.LockedToPart = true
  503. bladee3.Color = ParticleSettings.Color2
  504. bladee3.Rate = 1000
  505. bladee3.Lifetime = NumberRange.new(.5)
  506. bladee3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  507. bladee3.Speed = NumberRange.new(5)
  508. bladee3.Acceleration = Vector3.new(50,40,0)
  509. m.KeyDown:connect(function(k)
  510. if k == "m" then
  511. if (hum ~= nil) then -- if a humanoid exists, then
  512. hum.Sit = true -- make the humanoid sit!
  513. end
  514. end
  515. end)
  516. ParticleSettings = {
  517. Lifetime = 1,
  518. Texture = 'rbxassetid://1209757190',
  519. --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  520. Color1 = ColorSequence.new(BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color,BrickColor.new('Black').Color),
  521. Color2 = ColorSequence.new(BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color,BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color),
  522. AllBody = true,
  523. UpperBodyOnly = false,
  524. LowerBodyOnly = false,
  525. Accessories = true,
  526. Extras = true,
  527. }
  528. TrailSettings = {
  529. Lifetime = 1,
  530. Texture = 'rbxassetid://1209757190',
  531. --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  532. Color1 = ColorSequence.new(BrickColor.new('Lime green').Color,BrickColor.new('Black').Color),
  533. Color2 = ColorSequence.new(BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color,BrickColor.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b).Color),
  534. AllBody = true,
  535. UpperBodyOnly = false,
  536. LowerBodyOnly = false,
  537. Accessories = true,
  538. Extras = true,
  539. }
  540. m = game:service'Players'.LocalPlayer:GetMouse()
  541. local p=game:service("Players").LocalPlayer
  542. Instance.new("ForceField", game.Players.LocalPlayer.Character). Visible = false
  543. local char=p.Character
  544. script.Parent=char
  545. local tor=char.Torso
  546. local hed=char.Head
  547. local larm=char:FindFirstChild("Left Arm")
  548. local rarm=char:FindFirstChild("Right Arm")
  549. local lleg=char:FindFirstChild("Left Leg")
  550. local rleg=char:FindFirstChild("Right Leg")
  551. local hum=char.Humanoid
  552. local cam=workspace.CurrentCamera
  553. local root=char.HumanoidRootPart
  554. local mouse=p:GetMouse()
  555. local hb=game:service("RunService").Heartbeat
  556. local rs=game:service("RunService").Stepped
  557. hum.MaxHealth= math.huge
  558. hum.Health=hum.MaxHealth
  559. local Colorpart1 = Torso.BrickColor.r
  560. local Colorpart2 = Torso.BrickColor.g
  561. local Colorpart3 = Torso.BrickColor.b
  562.  
  563.  
  564. local hat3 = Instance.new("Part",char)
  565. hat3.Transparency = 0.3
  566. hat3.CanCollide= false
  567. hat3.Name = 'aot'
  568. hat3.Size = Vector3.new(1,1,1)
  569. local light =Instance.new('PointLight',hat3)
  570. light.Color= Color3.new(Colorpart1, Colorpart2, Colorpart3)
  571. light.Brightness = 1234
  572. light.Range = 18
  573. local image =Instance.new("SpecialMesh",hat3)
  574. image.Scale = Vector3.new(1,1,1)
  575. image.MeshId = 'http://www.roblox.com/asset/?id=1376459'
  576. image.TextureId ='rbxassetid://1982057222'
  577. image.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  578. local w = Instance.new("Weld",hat3)
  579. w.Part1=hat3
  580. w.Part0=tor
  581. w.C0=CFrame.new(0,4,0)
  582.  
  583. local hat4 = Instance.new("Part",char)
  584. hat4.Transparency = 0.3
  585. hat4.CanCollide= false
  586. hat4.Name = 'aot1'
  587. hat4.Size = Vector3.new(1,1,1)
  588. local image =Instance.new("SpecialMesh",hat4)
  589. image.Scale = Vector3.new(1, 1, 1)
  590. image.MeshId = 'http://www.roblox.com/asset/?id=1028713'
  591. image.TextureId ='rbxassetid://1982057222'
  592. image.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  593. local w = Instance.new("Weld",hat4)
  594. w.Part1=hat4
  595. w.Part0=hed
  596. w.C0=CFrame.new(0,.9,0)
  597.  
  598. local hat2 = Instance.new("Part",char)
  599. hat2.Transparency = 1
  600. hat2.CanCollide= false
  601. hat2.Size = Vector3.new(1,1,1)
  602. hat2.Name = 'r'
  603.  
  604. local w = Instance.new("Weld",hat2)
  605. w.Part1=hat2
  606. w.Part0=tor
  607. w.C0=CFrame.new(0,4.5,0)
  608.  
  609. local trail = Instance.new("Trail",char)
  610. trail.Color = TrailSettings.Color2
  611. trail.Lifetime = 0.5
  612. local attachment0 = Instance.new("Attachment",char.aot)
  613. attachment0.Name = "TrailAttachment0"
  614. local attachment1 = Instance.new("Attachment",char.r)
  615. attachment1.Name = "TrailAttachment1"
  616. trail.Attachment0 = attachment0
  617. trail.Attachment1 = attachment1
  618. local scarf =Instance.new('Part',char)
  619. scarf.Transparency = 0
  620. scarf.CanCollide = false
  621. local hit =Instance.new("SpecialMesh",scarf)
  622. hit.Scale = Vector3.new(1, 1, 1)
  623. hit.MeshId = 'http://www.roblox.com/asset/?id=99856331'
  624. hit.TextureId ='rbxassetid://138769644'
  625. hit.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  626. local w = Instance.new("Weld",scarf)
  627. w.Part1=scarf
  628. w.Part0=hed
  629. w.C0=CFrame.new(0,-1,0)
  630. -----------------------------------------------------
  631. ----------------------------------------
  632. ---------------------------------
  633. --Kung Fu Man (From M.U.G.E.N.)--
  634. ---------------------------------
  635. --By CKbackup (Sugarie Saffron)--
  636. ---------------------------------
  637.  
  638. wait(1/60)
  639. Effects = { }
  640. local Player = game:service'Players'.localPlayer
  641. local chara = Player.Character
  642. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  643. local Mouse = Player:GetMouse()
  644. local LeftArm = chara["Left Arm"]
  645. local RightArm = chara["Right Arm"]
  646. local LeftLeg = chara["Left Leg"]
  647. local RightLeg = chara["Right Leg"]
  648. local Head = chara.Head
  649. local Torso = chara.Torso
  650. local Camera = game.Workspace.CurrentCamera
  651. local RootPart = chara.HumanoidRootPart
  652. local RootJoint = RootPart.RootJoint
  653. local attack = false
  654. local Anim = 'Idle'
  655. local attacktype = 1
  656. local delays = false
  657. local play = true
  658. local targetted = nil
  659. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  660. local velocity = RootPart.Velocity.y
  661. local sine = 0
  662. local change = 1
  663. local doe = 0
  664. local Create = LoadLibrary("RbxUtility").Create
  665. Humanoid.WalkSpeed = 16
  666.  
  667. Humanoid.Animator.Parent = nil
  668. chara.Animate.Parent = nil
  669.  
  670. local newMotor = function(part0, part1, c0, c1)
  671. local w = Create('Motor'){
  672. Parent = part0,
  673. Part0 = part0,
  674. Part1 = part1,
  675. C0 = c0,
  676. C1 = c1,
  677. }
  678. return w
  679. end
  680.  
  681. function clerp(a, b, t)
  682. return a:lerp(b, t)
  683. end
  684.  
  685. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  686. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  687.  
  688. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  689. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  690. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  691. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  692. RootJoint.C1 = CFrame.new(0, 0, 0)
  693. RootJoint.C0 = CFrame.new(0, 0, 0)
  694. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  695. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  696.  
  697. local rarmc1 = RW.C1
  698. local larmc1 = LW.C1
  699. local rlegc1 = RH.C1
  700. local llegc1 = LH.C1
  701.  
  702. local resetc1 = false
  703.  
  704. function PlayAnimationFromTable(table, speed, bool)
  705. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  706. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  707. RW.C0 = clerp(RW.C0, table[3], speed)
  708. LW.C0 = clerp(LW.C0, table[4], speed)
  709. RH.C0 = clerp(RH.C0, table[5], speed)
  710. LH.C0 = clerp(LH.C0, table[6], speed)
  711. if bool == true then
  712. if resetc1 == false then
  713. resetc1 = true
  714. RootJoint.C1 = RootJoint.C1
  715. Torso.Neck.C1 = Torso.Neck.C1
  716. RW.C1 = rarmc1
  717. LW.C1 = larmc1
  718. RH.C1 = rlegc1
  719. LH.C1 = llegc1
  720. end
  721. end
  722. end
  723.  
  724. ArtificialHB = Instance.new("BindableEvent", script)
  725. ArtificialHB.Name = "Heartbeat"
  726. script:WaitForChild("Heartbeat")
  727. frame = 0.03333333333333
  728. tf = 0
  729. allowframeloss = false
  730. tossremainder = false
  731. lastframe = tick()
  732. script.Heartbeat:Fire()
  733. game:GetService("RunService").Heartbeat:connect(function(s, p)
  734. tf = tf + s
  735. if tf >= frame then
  736. if allowframeloss then
  737. script.Heartbeat:Fire()
  738. lastframe = tick()
  739. else
  740. for i = 1, math.floor(tf / frame) do
  741. script.Heartbeat:Fire()
  742. end
  743. lastframe = tick()
  744. end
  745. if tossremainder then
  746. tf = 0
  747. else
  748. tf = tf - frame * math.floor(tf / frame)
  749. end
  750. end
  751. end)
  752. function swait(num)
  753. if num == 0 or num == nil then
  754. ArtificialHB.Event:wait()
  755. else
  756. for i = 0, num do
  757. ArtificialHB.Event:wait()
  758. end
  759. end
  760. end
  761.  
  762. function RemoveOutlines(part)
  763. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  764. end
  765.  
  766. CFuncs = {
  767. ["Part"] = {
  768. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  769. local Part = Create("Part"){
  770. Parent = Parent,
  771. Reflectance = Reflectance,
  772. Transparency = Transparency,
  773. CanCollide = false,
  774. Locked = true,
  775. BrickColor = BrickColor.new(tostring(BColor)),
  776. Name = Name,
  777. Size = Size,
  778. Material = Material,
  779. }
  780. RemoveOutlines(Part)
  781. return Part
  782. end;
  783. };
  784.  
  785. ["Mesh"] = {
  786. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  787. local Msh = Create(Mesh){
  788. Parent = Part,
  789. Offset = OffSet,
  790. Scale = Scale,
  791. }
  792. if Mesh == "SpecialMesh" then
  793. Msh.MeshType = MeshType
  794. Msh.MeshId = MeshId
  795. end
  796. return Msh
  797. end;
  798. };
  799.  
  800. ["Mesh"] = {
  801. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  802. local Msh = Create(Mesh){
  803. Parent = Part,
  804. Offset = OffSet,
  805. Scale = Scale,
  806. }
  807. if Mesh == "SpecialMesh" then
  808. Msh.MeshType = MeshType
  809. Msh.MeshId = MeshId
  810. end
  811. return Msh
  812. end;
  813. };
  814.  
  815. ["Weld"] = {
  816. Create = function(Parent, Part0, Part1, C0, C1)
  817. local Weld = Create("Weld"){
  818. Parent = Parent,
  819. Part0 = Part0,
  820. Part1 = Part1,
  821. C0 = C0,
  822. C1 = C1,
  823. }
  824. return Weld
  825. end;
  826. };
  827.  
  828. ["ParticleEmitter"] = {
  829. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  830. local fp = Create("ParticleEmitter"){
  831. Parent = Parent,
  832. Color = ColorSequence.new(Color1, Color2),
  833. LightEmission = LightEmission,
  834. Size = Size,
  835. Texture = Texture,
  836. Transparency = Transparency,
  837. ZOffset = ZOffset,
  838. Acceleration = Accel,
  839. Drag = Drag,
  840. LockedToPart = LockedToPart,
  841. VelocityInheritance = VelocityInheritance,
  842. EmissionDirection = EmissionDirection,
  843. Enabled = Enabled,
  844. Lifetime = LifeTime,
  845. Rate = Rate,
  846. Rotation = Rotation,
  847. RotSpeed = RotSpeed,
  848. Speed = Speed,
  849. VelocitySpread = VelocitySpread,
  850. }
  851. return fp
  852. end;
  853. };
  854.  
  855. CreateTemplate = {
  856.  
  857. };
  858. }
  859.  
  860. function so(id,par,pit,vol)
  861. local sou = Instance.new("Sound", par or workspace)
  862. if par == chara then
  863. sou.Parent = chara.Torso
  864. end
  865. sou.Volume = vol
  866. sou.Pitch = pit or 1
  867. sou.SoundId = "rbxassetid://" .. id
  868. sou.PlayOnRemove = true
  869. sou:Destroy()
  870. end
  871.  
  872. New = function(Object, Parent, Name, Data)
  873. local Object = Instance.new(Object)
  874. for Index, Value in pairs(Data or {}) do
  875. Object[Index] = Value
  876. end
  877. Object.Parent = Parent
  878. Object.Name = Name
  879. return Object
  880. end
  881.  
  882.  
  883.  
  884. local pemitt = Instance.new("ParticleEmitter",Torso)
  885. pemitt.Enabled = true
  886. pemitt.Transparency = NumberSequence.new(0,1)
  887. pemitt.Size = NumberSequence.new(3,10)
  888. pemitt.LockedToPart = false
  889. pemitt.LightInfluence = 1
  890. pemitt.Speed = NumberRange.new(7)
  891. pemitt.Lifetime = NumberRange.new(.5)
  892. pemitt.Rate = .5
  893. pemitt.EmissionDirection = "Top"
  894. pemitt.Texture = "https://www.roblox.com/headshot-thumbnail/image?userId="..Player.UserId.."&width=420&height=420&format=png"
  895. if chara:FindFirstChild("FaysG") then
  896. pemitt.Texture = "rbxassetid://1290985799"
  897. end
  898.  
  899. function rayCast(Position, Direction, Range, Ignore)
  900. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  901. end
  902.  
  903. FindNearestTorso = function(pos)
  904. local list = (game.workspace:GetDescendants())
  905. local torso = nil
  906. local dist = 1000
  907. local temp, human, temp2 = nil, nil, nil
  908. for x = 1, #list do
  909. temp2 = list[x]
  910. if temp2.className == "Model" and temp2.Name ~= chara.Name then
  911. temp = temp2:findFirstChild("Torso")
  912. human = temp2:FindFirstChildOfClass("Humanoid")
  913. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  914. local dohit = true
  915. if dohit == true then
  916. torso = temp
  917. dist = (temp.Position - pos).magnitude
  918. end
  919. end
  920. end
  921. end
  922. return torso, dist
  923. end
  924. function FindNearestTorso(Position, Distance, SinglePlayer)
  925. if SinglePlayer then
  926. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  927. end
  928. local List = {}
  929. for i, v in pairs(workspace:GetDescendants()) do
  930. if v:IsA("Model") then
  931. if v:findFirstChild("Head") then
  932. if v ~= chara then
  933. if (v.Head.Position - Position).magnitude <= Distance then
  934. table.insert(List, v)
  935. end
  936. end
  937. end
  938. end
  939. end
  940. return List
  941. end
  942.  
  943. function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
  944. local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
  945. local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
  946. local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001,LightEmission = 1})
  947. return TEff
  948. end
  949.  
  950. LLTr = CreateTrailObj(LeftLeg,"White","White",0,0)
  951. RLTr = CreateTrailObj(RightLeg,"White","White",0,0)
  952. LATr = CreateTrailObj(LeftArm,"White","White",0,0)
  953. RATr = CreateTrailObj(RightArm,"White","White",0,0)
  954.  
  955. EffectModel = Create("Model"){
  956. Parent = chara,
  957. Name = "Effects",
  958. }
  959.  
  960. Effects = {
  961. Block = {
  962. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  963. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  964. prt.Anchored = true
  965. prt.CFrame = cframe
  966. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  967. game:GetService("Debris"):AddItem(prt, 10)
  968. if Type == 1 or Type == nil then
  969. table.insert(Effects, {
  970. prt,
  971. "Block1",
  972. delay,
  973. x3,
  974. y3,
  975. z3,
  976. msh
  977. })
  978. elseif Type == 2 then
  979. table.insert(Effects, {
  980. prt,
  981. "Block2",
  982. delay,
  983. x3,
  984. y3,
  985. z3,
  986. msh
  987. })
  988. end
  989. end;
  990. };
  991.  
  992. Cylinder = {
  993. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  994. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  995. prt.Anchored = true
  996. prt.CFrame = cframe
  997. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  998. game:GetService("Debris"):AddItem(prt, 10)
  999. table.insert(Effects, {
  1000. prt,
  1001. "Cylinder",
  1002. delay,
  1003. x3,
  1004. y3,
  1005. z3,
  1006. msh
  1007. })
  1008. end;
  1009. };
  1010. Head = {
  1011. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1012. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1013. prt.Anchored = true
  1014. prt.CFrame = cframe
  1015. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1016. game:GetService("Debris"):AddItem(prt, 10)
  1017. table.insert(Effects, {
  1018. prt,
  1019. "Cylinder",
  1020. delay,
  1021. x3,
  1022. y3,
  1023. z3,
  1024. msh
  1025. })
  1026. end;
  1027. };
  1028.  
  1029. Sphere = {
  1030. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1031. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1032. prt.Anchored = true
  1033. prt.CFrame = cframe
  1034. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1035. game:GetService("Debris"):AddItem(prt, 10)
  1036. table.insert(Effects, {
  1037. prt,
  1038. "Cylinder",
  1039. delay,
  1040. x3,
  1041. y3,
  1042. z3,
  1043. msh
  1044. })
  1045. end;
  1046. };
  1047.  
  1048. Elect = {
  1049. Create = function(cff, x, y, z)
  1050. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  1051. prt.Anchored = true
  1052. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  1053. prt.CFrame = CFrame.new(prt.Position)
  1054. game:GetService("Debris"):AddItem(prt, 2)
  1055. local xval = math.random() / 2
  1056. local yval = math.random() / 2
  1057. local zval = math.random() / 2
  1058. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  1059. table.insert(Effects, {
  1060. prt,
  1061. "Elec",
  1062. 0.1,
  1063. x,
  1064. y,
  1065. z,
  1066. xval,
  1067. yval,
  1068. zval
  1069. })
  1070. end;
  1071.  
  1072. };
  1073.  
  1074. Ring = {
  1075. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1076. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1077. prt.Anchored = true
  1078. prt.CFrame = cframe
  1079. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1080. game:GetService("Debris"):AddItem(prt, 10)
  1081. table.insert(Effects, {
  1082. prt,
  1083. "Cylinder",
  1084. delay,
  1085. x3,
  1086. y3,
  1087. z3,
  1088. msh
  1089. })
  1090. end;
  1091. };
  1092.  
  1093.  
  1094. Wave = {
  1095. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1096. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1097. prt.Anchored = true
  1098. prt.CFrame = cframe
  1099. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1100. game:GetService("Debris"):AddItem(prt, 10)
  1101. table.insert(Effects, {
  1102. prt,
  1103. "Cylinder",
  1104. delay,
  1105. x3,
  1106. y3,
  1107. z3,
  1108. msh
  1109. })
  1110. end;
  1111. };
  1112.  
  1113. Break = {
  1114. Create = function(brickcolor, cframe, x1, y1, z1)
  1115. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1116. prt.Anchored = true
  1117. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1118. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1119. local num = math.random(10, 50) / 1000
  1120. game:GetService("Debris"):AddItem(prt, 10)
  1121. table.insert(Effects, {
  1122. prt,
  1123. "Shatter",
  1124. num,
  1125. prt.CFrame,
  1126. math.random() - math.random(),
  1127. 0,
  1128. math.random(50, 100) / 100
  1129. })
  1130. end;
  1131. };
  1132.  
  1133. Fire = {
  1134. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  1135. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1136. prt.Anchored = true
  1137. prt.CFrame = cframe
  1138. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1139. game:GetService("Debris"):AddItem(prt, 10)
  1140. table.insert(Effects, {
  1141. prt,
  1142. "Fire",
  1143. delay,
  1144. 1,
  1145. 1,
  1146. 1,
  1147. msh
  1148. })
  1149. end;
  1150. };
  1151.  
  1152. FireWave = {
  1153. Create = function(brickcolor, cframe, x1, y1, z1)
  1154. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  1155. prt.Anchored = true
  1156. prt.CFrame = cframe
  1157. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1158. local d = Create("Decal"){
  1159. Parent = prt,
  1160. Texture = "rbxassetid://26356434",
  1161. Face = "Top",
  1162. }
  1163. local d = Create("Decal"){
  1164. Parent = prt,
  1165. Texture = "rbxassetid://26356434",
  1166. Face = "Bottom",
  1167. }
  1168. game:GetService("Debris"):AddItem(prt, 10)
  1169. table.insert(Effects, {
  1170. prt,
  1171. "FireWave",
  1172. 1,
  1173. 30,
  1174. math.random(400, 600) / 100,
  1175. msh
  1176. })
  1177. end;
  1178. };
  1179.  
  1180. Lightning = {
  1181. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  1182. local magz = (p0 - p1).magnitude
  1183. local curpos = p0
  1184. local trz = {
  1185. -ofs,
  1186. ofs
  1187. }
  1188. for i = 1, tym do
  1189. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  1190. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1191. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1192. li.Material = "Neon"
  1193. if tym == i then
  1194. local magz2 = (curpos - p1).magnitude
  1195. li.Size = Vector3.new(th, th, magz2)
  1196. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1197. table.insert(Effects, {
  1198. li,
  1199. "Disappear",
  1200. last
  1201. })
  1202. else
  1203. do
  1204. do
  1205. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1206. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1207. game.Debris:AddItem(li, 10)
  1208. table.insert(Effects, {
  1209. li,
  1210. "Disappear",
  1211. last
  1212. })
  1213. end
  1214. end
  1215. end
  1216. end
  1217. end
  1218. };
  1219.  
  1220. EffectTemplate = {
  1221.  
  1222. };
  1223. }
  1224.  
  1225. function ShowDamage(Dude, Text, Time, Color)
  1226. coroutine.resume(coroutine.create(function()
  1227. local naeeym2 = Instance.new("BillboardGui",Dude)
  1228. naeeym2.Size = UDim2.new(0,100,0,40)
  1229. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1230. naeeym2.Adornee = Dude.Head
  1231. naeeym2.Name = "TalkingBillBoard"
  1232. local tecks2 = Instance.new("TextLabel",naeeym2)
  1233. tecks2.BackgroundTransparency = 1
  1234. tecks2.BorderSizePixel = 0
  1235. tecks2.Text = Text
  1236. tecks2.Font = "Fantasy"
  1237. tecks2.TextSize = 24
  1238. tecks2.TextStrokeTransparency = 0
  1239. tecks2.TextColor3 = BrickColor.new(Color).Color
  1240. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  1241. tecks2.Size = UDim2.new(1,0,0.5,0)
  1242. swait(10)
  1243. for i = 0,1,.05 do
  1244. swait()
  1245. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  1246. tecks2.TextStrokeTransparency = i
  1247. tecks2.TextTransparency = i
  1248. end
  1249. naeeym2:Destroy()
  1250. end))
  1251. end
  1252.  
  1253. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1254. if hit.Parent==nil then
  1255. return
  1256. end
  1257. local torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso"))
  1258. local h=hit.Parent:FindFirstChildOfClass("Humanoid")
  1259. for _,v in pairs(hit.Parent:GetDescendants()) do
  1260. if v:IsA("Humanoid") then
  1261. h=v
  1262. end
  1263. end
  1264. if torsy~=nil then
  1265. h=hit.Parent:FindFirstChildOfClass("Humanoid")
  1266. end
  1267. if hit.Parent:IsA("Accoutrement") then
  1268. hit=hit.Parent.Parent:findFirstChild("Head")
  1269. end
  1270. if h~=nil and hit.Parent.Name~=chara.Name and torsy~=nil then
  1271. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1272. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1273. return
  1274. end]]
  1275. -- hs(hit,1.2)
  1276. local c=Instance.new("ObjectValue")
  1277. c.Name="creator"
  1278. c.Value=game:service("Players").LocalPlayer
  1279. c.Parent=h
  1280. game:GetService("Debris"):AddItem(c,.5)
  1281. local Damage=math.random(minim,maxim)
  1282. -- h:TakeDamage(Damage)
  1283. local blocked=false
  1284. local block=hit.Parent:findFirstChild("Block")
  1285. if block~=nil then
  1286. print(block.className)
  1287. if block.className=="NumberValue" then
  1288. if block.Value>0 then
  1289. blocked=true
  1290. if decreaseblock==nil then
  1291. block.Value=block.Value-1
  1292. end
  1293. end
  1294. end
  1295. if block.className=="IntValue" then
  1296. if block.Value>0 then
  1297. blocked=true
  1298. if decreaseblock~=nil then
  1299. block.Value=block.Value-1
  1300. end
  1301. end
  1302. end
  1303. end
  1304. h.Health=h.Health-Damage
  1305. ShowDamage(h.Parent, -Damage, 1.5, "White")
  1306. if Type=="Knockdown" then
  1307. local hum=hit.Parent:FindFirstChildOfClass("Humanoid")
  1308. hum.PlatformStand=true
  1309. coroutine.resume(coroutine.create(function(HHumanoid)
  1310. swait(30)
  1311. HHumanoid.PlatformStand=false
  1312. end),hum)
  1313. --local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1314. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1315. local bodvol=Instance.new("BodyVelocity")
  1316. bodvol.velocity=RootPart.CFrame.lookVector*knockback
  1317. bodvol.P=50000
  1318. bodvol.maxForce=Vector3.new(5000, 0, 5000) * 5000000000
  1319. bodvol.Parent=torsy
  1320. torsy.CFrame = CFrame.new(torsy.Position)*CFrame.Angles(math.rad(90),0,0)
  1321. --local rl=Instance.new("BodyAngularVelocity")
  1322. --rl.P=3000
  1323. --rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1324. --rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1325. --rl.Parent=torsy
  1326. game:GetService("Debris"):AddItem(bodvol,.5)
  1327. --game:GetService("Debris"):AddItem(rl,.5)
  1328. elseif Type=="Normal" then
  1329. local vp=Instance.new("BodyVelocity")
  1330. vp.P=500
  1331. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1332. vp.velocity=RootPart.CFrame.lookVector*knockback
  1333. -- if KnockbackType==1 then
  1334. -- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1335. -- elseif KnockbackType==2 then
  1336. -- vp.velocity=Property.CFrame.lookVector*knockback
  1337. -- end
  1338. if knockback>0 then
  1339. vp.Parent=torsy
  1340. end
  1341. game:GetService("Debris"):AddItem(vp,.5)
  1342. elseif Type=="Up" then
  1343. local bodyVelocity=Instance.new("BodyVelocity")
  1344. bodyVelocity.velocity=Vector3.new(0,knockback,0)
  1345. bodyVelocity.P=5000
  1346. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1347. bodyVelocity.Parent=torsy
  1348. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1349. local rl=Instance.new("BodyAngularVelocity")
  1350. rl.P=3000
  1351. rl.maxTorque=Vector3.new(500000,500000,500000)
  1352. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1353. rl.Parent=torsy
  1354. game:GetService("Debris"):AddItem(rl,.5)
  1355. elseif Type=="Snare" then
  1356. local bp=Instance.new("BodyPosition")
  1357. bp.P=2000
  1358. bp.D=100
  1359. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1360. bp.position=torsy.Position
  1361. bp.Parent=torsy
  1362. game:GetService("Debris"):AddItem(bp,1)
  1363. end
  1364. local debounce=Instance.new("BoolValue")
  1365. debounce.Name="DebounceHit"
  1366. debounce.Parent=torsy.Parent
  1367. debounce.Value=true
  1368. game:GetService("Debris"):AddItem(debounce,Delay)
  1369. c=Instance.new("ObjectValue")
  1370. c.Name="creator"
  1371. c.Value=Player
  1372. c.Parent=h
  1373. game:GetService("Debris"):AddItem(c,.5)
  1374. end
  1375. end
  1376.  
  1377. function MagnitudeDamage(par,magni,efftyp,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1378. for _, c in pairs(workspace:GetDescendants()) do
  1379. local hum = c:FindFirstChildOfClass("Humanoid")
  1380. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  1381. local head = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  1382. if head ~= nil then
  1383. local targ = head.Position - par.Position
  1384. local mag = targ.magnitude
  1385. if magni >= mag and c.Name ~= Player.Name then
  1386. if efftyp == "Blunt" then
  1387. puncheff(head)
  1388. elseif efftyp == "HardBlunt" then
  1389. hpuncheff(head)
  1390. end
  1391. Damagefunc(RootPart,head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1392. end
  1393. end
  1394. end
  1395. end
  1396. end
  1397.  
  1398. combo = 1
  1399.  
  1400. function puncheff(par)
  1401. if par.Parent:FindFirstChild("DebounceHit")==nil then
  1402. so(386946017,par,math.random(80,120)/100,1)
  1403. Effects.Sphere.Create(BrickColor.new("White"), par.CFrame, 2, 2, 2, 5, 5, 5, 0.1)
  1404. end
  1405. end
  1406.  
  1407. function hpuncheff(par)
  1408. if par.Parent:FindFirstChild("DebounceHit")==nil then
  1409. so(137579113,par,math.random(70,75)/100,1)
  1410. Effects.Sphere.Create(BrickColor.new("White"), par.CFrame, 2, 2, 2, 5, 5, 5, 0.05)
  1411. end
  1412. end
  1413.  
  1414. function supereff()
  1415. pemitt:Emit(1)
  1416. so(153092315,RootPart,.8,5)
  1417. for i = 1, 7 do
  1418. Effects.Break.Create(BrickColor.new("Baby blue"),RootPart.CFrame,0,math.random(5,20),0)
  1419. end
  1420. Effects.Wave.Create(BrickColor.new("Baby blue"), RootPart.CFrame*CFrame.new(0,-1.5,0), 2, 0, 2, 5, .5, 5, 0.1)
  1421. end
  1422.  
  1423. function attackone()
  1424. attack = true
  1425. LATr.Enabled = true
  1426. Humanoid.WalkSpeed = 2
  1427. so(200632136, LeftArm, .9, 1)
  1428. for i=0,1,.2 do
  1429. swait()
  1430. PlayAnimationFromTable({
  1431. CFrame.new(0.00827017333, -4.76837158e-07, -0.372066826, 4.32133675e-07, 0, -1.00000858, 0, 1, 0, 1.00000858, 0, 4.32133675e-07),
  1432. CFrame.new(0.0720631108, 1.49999857, 0.00827036519, 4.32133675e-07, 0, 1.00000858, 0, 1, 0, -1.00000858, 0, 4.32133675e-07),
  1433. CFrame.new(0.783987999, 0.5, -0.759807885, 0.500000238, 0.866025388, 0, 0, 0, -1, -0.866025388, 0.500000238, 0),
  1434. CFrame.new(-1.58918715, 0.915114164, -0.0720625669, 0.0400159881, 0.992945373, -0.111617096, -0.999126732, 0.0411066711, 0.00748660602, 0.012021997, 0.111220047, 0.993723094),
  1435. CFrame.new(0.800002694, -1.99999833, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  1436. CFrame.new(-0.495444268, -2.01339579, 0.00209511817, 0.984807968, 0, 0.173647001, 0, 1, 0, -0.173647001, 0, 0.984807968),
  1437. MagnitudeDamage(LeftArm,3,"Blunt",6,8,3,"Normal",RootPart,.4,1)
  1438. }, .5, false)
  1439. end
  1440. swait(1)
  1441. Humanoid.WalkSpeed = 16
  1442. LATr.Enabled = false
  1443. attack = false
  1444. end
  1445.  
  1446. function attacktwo()
  1447. attack = true
  1448. RLTr.Enabled = true
  1449. Humanoid.WalkSpeed = 2
  1450. so(200632136, RightLeg, .7, 1)
  1451. for i=0,1,.2 do
  1452. swait()
  1453. PlayAnimationFromTable({
  1454. CFrame.new(0.0551774763, -4.76837158e-07, -0.20956336, 0.984816253, 0, 0.173649907, 0, 1, 0, -0.173649907, 0, 0.984816253),
  1455. CFrame.new(-0.0386328921, 1.49999857, -0.0986492559, 0.984816253, 0, -0.173649907, 0, 1, 0, 0.173649907, 0, 0.984816253),
  1456. CFrame.new(1.42158043, 0.497783571, 0.499346852, 0.756716371, -0.361068547, -0.544986248, 0.530888021, 0.825873375, 0.189976722, 0.381495029, -0.433085173, 0.816638827),
  1457. CFrame.new(-0.790363729, -0.207643896, -0.153322488, -0.919378817, 0.377208799, -0.111607477, 0.380347937, 0.924813211, -0.00749232853, 0.100389853, -0.0493379459, -0.993724108),
  1458. CFrame.new(0.383741319, -1.47819519, -1.36227417, 0.971020937, 0.0849868506, 0.223373249, 0.201054975, 0.214821026, -0.95573467, -0.129210159, 0.97294873, 0.19150871),
  1459. CFrame.new(-0.495439887, -2.01339579, 0.0020987913, 0.984807849, 0, 0.173648134, 0, 1, 0, -0.173648164, 0, 0.984807849),
  1460. MagnitudeDamage(RightLeg,3,"Blunt",9,11,4,"Normal",RootPart,.4,1)
  1461. }, .5, false)
  1462. end
  1463. swait(1.5)
  1464. Humanoid.WalkSpeed = 16
  1465. RLTr.Enabled = false
  1466. attack = false
  1467. end
  1468.  
  1469. function attackthree()
  1470. attack = true
  1471. LATr.Enabled = true
  1472. Humanoid.WalkSpeed = 2
  1473. for i=0,1,.2 do
  1474. swait()
  1475. PlayAnimationFromTable({
  1476. CFrame.new(0.0436707325, 6.56809902e-07, -0.268135428, 1.00000322, -1.21071935e-08, 2.39349902e-07, 1.11758709e-08, 1, 2.19792128e-07, -3.00584361e-07, 2.01165676e-07, 1.0000031),
  1477. CFrame.new(-0.0436706543, 1.49998975, -0.031870842, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1478. CFrame.new(0.687333524, 0.211406618, -0.815611422, 0.500000238, 0.813797593, 0.296197981, 0, 0.342019975, -0.939692676, -0.866025388, 0.469846487, 0.171010062),
  1479. CFrame.new(-1.30885708, 0.759990096, 0.515828252, -0.234716937, 0.926352441, -0.29458335, -0.0210989937, -0.307833105, -0.951206446, -0.971834779, -0.217048839, 0.0917987302),
  1480. CFrame.new(0.500015259, -1.77985549, 0.729058385, 1, 0, 0, 0, 0.76604414, 0.642788053, 0, -0.642788053, 0.76604414),
  1481. CFrame.new(-0.495445162, -2.01339388, 0.00208995491, 0.984807968, 0, 0.173647001, 0, 1, 0, -0.173647001, 0, 0.984807968),
  1482. }, .5, false)
  1483. end
  1484. so(158037267,LeftArm,.8,1)
  1485. for i=0,1,.2 do
  1486. swait()
  1487. PlayAnimationFromTable({
  1488. CFrame.new(0.00827010814, -4.09172827e-07, -0.57207197, 3.51455867e-07, -9.31427935e-10, -1.00000548, 7.15250906e-07, 1, -2.93939406e-15, 1.00000536, 2.98427949e-12, 4.13155988e-07),
  1489. CFrame.new(0.0720604658, 1.49999046, 0.00826480612, 0.766044259, 3.42721876e-07, 0.642787874, -2.50567325e-07, 1, -2.34566073e-07, -0.642787874, 1.86263627e-08, 0.766044259),
  1490. CFrame.new(1.04996192, -0.0618722625, -0.60625875, 0.500002384, 0.150384277, 0.852873385, -2.49386289e-09, 0.984807968, -0.173647016, -0.866030276, 0.0868239254, 0.492406517),
  1491. CFrame.new(-0.550303876, 0.448357344, -0.729969025, 0.399810284, -0.915730119, 0.0400139615, 0.0270380024, -0.0318540074, -0.999126732, 0.916205108, 0.400543034, 0.0120239574),
  1492. CFrame.new(0.80001545, -2.00000119, 7.61750289e-06, 0.939694345, -0.342015564, -3.68559938e-09, 0.342015594, 0.939694285, -7.42008988e-09, 6.00111605e-09, 5.71207437e-09, 1),
  1493. CFrame.new(-0.495453179, -2.01340103, 0.00208870322, 0.984808028, 2.42602312e-08, 0.173647031, -2.73465162e-09, 1, -1.24201193e-07, -0.173647046, 1.21839477e-07, 0.984808028),
  1494. MagnitudeDamage(LeftArm,3,"Blunt",10,12,6,"Normal",RootPart,.4,1)
  1495. }, .5, false)
  1496. end
  1497. swait(2)
  1498. Humanoid.WalkSpeed = 16
  1499. LATr.Enabled = false
  1500. attack = false
  1501. end
  1502.  
  1503. function attackfour()
  1504. attack = true
  1505. LLTr.Enabled = true
  1506. Humanoid.WalkSpeed = 2
  1507. for i=0,1,.2 do
  1508. swait()
  1509. PlayAnimationFromTable({
  1510. CFrame.new(-0.0301548094, -0.0724081025, -0.559211493, 0.321394473, 0.116978027, -0.939692438, -0.342020094, 0.939692676, 4.69497827e-08, 0.88302213, 0.321393639, 0.342020839),
  1511. CFrame.new(0.0225492716, 1.48197627, 0.160110101, 0.321394086, -0.183489025, 0.928998351, 0.116977885, 0.981226087, 0.153335288, -0.939692557, 0.0593912005, 0.336824387),
  1512. CFrame.new(0.7839908, 0.500000119, -0.759810984, 0.499999404, 0.866025865, 1.1920929e-07, -1.15483999e-07, 2.08616257e-07, -1.00000012, -0.866025805, 0.499999344, 2.01165676e-07),
  1513. CFrame.new(-1.10313094, -0.119031914, -0.00966702402, 0.919376969, -0.377211034, -0.111615703, 0.380350292, 0.924812317, 0.00748884678, 0.10039869, -0.0493381247, 0.993723273),
  1514. CFrame.new(0.800008416, -1.99999881, -3.87945101e-06, 0.939692795, -0.342020094, -5.36441803e-07, 0.342020065, 0.939692676, -2.30967999e-07, 5.36441803e-07, 4.69497827e-08, 1),
  1515. CFrame.new(-0.42619139, -1.33903706, -0.172390282, 0.312324524, -0.336822361, 0.888259172, 0.171015799, 0.939692855, 0.296194136, -0.934455514, 0.0593976751, 0.351091057),
  1516. }, .5, false)
  1517. end
  1518. so(200632136, LeftLeg, .7, 1)
  1519. for i=0,1,.2 do
  1520. swait()
  1521. PlayAnimationFromTable({
  1522. CFrame.new(-0.0301469415, -0.0586996675, -0.437210172, 0.321393996, 0.116978295, -0.939692676, -0.49015975, 0.86961025, -0.0593912825, 0.810215533, 0.479687631, 0.336824983),
  1523. CFrame.new(0.0225491524, 1.48198009, 0.160110533, 0.321394026, -0.183488876, 0.928998351, 0.116977893, 0.981226146, 0.153335184, -0.939692616, 0.0593912527, 0.336824328),
  1524. CFrame.new(0.783987582, 0.500001311, -0.759808958, 0.499998629, 0.866026282, -2.08616257e-07, -4.13507223e-07, 8.94069672e-08, -1.00000012, -0.866026282, 0.499998659, 4.02331352e-07),
  1525. CFrame.new(-1.10312903, -0.119031809, -0.00967045873, 0.919376493, -0.377212375, -0.111615419, 0.380351573, 0.92481184, 0.00748815387, 0.100398645, -0.0493375398, 0.993723273),
  1526. CFrame.new(1.02219689, -1.90949571, 0.0872627348, 0.871276855, -0.49015975, -0.0249014199, 0.490767866, 0.86961025, 0.0541392565, -0.00488203764, -0.0593912825, 0.998223186),
  1527. CFrame.new(-1.33761406, -1.70827067, -0.524259567, 0.486513674, 0.819252968, -0.303527921, -0.873673022, 0.456210732, -0.169018984, 3.40305269e-06, 0.347414166, 0.937711895),
  1528. MagnitudeDamage(LeftLeg,3,"Blunt",12,14,6,"Normal",RootPart,.4,1)
  1529. }, .5, false)
  1530. end
  1531. swait(3)
  1532. Humanoid.WalkSpeed = 16
  1533. LLTr.Enabled = false
  1534. attack = false
  1535. end
  1536.  
  1537. function jattack()
  1538. attack = true
  1539. LLTr.Enabled = true
  1540. so(200632136, LeftLeg, .7, 1)
  1541. local par
  1542. coroutine.wrap(function()
  1543. repeat swait() par = rayCast(RootPart.Position,Vector3.new(0,-1,0),3,chara) until par~=nil or Torso.Velocity.Y == 0
  1544. LLTr.Enabled = false
  1545. attack = false
  1546. end)()
  1547. for i=0,1,.2 do
  1548. swait()
  1549. PlayAnimationFromTable({
  1550. CFrame.new(-0.0301543549, -0.0587017909, -0.437208563, 0.321394026, 0.116978273, -0.939692497, -0.49015981, 0.86961031, -0.0593912788, 0.810215592, 0.479687661, 0.336824954),
  1551. CFrame.new(0.0225486755, 1.48198104, 0.160110414, 0.321394056, -0.183488876, 0.92899853, 0.116977863, 0.981226146, 0.153335184, -0.939692497, 0.0593912415, 0.336824298),
  1552. CFrame.new(0.783988774, 0.500003517, -0.759812713, 0.499998719, 0.866026521, -2.08616257e-07, -4.35858965e-07, 8.94069672e-08, -1.00000024, -0.866026223, 0.499998599, 3.7252903e-07),
  1553. CFrame.new(-1.5387224, 0.336511105, -0.0620384961, 0.879926026, 0.461813837, -0.111617982, -0.463960439, 0.885824561, 0.00748144835, 0.102328926, 0.0452032089, 0.993723154),
  1554. CFrame.new(-0.315333247, -1.53402376, -0.49589175, -0.134368047, 0.810216188, -0.57052201, -0.407345563, 0.479686826, 0.777155399, 0.903335512, 0.336824328, 0.265583307),
  1555. CFrame.new(-1.33761203, -1.70826972, -0.524270773, 0.486513793, 0.819253027, -0.303527981, -0.873673081, 0.456210762, -0.169018969, 3.40305269e-06, 0.347414106, 0.937711835),
  1556. MagnitudeDamage(LeftLeg,6,"Blunt",9,11,4,"Normal",RootPart,.4,1)
  1557. }, .5, false)
  1558. end
  1559. end
  1560.  
  1561. zhold = false
  1562. function kfpalm()
  1563. attack = true
  1564. LATr.Enabled = true
  1565. Humanoid.WalkSpeed = 0
  1566. for i=0,1,.2 do
  1567. swait()
  1568. PlayAnimationFromTable({
  1569. CFrame.new(0, -0.599999428, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  1570. CFrame.new(0, 1.49999595, 0, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238),
  1571. CFrame.new(0.662911594, 0.399999619, -0.623933315, 0.342019022, 0.939693093, 0, 0, 0, -1, -0.939693093, 0.342018992, 0),
  1572. CFrame.new(-0.473205, -0.0999996662, 0.499996185, 0, 1, 0, 1, 0, 0, 0, 0, -1),
  1573. CFrame.new(1.1031599, -1.592327, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698, 0, 0, 0, 1),
  1574. CFrame.new(-0.599999666, -1.40000069, -0.199996278, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388),
  1575. }, .5, false)
  1576. end
  1577. local t = 0
  1578. repeat swait() t=t+1 until t == 10 or zhold == false
  1579. if t == 10 then
  1580. supereff()
  1581. swait(5)
  1582. for i=1,2 do
  1583. so(158037267,LeftArm,.5,1)
  1584. local ve = Instance.new("BodyVelocity", Torso)
  1585. ve.P = 6000
  1586. ve.Name = "WUUB"
  1587. ve.maxForce = Vector3.new(5000, 0, 5000) * 5000000000
  1588. ve.velocity = RootPart.CFrame.lookVector * 30
  1589. game:GetService("Debris"):AddItem(ve,.1)
  1590. for i=0,1,.2 do
  1591. swait()
  1592. PlayAnimationFromTable({
  1593. CFrame.new(0, -0.599999428, 0, 1.34110837e-06, 0, -1.00000548, 0, 1, 0, 1.00000644, 0, -1.34110837e-06),
  1594. CFrame.new(0, 1.49999595, 0, 0.50000459, 0, 0.866030216, 0, 1, 0, -0.866030753, 0, 0.500001729),
  1595. CFrame.new(0.662920713, 0.399999619, -0.62394017, 0.342022449, 0.939698696, 0, 0, 0, -1, -0.939698637, 0.342019558, 0),
  1596. CFrame.new(-1.77321196, 0.199999332, 6.86993644e-07, 0, 1.00000322, 9.53674316e-07, 1, 0, 0, 0, -3.87430191e-07, -1.00000274),
  1597. CFrame.new(1.30833769, -1.50339675, -5.62785135e-06, 0.642791152, -0.766049802, -1.34110837e-06, 0.766044974, 0.64278698, 0, -8.59985107e-07, 1.05675122e-06, 1.00000548),
  1598. CFrame.new(-0.357623726, -1.425565, -0.224466428, 0.813800395, -0.296199203, 0.500001609, 0.342020124, 0.939692616, 3.24837544e-07, -0.469848782, 0.171010628, 0.866027236),
  1599. MagnitudeDamage(LeftArm,3,"HardBlunt",9,13,10,"Normal",RootPart,.4,1)
  1600. }, .5, false)
  1601. end
  1602. swait(5)
  1603. for i=0,1,.2 do
  1604. swait()
  1605. PlayAnimationFromTable({
  1606. CFrame.new(0, -0.599999428, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  1607. CFrame.new(0, 1.49999595, 0, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238),
  1608. CFrame.new(0.662911594, 0.399999619, -0.623933315, 0.342019022, 0.939693093, 0, 0, 0, -1, -0.939693093, 0.342018992, 0),
  1609. CFrame.new(-0.473205, -0.0999996662, 0.499996185, 0, 1, 0, 1, 0, 0, 0, 0, -1),
  1610. CFrame.new(1.1031599, -1.592327, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698, 0, 0, 0, 1),
  1611. CFrame.new(-0.599999666, -1.40000069, -0.199996278, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388),
  1612. }, .5, false)
  1613. end
  1614. end
  1615. end
  1616. so(158037267,LeftArm,.5,1)
  1617. local ve = Instance.new("BodyVelocity", Torso)
  1618. ve.P = 6000
  1619. ve.Name = "WUUB"
  1620. ve.maxForce = Vector3.new(5000, 0, 5000) * 5000000000
  1621. ve.velocity = RootPart.CFrame.lookVector * 50
  1622. game:GetService("Debris"):AddItem(ve,.1)
  1623. for i=0,1,.2 do
  1624. swait()
  1625. PlayAnimationFromTable({
  1626. CFrame.new(0, -0.599999428, 0, 1.34110837e-06, 0, -1.00000548, 0, 1, 0, 1.00000644, 0, -1.34110837e-06),
  1627. CFrame.new(0, 1.49999595, 0, 0.50000459, 0, 0.866030216, 0, 1, 0, -0.866030753, 0, 0.500001729),
  1628. CFrame.new(0.662920713, 0.399999619, -0.62394017, 0.342022449, 0.939698696, 0, 0, 0, -1, -0.939698637, 0.342019558, 0),
  1629. CFrame.new(-1.77321196, 0.199999332, 6.86993644e-07, 0, 1.00000322, 9.53674316e-07, 1, 0, 0, 0, -3.87430191e-07, -1.00000274),
  1630. CFrame.new(1.30833769, -1.50339675, -5.62785135e-06, 0.642791152, -0.766049802, -1.34110837e-06, 0.766044974, 0.64278698, 0, -8.59985107e-07, 1.05675122e-06, 1.00000548),
  1631. CFrame.new(-0.357623726, -1.425565, -0.224466428, 0.813800395, -0.296199203, 0.500001609, 0.342020124, 0.939692616, 3.24837544e-07, -0.469848782, 0.171010628, 0.866027236),
  1632. MagnitudeDamage(LeftArm,3,"HardBlunt",15,18,15,"Knockdown",RootPart,.4,1)
  1633. }, .5, false)
  1634. end
  1635. swait(10)
  1636. Humanoid.WalkSpeed = 16
  1637. LATr.Enabled = false
  1638. attack = false
  1639. end
  1640.  
  1641. function kfblow()
  1642. attack = true
  1643. LATr.Enabled = true
  1644. Humanoid.WalkSpeed = 0
  1645. swait(5)
  1646. so(158037267,LeftArm,.5,1)
  1647. for i=0,1,.2 do
  1648. swait()
  1649. PlayAnimationFromTable({
  1650. CFrame.new(8.86628623e-05, -0.599999428, -2.50004721, 2.68223084e-06, 0, -1.00001097, 0, 1, 0, 1.00001287, 0, -2.68223084e-06),
  1651. CFrame.new(0, 1.49999619, 0, 0.500008941, 0, 0.866035163, 0, 1, 0, -0.866036177, 0, 0.500003278),
  1652. CFrame.new(1.46291614, 0.899966896, 0.0760855153, 3.90002497e-05, -1.00000644, -3.9845796e-05, 1, 3.89999987e-05, 0, 1.44937817e-09, -3.71635433e-05, 1.00000548),
  1653. CFrame.new(-1.5732199, 0.899998665, 2.13230014e-05, 0, 1.00000644, -7.88460457e-05, -1, 0, 0, 0, 7.61637566e-05, 1.00000548),
  1654. CFrame.new(1.3083545, -1.50339651, -7.38252675e-06, 0.642795265, -0.766054749, -2.68223084e-06, 0.766044974, 0.64278698, 0, -1.72204273e-06, 2.08411257e-06, 1.00001097),
  1655. CFrame.new(-0.494233549, -1.52556598, -0.261073679, 0.866031349, 0, 0.500002563, 0, 1, 0, -0.500004411, 0, 0.866029203),
  1656. MagnitudeDamage(LeftArm,3,"HardBlunt",17,20,20,"Knockdown",RootPart,.4,1)
  1657. }, .5, false)
  1658. end
  1659. swait(15)
  1660. Humanoid.WalkSpeed = 16
  1661. LATr.Enabled = false
  1662. attack = false
  1663. end
  1664.  
  1665. chold = false
  1666. function kfupper()
  1667. attack = true
  1668. LATr.Enabled = true
  1669. Humanoid.WalkSpeed = 0
  1670. for i=0,1,.1 do
  1671. swait()
  1672. PlayAnimationFromTable({
  1673. CFrame.new(-0.0145354364, 0, 0.0638134554, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  1674. CFrame.new(0.0354900658, 1.49999619, -0.054992158, 0.925416768, -0.163175747, -0.342019916, 0.173647985, 0.984807849, 0, 0.336823881, -0.0593910627, 0.939692736),
  1675. CFrame.new(1.12378109, 1.0451771, -0.257020772, 0.866024971, 0.500000834, -9.53674316e-07, 0.433012992, -0.749999881, -0.49999994, -0.250001103, 0.433012009, -0.866025448),
  1676. CFrame.new(-1.11433101, 0, 0.459626645, 0.766043544, 0, 0.642788708, 0, 1, 0, -0.642788708, 0, 0.766043544),
  1677. CFrame.new(0.449996918, -2, 0.0866026133, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686),
  1678. CFrame.new(-0.5, -1.99999976, 1.37090683e-06, 1, 1.49011612e-08, 0, 0, 0.86602509, 0.500000656, -2.98023224e-08, -0.500000715, 0.86602509),
  1679. }, .3, false)
  1680. end
  1681. local t = 0
  1682. repeat swait() t=t+1 until t == 10 or chold == false
  1683. if t == 10 then
  1684. supereff()
  1685. swait(5)
  1686. so(158037267,LeftArm,.5,1)
  1687. for i=0,1,.2 do
  1688. swait()
  1689. PlayAnimationFromTable({
  1690. CFrame.new(0.185260773, 0, -0.528930187, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  1691. CFrame.new(0.202135861, 1.39999592, 0.185260773, 0, 0.500000238, 0.866025388, 0, 0.866025388, -0.500000238, -1, 0, 0),
  1692. CFrame.new(1.17679906, -0.0261177868, 0.186703265, 0.866024673, -0.500001371, 2.23987331e-06, -0.321392894, -0.556670129, -0.766045034, 0.383024842, 0.663413107, -0.64278692),
  1693. CFrame.new(-1.20000052, 1.49999857, 0.300003052, 0, 0.173647985, -0.984807849, 0, -0.984807849, -0.173647985, -1, 0, 0),
  1694. CFrame.new(0.781915069, -1.89739513, -3.81469727e-06, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  1695. CFrame.new(-0.500001073, -2, 2.98023224e-08, 0.866025984, 0, 0.499998987, 0, 1, 0, -0.499998987, 0, 0.866025984),
  1696. MagnitudeDamage(LeftArm,3,"HardBlunt",25,36,50,"Up",RootPart,.4,1)
  1697. }, .5, false)
  1698. end
  1699. swait(20)
  1700. else
  1701. so(158037267,LeftArm,.5,1)
  1702. for i=0,1,.2 do
  1703. swait()
  1704. PlayAnimationFromTable({
  1705. CFrame.new(0.185260773, 0, -0.528930187, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  1706. CFrame.new(0.202135861, 1.39999592, 0.185260773, 0, 0.500000238, 0.866025388, 0, 0.866025388, -0.500000238, -1, 0, 0),
  1707. CFrame.new(1.17679906, -0.0261177868, 0.186703265, 0.866024673, -0.500001371, 2.23987331e-06, -0.321392894, -0.556670129, -0.766045034, 0.383024842, 0.663413107, -0.64278692),
  1708. CFrame.new(-1.20000052, 1.49999857, 0.300003052, 0, 0.173647985, -0.984807849, 0, -0.984807849, -0.173647985, -1, 0, 0),
  1709. CFrame.new(0.781915069, -1.89739513, -3.81469727e-06, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  1710. CFrame.new(-0.500001073, -2, 2.98023224e-08, 0.866025984, 0, 0.499998987, 0, 1, 0, -0.499998987, 0, 0.866025984),
  1711. MagnitudeDamage(LeftArm,3,"HardBlunt",18,21,10,"Up",RootPart,.4,1)
  1712. }, .5, false)
  1713. end
  1714. swait(5)
  1715. end
  1716. Humanoid.WalkSpeed = 16
  1717. LATr.Enabled = false
  1718. attack = false
  1719. end
  1720.  
  1721. function kfupper()
  1722. attack = true
  1723. LATr.Enabled = true
  1724. Humanoid.WalkSpeed = 0
  1725. for i=0,1,.1 do
  1726. swait()
  1727. PlayAnimationFromTable({
  1728. CFrame.new(-0.0145354364, 0, 0.0638134554, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  1729. CFrame.new(0.0354900658, 1.49999619, -0.054992158, 0.925416768, -0.163175747, -0.342019916, 0.173647985, 0.984807849, 0, 0.336823881, -0.0593910627, 0.939692736),
  1730. CFrame.new(1.12378109, 1.0451771, -0.257020772, 0.866024971, 0.500000834, -9.53674316e-07, 0.433012992, -0.749999881, -0.49999994, -0.250001103, 0.433012009, -0.866025448),
  1731. CFrame.new(-1.11433101, 0, 0.459626645, 0.766043544, 0, 0.642788708, 0, 1, 0, -0.642788708, 0, 0.766043544),
  1732. CFrame.new(0.449996918, -2, 0.0866026133, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686),
  1733. CFrame.new(-0.5, -1.99999976, 1.37090683e-06, 1, 1.49011612e-08, 0, 0, 0.86602509, 0.500000656, -2.98023224e-08, -0.500000715, 0.86602509),
  1734. }, .3, false)
  1735. end
  1736. so(158037267,LeftArm,.5,1)
  1737. for i=0,1,.2 do
  1738. swait()
  1739. PlayAnimationFromTable({
  1740. CFrame.new(0.185260773, 0, -0.528930187, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  1741. CFrame.new(0.202135861, 1.39999592, 0.185260773, 0, 0.500000238, 0.866025388, 0, 0.866025388, -0.500000238, -1, 0, 0),
  1742. CFrame.new(1.17679906, -0.0261177868, 0.186703265, 0.866024673, -0.500001371, 2.23987331e-06, -0.321392894, -0.556670129, -0.766045034, 0.383024842, 0.663413107, -0.64278692),
  1743. CFrame.new(-1.20000052, 1.49999857, 0.300003052, 0, 0.173647985, -0.984807849, 0, -0.984807849, -0.173647985, -1, 0, 0),
  1744. CFrame.new(0.781915069, -1.89739513, -3.81469727e-06, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  1745. CFrame.new(-0.500001073, -2, 2.98023224e-08, 0.866025984, 0, 0.499998987, 0, 1, 0, -0.499998987, 0, 0.866025984),
  1746. MagnitudeDamage(LeftArm,3,"HardBlunt",18,21,50,"Up",RootPart,.4,1)
  1747. }, .5, false)
  1748. end
  1749. swait(20)
  1750. Humanoid.WalkSpeed = 16
  1751. LATr.Enabled = false
  1752. attack = false
  1753. end
  1754.  
  1755. vhold = false
  1756. function kfgrab()
  1757. attack = true
  1758. LATr.Enabled = true
  1759. RATr.Enabled = true
  1760. Humanoid.WalkSpeed = 0
  1761. local grab
  1762. local torsy
  1763. local hum
  1764. so(200632136, RootPart, .7, 1)
  1765. for i=0,1,.2 do
  1766. swait()
  1767. PlayAnimationFromTable({
  1768. CFrame.new(0, -0.395585239, -1.53837633, 1, 0, 0, 0, 0.76604414, 0.642788053, 0, -0.642788053, 0.76604414),
  1769. CFrame.new(0, 1.49998748, -1.19209304e-07, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  1770. CFrame.new(1.17525268, 1.16086817, -0.78494978, 0.939693093, 0.342018992, 0, 0.219845742, -0.604023516, -0.76604414, -0.262001663, 0.719846368, -0.642788053),
  1771. CFrame.new(-1.02679563, 1.23295736, -0.870862126, 0.866025984, -0.499998987, 0, -0.321393371, -0.556671143, -0.76604414, 0.383021295, 0.663414121, -0.642788053),
  1772. CFrame.new(0.5, -2.00000238, -1.66893028e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  1773. CFrame.new(-0.5, -1.16437745, -0.995859087, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414),
  1774. }, .4, false)
  1775. end
  1776. for _, c in pairs(workspace:GetDescendants()) do
  1777. local hum = c:FindFirstChildOfClass("Humanoid")
  1778. if hum ~= nil then
  1779. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  1780. if torsy ~= nil then
  1781. local targ = torsy.Position - (RootPart.Position+RootPart.CFrame.lookVector*3)
  1782. local mag = targ.magnitude
  1783. if 5 >= mag and c.Name ~= Player.Name then
  1784. grab = c
  1785. end
  1786. end
  1787. end
  1788. end
  1789. if grab ~= nil then
  1790. local hum = grab:FindFirstChildOfClass("Humanoid")
  1791. local torsy = grab:findFirstChild("Torso") or grab:findFirstChild("UpperTorso")
  1792. local gra = Instance.new("Part",chara)
  1793. gra.Size = Vector3.new(0,0,0)
  1794. gra.CanCollide = false
  1795. gra.Anchored = true
  1796. gra.CFrame = RootPart.CFrame*CFrame.new(0,0,-2)
  1797. gra.Transparency = 1
  1798. so(240429615, torsy, 1, 1)
  1799. for i=0,1,.1 do
  1800. swait()
  1801. PlayAnimationFromTable({
  1802. CFrame.new(0.028383255, -0.0148591995, 0.0813131332, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1803. CFrame.new(0, 1.49998522, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1804. CFrame.new(1.38014948, 1.17801905, -0.00539569557, 0.984808207, 0.111618228, -0.133019865, 0.111618027, -0.993723094, -0.00748204906, -0.133020028, -0.00747903017, -0.991085231),
  1805. CFrame.new(-1.35678291, 1.26276112, 0.0936147273, 0.984807968, -0.111617692, 0.133022264, -0.111617997, -0.993723154, -0.00747833261, 0.133021995, -0.00748295756, -0.991084933),
  1806. CFrame.new(0.499997497, -1.99999893, 4.32133675e-07, 0.76604414, 0, -0.642788053, 0, 1, 0, 0.642788053, 0, 0.76604414),
  1807. CFrame.new(-0.991907299, -1.90381634, 0.00414514542, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1),
  1808. }, .2, false)
  1809. gra.CFrame = clerp(gra.CFrame,RootPart.CFrame*CFrame.new(0,3,0)*CFrame.Angles(math.rad(90),0,0),.4)
  1810. torsy.CFrame = gra.CFrame
  1811. hum.PlatformStand = true
  1812. end
  1813. Humanoid.WalkSpeed = 6
  1814. repeat
  1815. swait()
  1816. hum.PlatformStand = true
  1817. gra.CFrame = clerp(gra.CFrame,RootPart.CFrame*CFrame.new(0,3,0)*CFrame.Angles(math.rad(90),0,0),.4)
  1818. torsy.CFrame = gra.CFrame
  1819. until vhold == false
  1820. Humanoid.WalkSpeed = 0
  1821. so(200632136, RootPart, .8, 1)
  1822. for i=0,1,.2 do
  1823. swait()
  1824. PlayAnimationFromTable({
  1825. CFrame.new(0.330770075, -0.873712957, -2.02488899, 0.586823881, -0.17589277, 0.790379405, -0.642787814, 0.492403865, 0.58682394, -0.492403865, -0.852408528, 0.175892636),
  1826. CFrame.new(-4.81307461e-06, 1.49998868, -5.76675029e-06, 1, -2.98023224e-08, 1.49011612e-08, -2.98023224e-08, 1.00000012, -2.98023224e-08, 1.49011612e-08, -2.98023224e-08, 1.00000024),
  1827. CFrame.new(1.24594641, 0.0247616023, 0.244213641, 0.864328623, -0.0301527083, -0.502022803, -0.229708791, 0.864329934, -0.447401255, 0.447403759, 0.502020836, 0.74013859),
  1828. CFrame.new(-1.32204497, 1.00634372, -0.37866655, 0.984807432, -0.173649818, 1.54972076e-06, -0.111619025, -0.633023739, -0.766043425, 0.133024216, 0.754405081, -0.642789066),
  1829. CFrame.new(0.630423486, -0.846706271, -0.543594122, 0.586823881, -0.642787814, -0.492403865, -0.17589277, 0.492403865, -0.852408528, 0.790379405, 0.58682394, 0.175892636),
  1830. CFrame.new(-0.175789148, -1.96953273, -0.437953353, 0.939692736, -0.342019975, -1.43051147e-06, 0.296197295, 0.81379807, -0.5, 0.171011195, 0.469845951, 0.866025507),
  1831. }, .4, false)
  1832. gra.CFrame = clerp(gra.CFrame,RootPart.CFrame*CFrame.new(0,2,-6)*CFrame.Angles(math.rad(90),0,0),.4)
  1833. torsy.CFrame = gra.CFrame
  1834. torsy.Velocity = RootPart.CFrame.lookVector*60
  1835. end
  1836. coroutine.wrap(function()
  1837. local par,pos
  1838. repeat swait() par,pos = rayCast(torsy.Position,Vector3.new(0,-1,0),2,grab) until par
  1839. Damagefunc(RootPart,torsy,15,20,0,"Normal",RootPart,.4,1)
  1840. MagnitudeDamage(torsy,6,0,10,15,5,"Knockdown",RootPart,.4,1)
  1841. Effects.Wave.Create(BrickColor.new("White"), CFrame.new(pos), 0, 0, 0, 1, .2, 1, 0.1)
  1842. so(260430079,torsy,1,5)
  1843. swait(60)
  1844. hum.PlatformStand = false
  1845. end)()
  1846. gra:Destroy()
  1847. end
  1848. swait(5)
  1849. Humanoid.WalkSpeed = 16
  1850. LATr.Enabled = false
  1851. RATr.Enabled = false
  1852. attack = false
  1853. end
  1854.  
  1855. function kfbow()
  1856. attack = true
  1857. Humanoid.WalkSpeed = 0
  1858. for i=0,1,.2 do
  1859. swait()
  1860. PlayAnimationFromTable({
  1861. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1862. CFrame.new(0, 1.49999619, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1863. CFrame.new(1.20945108, -0.213500202, -4.76837158e-07, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  1864. CFrame.new(-1.20945334, -0.213505104, -4.76837158e-07, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  1865. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1866. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1867. }, .3, false)
  1868. end
  1869. for i=0,1.5,.1 do
  1870. swait()
  1871. PlayAnimationFromTable({
  1872. CFrame.new(0, -0.577677608, -0.882485688, 1, 0, 0, 0, 0.342019916, 0.939692736, 0, -0.939692736, 0.342019886),
  1873. CFrame.new(0, 1.49999499, 4.4554472e-06, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1),
  1874. CFrame.new(1.20944607, -0.213502392, 1.31413049e-06, 0.939692974, 0.342019141, -4.0802891e-07, -0.342019141, 0.939692974, 0, 3.65078449e-07, 1.78813934e-07, 1),
  1875. CFrame.new(-1.20944905, -0.213505507, 1.67175949e-06, 0.939692974, -0.342019141, 4.0802891e-07, 0.342019141, 0.939692974, 0, -3.65078449e-07, 1.78813934e-07, 1),
  1876. CFrame.new(0.5, -1.31572783, -1.03471863, 1, 0, 0, 0, 0.342019916, -0.939692736, 0, 0.939692736, 0.342019886),
  1877. CFrame.new(-0.5, -1.31572783, -1.03471863, 1, 0, 0, 0, 0.342019916, -0.939692736, 0, 0.939692736, 0.342019886),
  1878. }, .2, false)
  1879. end
  1880. for i=0,1.5,.1 do
  1881. swait()
  1882. PlayAnimationFromTable({
  1883. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1884. CFrame.new(0, 1.49999619, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1885. CFrame.new(1.20945108, -0.213500202, -4.76837158e-07, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  1886. CFrame.new(-1.20945334, -0.213505104, -4.76837158e-07, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  1887. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1888. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1889. }, .2, false)
  1890. end
  1891. Humanoid.WalkSpeed = 16
  1892. LATr.Enabled = false
  1893. attack = false
  1894. end
  1895.  
  1896. ehold = false
  1897. function kfblock()
  1898. attack = true
  1899. Humanoid.WalkSpeed = 0
  1900. for i=0,1,.2 do
  1901. swait()
  1902. PlayAnimationFromTable({
  1903. CFrame.new(0, 0, 1.90734863e-06, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  1904. CFrame.new(-1.90734863e-06, 1.49999642, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),
  1905. CFrame.new(0.29999733, 0, -0.799991608, 0, 1, 0, 0, 0, -1, -1, 0, 0),
  1906. CFrame.new(-1.5, 0.999999762, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),
  1907. CFrame.new(0.500000238, -2, 2.38418579e-07, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1908. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1909. }, .3, false)
  1910. end
  1911. local oldhp = Humanoid.Health
  1912. repeat
  1913. swait()
  1914. if Humanoid.Health < oldhp then
  1915. so(260430060,Torso,math.random(9,11)/10,1)
  1916. local vp = Instance.new("BodyVelocity", Torso)
  1917. vp.MaxForce = Vector3.new(4800000, 0, 4800000)
  1918. vp.P = 200000
  1919. vp.Velocity = RootPart.CFrame.lookVector * -30
  1920. game:GetService("Debris"):AddItem(vp,.01)
  1921. end
  1922. Humanoid.Health = oldhp
  1923. until ehold == false
  1924. Humanoid.WalkSpeed = 16
  1925. attack = false
  1926. end
  1927.  
  1928. --Intro--
  1929. Humanoid.WalkSpeed = 0
  1930. for i=0,2,.1 do
  1931. swait()
  1932. PlayAnimationFromTable({
  1933. CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  1934. CFrame.new(0, 1.49999809, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  1935. CFrame.new(0.7839728, 0.499999523, -0.759808064, 0.499999493, 0.866025746, 0, 0, 0, -1, -0.866025746, 0.499999493, 0),
  1936. CFrame.new(-1.54284048, 0.314144075, -0.263591081, 0.939692736, 0.342019975, -8.04662704e-07, 0.26200217, -0.719847202, -0.64278698, -0.219846487, 0.604022026, -0.766045094),
  1937. CFrame.new(0.499999404, -1.99999809, -1.63912773e-07, 0.866025209, 0, -0.500000298, 0, 1, 0, 0.500000298, 0, 0.866025209) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  1938. CFrame.new(-0.49999696, -1.91339612, -0.0500007272, 0.64278698, -0.262002647, 0.719846904, 0, 0.939692736, 0.342019886, -0.766044974, -0.219845951, 0.604022264) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  1939. }, .3, false)
  1940. end
  1941. local wood = Instance.new("Part",chara)
  1942. wood.Size = Vector3.new(2,.4,1)
  1943. wood.BrickColor = BrickColor.new("Bright orange")
  1944. wood.Material = "Wood"
  1945. wood.Anchored = true
  1946. wood.CanCollide = false
  1947. wood.CFrame = RootPart.CFrame * CFrame.new(0,0,-10)
  1948. for i=0,1,.1 do
  1949. swait()
  1950. PlayAnimationFromTable({
  1951. CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  1952. CFrame.new(0, 1.49999809, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  1953. CFrame.new(0.7839728, 0.499999523, -0.759808064, 0.499999493, 0.866025746, 0, 0, 0, -1, -0.866025746, 0.499999493, 0),
  1954. CFrame.new(-1.54284048, 0.314144075, -0.263591081, 0.939692736, 0.342019975, -8.04662704e-07, 0.26200217, -0.719847202, -0.64278698, -0.219846487, 0.604022026, -0.766045094),
  1955. CFrame.new(0.499999404, -1.99999809, -1.63912773e-07, 0.866025209, 0, -0.500000298, 0, 1, 0, 0.500000298, 0, 0.866025209) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  1956. CFrame.new(-0.49999696, -1.91339612, -0.0500007272, 0.64278698, -0.262002647, 0.719846904, 0, 0.939692736, 0.342019886, -0.766044974, -0.219845951, 0.604022264) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  1957. }, .3, false)
  1958. wood.CFrame = RootPart.CFrame * CFrame.new(0,3-(i*3.5),-10+(i*6))
  1959. end
  1960. LLTr.Enabled = true
  1961. local bwood = Instance.new("Part",chara)
  1962. bwood.Size = Vector3.new(1,.4,1)
  1963. bwood.BrickColor = BrickColor.new("Bright orange")
  1964. bwood.Material = "Wood"
  1965. bwood.CFrame = wood.CFrame * CFrame.new(.5,0,0)
  1966. bwood.Velocity = wood.CFrame.rightVector*10
  1967. local bwood2 = bwood:Clone()
  1968. bwood2.Parent = chara
  1969. bwood2.CFrame = wood.CFrame * CFrame.new(-.5,0,0)
  1970. bwood2.Velocity = wood.CFrame.rightVector*-10
  1971. wood:Destroy()
  1972. so(158712406,Torso,1,1)
  1973. for i=0,1,.25 do
  1974. swait()
  1975. PlayAnimationFromTable({
  1976. CFrame.new(-0.0301469415, -0.0586996675, -0.437210172, 0.321393996, 0.116978295, -0.939692676, -0.49015975, 0.86961025, -0.0593912825, 0.810215533, 0.479687631, 0.336824983),
  1977. CFrame.new(0.0225491524, 1.48198009, 0.160110533, 0.321394026, -0.183488876, 0.928998351, 0.116977893, 0.981226146, 0.153335184, -0.939692616, 0.0593912527, 0.336824328),
  1978. CFrame.new(0.783987582, 0.500001311, -0.759808958, 0.499998629, 0.866026282, -2.08616257e-07, -4.13507223e-07, 8.94069672e-08, -1.00000012, -0.866026282, 0.499998659, 4.02331352e-07),
  1979. CFrame.new(-1.10312903, -0.119031809, -0.00967045873, 0.919376493, -0.377212375, -0.111615419, 0.380351573, 0.92481184, 0.00748815387, 0.100398645, -0.0493375398, 0.993723273),
  1980. CFrame.new(1.02219689, -1.90949571, 0.0872627348, 0.871276855, -0.49015975, -0.0249014199, 0.490767866, 0.86961025, 0.0541392565, -0.00488203764, -0.0593912825, 0.998223186),
  1981. CFrame.new(-1.33761406, -1.70827067, -0.524259567, 0.486513674, 0.819252968, -0.303527921, -0.873673022, 0.456210732, -0.169018984, 3.40305269e-06, 0.347414166, 0.937711895),
  1982. }, .7, false)
  1983. end
  1984. swait(30)
  1985. LLTr.Enabled = false
  1986. Humanoid.WalkSpeed = 16
  1987.  
  1988. qhold = false
  1989. justsprinted = false
  1990. function kfsprint()
  1991. attack = true
  1992. --print("supurinto?")
  1993. --justsprinted = true
  1994. --coroutine.wrap(function()
  1995. --swait(10)
  1996. --justsprinted = false
  1997. --end)()
  1998. repeat
  1999. swait()
  2000. PlayAnimationFromTable({
  2001. CFrame.new(-2.4138464e-07, 0.123327732, -0.188363045, 1, -4.38293796e-07, 1.20420327e-06, 0, 0.939692736, 0.342019886, -1.28148622e-06, -0.342019916, 0.939692736) * CFrame.new(0, 0- .08 * math.cos((sine/2.5)), 0),
  2002. CFrame.new(0, 1.41422474, 0.0894482136, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  2003. CFrame.new(1.35015142, 0.126790166, -0.561941147, 0.984807968, 0.173646942, 7.42582699e-07, 7.4505806e-07, 2.98023224e-08, -1.00000012, -0.173646927, 0.984808028, -5.96046448e-08),
  2004. CFrame.new(-1.14804685, 0.0496482477, -0.419735074, 0.985491097, -0.134464785, 0.103568703, -0.000598754734, -0.612957954, -0.790115416, 0.16972594, 0.778589547, -0.604145229),
  2005. CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 - 60 * math.cos((sine) / 2.5)), 0, 0),
  2006. CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 + 60 * math.cos((sine) / 2.5)), 0, 0),
  2007. }, .3, false)
  2008. Humanoid.WalkSpeed = 40
  2009. until qhold == false or Torso.Velocity == Vector3.new(0,0,0)
  2010. --print'sutoppu'
  2011. Humanoid.WalkSpeed = 16
  2012. attack = false
  2013. end
  2014.  
  2015. Mouse.Button1Down:connect(function()
  2016. if attack == false then
  2017. if Anim == "Jump" or Anim == "Fall" then
  2018. jattack()
  2019. else
  2020. if combo == 1 then
  2021. attackone()
  2022. combo = 2
  2023. elseif combo == 2 then
  2024. attacktwo()
  2025. combo = 3
  2026. elseif combo == 3 then
  2027. attackthree()
  2028. combo = 4
  2029. elseif combo == 4 then
  2030. attackfour()
  2031. combo = 1
  2032. end
  2033. end
  2034. end
  2035. end)
  2036.  
  2037. local sprintt = 0
  2038. Mouse.KeyDown:connect(function(k)
  2039. k = k:lower()
  2040. if attack == false then
  2041. if k == 'z' then
  2042. zhold = true
  2043. kfpalm()
  2044. elseif k == 'x' then
  2045. kfblow()
  2046. elseif k == 'c' then
  2047. chold = true
  2048. kfupper()
  2049. elseif k == 'v' then
  2050. vhold = true
  2051. kfgrab()
  2052. elseif k == 'g' then
  2053. kfbow()
  2054. elseif k == 'e' then
  2055. ehold = true
  2056. kfblock()
  2057. elseif k == 'q' then
  2058. qhold = true
  2059. -- if sprintt > 1 then
  2060. -- print("supurinto")
  2061. kfsprint()
  2062. -- end
  2063. -- sprintt = 20
  2064. end
  2065. end
  2066. end)
  2067.  
  2068. Mouse.KeyUp:connect(function(k)
  2069. k = k:lower()
  2070. if k == 'e' then
  2071. ehold = false
  2072. elseif k == 'v' then
  2073. vhold = false
  2074. elseif k == 'q' then
  2075. qhold = false
  2076. elseif k == 'z' then
  2077. zhold = false
  2078. elseif k == 'c' then
  2079. chold = false
  2080. end
  2081. end)
  2082.  
  2083. for i, v in pairs(chara:GetDescendants()) do
  2084. if v:IsA("BasePart") then
  2085. v.CanCollide = false
  2086. end
  2087. end
  2088.  
  2089. coroutine.wrap(function()
  2090. while 1 do
  2091. swait()
  2092. if doe <= 360 then
  2093. doe = doe + 2
  2094. else
  2095. doe = 0
  2096. end
  2097. end
  2098. end)()
  2099. while true do
  2100. swait()
  2101. for i, v in pairs(chara:GetChildren()) do
  2102. if v:IsA("Part") then
  2103. v.Material = "SmoothPlastic"
  2104. elseif v:IsA("Accessory") then
  2105. v:WaitForChild("Handle").Material = "SmoothPlastic"
  2106. end
  2107. end
  2108. while true do
  2109. swait()
  2110. if sprintt >= 1 then
  2111. sprintt = sprintt - 1
  2112. end
  2113. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2114. velocity = RootPart.Velocity.y
  2115. sine = sine + change
  2116. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
  2117. if RootPart.Velocity.y > 1 and hit == nil then
  2118. Anim = "Jump"
  2119. if attack == false then
  2120. PlayAnimationFromTable({
  2121. CFrame.new(0, 0.0999999046, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  2122. CFrame.new(0, 1.48263168, -0.0984806865, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  2123. CFrame.new(0.985772133, 0.399999619, -0.61283654, 0.76604414, 0.642788053, 0, 0, 0, -1, -0.642788053, 0.76604414, 0),
  2124. CFrame.new(-1.18379903, 0.160391688, -0.480695665, 0.904800713, -0.234747261, -0.355288029, -0.043829985, 0.778562307, -0.626034975, 0.423573852, 0.582009137, 0.69415462),
  2125. CFrame.new(0.5, -1.29999959, 0.299999923, 1, 0, 0, 0, 0.499998987, 0.866025984, 0, -0.866025984, 0.499998987),
  2126. CFrame.new(-0.5, -1.29999959, 0.299999923, 1, 0, 0, 0, 0.499998987, 0.866025984, 0, -0.866025984, 0.499998987),
  2127. }, .3, false)
  2128. end
  2129. elseif RootPart.Velocity.y < -1 and hit == nil then
  2130. Anim = "Fall"
  2131. if attack == false then
  2132. PlayAnimationFromTable({
  2133. CFrame.new(0, 0.0999999046, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  2134. CFrame.new(0, 1.44842887, -0.192449093, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  2135. CFrame.new(0.985773325, 0.399999619, -0.61283505, 0.76604414, 0.642788053, 0, 0, 0, -1, -0.642788053, 0.76604414, 0),
  2136. CFrame.new(-1.11267483, 0.241841823, -0.624208629, 0.904803991, -0.355280727, 0.234745428, -0.043827001, -0.626036167, -0.778561532, 0.423566997, 0.694157362, -0.582010925),
  2137. CFrame.new(0.500001907, -1.41961551, 8.94069672e-07, 1, 0, 0, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388),
  2138. CFrame.new(-0.499990463, -2.09950018, -0.492020726, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),
  2139. }, .3, false)
  2140. end
  2141. elseif Torsovelocity < 1 and hit ~= nil then
  2142. Anim = "Idle"
  2143. if attack == false then
  2144. change = 1
  2145. PlayAnimationFromTable({
  2146. CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  2147. CFrame.new(0, 1.49999809, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  2148. CFrame.new(0.7839728, 0.499999523, -0.759808064, 0.499999493, 0.866025746, 0, 0, 0, -1, -0.866025746, 0.499999493, 0),
  2149. CFrame.new(-1.54284048, 0.314144075, -0.263591081, 0.939692736, 0.342019975, -8.04662704e-07, 0.26200217, -0.719847202, -0.64278698, -0.219846487, 0.604022026, -0.766045094),
  2150. CFrame.new(0.499999404, -1.99999809, -1.63912773e-07, 0.866025209, 0, -0.500000298, 0, 1, 0, 0.500000298, 0, 0.866025209) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  2151. CFrame.new(-0.49999696, -1.91339612, -0.0500007272, 0.64278698, -0.262002647, 0.719846904, 0, 0.939692736, 0.342019886, -0.766044974, -0.219845951, 0.604022264) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  2152. }, .3, false)
  2153. end
  2154. elseif Torsovelocity > 2 and hit ~= nil then
  2155. Anim = "Walk"
  2156. if attack == false then
  2157. PlayAnimationFromTable({
  2158. CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0- .08 * math.cos((sine) / 3.5), 0) * CFrame.Angles(0, 0, 0),
  2159. CFrame.new(-2.09923631e-14, 1.48262846, -0.0984891504, 1, -1.42108547e-14, 0, 0, 0.984807491, 0.173649743, 0, -0.173649758, 0.984807491),
  2160. CFrame.new(0.921487212, 0.226793781, -0.689451039, 0.76604414, 0.556670785, -0.321393877, 0, -0.499999821, -0.866025567, -0.642787933, 0.663413823, -0.383021951),
  2161. CFrame.new(-1.1480391, 0.049652271, -0.419738829, 0.985491574, -0.1695766, -0.00709223049, -0.000597000238, 0.0383229814, -0.999265254, 0.169723794, 0.984771609, 0.0376657322),
  2162. CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0),
  2163. CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0),
  2164. }, .3, false)
  2165. end
  2166. end
  2167. if 0 < #Effects then
  2168. for e = 1, #Effects do
  2169. if Effects[e] ~= nil then
  2170. local Thing = Effects[e]
  2171. if Thing ~= nil then
  2172. local Part = Thing[1]
  2173. local Mode = Thing[2]
  2174. local Delay = Thing[3]
  2175. local IncX = Thing[4]
  2176. local IncY = Thing[5]
  2177. local IncZ = Thing[6]
  2178. if Thing[2] == "Shoot" then
  2179. local Look = Thing[1]
  2180. local move = 30
  2181. if Thing[8] == 3 then
  2182. move = 10
  2183. end
  2184. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  2185. if Thing[10] ~= nil then
  2186. da = pos
  2187. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  2188. cfa = CFrame.new(Thing[4], pos)
  2189. tehCF = cfa:lerp(cf2, 0.2)
  2190. Thing[1] = tehCF.lookVector
  2191. end
  2192. local mag = (Thing[4] - pos).magnitude
  2193. Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  2194. if Thing[8] == 2 then
  2195. Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
  2196. end
  2197. Thing[4] = Thing[4] + Look * move
  2198. Thing[3] = Thing[3] - 1
  2199. if 2 < Thing[5] then
  2200. Thing[5] = Thing[5] - 0.3
  2201. Thing[6] = Thing[6] - 0.3
  2202. end
  2203. if hit ~= nil then
  2204. Thing[3] = 0
  2205. if Thing[8] == 1 or Thing[8] == 3 then
  2206. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  2207. else
  2208. if Thing[8] == 2 then
  2209. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  2210. if (hit.Parent:FindFirstChildOfClass("Humanoid")) ~= nil or (hit.Parent.Parent:FindFirstChildOfClass("Humanoid")) ~= nil then
  2211. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  2212. ref.Anchored = true
  2213. ref.CFrame = CFrame.new(pos)
  2214. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  2215. game:GetService("Debris"):AddItem(ref, 0.2)
  2216. Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
  2217. Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
  2218. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  2219. end
  2220. end
  2221. end
  2222. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  2223. ref.Anchored = true
  2224. ref.CFrame = CFrame.new(pos)
  2225. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  2226. game:GetService("Debris"):AddItem(ref, 1)
  2227. end
  2228. if Thing[3] <= 0 then
  2229. table.remove(Effects, e)
  2230. end
  2231. end
  2232. do
  2233. do
  2234. if Thing[2] == "FireWave" then
  2235. if Thing[3] <= Thing[4] then
  2236. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  2237. Thing[3] = Thing[3] + 1
  2238. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  2239. else
  2240. Part.Parent = nil
  2241. table.remove(Effects, e)
  2242. end
  2243. end
  2244. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  2245. if Thing[1].Transparency <= 1 then
  2246. if Thing[2] == "Block1" then
  2247. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2248. Mesh = Thing[7]
  2249. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2250. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2251. else
  2252. if Thing[2] == "Block2" then
  2253. Thing[1].CFrame = Thing[1].CFrame
  2254. Mesh = Thing[7]
  2255. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2256. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2257. else
  2258. if Thing[2] == "Fire" then
  2259. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  2260. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2261. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2262. else
  2263. if Thing[2] == "Cylinder" then
  2264. Mesh = Thing[7]
  2265. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2266. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2267. else
  2268. if Thing[2] == "Blood" then
  2269. Mesh = Thing[7]
  2270. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  2271. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  2272. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2273. else
  2274. if Thing[2] == "Elec" then
  2275. Mesh = Thing[10]
  2276. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  2277. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2278. else
  2279. if Thing[2] == "Disappear" then
  2280. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2281. else
  2282. if Thing[2] == "Shatter" then
  2283. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2284. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2285. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2286. Thing[6] = Thing[6] + Thing[5]
  2287. end
  2288. end
  2289. end
  2290. end
  2291. end
  2292. end
  2293. end
  2294. end
  2295. else
  2296. Part.Parent = nil
  2297. table.remove(Effects, e)
  2298. end
  2299. end
  2300. end
  2301. end
  2302. end
  2303. end
  2304. end
  2305. end
  2306. end
  2307. end
  2308. hum.Name='Game c;'
  2309. while true do
  2310. hum.MaxHealth= math.huge
  2311. wait(.0000000000000000000001)
  2312. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement