Advertisement
memberhero

lol

Mar 21st, 2018
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.83 KB | None | 0 0
  1. --[[ "God's Remnant" ~ Made by jarredbcv credit to Gold_God for amazing sword build. 2/22/2016]]--
  2. --Fixed by Trigectory/Canary
  3. ---Run This First Before Useing
  4. ---c/require(294261453)
  5. local asin = math.asin
  6. local atan2 = math.atan2
  7. local rad = math.rad
  8. local sin = math.sin
  9. local abs = math.abs
  10. local ceil = math.ceil
  11. local pi = math.pi
  12. local cf = CFrame.new
  13. local ca = CFrame.Angles
  14. local v3 = Vector3.new
  15. local player = game.Players.LocalPlayer
  16. local pchar = player.Character
  17. local torso = pchar.Torso
  18. local mouse = player:GetMouse()
  19. local anglespeed = 1
  20. local angle = 0
  21. local attack = false
  22. local combo = -1
  23. local smo = true
  24. local pob = nil
  25. local obf = false
  26. local col = 0
  27. local stfobl = nil
  28. local mov = false
  29. print("Fixed for voids by Canary/Trigectory")
  30. mo = game.ReplicatedStorage['Sword']:Clone()
  31. game.ReplicatedStorage['Gauntlet']:Clone().Parent=mo
  32. local a = game.ReplicatedStorage['Gauntlet']:Clone()
  33. a.Name="Gauntlet2"
  34. a.Parent=mo
  35. mo.Parent=pchar
  36. wait(1)
  37. mo = game.ReplicatedStorage['Sword']:Clone()
  38. game.ReplicatedStorage['Gauntlet']:Clone().Parent=mo
  39. local a = game.ReplicatedStorage['Gauntlet']:Clone()
  40. a.Name="Gauntlet2"
  41. a.Parent=mo
  42. mo.Parent=pchar
  43. Part = function(x,y,z,color,tr,cc,an,parent)
  44. local p = Instance.new('Part',parent or Weapon)
  45. p.formFactor = 'Custom'
  46. p.Size = Vector3.new(x,y,z)
  47. p.BrickColor = BrickColor.new(color)
  48. p.CanCollide = cc
  49. p.Transparency = tr
  50. p.Anchored = an
  51. p.TopSurface,p.BottomSurface = 0,0
  52. p.Locked=true
  53. p:BreakJoints()
  54. return p
  55. end
  56.  
  57. wPart = function(x,y,z,color,tr,cc,an,parent)
  58. local wp = Instance.new('WedgePart',parent or Weapon)
  59. wp.formFactor = 'Custom'
  60. wp.Size = Vector3.new(x,y,z)
  61. wp.BrickColor = BrickColor.new(color)
  62. wp.CanCollide = cc
  63. wp.Transparency = tr
  64. wp.Anchored = an
  65. wp.TopSurface,wp.BottomSurface = 0,0
  66. return wp
  67. end
  68.  
  69. local function CFrameFromTopBack(at, top, back)
  70. local right = top:Cross(back)
  71. return CFrame.new(at.x, at.y, at.z,
  72. right.x, top.x, back.x,
  73. right.y, top.y, back.y,
  74. right.z, top.z, back.z)
  75. end
  76.  
  77. function Triangle(a, b, c)
  78. local edg1 = (c-a):Dot((b-a).unit)
  79. local edg2 = (a-b):Dot((c-b).unit)
  80. local edg3 = (b-c):Dot((a-c).unit)
  81. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  82. a, b, c = a, b, c
  83. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  84. a, b, c = b, c, a
  85. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  86. a, b, c = c, a, b
  87. else
  88. print("unreachable") -- not good
  89. end
  90. local len1 = (c-a):Dot((b-a).unit)
  91. local len2 = (b-a).magnitude - len1
  92. local width = (a + (b-a).unit*len1 - c).magnitude
  93. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  94. local list = {}
  95. if len1 > 0.01 then
  96. local w1 = wPart(0,0,0,'White',0.5,false,true,pchar)
  97. local sz = Vector3.new(0.2, width, len1)
  98. w1.Size = sz
  99. local sp = Mesh(w1,2,0,0,0)
  100. sp.MeshType='Wedge'
  101. sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
  102. w1:BreakJoints()
  103. w1.Anchored = true
  104. w1.Transparency = 0.7
  105. Spawn(function()
  106. for i=0,1,0.1 do
  107. wait()
  108. w1.Transparency=w1.Transparency+0.03
  109. end
  110. end)
  111. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  112. table.insert(list,w1)
  113. end
  114. if len2 > 0.01 then
  115. local w2 = wPart(0,0,0,'White',0.5,false,true,pchar)
  116. local sz = Vector3.new(0.2, width, len2)
  117. w2.Size = sz
  118. local sp = Mesh(w2,2,0,0,0)
  119. sp.MeshType='Wedge'
  120. sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
  121. w2:BreakJoints()
  122. w2.Anchored = true
  123. w2.Transparency = 0.7
  124. Spawn(function()
  125. for i=0,1,0.1 do
  126. wait()
  127. w2.Transparency=w2.Transparency+0.03
  128. end
  129. end)
  130. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  131. table.insert(list,w2)
  132. end
  133. return unpack(list)
  134. end
  135.  
  136. local function QuaternionFromCFrame(cf) local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace) local recip = 0.5/s return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 else local i = 0 if m11 > m00 then i = 1 end if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1) local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip elseif i == 1 then local s = math.sqrt(m11-m22-m00+1) local recip = 0.5/s return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip elseif i == 2 then local s = math.sqrt(m22-m00-m11+1) local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip end end end
  137. local function QuaternionToCFrame(px, py, pz, x, y, z, w) local xs, ys, zs = x + x, y + y, z + z local wx, wy, wz = w*xs, w*ys, w*zs local xx = x*xs local xy = x*ys local xz = x*zs local yy = y*ys local yz = y*zs local zz = z*zs return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) end
  138. local function QuaternionSlerp(a, b, t) local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] local startInterp, finishInterp; if cosTheta >= 0.0001 then if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((1-t)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = 1-t finishInterp = t end else if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((t-1)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = t-1 finishInterp = t end end return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp end
  139. function clerp(a,b,t)
  140. local qa = {QuaternionFromCFrame(a)}
  141. local qb = {QuaternionFromCFrame(b)}
  142. local ax, ay, az = a.x, a.y, a.z
  143. local bx, by, bz = b.x, b.y, b.z
  144. local _t = 1-t
  145. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  146. end
  147.  
  148. function camshake(waitv,shake,rate,amount)
  149. --[[ local Camera = game:GetService("Workspace").CurrentCamera
  150. local CoordinateFrame = Camera.CoordinateFrame
  151. local Focus = Camera.Focus
  152. spawn(function()
  153. for i=1,amount do
  154. local CameraRotation = Camera.CoordinateFrame - Camera.CoordinateFrame.p
  155. local CameraScroll = (CoordinateFrame.p - Focus.p).magnitude
  156. local NewCFrame = CFrame.new(Camera.Focus.p) * CameraRotation * CFrame.fromEulerAnglesXYZ((math.random(-shake, shake) * rate), (math.random(-shake, shake) * rate), 0)
  157. CoordinateFrame = NewCFrame * CFrame.new(0, 0, CameraScroll)
  158. Camera.CoordinateFrame = CoordinateFrame
  159. wait(waitv)
  160. end
  161. end)]]
  162. end
  163.  
  164. function mgblock(pa,cfr,tm,col1,col2,sz,wa)
  165. local cols={col1,col2}
  166. Spawn(function()
  167. for i=1,tm do
  168. local a= Part(1,1,1,cols[math.random(1,2)],0,false,true,pchar)
  169. curre=a
  170. v1,v2,v3=sz.x,sz.y,sz.z
  171. local m= Mesh(a,3,v1,v2,v3)
  172. a.CFrame=pa.CFrame*cfr*CFrame.Angles(math.random(),math.random(),math.random())
  173. Spawn(function()
  174. while wait() do
  175. if a.Transparency >= 1 then a:Destroy() break end
  176. m.Scale=m.Scale-Vector3.new(.1,0.1,0.1)
  177. a.CFrame=a.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))-Vector3.new(0,0.1,0)
  178. a.Transparency=a.Transparency+0.05
  179. end
  180. end)
  181. wait(wa)
  182. end
  183. end)
  184. return curre
  185. end
  186.  
  187. function trail(p,t,h)
  188. Spawn(function()
  189. local blcf = p.CFrame
  190. local scfr = blcf
  191. for i=1,t do
  192. local blcf = p.CFrame
  193. if scfr and (p.Position-scfr.p).magnitude > .1 then
  194. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  195. if a then game.Debris:AddItem(a,1) end
  196. if b then game.Debris:AddItem(b,1) end
  197. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  198. if a then game.Debris:AddItem(a,1) end
  199. if b then game.Debris:AddItem(b,1) end
  200. scfr = blcf
  201. elseif not scfr then
  202. scfr = blcf
  203. end
  204. game:service'RunService'.RenderStepped:wait()
  205. end
  206. scfr=nil
  207. end)
  208. end
  209.  
  210. function cloneefx()
  211. for _,v in pairs(pchar:GetChildren()) do
  212. if v.ClassName=="Part" then
  213. local efx=v:Clone()
  214. efx.CanCollide=true
  215. efx.Anchored=true
  216. efx.Parent=workspace
  217. efx.BrickColor=BrickColor.new("Really black")
  218. efx:BreakJoints()
  219. Spawn(function()
  220. for i=1,10 do wait(.05)
  221. efx.Transparency=efx.Transparency+.1
  222. end
  223. efx:Destroy()
  224. end)
  225. end
  226. end
  227. end
  228.  
  229. so = function(id,par,lo,pi,tm)
  230. Spawn(function()
  231. local s = Instance.new("Sound",par)
  232. s.Looped=lo
  233. s.Pitch=pi
  234. s.SoundId = "http://roblox.com/asset/?id="..id
  235. wait() -- tnx anti
  236. s:play()
  237. s.Volume=.8
  238. game.Debris:AddItem(s,tm)
  239. end)
  240. return s
  241. end
  242.  
  243. function posfix(nom)
  244. Spawn(function()
  245. local bg=Instance.new("BodyGyro",pchar.Torso)
  246. bg.maxTorque=Vector3.new(0,math.huge,0)
  247. bg.P=10000
  248. bg.D=100
  249. bg.cframe=workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(0,nom,0)
  250. wait(.5)
  251. bg:Destroy()
  252. end)
  253. end
  254.  
  255. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  256. local w = Instance.new('Motor',par or p0)
  257. w.Part0 = p0
  258. w.Part1 = p1
  259. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  260. return w
  261. end
  262.  
  263. Mesh = function(par,num,x,y,z)
  264. local msh = _
  265. if num == 1 then
  266. msh = Instance.new("CylinderMesh",par)
  267. elseif num == 2 then
  268. msh = Instance.new("SpecialMesh",par)
  269. msh.MeshType = 3
  270. elseif num == 3 then
  271. msh = Instance.new("BlockMesh",par)
  272. elseif num == 4 then
  273. msh = Instance.new("SpecialMesh",par)
  274. msh.MeshType = "Torso"
  275. elseif type(num) == 'string' then
  276. msh = Instance.new("SpecialMesh",par)
  277. msh.MeshId = num
  278. end
  279. msh.Scale = Vector3.new(x,y,z)
  280. return msh
  281. end
  282.  
  283. local function getAngles(cf)
  284. local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  285. return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
  286. end
  287.  
  288. function explosion(col1,col2,cfr,sz,rng,dmg)
  289. local a= Part(1,1,1,col1,.5,false,true,pchar)
  290. local a2= Part(1,1,1,col2,.5,false,true,pchar)
  291. local a3= Part(1,1,1,col2,.5,false,true,pchar)
  292. v1,v2,v3=sz.x,sz.y,sz.z
  293. local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3)
  294. local m2= Mesh(a2,3,v1/3,v2/3,v3/3)
  295. local m3= Mesh(a3,3,v1/3,v2/3,v3/3)
  296. a.CFrame=cfr
  297. a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  298. a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  299. for i,v in pairs(workspace:children()) do
  300. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  301. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  302. if (v:findFirstChild("Torso").Position - a.Position).magnitude < rng and v.Name ~= pchar.Name then
  303. v.Humanoid.Health=v.Humanoid.Health-dmg
  304. v.Torso.Velocity=Vector3.new(math.random(-dmg*2,dmg*2),dmg*3,math.random(-dmg*2,dmg*2))
  305. end
  306. end
  307. end
  308. end
  309. Spawn(function()
  310. while true do
  311. wait()
  312. if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
  313. m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
  314. m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
  315. m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
  316. a2.CFrame=a2.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))
  317. a3.CFrame=a3.CFrame*CFrame.Angles(-math.rad(2),-math.rad(2),-math.rad(2))
  318. a.Transparency=a.Transparency+0.05
  319. a2.Transparency=a2.Transparency+0.05
  320. a3.Transparency=a3.Transparency+0.05
  321. end
  322. end)
  323. end
  324.  
  325. function tmdmg(tm,pa,dmg,rng)
  326. Spawn(function()
  327. for i=1,tm do wait()
  328. for i,v in pairs(workspace:children()) do
  329. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  330. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  331. if (v:findFirstChild("Torso").Position - pa.Position).magnitude < rng and v.Name ~= pchar.Name then
  332. v.Humanoid.Health=v.Humanoid.Health-dmg
  333. so("201858024",v.Torso,false,math.random(7,11)/10,4)
  334. end
  335. end
  336. end
  337. end
  338. end
  339. end)
  340. end
  341.  
  342.  
  343. local function getAngles(cf)
  344. local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  345. return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
  346. end
  347.  
  348. Lerp = {
  349. Number = function(C1,C2,inc)
  350. return C1 + (C2 - C1) * inc
  351. end;
  352. CFrame = function(a,b,m)
  353. return a:lerp(b,m) -- i srs dnt kno u could do this (tnx anti)
  354. end;
  355. }
  356.  
  357.  
  358.  
  359. local function genWeld(a,b)
  360. local w = Instance.new("Weld",a)
  361. w.Part0 = a
  362. w.Part1 = b
  363. return w
  364. end
  365.  
  366. local function newLerpTo(weld)
  367. return {
  368. Weld = weld;
  369. To = weld.C0;
  370. Cache = weld.C0;
  371. Speed = 0.2;
  372. }
  373. end
  374.  
  375. function SetAnimData(IF_DATA_IS_USED)
  376. Used = IF_DATA_IS_USED
  377. end
  378. function CheckAnimData(ANIM_TAB,DO_ANIM)
  379. anglespeed=Anims[ANIM_TAB][DO_ANIM].speed or 1
  380. if Used.Head == true then
  381. LerpTo.Neck.To = LerpTo.Neck.Cache * Anims[ANIM_TAB][DO_ANIM].Head
  382. end
  383. if Used.RightArm == true then
  384. LerpTo.RightArm.To = LerpTo.RightArm.Cache * Anims[ANIM_TAB][DO_ANIM].RightArm
  385. end
  386. if Used.LeftArm == true then
  387. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * Anims[ANIM_TAB][DO_ANIM].LeftArm
  388. end
  389. if Used.RightLeg == true then
  390. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * Anims[ANIM_TAB][DO_ANIM].RightLeg
  391. end
  392. if Used.LeftLeg == true then
  393. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * Anims[ANIM_TAB][DO_ANIM].LeftLeg
  394. end
  395. if Used.Torso == true then
  396. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * Anims[ANIM_TAB][DO_ANIM].Torso
  397. end
  398. if Used.Handle == true then
  399. LerpTo.hnd.To = LerpTo.hnd.Cache * Anims[ANIM_TAB][DO_ANIM].hnd
  400. end
  401. end
  402.  
  403. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency)
  404. local magz = (Start - End).magnitude
  405. local curpos = Start
  406. local trz = {-Offset,Offset}
  407. Spawn(function()
  408. for i=1,Times do
  409. local li = Instance.new("Part",pchar)
  410. li.TopSurface =0
  411. li.BottomSurface = 0
  412. li.Anchored = true
  413. li.Transparency = Transparency or 0.4
  414. li.BrickColor = Color
  415. li.formFactor = "Custom"
  416. li.Material="Neon"
  417. li.CanCollide = false
  418. li.Size = Vector3.new(1,1,1)
  419. Instance.new('BlockMesh',li).Scale = Vector3.new(Thickness,Thickness,magz/Times)
  420. local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  421. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  422. if Times == i then
  423. local magz2 = (curpos - End).magnitude
  424. li.Mesh.Scale = Vector3.new(Thickness,Thickness,magz2)
  425. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  426. else
  427. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  428. end
  429. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  430. Spawn(function() for i=1,10 do
  431. li.Transparency = li.Transparency+.1
  432. wait()
  433. end li:Destroy() end)
  434. wait()
  435. end
  436. end)
  437. end
  438.  
  439. function UpdateAnims()
  440. Anims = {
  441. ["Idle"] = {
  442. ["Stance"] = {
  443. speed=.25,
  444. Head = CFrame.Angles(sin(angle)*0.01,0,0),
  445. RightArm = CFrame.Angles(sin(angle)*0.1,0,0),
  446. LeftArm = CFrame.Angles(-sin(angle)*0.1,0,0),
  447. RightLeg = CFrame.Angles(sin(angle)*0.1,0,0),
  448. LeftLeg = CFrame.Angles(-sin(angle)*0.1,0,0),
  449. Torso = CFrame.Angles(0,0,0),
  450. hnd = CFrame.Angles(0,0,0)
  451. },
  452. ["Walk"] = {
  453. speed=2,
  454. Head = CFrame.Angles(0,0,sin(angle)*0.05),
  455. RightArm = CFrame.Angles(-sin(angle)*1,0,0),
  456. LeftArm = CFrame.Angles(sin(angle)*1,0,0),
  457. RightLeg = CFrame.Angles(sin(angle)*1,0,0),
  458. LeftLeg = CFrame.Angles(-sin(angle)*1,0,0),
  459. Torso = CFrame.Angles(0,0,0),
  460. hnd = CFrame.Angles(0,0,0)
  461. },
  462. ["Jump"] = {
  463. speed=2,
  464. Head = CFrame.Angles(0,0,0),
  465. RightArm = CFrame.Angles(rad(-20),0,0),
  466. LeftArm = CFrame.Angles(rad(-20),0,0),
  467. RightLeg = CFrame.new(0,.5,-.5)*CFrame.Angles(rad(-20),0,0),
  468. LeftLeg = CFrame.Angles(0,0,0),
  469. Torso = CFrame.Angles(rad(10),0,0),
  470. hnd = CFrame.Angles(0,0,0)
  471. }
  472. },
  473. ["Holding"] = {
  474. ["Stance"] = {
  475. speed=.25,
  476. Head = CFrame.Angles(sin(angle)*0.01,-rad(60)-abs(sin(angle))*0.05,0),
  477. RightArm = CFrame.Angles(rad(30)-sin(angle)*0.05,rad(80),0)*CFrame.new(-.5,-.2,.4),
  478. LeftArm = CFrame.Angles(sin(angle)*0.05,0,-rad(10)-abs(sin(angle))*0.05),
  479. RightLeg = CFrame.Angles(sin(angle)*0.05,0,0),
  480. LeftLeg = CFrame.Angles(-sin(angle)*0.05,0,0),
  481. Torso = CFrame.Angles(0,0,rad(60))*CFrame.new(0,-abs(sin(angle))*0.05,0),
  482. hnd = CFrame.Angles(0,0,0)
  483. },
  484. ["Walk"] = {
  485. speed=2.1,
  486. Head = CFrame.Angles(0,0,0),
  487. RightArm = CFrame.Angles(rad(50)-sin(angle)*0.05,rad(10),-rad(10)),
  488. LeftArm = CFrame.Angles(sin(angle)*1,0,0),
  489. RightLeg = CFrame.Angles(sin(angle)*1,0,0),
  490. LeftLeg = CFrame.Angles(-sin(angle)*1,0,0),
  491. Torso = CFrame.Angles(0,0,0),
  492. hnd = CFrame.Angles(-rad(60),0,0)*CFrame.new(0.5,0,0)
  493. },
  494. ["Jump"] = {
  495. speed=2,
  496. Head = CFrame.Angles(0,0,0),
  497. RightArm = CFrame.Angles(0,0,0),
  498. LeftArm = CFrame.Angles(rad(-20),0,0),
  499. RightLeg = CFrame.new(0,.5,-.5)*CFrame.Angles(rad(-20),0,0),
  500. LeftLeg = CFrame.Angles(0,0,0),
  501. Torso = CFrame.Angles(rad(10),0,0),
  502. hnd = CFrame.Angles(0,0,0)
  503. }
  504. }
  505. }
  506. end
  507.  
  508. local Neck = genWeld(pchar.Torso,pchar.Head)
  509. Neck.C0 = CFrame.new(0,1,0)
  510. Neck.C1 = CFrame.new(0,-0.5,0)
  511. local LeftShoulder = genWeld(pchar.Torso,pchar['Left Arm'])
  512. LeftShoulder.C0 = CFrame.new(-1,0.5,0)
  513. LeftShoulder.C1 = CFrame.new(0.5,0.5,0)
  514. local RightShoulder = genWeld(pchar.Torso,pchar['Right Arm'])
  515. RightShoulder.C0 = CFrame.new(1,0.5,0)
  516. RightShoulder.C1 = CFrame.new(-0.5,0.5,0)
  517. local LeftHip = genWeld(pchar.Torso,pchar['Left Leg'])
  518. LeftHip.C0 = CFrame.new(-1,-1,0)
  519. LeftHip.C1 = CFrame.new(-0.5,1,0)
  520. local RightHip = genWeld(pchar.Torso,pchar['Right Leg'])
  521. RightHip.C0 = CFrame.new(1,-1,0)
  522. RightHip.C1 = CFrame.new(0.5,1,0)
  523. local RootJoint = genWeld(pchar.HumanoidRootPart,pchar.Torso)
  524. RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  525. RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  526. local mainp = mo.Handle
  527. local mwl = Weld(mainp,pchar['Right Arm'],0,-1,0,-pi/2,0,0,mo)
  528. local g1 = Weld(mo.Gauntlet.Arm,pchar['Right Arm'],0,0,0,0,0,0,mo)
  529. local g2 = Weld(mo.Gauntlet2.Arm,pchar['Left Arm'],0,0,0,0,0,0,mo)
  530. local blade = mo.blade
  531.  
  532.  
  533. LerpTo = {
  534. Neck = newLerpTo(Neck);
  535. LeftArm = newLerpTo(LeftShoulder);
  536. RightArm = newLerpTo(RightShoulder);
  537. LeftLeg = newLerpTo(LeftHip);
  538. RightLeg = newLerpTo(RightHip);
  539. RootJoint = newLerpTo(RootJoint);
  540. hnd = newLerpTo(mwl);
  541. }
  542.  
  543. mwl.Part1=pchar['Torso']
  544. mwl.C1=CFrame.new(-1,.5,-2)*CFrame.Angles(rad(130),-pi/1,0)
  545. mouse.KeyDown:connect(function(ke)
  546. if attack==true then return end
  547. key=ke:lower()
  548. if key=="f" and obf==false then
  549. eq = not eq
  550. if eq then
  551. SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  552. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),-rad(20),-rad(70))*CFrame.new(0,-1,0)
  553. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
  554. wait(.01)
  555. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(120))
  556. mwl.Part1=pchar['Right Arm']
  557. wait(.2)
  558. Spawn(function()
  559. wait(.025)
  560. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(90))
  561. wait(.025)
  562. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(60))
  563. wait(.025)
  564. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(30))
  565. wait(.025)
  566. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,0)
  567. end)
  568. CurrentActiveAnim="Holding"
  569. LerpTo.hnd.To = LerpTo.hnd.Cache
  570. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true,Handle=true})
  571. blade.Material="Neon"
  572. for i=1,5 do wait()
  573. blade.Transparency = .5-i/10
  574. end
  575. else
  576. SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  577. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),-rad(20),-rad(70))*CFrame.new(0,-1,0)
  578. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
  579. wait(.01)
  580. LerpTo.hnd.To = LerpTo.hnd.Cache
  581. mwl.Part1=pchar['Torso']
  582. mwl.C1=CFrame.new(-1,.5,-2)*CFrame.Angles(rad(130),-pi/1,0)
  583. wait(.2)
  584. CurrentActiveAnim="Idle"
  585. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  586. for i=1,5 do wait()
  587. blade.Transparency = 0+i/10
  588. end
  589. blade.Material="Plastic"
  590. end
  591. elseif key=="c" and obf then
  592. attack=true
  593. for _,v in pairs(mo:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency+1 end end
  594. for _,v in pairs(mo.Gauntlet:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency+1 end end
  595. for _,v in pairs(mo.Gauntlet2:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency+1 end end
  596. for _,v in pairs(pchar:GetChildren()) do if v.ClassName=="Hat" then v.Handle.Transparency=v.Handle.Transparency+1 end end
  597. pchar.Torso.Transparency=1
  598. pchar["Right Arm"].Transparency=1
  599. pchar["Left Arm"].Transparency=1
  600. pchar["Right Leg"].Transparency=1
  601. pchar["Left Leg"].Transparency=1
  602. pchar.Head.Transparency=1
  603. so('153092334',pchar,false,1)
  604. Lightning(pchar.Torso.Position+Vector3.new(0,.5,0),pob.Position,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Bright yellow',.1)
  605. wait(.3)
  606. pchar.Torso.CFrame=pob.CFrame*CFrame.new(math.random(5,7),-3,math.random(5,7))
  607. for _,v in pairs(mo:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency-1 end end
  608. for _,v in pairs(mo.Gauntlet:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency-1 end end
  609. for _,v in pairs(mo.Gauntlet2:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="UnionOperation" then v.Transparency=v.Transparency-1 end end
  610. for _,v in pairs(pchar:GetChildren()) do if v.ClassName=="Hat" then v.Handle.Transparency=v.Handle.Transparency-1 end end
  611. pchar.Torso.Transparency=0
  612. pchar["Right Arm"].Transparency=0
  613. pchar["Left Arm"].Transparency=0
  614. pchar["Right Leg"].Transparency=0
  615. pchar["Left Leg"].Transparency=0
  616. pchar.Head.Transparency=0
  617. so('161006033',pchar,false,.9)
  618. local a= Part(.2,.2,.2,"White",0.5,false,true,pchar)
  619. a.CFrame=pchar.Torso.CFrame*CFrame.new(0,-2,0)
  620. local m= Mesh(a,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  621. Spawn(function() for i=1,12 do wait()m.Scale=m.Scale+Vector3.new(.2,0,.2) a.CFrame=a.CFrame*CFrame.Angles(0,rad(i+i*2),0) a.Transparency=a.Transparency+.04 end a:Destroy() end)
  622. for i=1, 10 do
  623. local p= Part(math.random(2,7)/4,math.random(2,7)/4,math.random(2,7)/4,"White",0,false,false,mo)
  624. p.CFrame=CFrame.new(torso.CFrame.x+math.random(-3,3),torso.CFrame.y-1,torso.CFrame.z+math.random(-3,3))*CFrame.Angles(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30)*CFrame.Angles(pi/2,0,0)
  625. p.Velocity=Vector3.new(math.random(-20,20),math.random(5,30),math.random(-20,20))
  626. game.Debris:AddItem(p,2)
  627. Spawn(function()
  628. for i=1,10 do wait(.01)
  629. p.Transparency=p.Transparency+.1
  630. end
  631. end)
  632. end
  633. attack=false
  634. elseif key=="x" and obf then
  635. attack=true
  636. so('228343252',pchar,false,1)
  637. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false,Handle=false})
  638. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80),0,-rad(40))
  639. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(80),0,rad(40))
  640. LerpTo.Neck.To = LerpTo.Neck.Cache
  641. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache
  642. bg = Instance.new("BodyGyro",torso)
  643. bg.P = 20e+003
  644. bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  645. bg.cframe = CFrame.new(torso.Position,Vector3.new(mouse.Hit.p.x,torso.CFrame.p.y,mouse.Hit.p.z))
  646. mov=true
  647. elseif key=="z" and obf then
  648. attack=true
  649. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false,Handle=false})
  650. local bgs = Instance.new("BodyGyro",torso)
  651. bgs.P = 20e+003
  652. bgs.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  653. bgs.cframe = CFrame.new(torso.Position,Vector3.new(pob.CFrame.p.x,torso.CFrame.p.y,pob.CFrame.p.z))
  654. game.Debris:AddItem(bgs,.2)
  655. so('235097661',pchar,false,1)
  656. mgblock(pchar["Left Arm"],CFrame.new(0,-1.5,0),5,"Bright yellow","White",Vector3.new(1.5,1.5,1.5),.1)
  657. mgblock(pchar["Right Arm"],CFrame.new(0,-1.5,0),5,"Bright yellow","White",Vector3.new(1.5,1.5,1.5),.1)
  658. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),0,0)
  659. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(70),0,0)
  660. wait(.2)
  661. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(100),0,rad(30))
  662. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(100),0,-rad(30))
  663. wait(.2)
  664. obf = false
  665. so('231917744',pchar,false,1)
  666. explosion("Bright yellow","Really black",pob.CFrame,Vector3.new(20,20,20),25,30)
  667. Spawn(function()
  668. for i=1,3 do
  669. for i=1,3 do
  670. mgblock(pob,CFrame.new(math.random(-3,3),math.random(-3,3),math.random(-3,3)),2,'Bright yellow','Really black',Vector3.new(1,1,1),0)
  671. end
  672. local pa= Part(1,1,1,'Bright yellow',0,false,true,pchar)
  673. pa.Reflectance=1
  674. pa.CFrame=pob.CFrame*CFrame.Angles(math.random(),math.random(),math.random())
  675. local ms=Mesh(pa,'http://www.roblox.com/asset/?id=3270017',5,5,.02)
  676. Spawn(function()
  677. for i=1,20 do wait()
  678. pa.Reflectance=pa.Reflectance-.05
  679. pa.Transparency=pa.Transparency+.05
  680. ms.Scale=ms.Scale+Vector3.new(1,1,0)
  681. end
  682. pa:Destroy()
  683. end)
  684. end
  685. pob.Parent:Destroy()
  686. pob = nil
  687. end)
  688. SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  689. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),-rad(20),-rad(70))*CFrame.new(0,-1,0)
  690. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
  691. wait(.01)
  692. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(120))
  693. mwl.Part1=pchar['Right Arm']
  694. wait(.2)
  695. Spawn(function()
  696. wait(.025)
  697. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(90))
  698. wait(.025)
  699. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(60))
  700. wait(.025)
  701. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,rad(30))
  702. wait(.025)
  703. mwl.C1 =CFrame.new(0,-1,0)*CFrame.Angles(-pi/2,0,0)
  704. end)
  705. CurrentActiveAnim="Holding"
  706. LerpTo.hnd.To = LerpTo.hnd.Cache
  707. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true,Handle=true})
  708. blade.Material="Neon"
  709. for i=1,5 do wait()
  710. blade.Transparency = .5-i/10
  711. end
  712. attack=false
  713. elseif key=="e" and eq and obf == false then
  714. attack=true
  715. SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  716. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),-rad(20),-rad(70))*CFrame.new(0,-1,0)
  717. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
  718. wait(.01)
  719. LerpTo.hnd.To = LerpTo.hnd.Cache
  720. mwl.Part1=pchar['Torso']
  721. mwl.C1=CFrame.new(-1,.5,-2)*CFrame.Angles(rad(130),-pi/1,0)
  722. wait(.2)
  723. CurrentActiveAnim="Idle"
  724. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  725. Spawn(function()
  726. for i=1,5 do wait()
  727. blade.Transparency = 0+i/10
  728. end
  729. blade.Material="Plastic"
  730. end)
  731. so('233091183',pchar,false,.9)
  732. wait(.1)
  733. pchar.Humanoid.WalkSpeed=0
  734. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false})
  735. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
  736. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(30),0,rad(10))
  737. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(30),0,-rad(10))
  738. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,-1)
  739. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,1,-1)
  740. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-rad(50),0,0) * CFrame.new(0,0.5,0)
  741. wait(.1)
  742. local obli = game.ReplicatedStorage.obli:Clone()
  743. pob=obli.mainp
  744. obli.Parent=pchar
  745. obli.mainp.Anchored=true
  746. obli.mainp.CFrame=pchar.Torso.CFrame*CFrame.new(0,-3,-4)
  747. local a= Part(.2,.2,.2,"White",0.5,false,true,pchar)
  748. a.CFrame=pchar.Torso.CFrame*CFrame.new(0,-2,-4)
  749. local m= Mesh(a,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  750. Spawn(function() for i=1,12 do wait()obli.mainp.CFrame=obli.mainp.CFrame+Vector3.new(0,0.5,0) m.Scale=m.Scale+Vector3.new(.2,0,.2) a.CFrame=a.CFrame*CFrame.Angles(0,rad(i+i*2),0) a.Transparency=a.Transparency+.04 end stfobl = pob.CFrame a:Destroy() obf=true end)
  751. for i,v in pairs(workspace:children()) do
  752. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  753. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  754. if (v:findFirstChild("Torso").Position - pchar['Left Arm'].Position).magnitude < 10 and v.Name ~= pchar.Name then
  755. v.Humanoid.PlatformStand=true
  756. v.Torso.Velocity=Vector3.new(math.random(-50,50),20,math.random(-50,50))
  757. v.Humanoid:TakeDamage(20)
  758. Spawn(function()wait(.5) v.Humanoid.PlatformStand=false end)
  759. end
  760. end
  761. end
  762. end
  763. wait(.1)
  764. pchar.Humanoid.WalkSpeed=16
  765. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  766. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),0,rad(10))
  767. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(120),0,-rad(10))
  768. wait(.4)
  769. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  770. attack=false
  771. end
  772. end)
  773.  
  774. mouse.KeyUp:connect(function(ke)
  775. key=ke:lower()
  776. if key=="x" then
  777. stfobl=CFrame.new(mouse.Hit.p)*CFrame.new(0,5,0)
  778. mov=false
  779. so('200633455',pchar,false,.7)
  780. bg:Destroy()
  781. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  782. attack=false
  783. end
  784. end)
  785.  
  786. mouse.Button1Down:connect(function()
  787. if not eq or attack == true or obf then return end
  788. smo=false
  789. if combo==-1 then
  790. attack = true
  791. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false,Handle=false})
  792. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(120),0,rad(45))
  793. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(10))
  794. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(90))
  795. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(20),0)
  796. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(0,0,-rad(60))
  797. wait(.3)
  798. tmdmg(10,blade,5,4)
  799. so('231917871',pchar,false,1)
  800. camshake(0.05,50,0.001,5)
  801. trail(blade,10,4)
  802. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(10))
  803. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(30))
  804. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(0))
  805. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(0),0)
  806. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(rad(80),0,-rad(90))
  807. wait(.1)
  808. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(70))
  809. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(70),0)
  810. wait(.2)
  811. attack=false
  812. combo=0
  813. elseif combo==0 then
  814. attack=true
  815. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false,Handle=false})
  816. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(45))
  817. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),0,-rad(50))
  818. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(180))
  819. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0)
  820. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(0,0,rad(70))
  821. wait(.3)
  822. tmdmg(10,blade,5,4)
  823. so('231917871',pchar,false,.9)
  824. camshake(0.05,50,0.001,5)
  825. trail(blade,10,4)
  826. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80),0,-rad(50))
  827. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  828. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  829. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(rad(80),0,rad(90))
  830. wait(.1)
  831. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30))
  832. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0)
  833. wait(.2)
  834. attack=false
  835. combo=1
  836. elseif combo==1 then
  837. attack=true
  838. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(90),0)
  839. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(90))
  840. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(50))
  841. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80),0,-rad(45))
  842. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(rad(50),0,-rad(60))
  843. wait(.2)
  844. tmdmg(10,blade,5,4)
  845. so('231917871',pchar,false,.8)
  846. camshake(0.05,50,0.001,5)
  847. trail(blade,10,4)
  848. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(80),0,rad(50))
  849. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30))
  850. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0)
  851. LerpTo.hnd.To = CFrame.new(0,-1,0)*CFrame.Angles(rad(80),0,-rad(90))
  852. wait(.1)
  853. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  854. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  855. wait(.2)
  856. attack=false
  857. combo=2
  858. elseif combo==2 then
  859. attack=true
  860. so('231917871',pchar,false,.7)
  861. so('228343249',pchar,false,.8)
  862. LerpTo.hnd.To = LerpTo.hnd.Cache
  863. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,-rad(90))* CFrame.new(0.5,-0.5,0)
  864. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0)
  865. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
  866. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(30))
  867. posfix(-rad(90))
  868. for i,v in pairs(workspace:children()) do
  869. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  870. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  871. if (v:findFirstChild("Torso").Position - pchar['Left Arm'].Position).magnitude < 27 and v.Name ~= pchar.Name then
  872. local goto=v.Torso.Position+Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  873. Lightning(pchar['Left Arm'].Position,goto,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Bright yellow',.1)
  874. Lightning(pchar['Left Arm'].Position,goto,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Bright yellow',.1)
  875. Lightning(pchar['Left Arm'].Position,goto,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Bright yellow',.1)
  876. local bpos=Instance.new("BodyPosition",v.Torso)
  877. bpos.maxForce=Vector3.new(1e1000,1e1000,1e1000)
  878. bpos.position=pchar.Torso.Position
  879. game.Debris:AddItem(bpos,.3)
  880. Spawn(function()
  881. for i=1,2 do
  882. local oldpos=v.Torso.CFrame.p wait(.2)
  883. local newpos=v.Torso.CFrame.p
  884. local mag = (oldpos-newpos).magnitude
  885. local a= Part(.2,.2,.2,"Black",0.5,false,true,pchar)
  886. a.CFrame=CFrame.new(oldpos,newpos)*CFrame.new(0,0,-mag/2)*CFrame.Angles(0,pi/2,pi/2)
  887. local m= Mesh(a,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  888. Spawn(function() for i=1,5 do wait() m.Scale=m.Scale+Vector3.new(1,.2,1) a.Transparency=a.Transparency+.1 end a:Destroy() end)
  889. end
  890. end)
  891. end
  892. end
  893. end
  894. end
  895. wait(.3)
  896. combo=3
  897. attack=false
  898. elseif combo==3 then
  899. attack=true
  900. so('233856140',pchar,false,1.2)
  901. LerpTo.hnd.To = LerpTo.hnd.Cache * CFrame.Angles(rad(20),rad(40),0)
  902. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(120),0,rad(40))*CFrame.new(.2,-.3,0)
  903. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
  904. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0)
  905. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),0,-rad(40))*CFrame.new(-.2,-.3,0)
  906. wait(.3)
  907. so('231917871',pchar,false,.6)
  908. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false})
  909. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(20),0,-rad(40))* CFrame.new(-.2,-.25,0)
  910. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(20),0,rad(40))* CFrame.new(.2,-.25,0)
  911. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,-1)
  912. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,1,-1)
  913. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-rad(50),0,0) * CFrame.new(0,0.5,0)
  914. wait(.15)
  915. so('231917806',pchar,false,1.25)
  916. local a= Part(.2,.2,.2,"White",0.5,false,true,pchar)
  917. a.CFrame=pchar.Torso.CFrame*CFrame.new(0,-.2,0)
  918. local m= Mesh(a,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  919. Spawn(function() for i=1,12 do wait() m.Scale=m.Scale+Vector3.new(1,0,1) a.CFrame=a.CFrame*CFrame.Angles(0,rad(i+i*2),0) a.Transparency=a.Transparency+.04 end a:Destroy() end)
  920. for i,v in pairs(workspace:children()) do
  921. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  922. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  923. if (v:findFirstChild("Torso").Position - pchar['Left Arm'].Position).magnitude < 27 and v.Name ~= pchar.Name then
  924. v.Humanoid.PlatformStand=true
  925. v.Torso.Velocity=Vector3.new(math.random(-100,100),20,math.random(-100,100))
  926. v.Humanoid:TakeDamage(20)
  927. Spawn(function()wait(.5) v.Humanoid.PlatformStand=false end)
  928. end
  929. end
  930. end
  931. end
  932. wait(.2)
  933. combo=4
  934. attack=false
  935. end
  936. Spawn(function()
  937. wait(0.6)
  938. if attack==false then
  939. attack=true
  940. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true,Handle=true})
  941. smo=true
  942. wait(.2)
  943. attack=false
  944. combo=-1
  945. end
  946. end)
  947. end)
  948. ftimer=0
  949. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true,Handle=false})
  950. CurrentActiveAnim="Idle"
  951. game:service'RunService'.Stepped:connect(function()wait()
  952. ftimer=ftimer+.1
  953. Spawn(function()
  954. if obf and ftimer > 1 then
  955. mgblock(pob,CFrame.new(0,-3,0),2,"White","White",Vector3.new(0,0,0),.1)
  956. ftimer=0
  957. if mov then
  958. so('200633455',pchar,false,1.2)
  959. Lightning(pchar.Torso.Position+Vector3.new(0,.5,0),pob.Position,math.random(5,10),math.random(-2.5,2.5),BrickColor.new'Bright yellow',.1)
  960. end
  961. end
  962. end)
  963. if mov then
  964. bg.cframe = CFrame.new(torso.Position,Vector3.new(mouse.Hit.p.x,torso.CFrame.p.y,mouse.Hit.p.z))
  965. end
  966. col = col + 1.1
  967. if obf then
  968. if mov then
  969. pob.CFrame=clerp(pob.CFrame,CFrame.new(mouse.Hit.p)*CFrame.Angles(math.rad(math.sin((tick())*2)*10),math.rad(col),0)*CFrame.new(0,5+math.sin((tick())*1),0),.1)
  970. else
  971. pob.CFrame=clerp(pob.CFrame,stfobl*CFrame.Angles(math.rad(math.sin((tick())*2)*10),math.rad(col),0)*CFrame.new(0,1+math.sin((tick())*1),0),.1)
  972. end
  973. end
  974. UpdateAnims()
  975. for _,v in pairs(LerpTo) do
  976. v.Weld.C0 = Lerp.CFrame(v.Weld.C0,v.To,v.Speed)
  977. end
  978. angle = (angle % 100) + anglespeed/10
  979. if Vector3.new(0, torso.Velocity.y, 0).magnitude > 4 then
  980. CheckAnimData(CurrentActiveAnim,"Jump")
  981. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  982. CheckAnimData(CurrentActiveAnim,"Stance")
  983. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  984. CheckAnimData(CurrentActiveAnim,"Walk")
  985. end
  986. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement