Despira


SUBMITTED BY: Pamlau

DATE: March 8, 2017, 12:30 p.m.

FORMAT: Lua

SIZE: 71.4 kB

HITS: 1056

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

comments powered by Disqus