Advertisement
Thefrozen106

Dekira city (Edited)

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