Advertisement
Guest User

Untitled

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