Advertisement
lafur

Untitled

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