Advertisement
Hoshi_star

Kong fu

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