Advertisement
SurfaceSwine1337

Despira

Jul 5th, 2017
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 70.49 KB | None | 0 0
  1. wait(.0000000000000000000001)
  2. local Player = game:GetService("Players").LocalPlayer
  3. local Character = Player.Character
  4. local Head = Character.Head
  5.  
  6. local Humanoid = Character.Humanoid
  7. Humanoid.MaxHealth = 3000000
  8. Humanoid.Health = 3000000
  9.  
  10. local asin = math.asin
  11. local atan2 = math.atan2
  12. local rad = math.rad
  13. local sin = math.sin
  14. local abs = math.abs
  15. local ceil = math.ceil
  16. local cos = math.cos
  17. local pi = math.pi
  18. local rclcount = 0
  19. local rcl = 0
  20. local rclcounttime = 50
  21. local rclcountspeed = 1
  22. local player = game.Players.LocalPlayer
  23. local pchar = player.Character
  24. local torso = pchar.Torso
  25. local mouse = player:GetMouse()
  26. local attack = false
  27. local combo = 0
  28. pchar.Archivable=true
  29. Cols={"Black","Really black","Royal purple","Alder","Magenta"}
  30. --//
  31. local W = Instance.new("BillboardGui", Character.Head)
  32. W.ExtentsOffset = Vector3.new(0,5,0)
  33. W.Adornee = Head
  34. W.AlwaysOnTop = true
  35. W.Enabled = true
  36. W.Size = UDim2.new(0, 200,0, 50)
  37.  
  38. local Wo = Instance.new("TextLabel", W)
  39. Wo.BackgroundTransparency = 1
  40. Wo.Font = "Garamond"
  41. Wo.Size = UDim2.new(0, 200,0, 50)
  42. Wo.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
  43. Wo.TextStrokeTransparency = 0
  44. Wo.TextColor3 = Color3.fromRGB(102, 51, 133)
  45. Wo.TextScaled = true
  46. Wo.Text = "Guardian"
  47.  
  48.  
  49. --//
  50.  
  51.  
  52. function stick(x, y)
  53. weld = Instance.new("Motor")
  54. weld.Name='mot'
  55. weld.Part0 = x
  56. weld.Part1 = y
  57. local HitPos = x.Position
  58. local CJ = CFrame.new(HitPos)
  59. local C0 = x.CFrame:inverse() *CJ
  60. local C1 = y.CFrame:inverse() * CJ
  61. weld.C0 = C0
  62. weld.C1 = C1
  63. weld.Parent = x
  64. end
  65.  
  66. do
  67. 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
  68. 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
  69. 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
  70.  
  71. function clerp(a,b,t)
  72. local qa = {QuaternionFromCFrame(a)}
  73. local qb = {QuaternionFromCFrame(b)}
  74. local ax, ay, az = a.x, a.y, a.z
  75. local bx, by, bz = b.x, b.y, b.z
  76.  
  77. local _t = 1-t
  78. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  79. end
  80. end
  81.  
  82. Part = function(x,y,z,color,tr,cc,an,parent)
  83. local p = Instance.new('Part',parent or Weapon)
  84. p.formFactor = 'Custom'
  85. p.Size = Vector3.new(x,y,z)
  86. p.BrickColor = BrickColor.new(color)
  87. p.CanCollide = cc
  88. p.Transparency = tr
  89. p.Anchored = an
  90. p.TopSurface,p.BottomSurface = 0,0
  91. p.Locked=true
  92. p:BreakJoints()
  93. return p
  94. end
  95.  
  96. wPart = function(x,y,z,color,tr,cc,an,parent)
  97. local wp = Instance.new('WedgePart',parent or Weapon)
  98. wp.formFactor = 'Custom'
  99. wp.Size = Vector3.new(x,y,z)
  100. wp.BrickColor = BrickColor.new(color)
  101. wp.CanCollide = cc
  102. wp.Transparency = tr
  103. wp.Anchored = an
  104. wp.TopSurface,wp.BottomSurface = 0,0
  105. return wp
  106. end
  107.  
  108. local function CFrameFromTopBack(at, top, back)
  109. local right = top:Cross(back)
  110. return CFrame.new(at.x, at.y, at.z,
  111. right.x, top.x, back.x,
  112. right.y, top.y, back.y,
  113. right.z, top.z, back.z)
  114. end
  115.  
  116. function Triangle(a, b, c)
  117. local edg1 = (c-a):Dot((b-a).unit)
  118. local edg2 = (a-b):Dot((c-b).unit)
  119. local edg3 = (b-c):Dot((a-c).unit)
  120. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  121. a, b, c = a, b, c
  122. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  123. a, b, c = b, c, a
  124. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  125. a, b, c = c, a, b
  126. else
  127. print("unreachable")
  128. end
  129. local len1 = (c-a):Dot((b-a).unit)
  130. local len2 = (b-a).magnitude - len1
  131. local width = (a + (b-a).unit*len1 - c).magnitude
  132. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  133. local list = {}
  134. if len1 > 0.01 then
  135. local w1 = wPart(0,0,0,'Really black',0.5,false,true,pchar)
  136. local sz = Vector3.new(0.2, width, len1)
  137. w1.Size = sz
  138. local sp = Mesh(w1,2,0,0,0)
  139. sp.MeshType='Wedge'
  140. sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
  141. w1:BreakJoints()
  142. w1.Anchored = true
  143. w1.Transparency = 0.7
  144. Spawn(function()
  145. for i=0,1,0.1 do
  146. wait()
  147. w1.Transparency=w1.Transparency+0.03
  148. end
  149. end)
  150. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  151. table.insert(list,w1)
  152. end
  153. if len2 > 0.01 then
  154. local w2 = wPart(0,0,0,'Really black',0.5,false,true,pchar)
  155. local sz = Vector3.new(0.2, width, len2)
  156. w2.Size = sz
  157. local sp = Mesh(w2,2,0,0,0)
  158. sp.MeshType='Wedge'
  159. sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
  160. w2:BreakJoints()
  161. w2.Anchored = true
  162. w2.Transparency = 0.7
  163. Spawn(function()
  164. for i=0,1,0.1 do
  165. wait()
  166. w2.Transparency=w2.Transparency+0.03
  167. end
  168. end)
  169. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  170. table.insert(list,w2)
  171. end
  172. return unpack(list)
  173. end
  174.  
  175. function mgblock(pa,cfr,tm,col1,col2,sz,wa)
  176. local cols={col1,col2}
  177. Spawn(function()
  178. for i=1,tm do
  179. local a= Part(1,1,1,cols[math.random(1,2)],0,false,true,pchar)
  180. curre=a
  181. v1,v2,v3=sz.x,sz.y,sz.z
  182. local m= Mesh(a,3,v1,v2,v3)
  183. a.CFrame=pa.CFrame*cfr*CFrame.Angles(math.random(),math.random(),math.random())
  184. Spawn(function()
  185. while wait() do
  186. if a.Transparency >= 1 then a:Destroy() break end
  187. m.Scale=m.Scale-Vector3.new(.1,0.1,0.1)
  188. a.CFrame=a.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.1,0)
  189. a.Transparency=a.Transparency+0.05
  190. end
  191. end)
  192. wait(wa)
  193. end
  194. end)
  195. return curre
  196. end
  197.  
  198. function trail(p,t,h)
  199. Spawn(function()
  200. local blcf = p.CFrame
  201. local scfr = blcf
  202. for i=1,t do
  203. local blcf = p.CFrame
  204. if scfr and (p.Position-scfr.p).magnitude > .1 then
  205. 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)
  206. if a then game.Debris:AddItem(a,1) end
  207. if b then game.Debris:AddItem(b,1) end
  208. 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)
  209. if a then game.Debris:AddItem(a,1) end
  210. if b then game.Debris:AddItem(b,1) end
  211. scfr = blcf
  212. elseif not scfr then
  213. scfr = blcf
  214. end
  215. game:service'RunService'.RenderStepped:wait()
  216. end
  217. scfr=nil
  218. end)
  219. end
  220.  
  221. function cloneefx()
  222. for _,v in pairs(pchar:GetChildren()) do
  223. if v.ClassName=="Part" then
  224. local efx=v:Clone()
  225. efx.CanCollide=true
  226. efx.Anchored=true
  227. efx.Parent=workspace
  228. efx.BrickColor=BrickColor.new("Really black")
  229. efx:BreakJoints()
  230. Spawn(function()
  231. for i=1,10 do wait(.05)
  232. efx.Transparency=efx.Transparency+.1
  233. end
  234. efx:Destroy()
  235. end)
  236. end
  237. end
  238. end
  239.  
  240. so = function(id,par,lo,pi,tm)
  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. s:play()
  246. s.Volume=10
  247. game.Debris:AddItem(s,tm)
  248. return s
  249. end
  250.  
  251. function posfix(nom)
  252. Spawn(function()
  253. local bg=Instance.new("BodyGyro",pchar.Torso)
  254. bg.maxTorque=Vector3.new(0,math.huge,0)
  255. bg.P=5000
  256. bg.D=100
  257. bg.cframe=workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(0,nom,0)
  258. wait(.5)
  259. bg:Destroy()
  260. end)
  261. end
  262.  
  263. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  264. local w = Instance.new('Motor',par or p0)
  265. w.Part0 = p0
  266. w.Part1 = p1
  267. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  268. return w
  269. end
  270.  
  271. Mesh = function(par,num,x,y,z)
  272. local msh = _
  273. if num == 1 then
  274. msh = Instance.new("CylinderMesh",par)
  275. elseif num == 2 then
  276. msh = Instance.new("SpecialMesh",par)
  277. msh.MeshType = 3
  278. elseif num == 3 then
  279. msh = Instance.new("BlockMesh",par)
  280. elseif num == 4 then
  281. msh = Instance.new("SpecialMesh",par)
  282. msh.MeshType = "Torso"
  283. elseif type(num) == 'string' then
  284. msh = Instance.new("SpecialMesh",par)
  285. msh.MeshId = num
  286. end
  287. msh.Scale = Vector3.new(x,y,z)
  288. return msh
  289. end
  290.  
  291. anglespeed = 1
  292.  
  293. angle = 0
  294.  
  295. local function getAngles(cf)
  296. local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  297. return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
  298. end
  299.  
  300. function explosion(col1,col2,cfr,sz,rng,dmg)
  301. local a= Part(1,1,1,col1,.5,false,true,pchar)
  302. local a2= Part(1,1,1,col2,.5,false,true,pchar)
  303. local a3= Part(1,1,1,col2,.5,false,true,pchar)
  304. v1,v2,v3=sz.x,sz.y,sz.z
  305. local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3)
  306. local m2= Mesh(a2,3,v1/3,v2/3,v3/3)
  307. local m3= Mesh(a3,3,v1/3,v2/3,v3/3)
  308. a.CFrame=cfr
  309. a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  310. a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  311. for i,v in pairs(workspace:children()) do
  312. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  313. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  314. if (v:findFirstChild("Torso").Position - a.Position).magnitude < rng and v.Name ~= pchar.Name then
  315. v.Humanoid.Health=v.Humanoid.Health-dmg
  316. v.Torso.Velocity=Vector3.new(math.random(-dmg*2,dmg*2),dmg*3,math.random(-dmg*2,dmg*2))
  317. end
  318. end
  319. end
  320. end
  321. Spawn(function()
  322. while true do
  323. wait()
  324. if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
  325. m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
  326. m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
  327. m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
  328. a2.CFrame=a2.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))
  329. a3.CFrame=a3.CFrame*CFrame.Angles(-math.rad(2),-math.rad(2),-math.rad(2))
  330. a.Transparency=a.Transparency+0.05
  331. a2.Transparency=a2.Transparency+0.05
  332. a3.Transparency=a3.Transparency+0.05
  333. end
  334. end)
  335. end
  336.  
  337. function tmdmg(tm,pa,dmg,rng)
  338. Spawn(function()
  339. for i=1,tm do wait()
  340. for i,v in pairs(workspace:children()) do
  341. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  342. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  343. if (v:findFirstChild("Torso").Position - pa.Position).magnitude < rng and v.Name ~= pchar.Name then
  344. v.Humanoid.Health=v.Humanoid.Health-dmg
  345. end
  346. end
  347. end
  348. end
  349. end
  350. end)
  351. end
  352.  
  353. Lerp = {
  354. Number = function(C1,C2,inc)
  355. return C1 + (C2 - C1) * inc
  356. end;
  357. CFrame = function(a,b,m)
  358. local c,d={a:components()},{b:components()}
  359. table.foreach(c,function(a,b)c[a]=c[a]+(d[a]-c[a])*m end)
  360. return CFrame.new(unpack(c))
  361. end;
  362. }
  363.  
  364. local function genWeld(a,b)
  365. local w = Instance.new("Weld",a)
  366. w.Part0 = a
  367. w.Part1 = b
  368. return w
  369. end
  370.  
  371. local Neck = genWeld(pchar.Torso,pchar.Head)
  372. Neck.C0 = CFrame.new(0,1,0)
  373. Neck.C1 = CFrame.new(0,-0.5,0)
  374. local LeftShoulder = genWeld(pchar.Torso,pchar['Left Arm'])
  375. LeftShoulder.C0 = CFrame.new(-1,0.5,0)
  376. LeftShoulder.C1 = CFrame.new(0.5,0.5,0)
  377. local RightShoulder = genWeld(pchar.Torso,pchar['Right Arm'])
  378. RightShoulder.C0 = CFrame.new(1,0.5,0)
  379. RightShoulder.C1 = CFrame.new(-0.5,0.5,0)
  380. local LeftHip = genWeld(pchar.Torso,pchar['Left Leg'])
  381. LeftHip.C0 = CFrame.new(-1,-1,0)
  382. LeftHip.C1 = CFrame.new(-0.5,1,0)
  383. local RightHip = genWeld(pchar.Torso,pchar['Right Leg'])
  384. RightHip.C0 = CFrame.new(1,-1,0)
  385. RightHip.C1 = CFrame.new(0.5,1,0)
  386. local RootJoint = genWeld(pchar.HumanoidRootPart,pchar.Torso)
  387. RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  388. RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  389.  
  390. local m = Instance.new("Model")
  391. m.Name = "Model"
  392. p1 = Instance.new("Part", m)
  393. p1.BrickColor = BrickColor.new("Royal purple")
  394. p1.FormFactor = Enum.FormFactor.Custom
  395. p1.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
  396. p1.CFrame = CFrame.new(-4.38250017, 5.90899992, 11.0679998, -3.24902021e-006, 9.58114477e-010, -0.999992907, -7.26728331e-006, -0.999994278, -8.0171958e-010, -0.999992251, 7.50569825e-006, 3.24877897e-006)
  397. p1.Anchored = true
  398. p1.CanCollide = false
  399. b1 = Instance.new("SpecialMesh", p1)
  400. b1.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  401. b1.TextureId = ""
  402. b1.MeshType = Enum.MeshType.FileMesh
  403. b1.Name = "Mesh"
  404. b1.Scale = Vector3.new(0.0900000036, 1.5, 0.200000003)
  405. p2 = Instance.new("Part", m)
  406. p2.BrickColor = BrickColor.new("Really black")
  407. p2.FormFactor = Enum.FormFactor.Custom
  408. p2.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
  409. p2.CFrame = CFrame.new(-4.78348494, 1.20046949, 11.0674896, 2.03024854e-007, 0.999994814, 2.68895456e-005, -6.45878536e-005, -2.68897929e-005, 0.999998271, 0.999994814, -2.04498548e-007, 6.45876353e-005)
  410. p2.Anchored = true
  411. p2.CanCollide = false
  412. b2 = Instance.new("SpecialMesh", p2)
  413. b2.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  414. b2.TextureId = ""
  415. b2.MeshType = Enum.MeshType.FileMesh
  416. b2.Name = "Mesh"
  417. b2.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001)
  418. p3 = Instance.new("Part", m)
  419. p3.BrickColor = BrickColor.new("Royal purple")
  420. p3.FormFactor = Enum.FormFactor.Custom
  421. p3.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
  422. p3.CFrame = CFrame.new(-4.78348494, 1.20046949, 11.0674896, 1.35292976e-005, 0.999994814, 2.33750106e-005, 0.499945492, -2.70082237e-005, 0.866054654, 0.866051197, -3.0624193e-008, -0.499943763)
  423. p3.Anchored = true
  424. p3.CanCollide = false
  425. b3 = Instance.new("SpecialMesh", p3)
  426. b3.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  427. b3.TextureId = ""
  428. b3.MeshType = Enum.MeshType.FileMesh
  429. b3.Name = "Mesh"
  430. b3.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001)
  431. p4 = Instance.new("Part", m)
  432. p4.BrickColor = BrickColor.new("Royal purple")
  433. p4.FormFactor = Enum.FormFactor.Custom
  434. p4.Size = Vector3.new(0.200000003, 0.200000003, 0.400000006)
  435. p4.CFrame = CFrame.new(-3.9834733, 1.20044112, 11.0675144, 1.90376704e-005, 0.999994814, 1.91206054e-005, 0.707060516, -2.69822558e-005, 0.707149625, 0.707147956, 5.72263765e-008, -0.707058728)
  436. p4.Anchored = true
  437. p4.CanCollide = false
  438. b4 = Instance.new("SpecialMesh", p4)
  439. b4.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  440. b4.TextureId = ""
  441. b4.MeshType = Enum.MeshType.FileMesh
  442. b4.Name = "Mesh"
  443. b4.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001)
  444. p5 = Instance.new("Part", m)
  445. p5.BrickColor = BrickColor.new("Really black")
  446. p5.FormFactor = Enum.FormFactor.Custom
  447. p5.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
  448. p5.CFrame = CFrame.new(-3.9834733, 1.20044112, 11.0675144, 2.03024854e-007, 0.999994814, 2.68895456e-005, -6.45878536e-005, -2.68897929e-005, 0.999998271, 0.999994814, -2.04498548e-007, 6.45876353e-005)
  449. p5.Anchored = true
  450. p5.CanCollide = false
  451. b5 = Instance.new("SpecialMesh", p5)
  452. b5.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  453. b5.TextureId = ""
  454. b5.MeshType = Enum.MeshType.FileMesh
  455. b5.Name = "Mesh"
  456. b5.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001)
  457. p6 = Instance.new("Part", m)
  458. p6.BrickColor = BrickColor.new("Royal purple")
  459. p6.Material = Enum.Material.SmoothPlastic
  460. p6.FormFactor = Enum.FormFactor.Custom
  461. p6.Size = Vector3.new(0.200000003, 0.600000143, 1)
  462. p6.CFrame = CFrame.new(-4.38349676, 0.700476408, 11.0674639, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007)
  463. p6.Anchored = true
  464. p6.CanCollide = false
  465. b6 = Instance.new("CylinderMesh", p6)
  466. b6.Name = "Mesh"
  467. b6.Scale = Vector3.new(1, 1.5, 0.100000001)
  468. p7 = Instance.new("Part", m)
  469. p7.BrickColor = BrickColor.new("Royal purple")
  470. p7.Material = Enum.Material.SmoothPlastic
  471. p7.FormFactor = Enum.FormFactor.Custom
  472. p7.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  473. p7.CFrame = CFrame.new(-4.38347578, 0.100488186, 11.0674219, 0.999994993, 2.68598014e-005, -2.10421803e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, 2.08939497e-007, 6.46425033e-005, 0.999994993)
  474. p7.Anchored = true
  475. p7.CanCollide = false
  476. b7 = Instance.new("SpecialMesh", p7)
  477. b7.MeshId = "http://www.roblox.com/asset/?id=3270017"
  478. b7.TextureId = ""
  479. b7.MeshType = Enum.MeshType.FileMesh
  480. b7.Name = "Mesh"
  481. b7.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  482. p8 = Instance.new("Part", m)
  483. p8.BrickColor = BrickColor.new("Really black")
  484. p8.Material = Enum.Material.SmoothPlastic
  485. p8.FormFactor = Enum.FormFactor.Custom
  486. p8.Size = Vector3.new(0.200000003, 0.80000037, 0.200000003)
  487. p8.CFrame = CFrame.new(-4.44335222, 6.31963682, 11.0678616, -2.03024811e-007, 2.68621734e-005, 0.999994993, 6.45878681e-005, 0.999998331, -2.68624135e-005, -0.999994993, 6.45876644e-005, -2.04505866e-007)
  488. p8.Anchored = true
  489. p8.CanCollide = false
  490. b8 = Instance.new("SpecialMesh", p8)
  491. b8.MeshType = Enum.MeshType.Wedge
  492. b8.Name = "Mesh"
  493. b8.Scale = Vector3.new(0.400000006, 1, 0.600000024)
  494. p9 = Instance.new("Part", m)
  495. p9.BrickColor = BrickColor.new("Really black")
  496. p9.Material = Enum.Material.SmoothPlastic
  497. p9.FormFactor = Enum.FormFactor.Custom
  498. p9.Size = Vector3.new(0.200000003, 0.600000024, 0.200000003)
  499. p9.CFrame = CFrame.new(-4.38343573, 1.70038664, 11.0675249, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007)
  500. p9.Anchored = true
  501. p9.CanCollide = false
  502. b9 = Instance.new("BlockMesh", p9)
  503. b9.Name = "Mesh"
  504. b9.Scale = Vector3.new(0.449999988, 1.10000002, 0.150000006)
  505. handl = Instance.new("Part", m)
  506. handl.BrickColor = BrickColor.new("Really black")
  507. handl.Material = Enum.Material.SmoothPlastic
  508. handl.Name = "handle"
  509. handl.FormFactor = Enum.FormFactor.Custom
  510. handl.Size = Vector3.new(0.200000003, 0.600000024, 0.200000003)
  511. handl.CFrame = CFrame.new(-4.38349676, 0.700476408, 11.0674639, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007)
  512. handl.Anchored = true
  513. handl.CanCollide = false
  514. b10 = Instance.new("BlockMesh", handl)
  515. b10.Name = "Mesh"
  516. b10.Scale = Vector3.new(0.5, 1.5, 0.150000006)
  517. p11 = Instance.new("Part", m)
  518. p11.BrickColor = BrickColor.new("Really black")
  519. p11.Material = Enum.Material.SmoothPlastic
  520. p11.FormFactor = Enum.FormFactor.Custom
  521. p11.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003)
  522. p11.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 0.000361636019, 0.000304358749, -0.999994814, -0.999998271, -0.000127056977, -0.000361675629, -0.000127166844, 0.999994755, 0.000304312387)
  523. p11.Anchored = true
  524. p11.CanCollide = false
  525. p11.BottomSurface = Enum.SurfaceType.Smooth
  526. p11.TopSurface = Enum.SurfaceType.Smooth
  527. b11 = Instance.new("SpecialMesh", p11)
  528. b11.MeshId = "http://www.roblox.com/asset/?id=16606212"
  529. b11.TextureId = ""
  530. b11.MeshType = Enum.MeshType.FileMesh
  531. b11.Name = "Mesh"
  532. b11.Scale = Vector3.new(0.0500000007, 0.0599999987, 0.219999999)
  533. p12 = Instance.new("Part", m)
  534. p12.BrickColor = BrickColor.new("Royal purple")
  535. p12.Material = Enum.Material.SmoothPlastic
  536. p12.FormFactor = Enum.FormFactor.Custom
  537. p12.Size = Vector3.new(0.600000024, 0.400000036, 0.400000006)
  538. p12.CFrame = CFrame.new(-4.38352394, 0.900473356, 11.0674744, 0.999994993, -2.10422286e-007, -2.68598014e-005, -2.68600634e-005, -6.46624612e-005, -0.999998331, 2.08939497e-007, 0.999994993, -6.46621702e-005)
  539. p12.Anchored = true
  540. p12.CanCollide = false
  541. b12 = Instance.new("SpecialMesh", p12)
  542. b12.MeshId = "http://www.roblox.com/asset/?id=3270017"
  543. b12.TextureId = ""
  544. b12.MeshType = Enum.MeshType.FileMesh
  545. b12.Name = "Mesh"
  546. b12.Scale = Vector3.new(0.200000003, 0.200000003, 0.400000006)
  547. p13 = Instance.new("Part", m)
  548. p13.BrickColor = BrickColor.new("Really black")
  549. p13.Material = Enum.Material.SmoothPlastic
  550. p13.FormFactor = Enum.FormFactor.Custom
  551. p13.Size = Vector3.new(0.200000003, 1.79999995, 0.200000003)
  552. p13.CFrame = CFrame.new(-4.38342142, 3.50038433, 11.0676756, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007)
  553. p13.Anchored = true
  554. p13.CanCollide = false
  555. b13 = Instance.new("BlockMesh", p13)
  556. b13.Name = "Mesh"
  557. b13.Scale = Vector3.new(0.400000006, 2.70000005, 1.25)
  558. p14 = Instance.new("Part", m)
  559. p14.BrickColor = BrickColor.new("Royal purple")
  560. p14.Material = Enum.Material.SmoothPlastic
  561. p14.FormFactor = Enum.FormFactor.Custom
  562. p14.Size = Vector3.new(0.200000003, 0.800000012, 0.200000003)
  563. p14.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 2.03024854e-007, 0.999994814, 2.68895456e-005, -6.45878536e-005, -2.68897929e-005, 0.999998271, 0.999994814, -2.04498548e-007, 6.45876353e-005)
  564. p14.Anchored = true
  565. p14.CanCollide = false
  566. b14 = Instance.new("CylinderMesh", p14)
  567. b14.Name = "Mesh"
  568. b14.Scale = Vector3.new(1, 0.860000014, 0.349999994)
  569. p15 = Instance.new("Part", m)
  570. p15.BrickColor = BrickColor.new("Royal purple")
  571. p15.Material = Enum.Material.SmoothPlastic
  572. p15.FormFactor = Enum.FormFactor.Custom
  573. p15.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
  574. p15.CFrame = CFrame.new(-4.38351488, 1.00045681, 11.067482, 0.999994993, -2.10422286e-007, -2.68598014e-005, -2.68600634e-005, -6.46624612e-005, -0.999998331, 2.08939497e-007, 0.999994993, -6.46621702e-005)
  575. p15.Anchored = true
  576. p15.CanCollide = false
  577. b15 = Instance.new("SpecialMesh", p15)
  578. b15.MeshId = "http://www.roblox.com/asset/?id=3270017"
  579. b15.TextureId = ""
  580. b15.MeshType = Enum.MeshType.FileMesh
  581. b15.Name = "Mesh"
  582. b15.Scale = Vector3.new(0.200000003, 0.200000003, 0.400000006)
  583. p16 = Instance.new("Part", m)
  584. p16.BrickColor = BrickColor.new("Royal purple")
  585. p16.Material = Enum.Material.SmoothPlastic
  586. p16.FormFactor = Enum.FormFactor.Custom
  587. p16.Size = Vector3.new(1, 0.200000003, 0.400000036)
  588. p16.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 0.999994993, 2.10420296e-007, 2.68598014e-005, -2.68600634e-005, 6.45879554e-005, 0.999998331, 2.08939497e-007, -0.999994993, 6.45876644e-005)
  589. p16.Anchored = true
  590. p16.CanCollide = false
  591. b16 = Instance.new("CylinderMesh", p16)
  592. b16.Name = "Mesh"
  593. b16.Scale = Vector3.new(1, 0.899999976, 0.899999976)
  594. p17 = Instance.new("Part", m)
  595. p17.BrickColor = BrickColor.new("Royal purple")
  596. p17.Material = Enum.Material.SmoothPlastic
  597. p17.FormFactor = Enum.FormFactor.Custom
  598. p17.Size = Vector3.new(0.200000033, 0.200000003, 0.400000006)
  599. p17.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 0.999994993, 1.22376412e-006, 2.79684682e-005, -2.79687956e-005, 6.45115288e-005, 0.999998331, 1.22221331e-006, -0.999994993, 6.45113687e-005)
  600. p17.Anchored = true
  601. p17.CanCollide = false
  602. b17 = Instance.new("CylinderMesh", p17)
  603. b17.Name = "Mesh"
  604. b17.Scale = Vector3.new(1, 1.10000002, 0.25)
  605. p18 = Instance.new("Part", m)
  606. p18.BrickColor = BrickColor.new("Really black")
  607. p18.Material = Enum.Material.SmoothPlastic
  608. p18.FormFactor = Enum.FormFactor.Custom
  609. p18.Size = Vector3.new(0.600000024, 0.200000003, 0.400000006)
  610. p18.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 0.999994993, 2.10420296e-007, 2.68598014e-005, -2.68600634e-005, 6.45879554e-005, 0.999998331, 2.08939497e-007, -0.999994993, 6.45876644e-005)
  611. p18.Anchored = true
  612. p18.CanCollide = false
  613. b18 = Instance.new("CylinderMesh", p18)
  614. b18.Name = "Mesh"
  615. b18.Scale = Vector3.new(1, 1, 0.5)
  616. p19 = Instance.new("Part", m)
  617. p19.BrickColor = BrickColor.new("Really black")
  618. p19.Material = Enum.Material.SmoothPlastic
  619. p19.FormFactor = Enum.FormFactor.Custom
  620. p19.Size = Vector3.new(0.200000003, 0.80000037, 0.200000003)
  621. p19.CFrame = CFrame.new(-4.32335329, 6.31963253, 11.0678616, 1.78813934e-007, 2.67998621e-005, -0.999994993, -6.46066765e-005, 0.999998331, 2.68001022e-005, 0.999994993, 6.46064655e-005, 1.78813934e-007)
  622. p19.Anchored = true
  623. p19.CanCollide = false
  624. b19 = Instance.new("SpecialMesh", p19)
  625. b19.MeshType = Enum.MeshType.Wedge
  626. b19.Name = "Mesh"
  627. b19.Scale = Vector3.new(0.400000006, 1, 0.600000024)
  628. blade = Instance.new("Part", m)
  629. blade.BrickColor = BrickColor.new("Royal purple")
  630. blade.Material = Enum.Material.SmoothPlastic
  631. blade.Name = "blade"
  632. blade.FormFactor = Enum.FormFactor.Custom
  633. blade.Size = Vector3.new(0.200000003, 1.79999995, 0.200000003)
  634. blade.CFrame = CFrame.new(-4.38342142, 3.50038433, 11.0676756, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007)
  635. blade.Anchored = true
  636. blade.CanCollide = false
  637. b20 = Instance.new("BlockMesh", blade)
  638. b20.Name = "Mesh"
  639. b20.Scale = Vector3.new(0.419999987, 2.70000005, 0.5)
  640. p21 = Instance.new("Part", m)
  641. p21.BrickColor = BrickColor.new("Royal purple")
  642. p21.Material = Enum.Material.SmoothPlastic
  643. p21.FormFactor = Enum.FormFactor.Custom
  644. p21.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  645. p21.CFrame = CFrame.new(-4.87347412, 1.20048833, 11.067421, 0.999994993, 2.68597978e-005, -1.63912773e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, 1.63912773e-007, 6.46424742e-005, 0.999994993)
  646. p21.Anchored = true
  647. p21.CanCollide = false
  648. b21 = Instance.new("SpecialMesh", p21)
  649. b21.MeshId = "http://www.roblox.com/asset/?id=3270017"
  650. b21.TextureId = ""
  651. b21.MeshType = Enum.MeshType.FileMesh
  652. b21.Name = "Mesh"
  653. b21.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  654. p22 = Instance.new("Part", m)
  655. p22.BrickColor = BrickColor.new("Really black")
  656. p22.Material = Enum.Material.SmoothPlastic
  657. p22.FormFactor = Enum.FormFactor.Custom
  658. p22.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  659. p22.CFrame = CFrame.new(-4.6434741, 1.36048794, 11.0674219, 0.999994993, 2.68597978e-005, -1.63912773e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, 1.63912773e-007, 6.46424742e-005, 0.999994993)
  660. p22.Anchored = true
  661. p22.CanCollide = false
  662. b22 = Instance.new("SpecialMesh", p22)
  663. b22.MeshId = "http://www.roblox.com/asset/?id=3270017"
  664. b22.TextureId = ""
  665. b22.MeshType = Enum.MeshType.FileMesh
  666. b22.Name = "Mesh"
  667. b22.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  668. p23 = Instance.new("Part", m)
  669. p23.BrickColor = BrickColor.new("Really black")
  670. p23.Material = Enum.Material.SmoothPlastic
  671. p23.FormFactor = Enum.FormFactor.Custom
  672. p23.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  673. p23.CFrame = CFrame.new(-4.6434741, 1.05048847, 11.0674219, 0.999994993, 2.68597978e-005, -1.63912773e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, 1.63912773e-007, 6.46424742e-005, 0.999994993)
  674. p23.Anchored = true
  675. p23.CanCollide = false
  676. b23 = Instance.new("SpecialMesh", p23)
  677. b23.MeshId = "http://www.roblox.com/asset/?id=3270017"
  678. b23.TextureId = ""
  679. b23.MeshType = Enum.MeshType.FileMesh
  680. b23.Name = "Mesh"
  681. b23.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  682. p24 = Instance.new("Part", m)
  683. p24.BrickColor = BrickColor.new("Really black")
  684. p24.FormFactor = Enum.FormFactor.Custom
  685. p24.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
  686. p24.CFrame = CFrame.new(-4.38800001, 3.43899989, 11.0679998, -3.24902021e-006, 9.58114477e-010, -0.999992907, -7.26728331e-006, -0.999994278, -8.0171958e-010, -0.999992251, 7.50569825e-006, 3.24877897e-006)
  687. p24.Anchored = true
  688. p24.CanCollide = false
  689. b24 = Instance.new("SpecialMesh", p24)
  690. b24.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  691. b24.TextureId = ""
  692. b24.MeshType = Enum.MeshType.FileMesh
  693. b24.Name = "Mesh"
  694. b24.Scale = Vector3.new(0.100000001, 1.5, 0.100000001)
  695. p25 = Instance.new("Part", m)
  696. p25.BrickColor = BrickColor.new("Really black")
  697. p25.Material = Enum.Material.SmoothPlastic
  698. p25.FormFactor = Enum.FormFactor.Custom
  699. p25.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  700. p25.CFrame = CFrame.new(-4.12346935, 1.36048794, 11.0674219, -0.999994993, -2.6859796e-005, 1.78813934e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, -1.78813934e-007, -6.46425033e-005, -0.999994993)
  701. p25.Anchored = true
  702. p25.CanCollide = false
  703. b25 = Instance.new("SpecialMesh", p25)
  704. b25.MeshId = "http://www.roblox.com/asset/?id=3270017"
  705. b25.TextureId = ""
  706. b25.MeshType = Enum.MeshType.FileMesh
  707. b25.Name = "Mesh"
  708. b25.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  709. p26 = Instance.new("Part", m)
  710. p26.BrickColor = BrickColor.new("Royal purple")
  711. p26.Material = Enum.Material.SmoothPlastic
  712. p26.FormFactor = Enum.FormFactor.Custom
  713. p26.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  714. p26.CFrame = CFrame.new(-3.89346814, 1.20048833, 11.0674229, -0.999994993, -2.6859796e-005, 1.78813934e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, -1.78813934e-007, -6.46425033e-005, -0.999994993)
  715. p26.Anchored = true
  716. p26.CanCollide = false
  717. b26 = Instance.new("SpecialMesh", p26)
  718. b26.MeshId = "http://www.roblox.com/asset/?id=3270017"
  719. b26.TextureId = ""
  720. b26.MeshType = Enum.MeshType.FileMesh
  721. b26.Name = "Mesh"
  722. b26.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  723. p27 = Instance.new("Part", m)
  724. p27.BrickColor = BrickColor.new("Really black")
  725. p27.Material = Enum.Material.SmoothPlastic
  726. p27.FormFactor = Enum.FormFactor.Custom
  727. p27.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  728. p27.CFrame = CFrame.new(-4.12346935, 1.05048847, 11.0674219, -0.999994993, -2.6859796e-005, 1.78813934e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, -1.78813934e-007, -6.46425033e-005, -0.999994993)
  729. p27.Anchored = true
  730. p27.CanCollide = false
  731. b27 = Instance.new("SpecialMesh", p27)
  732. b27.MeshId = "http://www.roblox.com/asset/?id=3270017"
  733. b27.TextureId = ""
  734. b27.MeshType = Enum.MeshType.FileMesh
  735. b27.Name = "Mesh"
  736. b27.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  737. p28 = Instance.new("Part", m)
  738. p28.BrickColor = BrickColor.new("Really black")
  739. p28.Material = Enum.Material.SmoothPlastic
  740. p28.FormFactor = Enum.FormFactor.Custom
  741. p28.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  742. p28.CFrame = CFrame.new(-4.12346935, 1.36048794, 11.0674219, -0.999994993, -2.6859796e-005, 1.78813934e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, -1.78813934e-007, -6.46425033e-005, -0.999994993)
  743. p28.Anchored = true
  744. p28.CanCollide = false
  745. b28 = Instance.new("SpecialMesh", p28)
  746. b28.MeshId = "http://www.roblox.com/asset/?id=3270017"
  747. b28.TextureId = ""
  748. b28.MeshType = Enum.MeshType.FileMesh
  749. b28.Name = "Mesh"
  750. b28.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  751. c = m:children()
  752. for n = 1, #c do
  753. if (c[n].className == "Part") then
  754. if (c[n].Name ~= "handle") then
  755. stick(c[n], m.handle)
  756. wait()
  757. c[n].Anchored = false
  758. end
  759. end
  760. end
  761. for _,v in pairs(pchar:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
  762. handl.Anchored=false
  763. mwl= Weld(handl,pchar.Torso,-1,0,-1,rad(120),0,0,m)
  764. m.Parent = pchar
  765. hp=Instance.new('HopperBin',player.Backpack)
  766. hp.Name='Despira'
  767.  
  768. local hat=Part(.5,1,1.02,'Really black',0,false,false,pchar)
  769. Mesh(hat,'http://www.roblox.com/asset/?id=16952952',1.05,1.05,1.05)
  770. Weld(pchar.Head,hat,0,-.25,0,0,0,0,p)
  771. -- cape mesh cause lazy :p
  772. local cpw=Part(.2,.2,.2,'White',1,false,false,pchar)
  773. Weld(torso,cpw,0,-1,-.5,0,0,0,p)
  774. local cp=Part(.1,.1,.1,'Really black',0,false,false,pchar)
  775. Mesh(cp,'http://www.roblox.com/asset/?id=114046169',1.3,1.3,1.3)
  776. cape = Weld(cpw,cp,0,1.2,0,0,0,0,p)
  777.  
  778. local function newLerpTo(weld)
  779. return {
  780. Weld = weld;
  781. To = weld.C0;
  782. Cache = weld.C0;
  783. Speed = 0.2;
  784. }
  785. end
  786.  
  787. Used={Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false}
  788.  
  789. function SetAnimData(IF_DATA_IS_USED)
  790. Used = IF_DATA_IS_USED
  791. end
  792.  
  793. function CheckAnimData(ANIM_TAB,DO_ANIM)
  794. anglespeed=Anims[ANIM_TAB][DO_ANIM].speed or 1
  795. if Used.Head == true then
  796. LerpTo.Neck.To = LerpTo.Neck.Cache * Anims[ANIM_TAB][DO_ANIM].Head
  797. end
  798. if Used.RightArm == true then
  799. LerpTo.RightArm.To = LerpTo.RightArm.Cache * Anims[ANIM_TAB][DO_ANIM].RightArm
  800. end
  801. if Used.LeftArm == true then
  802. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * Anims[ANIM_TAB][DO_ANIM].LeftArm
  803. end
  804. if Used.RightLeg == true then
  805. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * Anims[ANIM_TAB][DO_ANIM].RightLeg
  806. end
  807. if Used.LeftLeg == true then
  808. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * Anims[ANIM_TAB][DO_ANIM].LeftLeg
  809. end
  810. if Used.Torso == true then
  811. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * Anims[ANIM_TAB][DO_ANIM].Torso
  812. end
  813. LerpTo.cape.To = LerpTo.cape.Cache * Anims[ANIM_TAB][DO_ANIM].Cape
  814. end
  815.  
  816.  
  817. function UpdateAnims()
  818. Anims = {
  819. ["Idle"] = {
  820. ["Stance"] = {
  821. speed=.25,
  822. Head = CFrame.Angles(cos(angle)*0.01,0,0),
  823. RightArm = CFrame.Angles(cos(angle)*0.1,0,0),
  824. LeftArm = CFrame.Angles(-cos(angle)*0.1,0,0),
  825. RightLeg = CFrame.Angles(cos(angle)*0.1,0,0),
  826. LeftLeg = CFrame.Angles(-cos(angle)*0.1,0,0),
  827. Torso = CFrame.Angles(0,0,0),
  828. Cape = CFrame.Angles(0,0,0)
  829. },
  830. ["Walk"] = {
  831. speed=2,
  832. Head = CFrame.Angles(0,0,cos(angle)*0.05),
  833. RightArm = CFrame.Angles(-cos(angle)*1,0,0),
  834. LeftArm = CFrame.Angles(cos(angle)*1,0,0),
  835. RightLeg = CFrame.Angles(cos(angle)*1,0,0),
  836. LeftLeg = CFrame.Angles(-cos(angle)*1,0,0),
  837. Torso = CFrame.Angles(0,0,0),
  838. Cape =CFrame.Angles(-rad(40)+sin(angle)*.1,0,0)
  839. },
  840. ["Jump"] = {
  841. speed=2,
  842. Head = CFrame.Angles(0,0,0),
  843. RightArm = CFrame.Angles(rad(-20),0,0),
  844. LeftArm = CFrame.Angles(rad(-20),0,0),
  845. RightLeg = CFrame.new(0,.5,-.5)*CFrame.Angles(rad(-20),0,0),
  846. LeftLeg = CFrame.Angles(0,0,0),
  847. Torso = CFrame.Angles(rad(10),0,0),
  848. Cape = CFrame.Angles(-rad(70)+sin(angle)*.4,0,0)
  849. }
  850. },
  851. ["Holding"] = {
  852. ["Stance"] = {
  853. speed=.25,
  854. Head = CFrame.Angles(cos(angle)*0.01,0,0),
  855. RightArm = CFrame.Angles(cos(angle)*0.1,0,rad(10)),
  856. LeftArm = CFrame.Angles(-cos(angle)*0.1,0,-rad(10)),
  857. RightLeg = CFrame.Angles(cos(angle)*0.1,0,0),
  858. LeftLeg = CFrame.Angles(-cos(angle)*0.1,0,0),
  859. Torso = CFrame.Angles(0,0,0),
  860. Cape = CFrame.Angles(0,0,0)
  861. },
  862. ["Walk"] = {
  863. speed=2,
  864. Head = CFrame.Angles(0,0,cos(angle)*0.05),
  865. RightArm = CFrame.Angles(-cos(angle)*.3,0,rad(10)),
  866. LeftArm = CFrame.Angles(cos(angle)*.3,0,-rad(10)),
  867. RightLeg = CFrame.Angles(cos(angle)*1,0,0),
  868. LeftLeg = CFrame.Angles(-cos(angle)*1,0,0),
  869. Torso = CFrame.Angles(0,0,0),
  870. Cape =CFrame.Angles(-rad(40)+sin(angle)*.1,0,0)
  871. },
  872. ["Jump"] = {
  873. speed=2,
  874. Head = CFrame.Angles(0,0,0),
  875. RightArm = CFrame.Angles(rad(-20),0,0),
  876. LeftArm = CFrame.Angles(rad(-20),0,0),
  877. RightLeg = CFrame.new(0,.5,-.5)*CFrame.Angles(rad(-20),0,0),
  878. LeftLeg = CFrame.Angles(0,0,0),
  879. Torso = CFrame.Angles(rad(10),0,0),
  880. Cape = CFrame.Angles(-rad(70)+sin(angle)*.4,0,0)
  881. }
  882. }
  883. }
  884. end
  885.  
  886.  
  887.  
  888.  
  889. LerpTo = {
  890. Neck = newLerpTo(Neck);
  891. LeftArm = newLerpTo(LeftShoulder);
  892. RightArm = newLerpTo(RightShoulder);
  893. LeftLeg = newLerpTo(LeftHip);
  894. RightLeg = newLerpTo(RightHip);
  895. RootJoint = newLerpTo(RootJoint);
  896. hndl = newLerpTo(mwl);
  897. cape = newLerpTo(cape);
  898. }
  899. LerpTo.hndl.Cache=CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,rad(90))
  900. hitdeb=false
  901. hp.Selected:connect(function(mouse)
  902. local jmptimer = 0
  903. mouse.Button1Down:connect(function()
  904. if attack == true then return end
  905. if combo==0 then
  906. attack=true
  907. tmdmg(10,blade,5,3)
  908. SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
  909. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),rad(40),-rad(50))*CFrame.new(0,-.5,0)
  910. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30))
  911. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0)
  912. wait(.1)
  913. trail(blade,10,5)
  914. so('161006212',torso,false,1)
  915. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(50))*CFrame.new(0,-.5,0)
  916. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  917. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  918. wait(.2)
  919. attack=false
  920. combo=1
  921. elseif combo==1 then
  922. attack=true
  923. tmdmg(10,blade,5,3)
  924. SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
  925. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(150),0,rad(120))*CFrame.new(-.5,0,0)
  926. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  927. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  928. wait(.1)
  929. trail(blade,10,5)
  930. so('161006212',torso,false,.8)
  931. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),0,-rad(50))*CFrame.new(.5,0,-0.5)*CFrame.Angles(0,-rad(90),0)
  932. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(70))
  933. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(70),0)
  934. wait(.2)
  935. attack=false
  936. combo=2
  937. elseif combo==2 then
  938. attack=true
  939. trail(blade,35,5)
  940. tmdmg(10,blade,5,3)
  941. so('160069154',torso,false,1)
  942. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
  943. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
  944. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))*CFrame.new(0,-.5,0)
  945. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))*CFrame.new(0,-.5,0)
  946. LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,0)
  947. local spn=0
  948. for i=1,15 do
  949. spn=spn+30
  950. wait(i/1000)
  951. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(spn)+rad(70))
  952. end
  953. attack=false
  954. combo=3
  955. end
  956. Spawn(function()
  957. wait(0.6)
  958. if attack==false then
  959. attack=true
  960. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  961. LerpTo.hndl.To = LerpTo.hndl.Cache
  962. wait(.2)
  963. attack=false
  964. combo=0
  965. end
  966. end)
  967. end)
  968. mouse.KeyDown:connect(function(ke)
  969. if attack==true then return end
  970. key=ke:lower()
  971. if key=="e" then attack=true
  972. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
  973. posfix(-rad(90))
  974. LerpTo.hndl.To = CFrame.new(0,-0.3,0)
  975. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(30))
  976. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90))*CFrame.new(0.5,-.5,0)
  977. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
  978. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0)
  979. wait(.3)
  980. mgblock(pchar['Left Arm'],CFrame.new(0,-1,0),7,'Really black','Royal purple',Vector3.new(1.5,1.5,1.5),.1)
  981. so('28257433',pchar.Torso,false,.8)
  982. local efx= Part(1,1,1,'Black',0,false,true,pchar)
  983. local m= Mesh(efx,'http://www.roblox.com/asset/?id=51177741',2,2,2)
  984. efx.CFrame=pchar['Left Arm'].CFrame*CFrame.Angles(-rad(90),0,rad(90))
  985. local cb=Part(1,1,1,'Black',0,false,true,pchar)
  986. Mesh(cb,1,1,1,1)
  987. for i=1,20 do wait()
  988. efx.CFrame=clerp(efx.CFrame,efx.CFrame*CFrame.new(0,0,-50),.1)
  989. local p=Part(1,1,1,Cols[math.random(1,#Cols)],0,false,true,pchar)
  990. Mesh(p,3,1.5,1.5,1.5)
  991. p.CFrame=efx.CFrame
  992. cb.Size = Vector3.new(.5, (pchar['Left Arm'].Position - efx.Position).magnitude, .5)
  993. cb.CFrame = CFrame.new((pchar['Left Arm'].Position + efx.Position)/2, pchar['Left Arm'].Position) * CFrame.Angles(math.pi/2, 0, 0)
  994. coroutine.resume(coroutine.create(function(part,spin)
  995. for i=1, 15 do
  996. part.Mesh.Scale=part.Mesh.Scale+Vector3.new(.3,.3,.3)
  997. part.Transparency=i/15
  998. part.CFrame=part.CFrame*CFrame.new(math.random(-10,10)/3,math.random(-10,10)/3,math.random(-10,10)/3)*spin
  999. wait()
  1000. end
  1001. part.Parent=nil
  1002. end),p,CFrame.fromEulerAnglesXYZ(math.random(-50,50)/500,math.random(-50,50)/500,math.random(-50,50)/500))
  1003. if hitdeb==false then
  1004. for i,v in pairs(workspace:children()) do
  1005. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  1006. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  1007. if (v:findFirstChild("Torso").Position - efx.Position).magnitude < 7 and v.Name ~= pchar.Name then
  1008. damg=math.random(7500000,1000000000)
  1009. v.Humanoid:TakeDamage(damg)
  1010. v.Humanoid.PlatformStand=true
  1011. local lock=Weld(efx,v.Torso,0,0,0,0,0,0,v)
  1012. local asd=true
  1013. Spawn(function()
  1014. while asd do wait()
  1015. efx.CFrame=clerp(efx.CFrame,pchar.HumanoidRootPart.CFrame*CFrame.new(0,0,-7),.2)
  1016. cb.Size = Vector3.new(.5, (pchar['Left Arm'].Position - efx.Position).magnitude, .5)
  1017. cb.CFrame = CFrame.new((pchar['Left Arm'].Position + efx.Position)/2, pchar['Left Arm'].Position) * CFrame.Angles(math.pi/2, 0, 0)
  1018. end
  1019. end)
  1020. wait(.1)
  1021. for i=1,10 do wait()
  1022. efx.Transparency=efx.Transparency+.1
  1023. end
  1024. trail(blade,35,5)
  1025. tmdmg(10,blade,5,3)
  1026. so('160069154',torso,false,1.1)
  1027. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(45))
  1028. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
  1029. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(90),0)
  1030. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(90))*CFrame.new(-0.5,-.5,0)
  1031. LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,rad(90))
  1032. wait(.05)
  1033. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90))*CFrame.new(0.5,-.5,0)
  1034. mgblock(pchar['Left Arm'],CFrame.new(0,-1,0),7,'Really black','Royal purple',Vector3.new(1.5,1.5,1.5),.1)
  1035. local spn=0
  1036. for i=1,12 do
  1037. spn=spn+30
  1038. wait()
  1039. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(spn)-rad(90))
  1040. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(spn)+rad(90),0)
  1041. end
  1042. wait(.3)
  1043. asd=false
  1044. so('28144425',torso,false,.265)
  1045. so('2697431',torso,false,.2)
  1046. local splos= Part(1,1,1,'Really black',.5,false,true,pchar)
  1047. local m= Mesh(splos,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  1048. splos.CFrame=torso.CFrame*CFrame.new(-3,0,0)*CFrame.Angles(0,0,-pi/2)
  1049. Spawn(function()
  1050. for i=1,10 do wait(.01)
  1051. m.Scale=m.Scale+Vector3.new(1,.2,1)
  1052. splos.Transparency=splos.Transparency+.1
  1053. end
  1054. splos:Destroy()
  1055. end)
  1056. for i=1,3 do
  1057. for i=1,3 do
  1058. mgblock(v.Torso,CFrame.new(math.random(-3,3)/2,math.random(-3,3)/2,math.random(-3,3)/2),2,'Really black','Royal purple',Vector3.new(.1,.1,.1),0)
  1059. end
  1060. end
  1061. efx:Destroy()
  1062. cb:Destroy()
  1063. lock:Destroy()
  1064. mgblock(v.Torso,CFrame.new(math.random(-3,3)/2,math.random(-3,3)/2,math.random(-3,3)/2),20,'Really black','Royal purple',Vector3.new(.1,.1,.1),0)
  1065. local vs = Instance.new("BodyVelocity",v.Torso)
  1066. vs.maxForce = Vector3.new(1,1,1)*9e9
  1067. vs.P = 2000
  1068. vs.velocity = pchar.HumanoidRootPart.CFrame.lookVector*60+Vector3.new(0,150,0)
  1069. wait(.05)
  1070. vs:Destroy()
  1071. Spawn(function()
  1072. wait(2)
  1073. v.Humanoid.PlatformStand=false
  1074. end)
  1075. v.Humanoid.Health=v.Humanoid.Health-30000000
  1076. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  1077. LerpTo.hndl.To = LerpTo.hndl.Cache
  1078. attack=false
  1079. return
  1080. end
  1081. end
  1082. end
  1083. end
  1084. end
  1085. end
  1086. for i=1,10 do wait()
  1087. efx.CFrame=clerp(efx.CFrame,pchar['Left Arm'].CFrame*CFrame.Angles(-rad(90),0,rad(90)),.2)
  1088. cb.Size = Vector3.new(.5, (pchar['Left Arm'].Position - efx.Position).magnitude, .5)
  1089. cb.CFrame = CFrame.new((pchar['Left Arm'].Position + efx.Position)/2, pchar['Left Arm'].Position) * CFrame.Angles(math.pi/2, 0, 0)
  1090. end
  1091. efx:Destroy()
  1092. cb:Destroy()
  1093. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  1094. LerpTo.hndl.To = LerpTo.hndl.Cache
  1095. attack=false
  1096. elseif key=="z" then
  1097. elseif key=="x" then
  1098. attack=true
  1099. local tapdeb=false
  1100. for i,x in pairs(workspace:children()) do
  1101. if x:IsA("Model") and x:findFirstChild("Humanoid") then
  1102. if x:findFirstChild("Head") and x:findFirstChild("Torso") then
  1103. if (x:findFirstChild("Torso").Position - mouse.Hit.p).magnitude < 4 and x.Name ~= pchar.Name then
  1104. if tapdeb==false then
  1105. SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
  1106. cloneefx()
  1107. pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(0,0,-4)*CFrame.Angles(0,pi/1,0)
  1108. tmdmg(10,blade,3,3)
  1109. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),rad(40),-rad(50))*CFrame.new(0,-.5,0)
  1110. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30))
  1111. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0)
  1112. wait(.1)
  1113. trail(blade,3,5)
  1114. so('161006212',torso,false,1)
  1115. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(50))*CFrame.new(0,-.5,0)
  1116. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  1117. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  1118. wait(.2)
  1119. cloneefx()
  1120. pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(-4,0,0)*CFrame.Angles(0,-pi/2,0)
  1121. tmdmg(10,blade,4,3)
  1122. SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
  1123. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(150),0,rad(120))*CFrame.new(-.5,0,0)
  1124. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  1125. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  1126. wait(.1)
  1127. trail(blade,3,5)
  1128. so('161006212',torso,false,.8)
  1129. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),0,-rad(50))*CFrame.new(.5,0,-0.5)*CFrame.Angles(0,-rad(90),0)
  1130. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(70))
  1131. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(70),0)
  1132. wait(.2)
  1133. cloneefx()
  1134. pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(0,0,4)*CFrame.Angles(0,0,0)
  1135. tmdmg(10,blade,4,3)
  1136. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),rad(40),-rad(50))*CFrame.new(0,-.5,0)
  1137. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30))
  1138. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0)
  1139. wait(.1)
  1140. trail(blade,3,5)
  1141. so('161006212',torso,false,1)
  1142. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(50))*CFrame.new(0,-.5,0)
  1143. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  1144. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  1145. wait(.2)
  1146. cloneefx()
  1147. pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(4,0,0)*CFrame.Angles(0,pi/2,0)
  1148. tmdmg(10,blade,4,3)
  1149. SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
  1150. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(150),0,rad(120))*CFrame.new(-.5,0,0)
  1151. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  1152. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  1153. wait(.1)
  1154. trail(blade,3,5)
  1155. so('161006212',torso,false,.8)
  1156. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),0,-rad(50))*CFrame.new(.5,0,-0.5)*CFrame.Angles(0,-rad(90),0)
  1157. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(70))
  1158. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(70),0)
  1159. wait(.2)
  1160. so('161006212',torso,false,.5)
  1161. cloneefx()
  1162. tmdmg(10,blade,5,3)
  1163. trail(blade,3,7)
  1164. pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(0,0,-6)*CFrame.Angles(0,pi/1,0)
  1165. LerpTo.hndl.To = CFrame.new(0,-0.3,0)
  1166. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(30))
  1167. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90))*CFrame.new(0.5,-.5,0)
  1168. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
  1169. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0)
  1170. wait(.1)
  1171. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0)
  1172. wait(.1)
  1173. LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,rad(90))
  1174. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(90))
  1175. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(90))*CFrame.new(-.5,-.5,0)
  1176. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(90),0)
  1177. wait(.4)
  1178. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  1179. LerpTo.hndl.To = LerpTo.hndl.Cache
  1180. attack=false
  1181. return
  1182. end
  1183. end
  1184. end
  1185. end
  1186. end
  1187. attack=false
  1188. elseif key=="c" then
  1189. attack=true
  1190. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
  1191. posfix(-rad(90))
  1192. LerpTo.hndl.To = CFrame.new(0,-0.3,0)
  1193. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(30))
  1194. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90))*CFrame.new(0.5,-.5,0)
  1195. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
  1196. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0)
  1197. wait(.1)
  1198. so('62339698',torso,false,.35)
  1199. Spawn(function()
  1200. for i=1,3 do wait()
  1201. local efx= Part(1,1,1,'Really black',.5,false,true,m)
  1202. local m= Mesh(efx,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  1203. efx.CFrame=torso.CFrame*CFrame.Angles(pi/2,0,-rad(90))
  1204. Spawn(function()
  1205. for i=1,7 do wait()
  1206. m.Scale=m.Scale+Vector3.new(1,.1,1)
  1207. end
  1208. efx:Destroy()
  1209. end)
  1210. end
  1211. end)
  1212. Spawn(function()
  1213. for i=1,4 do wait()
  1214. mgblock(torso,CFrame.new(0,0,0),4,'Really black','Really black',Vector3.new(2,2,2),.1)
  1215. end
  1216. end)
  1217. local v = Instance.new("BodyVelocity",torso)
  1218. v.maxForce = Vector3.new(1,1,1)*9e9
  1219. v.P = 2000
  1220. local cfx=torso.CFrame*CFrame.Angles(0,rad(90),0)
  1221. v.velocity = cfx.lookVector*60
  1222. local tapdeb=false
  1223. for i=1,10 do wait()
  1224. for i,x in pairs(workspace:children()) do
  1225. if x:IsA("Model") and x:findFirstChild("Humanoid") then
  1226. if x:findFirstChild("Head") and x:findFirstChild("Torso") then
  1227. if (x:findFirstChild("Torso").Position - torso.Position).magnitude < 7 and x.Name ~= pchar.Name then
  1228. if tapdeb==false then
  1229. tmdmg(15,blade,3,5)
  1230. v:Destroy()
  1231. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(40))*CFrame.new(0.5,-.5,0)
  1232. so('10209645',torso,false,.8)
  1233. for i=1,3 do wait()
  1234. x.Humanoid.PlatformStand=true
  1235. x.Torso.CFrame=pchar['Left Arm'].CFrame*CFrame.new(0,-1,0)*CFrame.Angles(rad(90),0,0)
  1236. end
  1237. so('46153268',torso,false,.5)
  1238. wait(.4)
  1239. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false})
  1240. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
  1241. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))* CFrame.new(-.2,-.25,0)
  1242. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))* CFrame.new(.2,-.25,0)
  1243. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,-1)
  1244. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,1,-1)
  1245. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-rad(50),0,0) * CFrame.new(0,0.5,0)
  1246. LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,-rad(90))*CFrame.Angles(-rad(130),0,0)
  1247. so('169310515',torso,false,.6)
  1248. wait(.4)
  1249. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(150),0,0)
  1250. mgblock(pchar['Left Arm'],CFrame.new(0,-1,0),30,'Really black','Really black',Vector3.new(2,2,2),.1)
  1251. mgblock(x.Torso,CFrame.new(0,0,0),30,'Really black','Really black',Vector3.new(2,2,2),.1)
  1252. local vs = Instance.new("BodyVelocity",x.Torso)
  1253. vs.maxForce = Vector3.new(1,1,1)*9e9
  1254. vs.P = 2000
  1255. vs.velocity = Vector3.new(0,6,0)
  1256. local efx= Part(1,1,1,'Really black',1,false,true,m)
  1257. local m= Mesh(efx,'http://www.roblox.com/asset/?id=1185246',10,10,10)
  1258. Spawn(function()
  1259. for i=1,7 do wait()
  1260. efx.Transparency=efx.Transparency-.1
  1261. end
  1262. end)
  1263. for i=1,100 do
  1264. efx.CFrame=x.Torso.CFrame
  1265. wait()
  1266. end
  1267. vs:Destroy()
  1268. x.Torso.Anchored=true
  1269. local bp=Instance.new("BodyPosition",torso)
  1270. bp.maxForce=Vector3.new(10000,10000,10000)
  1271. bp.position=x.Torso.Position+Vector3.new(5,0,0)
  1272. so('160069154',torso,false,1.1)
  1273. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(45))
  1274. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
  1275. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(90),0)
  1276. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(90))*CFrame.new(-0.5,-.5,0)
  1277. LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,rad(90))
  1278. trail(blade,35,5)
  1279. local spn=0
  1280. for i=1,12 do
  1281. spn=spn+30
  1282. wait()
  1283. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(spn))
  1284. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(spn),0)
  1285. end
  1286. bp:Destroy()
  1287. efx:Destroy()
  1288. so('138122923',torso,false,.8)
  1289. x.Humanoid.Health=x.Humanoid.Health-20
  1290. for i=1,14 do
  1291. local efx= Part(1,1,1,'Really black',0,false,false,pchar)
  1292. local m= Mesh(efx,3,math.random(1,10)/10,math.random(1,10)/10,math.random(1,10)/10)
  1293. efx.CFrame=x.Torso.CFrame
  1294. efx.Velocity=Vector3.new(math.random(-20,20),0,math.random(-20,20))
  1295. Spawn(function()
  1296. for i=1,10 do wait(.1)
  1297. efx.Transparency=efx.Transparency+.1
  1298. end
  1299. end)
  1300. end
  1301. x.Torso.Anchored=false
  1302. x.Humanoid.PlatformStand=false
  1303. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  1304. LerpTo.hndl.To = LerpTo.hndl.Cache
  1305. attack=false
  1306. return
  1307. end
  1308. end
  1309. end
  1310. end
  1311. end
  1312. end
  1313. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  1314. LerpTo.hndl.To = LerpTo.hndl.Cache
  1315. v:Destroy()
  1316. attack=false
  1317. elseif key=="v" then
  1318. elseif key==" " then
  1319. tim = game:service'RunService'.Stepped:wait()
  1320. if (tim - jmptimer < .2) then
  1321. attack=true
  1322. Spawn(function()
  1323. for i=1,3 do wait()
  1324. local efx= Part(1,1,1,'Really black',.5,false,true,m)
  1325. local m= Mesh(efx,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  1326. efx.CFrame=torso.CFrame
  1327. Spawn(function()
  1328. for i=1,7 do wait()
  1329. m.Scale=m.Scale+Vector3.new(1,.2,1)
  1330. efx.Transparency=efx.Transparency+.12
  1331. end
  1332. efx:Destroy()
  1333. end)
  1334. end
  1335. end)
  1336. local vs = Instance.new("BodyVelocity",pchar.Torso)
  1337. vs.maxForce = Vector3.new(1,1,1)*9e9
  1338. vs.P = 2000
  1339. vs.velocity = pchar.Torso.CFrame.lookVector*60+Vector3.new(0,150,0)
  1340. wait(.025)
  1341. vs:Destroy()
  1342. trail(blade,35,5)
  1343. so('160069154',torso,false,.8)
  1344. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
  1345. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
  1346. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))*CFrame.new(0,-.5,0)
  1347. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))*CFrame.new(0,-.5,0)
  1348. LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,rad(90),0)*CFrame.Angles(rad(130),0,0)
  1349. local spn=0
  1350. for i=1,14 do
  1351. spn=spn+30
  1352. wait(i/1000)
  1353. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(rad(spn),0,0)
  1354. end
  1355. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false})
  1356. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))* CFrame.new(-.2,-.25,0)
  1357. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))* CFrame.new(.2,-.25,0)
  1358. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,-1)
  1359. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,1,-1)
  1360. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-rad(50),0,0) * CFrame.new(0,0.5,0)
  1361. LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,-rad(90))*CFrame.Angles(-rad(130),0,0)
  1362. hitted=false
  1363. local hp=blade.Touched:connect(function(hit)
  1364. if hitted == true or hit.Parent.Name==pchar.Name then return end
  1365. so('157878578',torso,false,1)
  1366. hitted=true
  1367. explosion('Really black','Royal purple',torso.CFrame,Vector3.new(40,40,40),30,40)
  1368. for i=1, 30 do
  1369. local p= Part(math.random(2,7),math.random(2,7),math.random(2,7),workspace.Base.BrickColor.Color,0,false,false,m)
  1370. p.Material=workspace.Base.Material
  1371. p.CFrame=CFrame.new(torso.CFrame.x+math.random(-i,i),0,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)
  1372. p.Velocity=Vector3.new(math.random(-100,100),math.random(30,100),math.random(-100,100))
  1373. game.Debris:AddItem(p,2)
  1374. Spawn(function()
  1375. for i=1,10 do wait(.01)
  1376. p.Transparency=p.Transparency+.1
  1377. end
  1378. end)
  1379. end
  1380. end)
  1381. repeat wait() until hitted
  1382. hp:disconnect()
  1383. wait(.5)
  1384. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  1385. LerpTo.hndl.To = LerpTo.hndl.Cache
  1386. attack=false
  1387. end
  1388. else
  1389. wait(.2)
  1390. end
  1391. jmptimer = tim
  1392. end)
  1393. SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  1394. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),rad(20),-rad(70))*CFrame.new(0,-1,0)
  1395. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
  1396. wait(.01)
  1397. mwl.Part1=pchar['Right Arm']
  1398. mwl.C1=CFrame.new(0,-1,0)*CFrame.Angles(-rad(90),0,rad(90))
  1399. wait(.2)
  1400. CurrentActiveAnim="Holding"
  1401. LerpTo.hndl.To = LerpTo.hndl.Cache
  1402. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  1403. end)
  1404.  
  1405. hp.Deselected:connect(function()
  1406. SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  1407. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),rad(20),-rad(70))*CFrame.new(0,-1,0)
  1408. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
  1409. LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,0)
  1410. wait(.1)
  1411. mwl.Part1=pchar.Torso
  1412. mwl.C1=CFrame.new(-1,0,-1)*CFrame.Angles(rad(120),0,0)
  1413. wait(.1)
  1414. CurrentActiveAnim="Idle"
  1415. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  1416. end)
  1417.  
  1418. UpdateAnims()
  1419. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  1420.  
  1421. CurrentActiveAnim="Idle"
  1422.  
  1423. game:service'RunService'.RenderStepped:connect(function()
  1424. UpdateAnims(angle)
  1425. for _,v in pairs(LerpTo) do
  1426. v.Weld.C0 = Lerp.CFrame(v.Weld.C0,v.To,v.Speed)
  1427. end
  1428. rclcount = (rclcount%rclcounttime)+rclcountspeed
  1429. rcl = math.pi*math.sin((math.pi*2)/rclcounttime*rclcount)
  1430. angle = (angle % 100) + anglespeed/10
  1431. if Vector3.new(0, torso.Velocity.y, 0).magnitude > 2 then
  1432. CheckAnimData(CurrentActiveAnim,"Jump")
  1433. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  1434. CheckAnimData(CurrentActiveAnim,"Stance")
  1435. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  1436. CheckAnimData(CurrentActiveAnim,"Walk")
  1437. end
  1438. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement