hawoody

Kung Fu Man

Jan 28th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---------------------------------
  2. --Kung Fu Man (From M.U.G.E.N.)--
  3. ---------------------------------
  4. --By CKbackup (Sugarie Saffron)--
  5. ---------------------------------
  6.  
  7. wait(1/60)
  8. Effects = { }
  9. local Player = game:service'Players'.localPlayer
  10. local chara = Player.Character
  11. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  12. local Mouse = Player:GetMouse()
  13. local LeftArm = chara["Left Arm"]
  14. local RightArm = chara["Right Arm"]
  15. local LeftLeg = chara["Left Leg"]
  16. local RightLeg = chara["Right Leg"]
  17. local Head = chara.Head
  18. local Torso = chara.Torso
  19. local Camera = game.Workspace.CurrentCamera
  20. local RootPart = chara.HumanoidRootPart
  21. local RootJoint = RootPart.RootJoint
  22. local attack = false
  23. local Anim = 'Idle'
  24. local attacktype = 1
  25. local delays = false
  26. local play = true
  27. local targetted = nil
  28. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  29. local velocity = RootPart.Velocity.y
  30. local sine = 0
  31. local change = 1
  32. local doe = 0
  33. local Create = LoadLibrary("RbxUtility").Create
  34. Humanoid.WalkSpeed = 16
  35.  
  36. Humanoid.Animator.Parent = nil
  37. chara.Animate.Parent = nil
  38.  
  39. local newMotor = function(part0, part1, c0, c1)
  40. local w = Create('Motor'){
  41. Parent = part0,
  42. Part0 = part0,
  43. Part1 = part1,
  44. C0 = c0,
  45. C1 = c1,
  46. }
  47. return w
  48. end
  49.  
  50. function clerp(a, b, t)
  51. return a:lerp(b, t)
  52. end
  53.  
  54. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  55. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  56.  
  57. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  58. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  59. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  60. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  61. RootJoint.C1 = CFrame.new(0, 0, 0)
  62. RootJoint.C0 = CFrame.new(0, 0, 0)
  63. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  64. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  65.  
  66. local rarmc1 = RW.C1
  67. local larmc1 = LW.C1
  68. local rlegc1 = RH.C1
  69. local llegc1 = LH.C1
  70.  
  71. local resetc1 = false
  72.  
  73. function PlayAnimationFromTable(table, speed, bool)
  74. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  75. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  76. RW.C0 = clerp(RW.C0, table[3], speed)
  77. LW.C0 = clerp(LW.C0, table[4], speed)
  78. RH.C0 = clerp(RH.C0, table[5], speed)
  79. LH.C0 = clerp(LH.C0, table[6], speed)
  80. if bool == true then
  81. if resetc1 == false then
  82. resetc1 = true
  83. RootJoint.C1 = RootJoint.C1
  84. Torso.Neck.C1 = Torso.Neck.C1
  85. RW.C1 = rarmc1
  86. LW.C1 = larmc1
  87. RH.C1 = rlegc1
  88. LH.C1 = llegc1
  89. end
  90. end
  91. end
  92.  
  93. ArtificialHB = Instance.new("BindableEvent", script)
  94. ArtificialHB.Name = "Heartbeat"
  95. script:WaitForChild("Heartbeat")
  96. frame = 0.03333333333333
  97. tf = 0
  98. allowframeloss = false
  99. tossremainder = false
  100. lastframe = tick()
  101. script.Heartbeat:Fire()
  102. game:GetService("RunService").Heartbeat:connect(function(s, p)
  103. tf = tf + s
  104. if tf >= frame then
  105. if allowframeloss then
  106. script.Heartbeat:Fire()
  107. lastframe = tick()
  108. else
  109. for i = 1, math.floor(tf / frame) do
  110. script.Heartbeat:Fire()
  111. end
  112. lastframe = tick()
  113. end
  114. if tossremainder then
  115. tf = 0
  116. else
  117. tf = tf - frame * math.floor(tf / frame)
  118. end
  119. end
  120. end)
  121. function swait(num)
  122. if num == 0 or num == nil then
  123. ArtificialHB.Event:wait()
  124. else
  125. for i = 0, num do
  126. ArtificialHB.Event:wait()
  127. end
  128. end
  129. end
  130.  
  131. function RemoveOutlines(part)
  132. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  133. end
  134.  
  135. CFuncs = {
  136. ["Part"] = {
  137. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  138. local Part = Create("Part"){
  139. Parent = Parent,
  140. Reflectance = Reflectance,
  141. Transparency = Transparency,
  142. CanCollide = false,
  143. Locked = true,
  144. BrickColor = BrickColor.new(tostring(BColor)),
  145. Name = Name,
  146. Size = Size,
  147. Material = Material,
  148. }
  149. RemoveOutlines(Part)
  150. return Part
  151. end;
  152. };
  153.  
  154. ["Mesh"] = {
  155. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  156. local Msh = Create(Mesh){
  157. Parent = Part,
  158. Offset = OffSet,
  159. Scale = Scale,
  160. }
  161. if Mesh == "SpecialMesh" then
  162. Msh.MeshType = MeshType
  163. Msh.MeshId = MeshId
  164. end
  165. return Msh
  166. end;
  167. };
  168.  
  169. ["Mesh"] = {
  170. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  171. local Msh = Create(Mesh){
  172. Parent = Part,
  173. Offset = OffSet,
  174. Scale = Scale,
  175. }
  176. if Mesh == "SpecialMesh" then
  177. Msh.MeshType = MeshType
  178. Msh.MeshId = MeshId
  179. end
  180. return Msh
  181. end;
  182. };
  183.  
  184. ["Weld"] = {
  185. Create = function(Parent, Part0, Part1, C0, C1)
  186. local Weld = Create("Weld"){
  187. Parent = Parent,
  188. Part0 = Part0,
  189. Part1 = Part1,
  190. C0 = C0,
  191. C1 = C1,
  192. }
  193. return Weld
  194. end;
  195. };
  196.  
  197. ["ParticleEmitter"] = {
  198. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  199. local fp = Create("ParticleEmitter"){
  200. Parent = Parent,
  201. Color = ColorSequence.new(Color1, Color2),
  202. LightEmission = LightEmission,
  203. Size = Size,
  204. Texture = Texture,
  205. Transparency = Transparency,
  206. ZOffset = ZOffset,
  207. Acceleration = Accel,
  208. Drag = Drag,
  209. LockedToPart = LockedToPart,
  210. VelocityInheritance = VelocityInheritance,
  211. EmissionDirection = EmissionDirection,
  212. Enabled = Enabled,
  213. Lifetime = LifeTime,
  214. Rate = Rate,
  215. Rotation = Rotation,
  216. RotSpeed = RotSpeed,
  217. Speed = Speed,
  218. VelocitySpread = VelocitySpread,
  219. }
  220. return fp
  221. end;
  222. };
  223.  
  224. CreateTemplate = {
  225.  
  226. };
  227. }
  228.  
  229. function so(id,par,pit,vol)
  230. local sou = Instance.new("Sound", par or workspace)
  231. if par == chara then
  232. sou.Parent = chara.Torso
  233. end
  234. sou.Volume = vol
  235. sou.Pitch = pit or 1
  236. sou.SoundId = "rbxassetid://" .. id
  237. sou.PlayOnRemove = true
  238. sou:Destroy()
  239. end
  240.  
  241. New = function(Object, Parent, Name, Data)
  242. local Object = Instance.new(Object)
  243. for Index, Value in pairs(Data or {}) do
  244. Object[Index] = Value
  245. end
  246. Object.Parent = Parent
  247. Object.Name = Name
  248. return Object
  249. end
  250.  
  251.  
  252. hatstuff = New("Model",chara,"hatstuff",{})
  253. Hat2 = New("Part",hatstuff,"Hat2",{FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.100000001, 0.100000001, 0.100000001),CFrame = CFrame.new(38.400013, 5.04999828, -8.39998817, -1, -3.54432541e-18, -2.56937803e-22, -3.54432541e-18, 1, 5.04619589e-18, 2.56937803e-22, 5.04619589e-18, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  254. Mesh = New("SpecialMesh",Hat2,"Mesh",{Scale = Vector3.new(1, 2.0999999, 1.04999995),VertexColor = Vector3.new(0.300000012, 0.300000012, 0.300000012),MeshId = "rbxassetid://74882381",TextureId = "rbxassetid://74882348",MeshType = Enum.MeshType.FileMesh,})
  255. Weld = New("ManualWeld",Hat2,"Weld",{Part0 = Hat2,Part1 = Head,C0 = CFrame.new(0, 0, 0, -1, -3.54432541e-18, 2.56937803e-22, -3.54432541e-18, 1, 5.04619589e-18, -2.56937803e-22, 5.04619589e-18, -1),C1 = CFrame.new(0, 0.550000191, 0.100000381, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
  256. Hat1 = New("Part",hatstuff,"Hat1",{BrickColor = BrickColor.new("Baby blue"),FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(0.200000003, 0.100000001, 0.200000003),CFrame = CFrame.new(38.400013, 4.94999886, -8.29998875, -0.999999881, -2.7972106e-21, -2.98023224e-08, -2.79721121e-21, 1, 8.07793567e-28, 2.98023224e-08, 8.33633661e-29, -0.999999881),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.596078, 0.760784, 0.858824),})
  257. Mesh = New("SpecialMesh",Hat1,"Mesh",{Scale = Vector3.new(1.20000005, 0.800000012, 1.10000002),MeshId = "rbxassetid://11124978",MeshType = Enum.MeshType.FileMesh,})
  258. Weld = New("ManualWeld",Hat1,"Weld",{Part0 = Hat1,Part1 = Head,C0 = CFrame.new(0, 0, 0, -0.999999881, -2.79721121e-21, 2.98023224e-08, -2.7972106e-21, 1, 8.33633661e-29, -2.98023224e-08, 8.07793567e-28, -0.999999881),C1 = CFrame.new(0, 0.450000763, 9.53674316e-07, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
  259. if chara:FindFirstChild("FaysG") then
  260. Hat2:Destroy()
  261. Hat1.BrickColor = BrickColor.new("Really black")
  262. end
  263. for i, v in pairs(chara:children()) do
  264. if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("BodyColors") then
  265. v:Destroy()
  266. elseif v.Name == "Chest" then
  267. for a, b in pairs(v:children()) do
  268. if b.Name ~= "Tail" then
  269. b.Transparency = 1
  270. end
  271. end
  272. end
  273. end
  274. local sh = Instance.new("Shirt",chara)
  275. sh.ShirtTemplate = "rbxassetid://460500101"
  276. local pn = Instance.new("Pants",chara)
  277. pn.PantsTemplate = "rbxassetid://460500209"
  278. if Head:FindFirstChild("face") then
  279. Head.face.Texture = "rbxassetid://277939506"
  280. end
  281. --local bcols = Instance.new("BodyColors",chara)
  282. --bcols.HeadColor=BrickColor.new("Light orange")
  283. --bcols.LeftArmColor=BrickColor.new("Light orange")
  284. --bcols.RightArmColor=BrickColor.new("Light orange")
  285. --bcols.TorsoColor=BrickColor.new("Really black")
  286. --bcols.LeftLegColor=BrickColor.new("Baby blue")
  287. --bcols.RightLegColor=BrickColor.new("Baby blue")
  288.  
  289. local pemitt = Instance.new("ParticleEmitter",Torso)
  290. pemitt.Enabled = false
  291. pemitt.Transparency = NumberSequence.new(0,1)
  292. pemitt.Lifetime = NumberRange.new(1)
  293. pemitt.Size = NumberSequence.new(3,10)
  294. pemitt.LockedToPart = false
  295. pemitt.LightInfluence = 1
  296. pemitt.Speed = NumberRange.new(7)
  297. pemitt.EmissionDirection = "Top"
  298. pemitt.Texture = "https://www.roblox.com/headshot-thumbnail/image?userId="..Player.UserId.."&width=420&height=420&format=png"
  299. if chara:FindFirstChild("FaysG") then
  300. pemitt.Texture = "rbxassetid://1290985799"
  301. end
  302.  
  303. function rayCast(Position, Direction, Range, Ignore)
  304. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  305. end
  306.  
  307. --[[FindNearestTorso = function(pos)
  308. local list = (game.workspace:GetDescendants())
  309. local torso = nil
  310. local dist = 1000
  311. local temp, human, temp2 = nil, nil, nil
  312. for x = 1, #list do
  313. temp2 = list[x]
  314. if temp2.className == "Model" and temp2.Name ~= chara.Name then
  315. temp = temp2:findFirstChild("Torso")
  316. human = temp2:FindFirstChildOfClass("Humanoid")
  317. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  318. local dohit = true
  319. if dohit == true then
  320. torso = temp
  321. dist = (temp.Position - pos).magnitude
  322. end
  323. end
  324. end
  325. end
  326. return torso, dist
  327. end]]
  328. function FindNearestTorso(Position, Distance, SinglePlayer)
  329. if SinglePlayer then
  330. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  331. end
  332. local List = {}
  333. for i, v in pairs(workspace:GetDescendants()) do
  334. if v:IsA("Model") then
  335. if v:findFirstChild("Head") then
  336. if v ~= chara then
  337. if (v.Head.Position - Position).magnitude <= Distance then
  338. table.insert(List, v)
  339. end
  340. end
  341. end
  342. end
  343. end
  344. return List
  345. end
  346.  
  347. function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
  348. local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
  349. local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
  350. 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})
  351. return TEff
  352. end
  353.  
  354. LLTr = CreateTrailObj(LeftLeg,"White","White",0,0)
  355. RLTr = CreateTrailObj(RightLeg,"White","White",0,0)
  356. LATr = CreateTrailObj(LeftArm,"White","White",0,0)
  357. RATr = CreateTrailObj(RightArm,"White","White",0,0)
  358.  
  359. EffectModel = Create("Model"){
  360. Parent = chara,
  361. Name = "Effects",
  362. }
  363.  
  364. Effects = {
  365. Block = {
  366. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  367. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  368. prt.Anchored = true
  369. prt.CFrame = cframe
  370. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  371. game:GetService("Debris"):AddItem(prt, 10)
  372. if Type == 1 or Type == nil then
  373. table.insert(Effects, {
  374. prt,
  375. "Block1",
  376. delay,
  377. x3,
  378. y3,
  379. z3,
  380. msh
  381. })
  382. elseif Type == 2 then
  383. table.insert(Effects, {
  384. prt,
  385. "Block2",
  386. delay,
  387. x3,
  388. y3,
  389. z3,
  390. msh
  391. })
  392. end
  393. end;
  394. };
  395.  
  396. Cylinder = {
  397. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  398. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  399. prt.Anchored = true
  400. prt.CFrame = cframe
  401. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  402. game:GetService("Debris"):AddItem(prt, 10)
  403. table.insert(Effects, {
  404. prt,
  405. "Cylinder",
  406. delay,
  407. x3,
  408. y3,
  409. z3,
  410. msh
  411. })
  412. end;
  413. };
  414. Head = {
  415. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  416. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  417. prt.Anchored = true
  418. prt.CFrame = cframe
  419. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  420. game:GetService("Debris"):AddItem(prt, 10)
  421. table.insert(Effects, {
  422. prt,
  423. "Cylinder",
  424. delay,
  425. x3,
  426. y3,
  427. z3,
  428. msh
  429. })
  430. end;
  431. };
  432.  
  433. Sphere = {
  434. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  435. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  436. prt.Anchored = true
  437. prt.CFrame = cframe
  438. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  439. game:GetService("Debris"):AddItem(prt, 10)
  440. table.insert(Effects, {
  441. prt,
  442. "Cylinder",
  443. delay,
  444. x3,
  445. y3,
  446. z3,
  447. msh
  448. })
  449. end;
  450. };
  451.  
  452. Elect = {
  453. Create = function(cff, x, y, z)
  454. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  455. prt.Anchored = true
  456. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  457. prt.CFrame = CFrame.new(prt.Position)
  458. game:GetService("Debris"):AddItem(prt, 2)
  459. local xval = math.random() / 2
  460. local yval = math.random() / 2
  461. local zval = math.random() / 2
  462. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  463. table.insert(Effects, {
  464. prt,
  465. "Elec",
  466. 0.1,
  467. x,
  468. y,
  469. z,
  470. xval,
  471. yval,
  472. zval
  473. })
  474. end;
  475.  
  476. };
  477.  
  478. Ring = {
  479. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  480. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  481. prt.Anchored = true
  482. prt.CFrame = cframe
  483. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  484. game:GetService("Debris"):AddItem(prt, 10)
  485. table.insert(Effects, {
  486. prt,
  487. "Cylinder",
  488. delay,
  489. x3,
  490. y3,
  491. z3,
  492. msh
  493. })
  494. end;
  495. };
  496.  
  497.  
  498. Wave = {
  499. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  500. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  501. prt.Anchored = true
  502. prt.CFrame = cframe
  503. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  504. game:GetService("Debris"):AddItem(prt, 10)
  505. table.insert(Effects, {
  506. prt,
  507. "Cylinder",
  508. delay,
  509. x3,
  510. y3,
  511. z3,
  512. msh
  513. })
  514. end;
  515. };
  516.  
  517. Break = {
  518. Create = function(brickcolor, cframe, x1, y1, z1)
  519. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  520. prt.Anchored = true
  521. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  522. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  523. local num = math.random(10, 50) / 1000
  524. game:GetService("Debris"):AddItem(prt, 10)
  525. table.insert(Effects, {
  526. prt,
  527. "Shatter",
  528. num,
  529. prt.CFrame,
  530. math.random() - math.random(),
  531. 0,
  532. math.random(50, 100) / 100
  533. })
  534. end;
  535. };
  536.  
  537. Fire = {
  538. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  539. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  540. prt.Anchored = true
  541. prt.CFrame = cframe
  542. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  543. game:GetService("Debris"):AddItem(prt, 10)
  544. table.insert(Effects, {
  545. prt,
  546. "Fire",
  547. delay,
  548. 1,
  549. 1,
  550. 1,
  551. msh
  552. })
  553. end;
  554. };
  555.  
  556. FireWave = {
  557. Create = function(brickcolor, cframe, x1, y1, z1)
  558. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  559. prt.Anchored = true
  560. prt.CFrame = cframe
  561. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  562. local d = Create("Decal"){
  563. Parent = prt,
  564. Texture = "rbxassetid://26356434",
  565. Face = "Top",
  566. }
  567. local d = Create("Decal"){
  568. Parent = prt,
  569. Texture = "rbxassetid://26356434",
  570. Face = "Bottom",
  571. }
  572. game:GetService("Debris"):AddItem(prt, 10)
  573. table.insert(Effects, {
  574. prt,
  575. "FireWave",
  576. 1,
  577. 30,
  578. math.random(400, 600) / 100,
  579. msh
  580. })
  581. end;
  582. };
  583.  
  584. Lightning = {
  585. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  586. local magz = (p0 - p1).magnitude
  587. local curpos = p0
  588. local trz = {
  589. -ofs,
  590. ofs
  591. }
  592. for i = 1, tym do
  593. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  594. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  595. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  596. li.Material = "Neon"
  597. if tym == i then
  598. local magz2 = (curpos - p1).magnitude
  599. li.Size = Vector3.new(th, th, magz2)
  600. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  601. table.insert(Effects, {
  602. li,
  603. "Disappear",
  604. last
  605. })
  606. else
  607. do
  608. do
  609. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  610. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  611. game.Debris:AddItem(li, 10)
  612. table.insert(Effects, {
  613. li,
  614. "Disappear",
  615. last
  616. })
  617. end
  618. end
  619. end
  620. end
  621. end
  622. };
  623.  
  624. EffectTemplate = {
  625.  
  626. };
  627. }
  628.  
  629. function ShowDamage(Dude, Text, Time, Color)
  630. coroutine.resume(coroutine.create(function()
  631. local naeeym2 = Instance.new("BillboardGui",Dude)
  632. naeeym2.Size = UDim2.new(0,100,0,40)
  633. naeeym2.StudsOffset = Vector3.new(0,3,0)
  634. naeeym2.Adornee = Dude.Head
  635. naeeym2.Name = "TalkingBillBoard"
  636. local tecks2 = Instance.new("TextLabel",naeeym2)
  637. tecks2.BackgroundTransparency = 1
  638. tecks2.BorderSizePixel = 0
  639. tecks2.Text = Text
  640. tecks2.Font = "Fantasy"
  641. tecks2.TextSize = 24
  642. tecks2.TextStrokeTransparency = 0
  643. tecks2.TextColor3 = BrickColor.new(Color).Color
  644. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  645. tecks2.Size = UDim2.new(1,0,0.5,0)
  646. swait(10)
  647. for i = 0,1,.05 do
  648. swait()
  649. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  650. tecks2.TextStrokeTransparency = i
  651. tecks2.TextTransparency = i
  652. end
  653. naeeym2:Destroy()
  654. end))
  655. end
  656.  
  657. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  658. if hit.Parent==nil then
  659. return
  660. end
  661. local torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso"))
  662. local h=hit.Parent:FindFirstChildOfClass("Humanoid")
  663. for _,v in pairs(hit.Parent:GetDescendants()) do
  664. if v:IsA("Humanoid") then
  665. h=v
  666. end
  667. end
  668. if torsy~=nil then
  669. h=hit.Parent:FindFirstChildOfClass("Humanoid")
  670. end
  671. if hit.Parent:IsA("Accoutrement") then
  672. hit=hit.Parent.Parent:findFirstChild("Head")
  673. end
  674. if h~=nil and hit.Parent.Name~=chara.Name and torsy~=nil then
  675. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  676. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  677. return
  678. end]]
  679. -- hs(hit,1.2)
  680. local c=Instance.new("ObjectValue")
  681. c.Name="creator"
  682. c.Value=game:service("Players").LocalPlayer
  683. c.Parent=h
  684. game:GetService("Debris"):AddItem(c,.5)
  685. local Damage=math.random(minim,maxim)
  686. -- h:TakeDamage(Damage)
  687. local blocked=false
  688. local block=hit.Parent:findFirstChild("Block")
  689. if block~=nil then
  690. print(block.className)
  691. if block.className=="NumberValue" then
  692. if block.Value>0 then
  693. blocked=true
  694. if decreaseblock==nil then
  695. block.Value=block.Value-1
  696. end
  697. end
  698. end
  699. if block.className=="IntValue" then
  700. if block.Value>0 then
  701. blocked=true
  702. if decreaseblock~=nil then
  703. block.Value=block.Value-1
  704. end
  705. end
  706. end
  707. end
  708. h.Health=h.Health-Damage
  709. ShowDamage(h.Parent, -Damage, 1.5, "White")
  710. if Type=="Knockdown" then
  711. local hum=hit.Parent:FindFirstChildOfClass("Humanoid")
  712. hum.PlatformStand=true
  713. coroutine.resume(coroutine.create(function(HHumanoid)
  714. swait(30)
  715. HHumanoid.PlatformStand=false
  716. end),hum)
  717. --local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  718. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  719. local bodvol=Instance.new("BodyVelocity")
  720. bodvol.velocity=RootPart.CFrame.lookVector*knockback
  721. bodvol.P=50000
  722. bodvol.maxForce=Vector3.new(5000, 0, 5000) * 5000000000
  723. bodvol.Parent=torsy
  724. torsy.CFrame = CFrame.new(torsy.Position)*CFrame.Angles(math.rad(90),0,0)
  725. --local rl=Instance.new("BodyAngularVelocity")
  726. --rl.P=3000
  727. --rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  728. --rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  729. --rl.Parent=torsy
  730. game:GetService("Debris"):AddItem(bodvol,.5)
  731. --game:GetService("Debris"):AddItem(rl,.5)
  732. elseif Type=="Normal" then
  733. local vp=Instance.new("BodyVelocity")
  734. vp.P=500
  735. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  736. vp.velocity=RootPart.CFrame.lookVector*knockback
  737. -- if KnockbackType==1 then
  738. -- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  739. -- elseif KnockbackType==2 then
  740. -- vp.velocity=Property.CFrame.lookVector*knockback
  741. -- end
  742. if knockback>0 then
  743. vp.Parent=torsy
  744. end
  745. game:GetService("Debris"):AddItem(vp,.5)
  746. elseif Type=="Up" then
  747. local bodyVelocity=Instance.new("BodyVelocity")
  748. bodyVelocity.velocity=Vector3.new(0,knockback,0)
  749. bodyVelocity.P=5000
  750. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  751. bodyVelocity.Parent=torsy
  752. game:GetService("Debris"):AddItem(bodyVelocity,1)
  753. local rl=Instance.new("BodyAngularVelocity")
  754. rl.P=3000
  755. rl.maxTorque=Vector3.new(500000,500000,500000)
  756. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  757. rl.Parent=torsy
  758. game:GetService("Debris"):AddItem(rl,.5)
  759. elseif Type=="Snare" then
  760. local bp=Instance.new("BodyPosition")
  761. bp.P=2000
  762. bp.D=100
  763. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  764. bp.position=torsy.Position
  765. bp.Parent=torsy
  766. game:GetService("Debris"):AddItem(bp,1)
  767. end
  768. local debounce=Instance.new("BoolValue")
  769. debounce.Name="DebounceHit"
  770. debounce.Parent=torsy.Parent
  771. debounce.Value=true
  772. game:GetService("Debris"):AddItem(debounce,Delay)
  773. c=Instance.new("ObjectValue")
  774. c.Name="creator"
  775. c.Value=Player
  776. c.Parent=h
  777. game:GetService("Debris"):AddItem(c,.5)
  778. end
  779. end
  780.  
  781. function MagnitudeDamage(par,magni,efftyp,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  782. for _, c in pairs(workspace:GetDescendants()) do
  783. local hum = c:FindFirstChildOfClass("Humanoid")
  784. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  785. local head = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  786. if head ~= nil then
  787. local targ = head.Position - par.Position
  788. local mag = targ.magnitude
  789. if magni >= mag and c.Name ~= Player.Name then
  790. if efftyp == "Blunt" then
  791. puncheff(head)
  792. elseif efftyp == "HardBlunt" then
  793. hpuncheff(head)
  794. end
  795. Damagefunc(RootPart,head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  796. end
  797. end
  798. end
  799. end
  800. end
  801.  
  802. combo = 1
  803.  
  804. function puncheff(par)
  805. if par.Parent:FindFirstChild("DebounceHit")==nil then
  806. so(386946017,par,math.random(80,120)/100,1)
  807. Effects.Sphere.Create(BrickColor.new("White"), par.CFrame, 2, 2, 2, 5, 5, 5, 0.1)
  808. end
  809. end
  810.  
  811. function hpuncheff(par)
  812. if par.Parent:FindFirstChild("DebounceHit")==nil then
  813. so(137579113,par,math.random(70,75)/100,1)
  814. Effects.Sphere.Create(BrickColor.new("White"), par.CFrame, 2, 2, 2, 5, 5, 5, 0.05)
  815. end
  816. end
  817.  
  818. function supereff()
  819. pemitt:Emit(1)
  820. so(153092315,RootPart,.8,5)
  821. for i = 1, 7 do
  822. Effects.Break.Create(BrickColor.new("Baby blue"),RootPart.CFrame,0,math.random(5,20),0)
  823. end
  824. Effects.Wave.Create(BrickColor.new("Baby blue"), RootPart.CFrame*CFrame.new(0,-1.5,0), 2, 0, 2, 5, .5, 5, 0.1)
  825. end
  826.  
  827. function attackone()
  828. attack = true
  829. LATr.Enabled = true
  830. Humanoid.WalkSpeed = 2
  831. so(200632136, LeftArm, .9, 1)
  832. for i=0,1,.2 do
  833. swait()
  834. PlayAnimationFromTable({
  835. CFrame.new(0.00827017333, -4.76837158e-07, -0.372066826, 4.32133675e-07, 0, -1.00000858, 0, 1, 0, 1.00000858, 0, 4.32133675e-07),
  836. CFrame.new(0.0720631108, 1.49999857, 0.00827036519, 4.32133675e-07, 0, 1.00000858, 0, 1, 0, -1.00000858, 0, 4.32133675e-07),
  837. CFrame.new(0.783987999, 0.5, -0.759807885, 0.500000238, 0.866025388, 0, 0, 0, -1, -0.866025388, 0.500000238, 0),
  838. 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),
  839. CFrame.new(0.800002694, -1.99999833, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  840. CFrame.new(-0.495444268, -2.01339579, 0.00209511817, 0.984807968, 0, 0.173647001, 0, 1, 0, -0.173647001, 0, 0.984807968),
  841. MagnitudeDamage(LeftArm,3,"Blunt",6,8,3,"Normal",RootPart,.4,1)
  842. }, .5, false)
  843. end
  844. swait(1)
  845. Humanoid.WalkSpeed = 16
  846. LATr.Enabled = false
  847. attack = false
  848. end
  849.  
  850. function attacktwo()
  851. attack = true
  852. RLTr.Enabled = true
  853. Humanoid.WalkSpeed = 2
  854. so(200632136, RightLeg, .7, 1)
  855. for i=0,1,.2 do
  856. swait()
  857. PlayAnimationFromTable({
  858. CFrame.new(0.0551774763, -4.76837158e-07, -0.20956336, 0.984816253, 0, 0.173649907, 0, 1, 0, -0.173649907, 0, 0.984816253),
  859. CFrame.new(-0.0386328921, 1.49999857, -0.0986492559, 0.984816253, 0, -0.173649907, 0, 1, 0, 0.173649907, 0, 0.984816253),
  860. 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),
  861. 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),
  862. 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),
  863. CFrame.new(-0.495439887, -2.01339579, 0.0020987913, 0.984807849, 0, 0.173648134, 0, 1, 0, -0.173648164, 0, 0.984807849),
  864. MagnitudeDamage(RightLeg,3,"Blunt",9,11,4,"Normal",RootPart,.4,1)
  865. }, .5, false)
  866. end
  867. swait(1.5)
  868. Humanoid.WalkSpeed = 16
  869. RLTr.Enabled = false
  870. attack = false
  871. end
  872.  
  873. function attackthree()
  874. attack = true
  875. LATr.Enabled = true
  876. Humanoid.WalkSpeed = 2
  877. for i=0,1,.2 do
  878. swait()
  879. PlayAnimationFromTable({
  880. 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),
  881. CFrame.new(-0.0436706543, 1.49998975, -0.031870842, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  882. 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),
  883. 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),
  884. CFrame.new(0.500015259, -1.77985549, 0.729058385, 1, 0, 0, 0, 0.76604414, 0.642788053, 0, -0.642788053, 0.76604414),
  885. CFrame.new(-0.495445162, -2.01339388, 0.00208995491, 0.984807968, 0, 0.173647001, 0, 1, 0, -0.173647001, 0, 0.984807968),
  886. }, .5, false)
  887. end
  888. so(158037267,LeftArm,.8,1)
  889. for i=0,1,.2 do
  890. swait()
  891. PlayAnimationFromTable({
  892. 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),
  893. 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),
  894. 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),
  895. 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),
  896. 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),
  897. 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),
  898. MagnitudeDamage(LeftArm,3,"Blunt",10,12,6,"Normal",RootPart,.4,1)
  899. }, .5, false)
  900. end
  901. swait(2)
  902. Humanoid.WalkSpeed = 16
  903. LATr.Enabled = false
  904. attack = false
  905. end
  906.  
  907. function attackfour()
  908. attack = true
  909. LLTr.Enabled = true
  910. Humanoid.WalkSpeed = 2
  911. for i=0,1,.2 do
  912. swait()
  913. PlayAnimationFromTable({
  914. 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),
  915. 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),
  916. 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),
  917. 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),
  918. 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),
  919. 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),
  920. }, .5, false)
  921. end
  922. so(200632136, LeftLeg, .7, 1)
  923. for i=0,1,.2 do
  924. swait()
  925. PlayAnimationFromTable({
  926. 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),
  927. 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),
  928. 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),
  929. 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),
  930. 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),
  931. 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),
  932. MagnitudeDamage(LeftLeg,3,"Blunt",12,14,6,"Normal",RootPart,.4,1)
  933. }, .5, false)
  934. end
  935. swait(3)
  936. Humanoid.WalkSpeed = 16
  937. LLTr.Enabled = false
  938. attack = false
  939. end
  940.  
  941. function jattack()
  942. attack = true
  943. LLTr.Enabled = true
  944. so(200632136, LeftLeg, .7, 1)
  945. local par
  946. coroutine.wrap(function()
  947. repeat swait() par = rayCast(RootPart.Position,Vector3.new(0,-1,0),3,chara) until par~=nil or Torso.Velocity.Y == 0
  948. LLTr.Enabled = false
  949. attack = false
  950. end)()
  951. for i=0,1,.2 do
  952. swait()
  953. PlayAnimationFromTable({
  954. 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),
  955. 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),
  956. 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),
  957. 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),
  958. 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),
  959. 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),
  960. MagnitudeDamage(LeftLeg,6,"Blunt",9,11,4,"Normal",RootPart,.4,1)
  961. }, .5, false)
  962. end
  963. end
  964.  
  965. zhold = false
  966. function kfpalm()
  967. attack = true
  968. LATr.Enabled = true
  969. Humanoid.WalkSpeed = 0
  970. for i=0,1,.2 do
  971. swait()
  972. PlayAnimationFromTable({
  973. CFrame.new(0, -0.599999428, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  974. CFrame.new(0, 1.49999595, 0, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238),
  975. CFrame.new(0.662911594, 0.399999619, -0.623933315, 0.342019022, 0.939693093, 0, 0, 0, -1, -0.939693093, 0.342018992, 0),
  976. CFrame.new(-0.473205, -0.0999996662, 0.499996185, 0, 1, 0, 1, 0, 0, 0, 0, -1),
  977. CFrame.new(1.1031599, -1.592327, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698, 0, 0, 0, 1),
  978. CFrame.new(-0.599999666, -1.40000069, -0.199996278, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388),
  979. }, .5, false)
  980. end
  981. local t = 0
  982. repeat swait() t=t+1 until t == 10 or zhold == false
  983. if t == 10 then
  984. supereff()
  985. swait(5)
  986. for i=1,2 do
  987. so(158037267,LeftArm,.5,1)
  988. local ve = Instance.new("BodyVelocity", Torso)
  989. ve.P = 6000
  990. ve.Name = "WUUB"
  991. ve.maxForce = Vector3.new(5000, 0, 5000) * 5000000000
  992. ve.velocity = RootPart.CFrame.lookVector * 30
  993. game:GetService("Debris"):AddItem(ve,.1)
  994. for i=0,1,.2 do
  995. swait()
  996. PlayAnimationFromTable({
  997. CFrame.new(0, -0.599999428, 0, 1.34110837e-06, 0, -1.00000548, 0, 1, 0, 1.00000644, 0, -1.34110837e-06),
  998. CFrame.new(0, 1.49999595, 0, 0.50000459, 0, 0.866030216, 0, 1, 0, -0.866030753, 0, 0.500001729),
  999. CFrame.new(0.662920713, 0.399999619, -0.62394017, 0.342022449, 0.939698696, 0, 0, 0, -1, -0.939698637, 0.342019558, 0),
  1000. CFrame.new(-1.77321196, 0.199999332, 6.86993644e-07, 0, 1.00000322, 9.53674316e-07, 1, 0, 0, 0, -3.87430191e-07, -1.00000274),
  1001. 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),
  1002. 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),
  1003. MagnitudeDamage(LeftArm,3,"HardBlunt",9,13,10,"Normal",RootPart,.4,1)
  1004. }, .5, false)
  1005. end
  1006. swait(5)
  1007. for i=0,1,.2 do
  1008. swait()
  1009. PlayAnimationFromTable({
  1010. CFrame.new(0, -0.599999428, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  1011. CFrame.new(0, 1.49999595, 0, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238),
  1012. CFrame.new(0.662911594, 0.399999619, -0.623933315, 0.342019022, 0.939693093, 0, 0, 0, -1, -0.939693093, 0.342018992, 0),
  1013. CFrame.new(-0.473205, -0.0999996662, 0.499996185, 0, 1, 0, 1, 0, 0, 0, 0, -1),
  1014. CFrame.new(1.1031599, -1.592327, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698, 0, 0, 0, 1),
  1015. CFrame.new(-0.599999666, -1.40000069, -0.199996278, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388),
  1016. }, .5, false)
  1017. end
  1018. end
  1019. end
  1020. so(158037267,LeftArm,.5,1)
  1021. local ve = Instance.new("BodyVelocity", Torso)
  1022. ve.P = 6000
  1023. ve.Name = "WUUB"
  1024. ve.maxForce = Vector3.new(5000, 0, 5000) * 5000000000
  1025. ve.velocity = RootPart.CFrame.lookVector * 50
  1026. game:GetService("Debris"):AddItem(ve,.1)
  1027. for i=0,1,.2 do
  1028. swait()
  1029. PlayAnimationFromTable({
  1030. CFrame.new(0, -0.599999428, 0, 1.34110837e-06, 0, -1.00000548, 0, 1, 0, 1.00000644, 0, -1.34110837e-06),
  1031. CFrame.new(0, 1.49999595, 0, 0.50000459, 0, 0.866030216, 0, 1, 0, -0.866030753, 0, 0.500001729),
  1032. CFrame.new(0.662920713, 0.399999619, -0.62394017, 0.342022449, 0.939698696, 0, 0, 0, -1, -0.939698637, 0.342019558, 0),
  1033. CFrame.new(-1.77321196, 0.199999332, 6.86993644e-07, 0, 1.00000322, 9.53674316e-07, 1, 0, 0, 0, -3.87430191e-07, -1.00000274),
  1034. 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),
  1035. 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),
  1036. MagnitudeDamage(LeftArm,3,"HardBlunt",15,18,15,"Knockdown",RootPart,.4,1)
  1037. }, .5, false)
  1038. end
  1039. swait(10)
  1040. Humanoid.WalkSpeed = 16
  1041. LATr.Enabled = false
  1042. attack = false
  1043. end
  1044.  
  1045. function kfblow()
  1046. attack = true
  1047. LATr.Enabled = true
  1048. Humanoid.WalkSpeed = 0
  1049. swait(5)
  1050. so(158037267,LeftArm,.5,1)
  1051. for i=0,1,.2 do
  1052. swait()
  1053. PlayAnimationFromTable({
  1054. CFrame.new(8.86628623e-05, -0.599999428, -2.50004721, 2.68223084e-06, 0, -1.00001097, 0, 1, 0, 1.00001287, 0, -2.68223084e-06),
  1055. CFrame.new(0, 1.49999619, 0, 0.500008941, 0, 0.866035163, 0, 1, 0, -0.866036177, 0, 0.500003278),
  1056. 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),
  1057. CFrame.new(-1.5732199, 0.899998665, 2.13230014e-05, 0, 1.00000644, -7.88460457e-05, -1, 0, 0, 0, 7.61637566e-05, 1.00000548),
  1058. 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),
  1059. CFrame.new(-0.494233549, -1.52556598, -0.261073679, 0.866031349, 0, 0.500002563, 0, 1, 0, -0.500004411, 0, 0.866029203),
  1060. MagnitudeDamage(LeftArm,3,"HardBlunt",17,20,20,"Knockdown",RootPart,.4,1)
  1061. }, .5, false)
  1062. end
  1063. swait(15)
  1064. Humanoid.WalkSpeed = 16
  1065. LATr.Enabled = false
  1066. attack = false
  1067. end
  1068.  
  1069. chold = false
  1070. function kfupper()
  1071. attack = true
  1072. LATr.Enabled = true
  1073. Humanoid.WalkSpeed = 0
  1074. for i=0,1,.1 do
  1075. swait()
  1076. PlayAnimationFromTable({
  1077. CFrame.new(-0.0145354364, 0, 0.0638134554, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  1078. 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),
  1079. 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),
  1080. CFrame.new(-1.11433101, 0, 0.459626645, 0.766043544, 0, 0.642788708, 0, 1, 0, -0.642788708, 0, 0.766043544),
  1081. CFrame.new(0.449996918, -2, 0.0866026133, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686),
  1082. 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),
  1083. }, .3, false)
  1084. end
  1085. local t = 0
  1086. repeat swait() t=t+1 until t == 10 or chold == false
  1087. if t == 10 then
  1088. supereff()
  1089. swait(5)
  1090. so(158037267,LeftArm,.5,1)
  1091. for i=0,1,.2 do
  1092. swait()
  1093. PlayAnimationFromTable({
  1094. CFrame.new(0.185260773, 0, -0.528930187, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  1095. CFrame.new(0.202135861, 1.39999592, 0.185260773, 0, 0.500000238, 0.866025388, 0, 0.866025388, -0.500000238, -1, 0, 0),
  1096. 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),
  1097. CFrame.new(-1.20000052, 1.49999857, 0.300003052, 0, 0.173647985, -0.984807849, 0, -0.984807849, -0.173647985, -1, 0, 0),
  1098. CFrame.new(0.781915069, -1.89739513, -3.81469727e-06, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  1099. CFrame.new(-0.500001073, -2, 2.98023224e-08, 0.866025984, 0, 0.499998987, 0, 1, 0, -0.499998987, 0, 0.866025984),
  1100. MagnitudeDamage(LeftArm,3,"HardBlunt",25,36,50,"Up",RootPart,.4,1)
  1101. }, .5, false)
  1102. end
  1103. swait(20)
  1104. else
  1105. so(158037267,LeftArm,.5,1)
  1106. for i=0,1,.2 do
  1107. swait()
  1108. PlayAnimationFromTable({
  1109. CFrame.new(0.185260773, 0, -0.528930187, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  1110. CFrame.new(0.202135861, 1.39999592, 0.185260773, 0, 0.500000238, 0.866025388, 0, 0.866025388, -0.500000238, -1, 0, 0),
  1111. 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),
  1112. CFrame.new(-1.20000052, 1.49999857, 0.300003052, 0, 0.173647985, -0.984807849, 0, -0.984807849, -0.173647985, -1, 0, 0),
  1113. CFrame.new(0.781915069, -1.89739513, -3.81469727e-06, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  1114. CFrame.new(-0.500001073, -2, 2.98023224e-08, 0.866025984, 0, 0.499998987, 0, 1, 0, -0.499998987, 0, 0.866025984),
  1115. MagnitudeDamage(LeftArm,3,"HardBlunt",18,21,10,"Up",RootPart,.4,1)
  1116. }, .5, false)
  1117. end
  1118. swait(5)
  1119. end
  1120. Humanoid.WalkSpeed = 16
  1121. LATr.Enabled = false
  1122. attack = false
  1123. end
  1124.  
  1125. function kfupper()
  1126. attack = true
  1127. LATr.Enabled = true
  1128. Humanoid.WalkSpeed = 0
  1129. for i=0,1,.1 do
  1130. swait()
  1131. PlayAnimationFromTable({
  1132. CFrame.new(-0.0145354364, 0, 0.0638134554, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  1133. 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),
  1134. 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),
  1135. CFrame.new(-1.11433101, 0, 0.459626645, 0.766043544, 0, 0.642788708, 0, 1, 0, -0.642788708, 0, 0.766043544),
  1136. CFrame.new(0.449996918, -2, 0.0866026133, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686),
  1137. 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),
  1138. }, .3, false)
  1139. end
  1140. so(158037267,LeftArm,.5,1)
  1141. for i=0,1,.2 do
  1142. swait()
  1143. PlayAnimationFromTable({
  1144. CFrame.new(0.185260773, 0, -0.528930187, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  1145. CFrame.new(0.202135861, 1.39999592, 0.185260773, 0, 0.500000238, 0.866025388, 0, 0.866025388, -0.500000238, -1, 0, 0),
  1146. 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),
  1147. CFrame.new(-1.20000052, 1.49999857, 0.300003052, 0, 0.173647985, -0.984807849, 0, -0.984807849, -0.173647985, -1, 0, 0),
  1148. CFrame.new(0.781915069, -1.89739513, -3.81469727e-06, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  1149. CFrame.new(-0.500001073, -2, 2.98023224e-08, 0.866025984, 0, 0.499998987, 0, 1, 0, -0.499998987, 0, 0.866025984),
  1150. MagnitudeDamage(LeftArm,3,"HardBlunt",18,21,50,"Up",RootPart,.4,1)
  1151. }, .5, false)
  1152. end
  1153. swait(20)
  1154. Humanoid.WalkSpeed = 16
  1155. LATr.Enabled = false
  1156. attack = false
  1157. end
  1158.  
  1159. vhold = false
  1160. function kfgrab()
  1161. attack = true
  1162. LATr.Enabled = true
  1163. RATr.Enabled = true
  1164. Humanoid.WalkSpeed = 0
  1165. local grab
  1166. local torsy
  1167. local hum
  1168. so(200632136, RootPart, .7, 1)
  1169. for i=0,1,.2 do
  1170. swait()
  1171. PlayAnimationFromTable({
  1172. CFrame.new(0, -0.395585239, -1.53837633, 1, 0, 0, 0, 0.76604414, 0.642788053, 0, -0.642788053, 0.76604414),
  1173. CFrame.new(0, 1.49998748, -1.19209304e-07, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  1174. 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),
  1175. 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),
  1176. CFrame.new(0.5, -2.00000238, -1.66893028e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  1177. CFrame.new(-0.5, -1.16437745, -0.995859087, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414),
  1178. }, .4, false)
  1179. end
  1180. for _, c in pairs(workspace:GetDescendants()) do
  1181. local hum = c:FindFirstChildOfClass("Humanoid")
  1182. if hum ~= nil then
  1183. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  1184. if torsy ~= nil then
  1185. local targ = torsy.Position - (RootPart.Position+RootPart.CFrame.lookVector*3)
  1186. local mag = targ.magnitude
  1187. if 5 >= mag and c.Name ~= Player.Name then
  1188. grab = c
  1189. end
  1190. end
  1191. end
  1192. end
  1193. if grab ~= nil then
  1194. local hum = grab:FindFirstChildOfClass("Humanoid")
  1195. local torsy = grab:findFirstChild("Torso") or grab:findFirstChild("UpperTorso")
  1196. local gra = Instance.new("Part",chara)
  1197. gra.Size = Vector3.new(0,0,0)
  1198. gra.CanCollide = false
  1199. gra.Anchored = true
  1200. gra.CFrame = RootPart.CFrame*CFrame.new(0,0,-2)
  1201. gra.Transparency = 1
  1202. so(240429615, torsy, 1, 1)
  1203. for i=0,1,.1 do
  1204. swait()
  1205. PlayAnimationFromTable({
  1206. CFrame.new(0.028383255, -0.0148591995, 0.0813131332, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1207. CFrame.new(0, 1.49998522, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1208. 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),
  1209. 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),
  1210. CFrame.new(0.499997497, -1.99999893, 4.32133675e-07, 0.76604414, 0, -0.642788053, 0, 1, 0, 0.642788053, 0, 0.76604414),
  1211. CFrame.new(-0.991907299, -1.90381634, 0.00414514542, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1),
  1212. }, .2, false)
  1213. gra.CFrame = clerp(gra.CFrame,RootPart.CFrame*CFrame.new(0,3,0)*CFrame.Angles(math.rad(90),0,0),.4)
  1214. torsy.CFrame = gra.CFrame
  1215. hum.PlatformStand = true
  1216. end
  1217. Humanoid.WalkSpeed = 6
  1218. repeat
  1219. swait()
  1220. hum.PlatformStand = true
  1221. gra.CFrame = clerp(gra.CFrame,RootPart.CFrame*CFrame.new(0,3,0)*CFrame.Angles(math.rad(90),0,0),.4)
  1222. torsy.CFrame = gra.CFrame
  1223. until vhold == false
  1224. Humanoid.WalkSpeed = 0
  1225. so(200632136, RootPart, .8, 1)
  1226. for i=0,1,.2 do
  1227. swait()
  1228. PlayAnimationFromTable({
  1229. 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),
  1230. 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),
  1231. 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),
  1232. 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),
  1233. 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),
  1234. 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),
  1235. }, .4, false)
  1236. gra.CFrame = clerp(gra.CFrame,RootPart.CFrame*CFrame.new(0,2,-6)*CFrame.Angles(math.rad(90),0,0),.4)
  1237. torsy.CFrame = gra.CFrame
  1238. torsy.Velocity = RootPart.CFrame.lookVector*60
  1239. end
  1240. coroutine.wrap(function()
  1241. local par,pos
  1242. repeat swait() par,pos = rayCast(torsy.Position,Vector3.new(0,-1,0),2,grab) until par
  1243. Damagefunc(RootPart,torsy,15,20,0,"Normal",RootPart,.4,1)
  1244. MagnitudeDamage(torsy,6,0,10,15,5,"Knockdown",RootPart,.4,1)
  1245. Effects.Wave.Create(BrickColor.new("White"), CFrame.new(pos), 0, 0, 0, 1, .2, 1, 0.1)
  1246. so(260430079,torsy,1,5)
  1247. swait(60)
  1248. hum.PlatformStand = false
  1249. end)()
  1250. gra:Destroy()
  1251. end
  1252. swait(5)
  1253. Humanoid.WalkSpeed = 16
  1254. LATr.Enabled = false
  1255. RATr.Enabled = false
  1256. attack = false
  1257. end
  1258.  
  1259. function kfbow()
  1260. attack = true
  1261. Humanoid.WalkSpeed = 0
  1262. for i=0,1,.2 do
  1263. swait()
  1264. PlayAnimationFromTable({
  1265. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1266. CFrame.new(0, 1.49999619, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1267. CFrame.new(1.20945108, -0.213500202, -4.76837158e-07, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  1268. CFrame.new(-1.20945334, -0.213505104, -4.76837158e-07, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  1269. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1270. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1271. }, .3, false)
  1272. end
  1273. for i=0,1.5,.1 do
  1274. swait()
  1275. PlayAnimationFromTable({
  1276. CFrame.new(0, -0.577677608, -0.882485688, 1, 0, 0, 0, 0.342019916, 0.939692736, 0, -0.939692736, 0.342019886),
  1277. CFrame.new(0, 1.49999499, 4.4554472e-06, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1),
  1278. 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),
  1279. 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),
  1280. CFrame.new(0.5, -1.31572783, -1.03471863, 1, 0, 0, 0, 0.342019916, -0.939692736, 0, 0.939692736, 0.342019886),
  1281. CFrame.new(-0.5, -1.31572783, -1.03471863, 1, 0, 0, 0, 0.342019916, -0.939692736, 0, 0.939692736, 0.342019886),
  1282. }, .2, false)
  1283. end
  1284. for i=0,1.5,.1 do
  1285. swait()
  1286. PlayAnimationFromTable({
  1287. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1288. CFrame.new(0, 1.49999619, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1289. CFrame.new(1.20945108, -0.213500202, -4.76837158e-07, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  1290. CFrame.new(-1.20945334, -0.213505104, -4.76837158e-07, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  1291. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1292. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1293. }, .2, false)
  1294. end
  1295. Humanoid.WalkSpeed = 16
  1296. LATr.Enabled = false
  1297. attack = false
  1298. end
  1299.  
  1300. ehold = false
  1301. function kfblock()
  1302. attack = true
  1303. Humanoid.WalkSpeed = 0
  1304. for i=0,1,.2 do
  1305. swait()
  1306. PlayAnimationFromTable({
  1307. CFrame.new(0, 0, 1.90734863e-06, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  1308. CFrame.new(-1.90734863e-06, 1.49999642, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),
  1309. CFrame.new(0.29999733, 0, -0.799991608, 0, 1, 0, 0, 0, -1, -1, 0, 0),
  1310. CFrame.new(-1.5, 0.999999762, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),
  1311. CFrame.new(0.500000238, -2, 2.38418579e-07, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1312. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1313. }, .3, false)
  1314. end
  1315. local oldhp = Humanoid.Health
  1316. repeat
  1317. swait()
  1318. if Humanoid.Health < oldhp then
  1319. so(260430060,Torso,math.random(9,11)/10,1)
  1320. local vp = Instance.new("BodyVelocity", Torso)
  1321. vp.MaxForce = Vector3.new(4800000, 0, 4800000)
  1322. vp.P = 200000
  1323. vp.Velocity = RootPart.CFrame.lookVector * -30
  1324. game:GetService("Debris"):AddItem(vp,.01)
  1325. end
  1326. Humanoid.Health = oldhp
  1327. until ehold == false
  1328. Humanoid.WalkSpeed = 16
  1329. attack = false
  1330. end
  1331.  
  1332. --Intro--
  1333. Humanoid.WalkSpeed = 0
  1334. for i=0,2,.1 do
  1335. swait()
  1336. PlayAnimationFromTable({
  1337. CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  1338. CFrame.new(0, 1.49999809, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  1339. CFrame.new(0.7839728, 0.499999523, -0.759808064, 0.499999493, 0.866025746, 0, 0, 0, -1, -0.866025746, 0.499999493, 0),
  1340. 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),
  1341. 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),
  1342. 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),
  1343. }, .3, false)
  1344. end
  1345. local wood = Instance.new("Part",chara)
  1346. wood.Size = Vector3.new(2,.4,1)
  1347. wood.BrickColor = BrickColor.new("Bright orange")
  1348. wood.Material = "Wood"
  1349. wood.Anchored = true
  1350. wood.CanCollide = false
  1351. wood.CFrame = RootPart.CFrame * CFrame.new(0,0,-10)
  1352. for i=0,1,.1 do
  1353. swait()
  1354. PlayAnimationFromTable({
  1355. CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  1356. CFrame.new(0, 1.49999809, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  1357. CFrame.new(0.7839728, 0.499999523, -0.759808064, 0.499999493, 0.866025746, 0, 0, 0, -1, -0.866025746, 0.499999493, 0),
  1358. 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),
  1359. 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),
  1360. 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),
  1361. }, .3, false)
  1362. wood.CFrame = RootPart.CFrame * CFrame.new(0,3-(i*3.5),-10+(i*6))
  1363. end
  1364. LLTr.Enabled = true
  1365. local bwood = Instance.new("Part",chara)
  1366. bwood.Size = Vector3.new(1,.4,1)
  1367. bwood.BrickColor = BrickColor.new("Bright orange")
  1368. bwood.Material = "Wood"
  1369. bwood.CFrame = wood.CFrame * CFrame.new(.5,0,0)
  1370. bwood.Velocity = wood.CFrame.rightVector*10
  1371. local bwood2 = bwood:Clone()
  1372. bwood2.Parent = chara
  1373. bwood2.CFrame = wood.CFrame * CFrame.new(-.5,0,0)
  1374. bwood2.Velocity = wood.CFrame.rightVector*-10
  1375. wood:Destroy()
  1376. so(158712406,Torso,1,1)
  1377. for i=0,1,.25 do
  1378. swait()
  1379. PlayAnimationFromTable({
  1380. 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),
  1381. 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),
  1382. 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),
  1383. 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),
  1384. 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),
  1385. 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),
  1386. }, .7, false)
  1387. end
  1388. swait(30)
  1389. LLTr.Enabled = false
  1390. Humanoid.WalkSpeed = 16
  1391.  
  1392. qhold = false
  1393. justsprinted = false
  1394. function kfsprint()
  1395. attack = true
  1396. --print("supurinto?")
  1397. --justsprinted = true
  1398. --coroutine.wrap(function()
  1399. --swait(10)
  1400. --justsprinted = false
  1401. --end)()
  1402. repeat
  1403. swait()
  1404. PlayAnimationFromTable({
  1405. 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),
  1406. CFrame.new(0, 1.41422474, 0.0894482136, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  1407. 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),
  1408. 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),
  1409. 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),
  1410. 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),
  1411. }, .3, false)
  1412. Humanoid.WalkSpeed = 40
  1413. until qhold == false or Torso.Velocity == Vector3.new(0,0,0)
  1414. --print'sutoppu'
  1415. Humanoid.WalkSpeed = 16
  1416. attack = false
  1417. end
  1418.  
  1419. Mouse.Button1Down:connect(function()
  1420. if attack == false then
  1421. if Anim == "Jump" or Anim == "Fall" then
  1422. jattack()
  1423. else
  1424. if combo == 1 then
  1425. attackone()
  1426. combo = 2
  1427. elseif combo == 2 then
  1428. attacktwo()
  1429. combo = 3
  1430. elseif combo == 3 then
  1431. attackthree()
  1432. combo = 4
  1433. elseif combo == 4 then
  1434. attackfour()
  1435. combo = 1
  1436. end
  1437. end
  1438. end
  1439. end)
  1440.  
  1441. local sprintt = 0
  1442. Mouse.KeyDown:connect(function(k)
  1443. k = k:lower()
  1444. if attack == false then
  1445. if k == 'z' then
  1446. zhold = true
  1447. kfpalm()
  1448. elseif k == 'x' then
  1449. kfblow()
  1450. elseif k == 'c' then
  1451. chold = true
  1452. kfupper()
  1453. elseif k == 'v' then
  1454. vhold = true
  1455. kfgrab()
  1456. elseif k == 'g' then
  1457. kfbow()
  1458. elseif k == 'e' then
  1459. ehold = true
  1460. kfblock()
  1461. elseif k == 'q' then
  1462. qhold = true
  1463. -- if sprintt > 1 then
  1464. -- print("supurinto")
  1465. kfsprint()
  1466. -- end
  1467. -- sprintt = 20
  1468. end
  1469. end
  1470. end)
  1471.  
  1472. Mouse.KeyUp:connect(function(k)
  1473. k = k:lower()
  1474. if k == 'e' then
  1475. ehold = false
  1476. elseif k == 'v' then
  1477. vhold = false
  1478. elseif k == 'q' then
  1479. qhold = false
  1480. elseif k == 'z' then
  1481. zhold = false
  1482. elseif k == 'c' then
  1483. chold = false
  1484. end
  1485. end)
  1486.  
  1487. for i, v in pairs(chara:GetDescendants()) do
  1488. if v:IsA("BasePart") then
  1489. v.CanCollide = false
  1490. end
  1491. end
  1492.  
  1493. coroutine.wrap(function()
  1494. while 1 do
  1495. swait()
  1496. if doe <= 360 then
  1497. doe = doe + 2
  1498. else
  1499. doe = 0
  1500. end
  1501. end
  1502. end)()
  1503. while true do
  1504. swait()
  1505. for i, v in pairs(chara:GetChildren()) do
  1506. if v:IsA("Part") then
  1507. v.Material = "SmoothPlastic"
  1508. elseif v:IsA("Accessory") then
  1509. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1510. end
  1511. end
  1512. while true do
  1513. swait()
  1514. if sprintt >= 1 then
  1515. sprintt = sprintt - 1
  1516. end
  1517. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1518. velocity = RootPart.Velocity.y
  1519. sine = sine + change
  1520. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
  1521. if RootPart.Velocity.y > 1 and hit == nil then
  1522. Anim = "Jump"
  1523. if attack == false then
  1524. PlayAnimationFromTable({
  1525. CFrame.new(0, 0.0999999046, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1526. CFrame.new(0, 1.48263168, -0.0984806865, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1527. CFrame.new(0.985772133, 0.399999619, -0.61283654, 0.76604414, 0.642788053, 0, 0, 0, -1, -0.642788053, 0.76604414, 0),
  1528. 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),
  1529. CFrame.new(0.5, -1.29999959, 0.299999923, 1, 0, 0, 0, 0.499998987, 0.866025984, 0, -0.866025984, 0.499998987),
  1530. CFrame.new(-0.5, -1.29999959, 0.299999923, 1, 0, 0, 0, 0.499998987, 0.866025984, 0, -0.866025984, 0.499998987),
  1531. }, .3, false)
  1532. end
  1533. elseif RootPart.Velocity.y < -1 and hit == nil then
  1534. Anim = "Fall"
  1535. if attack == false then
  1536. PlayAnimationFromTable({
  1537. CFrame.new(0, 0.0999999046, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1538. CFrame.new(0, 1.44842887, -0.192449093, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1539. CFrame.new(0.985773325, 0.399999619, -0.61283505, 0.76604414, 0.642788053, 0, 0, 0, -1, -0.642788053, 0.76604414, 0),
  1540. 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),
  1541. CFrame.new(0.500001907, -1.41961551, 8.94069672e-07, 1, 0, 0, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388),
  1542. CFrame.new(-0.499990463, -2.09950018, -0.492020726, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),
  1543. }, .3, false)
  1544. end
  1545. elseif Torsovelocity < 1 and hit ~= nil then
  1546. Anim = "Idle"
  1547. if attack == false then
  1548. change = 1
  1549. PlayAnimationFromTable({
  1550. 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),
  1551. CFrame.new(0, 1.49999809, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  1552. CFrame.new(0.7839728, 0.499999523, -0.759808064, 0.499999493, 0.866025746, 0, 0, 0, -1, -0.866025746, 0.499999493, 0),
  1553. 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),
  1554. 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),
  1555. 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),
  1556. }, .3, false)
  1557. end
  1558. elseif Torsovelocity > 2 and hit ~= nil then
  1559. Anim = "Walk"
  1560. if attack == false then
  1561. PlayAnimationFromTable({
  1562. 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),
  1563. CFrame.new(-2.09923631e-14, 1.48262846, -0.0984891504, 1, -1.42108547e-14, 0, 0, 0.984807491, 0.173649743, 0, -0.173649758, 0.984807491),
  1564. 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),
  1565. 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),
  1566. 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),
  1567. 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),
  1568. }, .3, false)
  1569. end
  1570. end
  1571. if 0 < #Effects then
  1572. for e = 1, #Effects do
  1573. if Effects[e] ~= nil then
  1574. local Thing = Effects[e]
  1575. if Thing ~= nil then
  1576. local Part = Thing[1]
  1577. local Mode = Thing[2]
  1578. local Delay = Thing[3]
  1579. local IncX = Thing[4]
  1580. local IncY = Thing[5]
  1581. local IncZ = Thing[6]
  1582. if Thing[2] == "Shoot" then
  1583. local Look = Thing[1]
  1584. local move = 30
  1585. if Thing[8] == 3 then
  1586. move = 10
  1587. end
  1588. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  1589. if Thing[10] ~= nil then
  1590. da = pos
  1591. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1592. cfa = CFrame.new(Thing[4], pos)
  1593. tehCF = cfa:lerp(cf2, 0.2)
  1594. Thing[1] = tehCF.lookVector
  1595. end
  1596. local mag = (Thing[4] - pos).magnitude
  1597. 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)
  1598. if Thing[8] == 2 then
  1599. 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)
  1600. end
  1601. Thing[4] = Thing[4] + Look * move
  1602. Thing[3] = Thing[3] - 1
  1603. if 2 < Thing[5] then
  1604. Thing[5] = Thing[5] - 0.3
  1605. Thing[6] = Thing[6] - 0.3
  1606. end
  1607. if hit ~= nil then
  1608. Thing[3] = 0
  1609. if Thing[8] == 1 or Thing[8] == 3 then
  1610. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1611. else
  1612. if Thing[8] == 2 then
  1613. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1614. if (hit.Parent:FindFirstChildOfClass("Humanoid")) ~= nil or (hit.Parent.Parent:FindFirstChildOfClass("Humanoid")) ~= nil then
  1615. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1616. ref.Anchored = true
  1617. ref.CFrame = CFrame.new(pos)
  1618. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  1619. game:GetService("Debris"):AddItem(ref, 0.2)
  1620. 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)
  1621. 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)
  1622. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1623. end
  1624. end
  1625. end
  1626. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1627. ref.Anchored = true
  1628. ref.CFrame = CFrame.new(pos)
  1629. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1630. game:GetService("Debris"):AddItem(ref, 1)
  1631. end
  1632. if Thing[3] <= 0 then
  1633. table.remove(Effects, e)
  1634. end
  1635. end
  1636. do
  1637. do
  1638. if Thing[2] == "FireWave" then
  1639. if Thing[3] <= Thing[4] then
  1640. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1641. Thing[3] = Thing[3] + 1
  1642. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1643. else
  1644. Part.Parent = nil
  1645. table.remove(Effects, e)
  1646. end
  1647. end
  1648. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1649. if Thing[1].Transparency <= 1 then
  1650. if Thing[2] == "Block1" then
  1651. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1652. Mesh = Thing[7]
  1653. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1654. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1655. else
  1656. if Thing[2] == "Block2" then
  1657. Thing[1].CFrame = Thing[1].CFrame
  1658. Mesh = Thing[7]
  1659. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1660. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1661. else
  1662. if Thing[2] == "Fire" then
  1663. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1664. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1665. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1666. else
  1667. if Thing[2] == "Cylinder" then
  1668. Mesh = Thing[7]
  1669. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1670. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1671. else
  1672. if Thing[2] == "Blood" then
  1673. Mesh = Thing[7]
  1674. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1675. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1676. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1677. else
  1678. if Thing[2] == "Elec" then
  1679. Mesh = Thing[10]
  1680. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1681. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1682. else
  1683. if Thing[2] == "Disappear" then
  1684. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1685. else
  1686. if Thing[2] == "Shatter" then
  1687. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1688. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1689. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1690. Thing[6] = Thing[6] + Thing[5]
  1691. end
  1692. end
  1693. end
  1694. end
  1695. end
  1696. end
  1697. end
  1698. end
  1699. else
  1700. Part.Parent = nil
  1701. table.remove(Effects, e)
  1702. end
  1703. end
  1704. end
  1705. end
  1706. end
  1707. end
  1708. end
  1709. end
  1710. end
  1711. end
Add Comment
Please, Sign In to add comment