Advertisement
DracoKnightOfBlood

Untitled

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