Advertisement
memberhero

lol

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