Advertisement
SurfaceSwine1337

Gods Remnant

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