Advertisement
RobloxScripty

Untitled

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