deathsignature2

wafava

Jan 22nd, 2018
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.29 KB | None | 0 0
  1. --[[
  2. Cyber Stratosphere Class Made by Fenrier.
  3. ]]
  4. Player=game:GetService("Players").LocalPlayer
  5. Character=Player.Character
  6. PlayerGui=Player.PlayerGui
  7. Backpack=Player.Backpack
  8. Torso=Character.Torso
  9. Head=Character.Head
  10. Humanoid=Character.Humanoid
  11. LeftArm=Character["Left Arm"]
  12. LeftLeg=Character["Left Leg"]
  13. RightArm=Character["Right Arm"]
  14. RightLeg=Character["Right Leg"]
  15. LS=Torso["Left Shoulder"]
  16. LH=Torso["Left Hip"]
  17. RS=Torso["Right Shoulder"]
  18. RH=Torso["Right Hip"]
  19. Neck=Torso.Neck
  20. it=Instance.new
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  26. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  28. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  29. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  30. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RootPart=Character.HumanoidRootPart
  32. RootJoint=RootPart.RootJoint
  33. RootCF=euler(-1.57,0,3.14)
  34. attack = false
  35. attackdebounce = false
  36. MMouse=nil
  37. combo=0
  38. mana=0
  39. local idle=0
  40. local Anim="Idle"
  41. local Effects={}
  42. local Mode="Normal"
  43. local velCF=vt(0,0,0)
  44. local flyanim=false
  45. local overjet=false
  46. --player
  47. player=nil
  48. --save shoulders
  49. RSH, LSH=nil, nil
  50. --welds
  51. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  52. RHP,LHP=Instance.new("Weld"),Instance.new("Weld")
  53. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  54. RHP.Name="Right Hip" LHP.Name="Left Hip"
  55. LH=Torso["Left Hip"]
  56. RH=Torso["Right Hip"]
  57. Charge=0
  58. TorsoColor=Torso.BrickColor
  59.  
  60. function swait(num)
  61. if num==0 or num==nil then
  62. game:service'RunService'.RenderStepped:wait()
  63. else
  64. for i=0,num do
  65. game:service'RunService'.RenderStepped:wait()
  66. end
  67. end
  68. end
  69.  
  70. if Character:findFirstChild("Aero Board",true) ~= nil then
  71. Character:findFirstChild("Aero Board",true).Parent = nil
  72. end
  73. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  74. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  75. end
  76.  
  77.  
  78. function NoOutline(Part)
  79. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  80. end
  81.  
  82. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  83. local fp=it("Part")
  84. fp.formFactor=formfactor
  85. fp.Parent=parent
  86. fp.Reflectance=reflectance
  87. fp.Transparency=transparency
  88. fp.CanCollide=false
  89. fp.Locked=true
  90. fp.BrickColor=brickcolor
  91. fp.Name=name
  92. fp.Size=size
  93. fp.Position=Torso.Position
  94. NoOutline(fp)
  95. fp.Material="SmoothPlastic"
  96. fp:BreakJoints()
  97. return fp
  98. end
  99.  
  100. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  101. local mesh=it(Mesh)
  102. mesh.Parent=part
  103. if Mesh=="SpecialMesh" then
  104. mesh.MeshType=meshtype
  105. mesh.MeshId=meshid
  106. end
  107. mesh.Offset=offset
  108. mesh.Scale=scale
  109. return mesh
  110. end
  111.  
  112. function weld(parent,part0,part1,c0)
  113. local weld=it("Weld")
  114. weld.Parent=parent
  115. weld.Part0=part0
  116. weld.Part1=part1
  117. weld.C0=c0
  118. return weld
  119. end
  120.  
  121. local Color1=Torso.BrickColor
  122.  
  123. local fengui=it("GuiMain")
  124. fengui.Parent=Player.PlayerGui
  125. fengui.Name="WeaponGUI"
  126. local fenframe=it("Frame")
  127. fenframe.Parent=fengui
  128. fenframe.BackgroundColor3=Color3.new(255,255,255)
  129. fenframe.BackgroundTransparency=1
  130. fenframe.BorderColor3=Color3.new(17,17,17)
  131. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  132. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  133. local fenbarmana1=it("TextLabel")
  134. fenbarmana1.Parent=fenframe
  135. fenbarmana1.Text=" "
  136. fenbarmana1.BackgroundTransparency=0
  137. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  138. fenbarmana1.SizeConstraint="RelativeXY"
  139. fenbarmana1.TextXAlignment="Center"
  140. fenbarmana1.TextYAlignment="Center"
  141. fenbarmana1.Position=UDim2.new(0,0,0,0)
  142. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  143. local fenbarmana2=it("TextLabel")
  144. fenbarmana2.Parent=fenframe
  145. fenbarmana2.Text=" "
  146. fenbarmana2.BackgroundTransparency=0
  147. fenbarmana2.BackgroundColor3=Torso.Color
  148. fenbarmana2.SizeConstraint="RelativeXY"
  149. fenbarmana2.TextXAlignment="Center"
  150. fenbarmana2.TextYAlignment="Center"
  151. fenbarmana2.Position=UDim2.new(0,0,0,0)
  152. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  153. local fenbarmana3=it("TextLabel")
  154. fenbarmana3.Parent=fenframe
  155. fenbarmana3.Text=" "
  156. fenbarmana3.BackgroundTransparency=0
  157. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  158. fenbarmana3.SizeConstraint="RelativeXY"
  159. fenbarmana3.TextXAlignment="Center"
  160. fenbarmana3.TextYAlignment="Center"
  161. fenbarmana3.Position=UDim2.new(0,0,0,0)
  162. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  163. local fenbarmana4=it("TextLabel")
  164. fenbarmana4.Parent=fenframe
  165. fenbarmana4.Text="Energy("..mana..")"
  166. fenbarmana4.BackgroundTransparency=1
  167. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  168. fenbarmana4.SizeConstraint="RelativeXY"
  169. fenbarmana4.TextXAlignment="Center"
  170. fenbarmana4.TextYAlignment="Center"
  171. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  172. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  173. fenbarmana4.FontSize="Size9"
  174. fenbarmana4.TextStrokeTransparency=0
  175. fenbarmana4.TextColor=BrickColor.new("White")
  176.  
  177. local modelzorz=Instance.new("Model")
  178. modelzorz.Parent=Character
  179. modelzorz.Name="Aero Board"
  180.  
  181. local handle=part(3,modelzorz,0,0,BrickColor.new("Black"),"Handle1",vt())
  182. local hprt2=part(3,modelzorz,0,0,BrickColor.new("Black"),"Handle2",vt())
  183. local hprt3=part(3,modelzorz,0,0,BrickColor.new("Black"),"Handle3",vt())
  184. local prt1=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part1",vt())
  185. local prt2=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part2",vt())
  186. local prt3=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part3",vt())
  187. local prt4=part(3,modelzorz,0,0,TorsoColor,"Part4",vt())
  188. local prt5=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part5",vt())
  189. local prt6=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part6",vt())
  190. local prt7=part(3,modelzorz,0,0,TorsoColor,"Part7",vt())
  191. local prt8=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part8",vt())
  192. local prt9=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part9",vt())
  193. local prt10=part(3,modelzorz,0,0,TorsoColor,"Part10",vt())
  194. local prt11=part(3,modelzorz,0,0,TorsoColor,"Part11",vt())
  195. local prt12=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part12",vt())
  196. local prt13=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part13",vt())
  197. local prt14=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part14",vt())
  198. local prt15=part(3,modelzorz,0,0,TorsoColor,"Part15",vt())
  199. local prt16=part(3,modelzorz,0,0,TorsoColor,"Part16",vt())
  200. local prt17=part(3,modelzorz,0,0,TorsoColor,"Part17",vt())
  201. local prt18=part(3,modelzorz,0,0,TorsoColor,"Part18",vt())
  202. local prt19=part(3,modelzorz,0,0,TorsoColor,"Part19",vt())
  203. local prt20=part(3,modelzorz,0,0,TorsoColor,"Part20",vt())
  204. local prt21=part(3,modelzorz,0,0,TorsoColor,"Part21",vt())
  205. local prt22=part(3,modelzorz,0,0,BrickColor.new("White"),"Part22",vt())
  206. local prt23=part(3,modelzorz,0,0,BrickColor.new("White"),"Part23",vt())
  207. local prt24=part(3,modelzorz,0,0,TorsoColor,"Part24",vt())
  208. local prt25=part(3,modelzorz,0,0,TorsoColor,"Part25",vt())
  209.  
  210. local hmsh=mesh("BlockMesh",handle,"","",vt(0,0,0),vt(1,1,5))
  211. local hmsh2=mesh("BlockMesh",hprt2,"","",vt(0,0,0),vt(1,1,2))
  212. local hmsh3=mesh("BlockMesh",hprt3,"","",vt(0,0,0),vt(1,1,2))
  213. local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(2,30,12))
  214. local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(5,1.99,5))
  215. local msh3=mesh("SpecialMesh",prt3,"Wedge","",vt(0,0,0),vt(2,3,2.3))
  216. local msh4=mesh("SpecialMesh",prt4,"Wedge","",vt(0,0,0),vt(2.1,1.5,1.15))
  217. local msh5=mesh("CylinderMesh",prt5,"","",vt(0,0,0),vt(5,1.99,5))
  218. local msh6=mesh("SpecialMesh",prt6,"Wedge","",vt(0,0,0),vt(2,3,2.3))
  219. local msh7=mesh("SpecialMesh",prt7,"Wedge","",vt(0,0,0),vt(2.1,1.5,1.15))
  220. local msh8=mesh("SpecialMesh",prt8,"Torso","",vt(0,0,0),vt(6,1,1.98))
  221. local msh9=mesh("SpecialMesh",prt9,"Torso","",vt(0,0,0),vt(6,1,1.98))
  222. local msh10=mesh("SpecialMesh",prt10,"Wedge","",vt(0,0,0),vt(2,1,8))
  223. local msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(2,1,8))
  224. local msh12=mesh("SpecialMesh",prt12,"Torso","",vt(0,0,0),vt(10,3,2.05))
  225. local msh13=mesh("SpecialMesh",prt13,"Torso","",vt(0,0,0),vt(10,3,2.05))
  226. local msh14=mesh("BlockMesh",prt14,"","",vt(0,0,0),vt(10,10,2.05))
  227. local msh15=mesh("SpecialMesh",prt15,"Torso","",vt(0,0,0),vt(8,2,2.1))
  228. local msh16=mesh("SpecialMesh",prt16,"Torso","",vt(0,0,0),vt(8,2,2.1))
  229. local msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(8,.5,2.1))
  230. local msh18=mesh("BlockMesh",prt18,"","",vt(0,0,0),vt(8,.5,2.1))
  231. local msh19=mesh("BlockMesh",prt19,"","",vt(0,0,0),vt(2.1,5,6))
  232. local msh20=mesh("SpecialMesh",prt20,"Wedge","",vt(0,0,0),vt(2.1,3,2))
  233. local msh21=mesh("SpecialMesh",prt21,"Wedge","",vt(0,0,0),vt(2.1,3,2))
  234. local msh22=mesh("SpecialMesh",prt22,"Sphere","",vt(0,0,0),vt(1,6,5))
  235. local msh23=mesh("SpecialMesh",prt23,"Sphere","",vt(0,0,0),vt(1,8,5))
  236. local msh24=mesh("BlockMesh",prt24,"","",vt(0,0,0),vt(2.1,16,5))
  237. local msh25=mesh("SpecialMesh",prt25,"Torso","",vt(0,0,0),vt(5,5,2.1))
  238.  
  239. local hwld=weld(handle,handle,Torso,euler(1,1.57,0)*cf(-1,-1,-1))
  240. --local hwld=weld(handle,handle,RightArm,euler(0,0,0)*cf(0,1,0))
  241. --local hwld=weld(handle,handle,Torso,euler(0,0,-1.57)*cf(1,2.5,0))
  242. local hwld2=weld(hprt2,hprt2,handle,euler(0,1.57,0)*cf(.2,0,.4))
  243. local hwld3=weld(hprt3,hprt3,handle,euler(0,1.57,0)*cf(.2,0,-.4))
  244. local wld1=weld(prt1,prt1,handle,euler(0,0,0)*cf(.5,1,0))
  245. local wld2=weld(prt2,prt2,prt1,euler(0,0,1.57)*cf(0,-2.5,1.2))
  246. local wld3=weld(prt3,prt3,prt2,euler(0,0,1.57)*cf(-.5,0,.23))
  247. local wld4=weld(prt4,prt4,prt3,euler(0,0,0)*cf(0,0,-0.1))
  248. local wld5=weld(prt5,prt5,prt1,euler(0,0,1.57)*cf(0,-2.5,-1.2))
  249. local wld6=weld(prt6,prt6,prt5,euler(0,3.14,1.57)*cf(-.5,0,-.23))
  250. local wld7=weld(prt7,prt7,prt6,euler(0,0,0)*cf(0,0,-0.1))
  251. local wld8=weld(prt8,prt8,prt1,euler(1.57,0,1.57)*cf(0,-1.4,1.3))
  252. local wld9=weld(prt9,prt9,prt1,euler(-1.57,0,1.57)*cf(0,-1.4,-1.3))
  253. local wld10=weld(prt10,prt10,prt1,euler(1.57,0,0)*cf(0,-.1,1.3))
  254. local wld11=weld(prt11,prt11,prt1,euler(1.57,3.14,0)*cf(0,-.1,-1.3))
  255. local wld12=weld(prt12,prt12,prt1,euler(1.57,0,1.57)*cf(0,3,1.3))
  256. local wld13=weld(prt13,prt13,prt1,euler(-1.57,0,1.57)*cf(0,3,-1.3))
  257. local wld14=weld(prt14,prt14,prt1,euler(1.57,0,1.57)*cf(0,3,0))
  258. local wld15=weld(prt15,prt15,prt12,euler(0,0,0)*cf(0,.2,0))
  259. local wld16=weld(prt16,prt16,prt13,euler(0,0,0)*cf(0,.2,0))
  260. local wld17=weld(prt17,prt17,prt12,euler(0,0,0)*cf(0,.6,0))
  261. local wld18=weld(prt18,prt18,prt13,euler(0,0,0)*cf(0,.6,0))
  262. local wld19=weld(prt19,prt19,prt1,euler(0,0,0)*cf(0,-2,0))
  263. local wld20=weld(prt20,prt20,prt1,euler(3.14,0,0)*cf(0,-1.2,.4))
  264. local wld21=weld(prt21,prt21,prt1,euler(0,0,3.14)*cf(0,-1.2,-.4))
  265. local wld22=weld(prt22,prt22,prt1,euler(0,0,0)*cf(.2,-.5,0))
  266. local wld23=weld(prt23,prt23,prt1,euler(0,0,0)*cf(.2,1.7,0))
  267. local wld24=weld(prt24,prt24,prt1,euler(0,0,0)*cf(0,2.39,0))
  268. local wld25=weld(prt25,prt25,prt1,euler(0,1.57,0)*cf(0,.29,0))
  269.  
  270. local bprt1=part(3,modelzorz,0,1,TorsoColor,"Boomerang1",vt())
  271. local bmsh1=mesh("CylinderMesh",bprt1,"","",vt(0,0,0),vt(40,1,40))
  272. local bwld1=weld(bprt1,bprt1,prt1,euler(0,0,1.57)*cf(0,.5,0))
  273. eul=0
  274. for i=1,4 do
  275. local bprt2=part(3,modelzorz,0,1,TorsoColor,"Boomerang2",vt())
  276. local bmsh2=mesh("BlockMesh",bprt2,"","",vt(0,0,0),vt(45,1,10))
  277. local bwld2=weld(bprt2,bprt2,bprt1,euler(0,eul,0)*cf(0,0,0))
  278. eul=eul+0.785
  279. end
  280.  
  281. local hitbox=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  282. hitbox.Anchored=false
  283. velx=Instance.new("BodyVelocity")
  284. velx.Parent=nil
  285. velx.maxForce=Vector3.new(4e+005,4e+005,4e+005)*2
  286.  
  287. if (script.Parent.className~="HopperBin") then
  288. Tool=Instance.new("HopperBin")
  289. Tool.Parent=Backpack
  290. Tool.Name="Aero Board"
  291. script.Parent=Tool
  292. end
  293. Bin=script.Parent
  294.  
  295. local bodvel=Instance.new("BodyVelocity")
  296. local bg=Instance.new("BodyGyro")
  297. bg.Parent=nil
  298. bg.maxTorque=Vector3.new(4e+005,0,4e+005)*math.huge
  299. bg.P=20e+003
  300.  
  301. so = function(id,par,vol,pit)
  302. coroutine.resume(coroutine.create(function()
  303. local sou = Instance.new("Sound",par or workspace)
  304. sou.Volume=vol
  305. sou.Pitch=pit or 1
  306. sou.SoundId=id
  307. swait()
  308. sou:play()
  309. game:GetService("Debris"):AddItem(sou,6)
  310. end))
  311. end
  312.  
  313. function clerp(a,b,t)
  314. local qa = {QuaternionFromCFrame(a)}
  315. local qb = {QuaternionFromCFrame(b)}
  316. local ax, ay, az = a.x, a.y, a.z
  317. local bx, by, bz = b.x, b.y, b.z
  318. local _t = 1-t
  319. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  320. end
  321.  
  322. function QuaternionFromCFrame(cf)
  323. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  324. local trace = m00 + m11 + m22
  325. if trace > 0 then
  326. local s = math.sqrt(1 + trace)
  327. local recip = 0.5/s
  328. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  329. else
  330. local i = 0
  331. if m11 > m00 then
  332. i = 1
  333. end
  334. if m22 > (i == 0 and m00 or m11) then
  335. i = 2
  336. end
  337. if i == 0 then
  338. local s = math.sqrt(m00-m11-m22+1)
  339. local recip = 0.5/s
  340. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  341. elseif i == 1 then
  342. local s = math.sqrt(m11-m22-m00+1)
  343. local recip = 0.5/s
  344. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  345. elseif i == 2 then
  346. local s = math.sqrt(m22-m00-m11+1)
  347. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  348. end
  349. end
  350. end
  351.  
  352. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  353. local xs, ys, zs = x + x, y + y, z + z
  354. local wx, wy, wz = w*xs, w*ys, w*zs
  355. local xx = x*xs
  356. local xy = x*ys
  357. local xz = x*zs
  358. local yy = y*ys
  359. local yz = y*zs
  360. local zz = z*zs
  361. 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))
  362. end
  363.  
  364. function QuaternionSlerp(a, b, t)
  365. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  366. local startInterp, finishInterp;
  367. if cosTheta >= 0.0001 then
  368. if (1 - cosTheta) > 0.0001 then
  369. local theta = math.acos(cosTheta)
  370. local invSinTheta = 1/math.sin(theta)
  371. startInterp = math.sin((1-t)*theta)*invSinTheta
  372. finishInterp = math.sin(t*theta)*invSinTheta
  373. else
  374. startInterp = 1-t
  375. finishInterp = t
  376. end
  377. else
  378. if (1+cosTheta) > 0.0001 then
  379. local theta = math.acos(-cosTheta)
  380. local invSinTheta = 1/math.sin(theta)
  381. startInterp = math.sin((t-1)*theta)*invSinTheta
  382. finishInterp = math.sin(t*theta)*invSinTheta
  383. else
  384. startInterp = t-1
  385. finishInterp = t
  386. end
  387. end
  388. 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
  389. end
  390.  
  391. function hideanim()
  392. equipped=false
  393. for i=0,1,0.1 do
  394. swait()
  395. hwld.C0=clerp(hwld.C0,euler(1.57,-1.57,3.5)*cf(.6,.4,1),.3)
  396. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.8),.3)
  397. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  398. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3.3,0,-0.1),.3)
  399. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  400. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.3)
  401. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  402. end
  403. hwld.Part1=Torso
  404. hwld.C0=euler(1,1.57,0)*cf(-1,-1,-1)
  405. for i=0,1,0.1 do
  406. swait()
  407. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  408. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
  409. Torso.Neck.C1=clerp(Torso.Neck.C1,necko2*euler(0,0,0),.4)
  410. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  411. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  412. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  413. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  414. RH.C0=clerp(RH.C0,RHC0,.3)
  415. RH.C1=clerp(RH.C1,RHC1,.3)
  416. LH.C0=clerp(LH.C0,LHC0,.3)
  417. LH.C1=clerp(LH.C1,LHC1,.3)
  418. end
  419. end
  420.  
  421. function equipanim()
  422. equipped=true
  423. for i=0,1,0.1 do
  424. swait()
  425. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.8),.3)
  426. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
  427. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3.3,0,-0.1),.3)
  428. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  429. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.3)
  430. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  431. end
  432. hwld.Part1=RightArm
  433. hwld.C0=euler(1.57,-1.57,3.5)*cf(.6,.4,1)
  434. so("http://roblox.com/asset/?id=161006212",prt1,1,.6)
  435. for i=0,1,0.1 do
  436. swait()
  437. hwld.C0=clerp(hwld.C0,euler(3.14,3.14,0)*cf(0,1,0),.3)
  438. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.3),.3)
  439. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.3)
  440. RW.C0=clerp(RW.C0,cf(1.3,0.5,-.2)*euler(1.3,0,-.3),.3)
  441. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  442. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.3)
  443. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  444. end
  445. end
  446.  
  447. function attackone()
  448. attack=true
  449. so("http://roblox.com/asset/?id=2101137",prt1,1,1.4)
  450. for i=0,1,0.1 do
  451. swait()
  452. hwld.C0=clerp(hwld.C0,euler(3.14,3.14,0)*cf(0,1,0),.3)
  453. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.8),.3)
  454. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.8),.3)
  455. RW.C0=clerp(RW.C0,cf(1.3,0.5,-.2)*euler(2,0,.5),.3)
  456. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  457. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-.8),.3)
  458. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  459. end
  460. Torso.Velocity=RootPart.CFrame.lookVector*100
  461. so("http://roblox.com/asset/?id=161006195",prt1,1,.6)
  462. so("http://roblox.com/asset/?id=2248511",prt1,1,1.4)
  463. MagicCircle(TorsoColor,prt1.CFrame,1,1,1,5,5,5,.05)
  464. hitbox.Parent=modelzorz
  465. hitbox.Size=vt(2,7,4)
  466. hitbox.Transparency=1
  467. hitbox.CFrame=prt1.CFrame
  468. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(1,5),"Normal",RootPart,.5,1) end)
  469. num=0
  470. for i=0,1,0.1 do
  471. swait()
  472. hitbox.CFrame=prt1.CFrame
  473. if num>=3 then
  474. MagicWave(TorsoColor,prt1.CFrame*cf(0,1,0)*euler(3.14,0,0),1,1,1,.5,1,.5,.1)
  475. num=0
  476. end
  477. num=num+1
  478. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.2)*euler(.2,0,0),.3)
  479. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  480. RW.C0=clerp(RW.C0,cf(1.3,0.5,-.2)*euler(1,0,.5),.3)
  481. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  482. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.8),.3)
  483. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  484. RH.C0=clerp(RH.C0,cf(.5,-1,1)*euler(0,1.57,0)*euler(0,-1.2,0),.3)
  485. LH.C0=clerp(LH.C0,cf(-.5,-1,-1)*euler(0,-1.57,0)*euler(0,-1.2,0),.3)
  486. end
  487. con1:disconnect()
  488. hitbox.Parent=nil
  489. swait(10)
  490. attack=false
  491. end
  492.  
  493. function attacktwo()
  494. attack=true
  495. so("http://roblox.com/asset/?id=147722227",prt1,1,.6)
  496. for i=0,1,0.1 do
  497. swait()
  498. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.2)*euler(.2,0,0),.3)
  499. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  500. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,-.8)*euler(0,1.57,0),.3)
  501. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  502. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.3)
  503. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  504. end
  505. so("http://www.roblox.com/asset/?id=153092348",prt1,1,1.2)
  506. Torso.Velocity=RootPart.CFrame.lookVector*50
  507. hitbox.Parent=modelzorz
  508. hitbox.Size=vt(2,7,4)
  509. hitbox.Transparency=1
  510. hitbox.CFrame=prt1.CFrame
  511. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(1,5),"Normal",RootPart,1,1) end)
  512. for i=0,1,0.1 do
  513. swait()
  514. Torso.Velocity=RootPart.CFrame.lookVector*50
  515. MagicCircle(TorsoColor,prt1.CFrame*cf(0,3,0),1,1,1,5,5,5,.1)
  516. hitbox.CFrame=prt1.CFrame
  517. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5),.3)
  518. --RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.3)
  519. RootJoint.C0=RootCF*euler(0,0,1.2-6.28*i)
  520. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1)*euler(0,1.57,0),.3)
  521. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  522. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-1),.3)
  523. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  524. end
  525. for i=0,1,0.1 do
  526. swait()
  527. hitbox.CFrame=prt1.CFrame
  528. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1),.3)
  529. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1),.3)
  530. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,1)*euler(0,1.57,0),.3)
  531. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  532. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-1),.3)
  533. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  534. end
  535. con1:disconnect()
  536. hitbox.Parent=nil
  537. swait(5)
  538. attack=false
  539. end
  540.  
  541. function attackthree()
  542. attack=true
  543. so("http://roblox.com/asset/?id=147722227",prt1,1,.6)
  544. for i=0,1,0.1 do
  545. swait()
  546. hwld.C0=clerp(hwld.C0,euler(3.14,3.14,0)*cf(0,1,0),.3)
  547. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1)*euler(.2,0,0),.3)
  548. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1),.3)
  549. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-.6),.3)
  550. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  551. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.57,0,.8),.3)
  552. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  553. RH.C0=clerp(RH.C0,cf(.5,-1,.5)*euler(0,1.57,0)*euler(0,-1,0),.3)
  554. LH.C0=clerp(LH.C0,cf(-.5,-1,-.5)*euler(0,-1.57,0)*euler(0,-1,0),.3)
  555. end
  556. so("http://roblox.com/asset/?id=161006212",prt1,1,.5)
  557. vel=Instance.new("BodyVelocity")
  558. vel.Parent=RootPart
  559. vel.maxForce=Vector3.new(4e+005,4e+005,4e+005)*2
  560. vel.velocity=RootPart.CFrame.lookVector*70
  561. gairo=Instance.new("BodyGyro")
  562. gairo.Parent=RootPart
  563. gairo.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge
  564. gairo.P=20e+003
  565. gairo.cframe=RootPart.CFrame
  566. hitbox.Parent=modelzorz
  567. hitbox.Size=vt(2,7,4)
  568. hitbox.Transparency=1
  569. hitbox.CFrame=prt1.CFrame
  570. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(30,40),"Knockdown2",RootPart,.5,2) end)
  571. num=0
  572. for i=0,2,0.1 do
  573. swait()
  574. hitbox.CFrame=prt1.CFrame
  575. if num>=3 then
  576. MagicWave(TorsoColor,prt1.CFrame*euler(0,0,-1.57),1,1,1,.8,.7,.8,.1)
  577. num=0
  578. end
  579. num=num+1
  580. end
  581. vel.Parent=nil
  582. gairo.Parent=nil
  583. con1:disconnect()
  584. hitbox.Parent=nil
  585. swait(10)
  586. attack=false
  587. end
  588.  
  589. function OverDrive()
  590. attack=true
  591. for i=0,1,0.1 do
  592. swait()
  593. hwld.C0=clerp(hwld.C0,euler(3.14,3.14,0)*cf(0,1,0),.3)
  594. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.6)*euler(.2,0,-.5),.3)
  595. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,.5),.4)
  596. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,.6)*euler(0,1,0),.4)
  597. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  598. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.8),.4)
  599. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  600. RH.C0=clerp(RH.C0,cf(1,-1,-.2)*euler(0,1.57,0)*euler(-.1,.5,-.6),.3)
  601. LH.C0=clerp(LH.C0,cf(-1.1,-.4,-.1)*euler(0,-1.57,0)*euler(.1,.5,-.2),.3)
  602. end
  603. Humanoid.WalkSpeed=5
  604. for i=1,2 do
  605. so("http://roblox.com/asset/?id=2101137",RootPart,1,1.2)
  606. num=0
  607. for i=0,4,0.1 do
  608. swait()
  609. hit,pos=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,50,Character)
  610. if hit~=nil then
  611. if num>=10 then
  612. MagicWave(TorsoColor,cf(pos),1,1,1,.6,.2,.6,.05)
  613. num=0
  614. end
  615. num=num+1
  616. end
  617. end
  618. MagicBlock(TorsoColor,cf(prt1.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,6,6,6,.1,2)
  619. so("http://roblox.com/asset/?id=2248511",prt1,1,2)
  620. mana=mana-10
  621. end
  622. swait(5)
  623. so("http://roblox.com/asset/?id=161006093",prt1,1,1)
  624. so("http://roblox.com/asset/?id=169380505",prt1,1,1)
  625. vel=Instance.new("BodyVelocity")
  626. vel.Parent=RootPart
  627. vel.maxForce=Vector3.new(4e+005,4e+005,4e+005)*2
  628. vel.velocity=RootPart.CFrame.lookVector*50
  629. hitbox.Parent=modelzorz
  630. hitbox.Size=vt(2,7,4)
  631. hitbox.Transparency=1
  632. hitbox.CFrame=prt1.CFrame
  633. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(1,5),"OrbBlast",RootPart,1,1,1) end)
  634. for i=0,1,0.1 do
  635. swait()
  636. if num>=5 then
  637. MagicWave(TorsoColor,prt1.CFrame*cf(0,1,0)*euler(3.14,0,0),1,1,1,.5,1,.5,.1)
  638. num=0
  639. end
  640. num=num+1
  641. hitbox.CFrame=prt1.CFrame
  642. vel.velocity=RootPart.CFrame.lookVector*50
  643. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.2)*euler(.2,0,0),.3)
  644. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  645. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.2),.3)
  646. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  647. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.8),.3)
  648. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  649. RH.C0=clerp(RH.C0,cf(.5,-1,1)*euler(0,1.57,0)*euler(0,-1.2,0),.3)
  650. LH.C0=clerp(LH.C0,cf(-.5,-1,-1)*euler(0,-1.57,0)*euler(0,-1.2,0),.3)
  651. end
  652. for i=1,7,0.1 do
  653. swait()
  654. hitbox.CFrame=prt1.CFrame
  655. if num>=5 then
  656. MagicWave(TorsoColor,prt1.CFrame*cf(0,1,0)*euler(3.14,0,0),1,1,1,.5,1,.5,.1)
  657. num=0
  658. end
  659. num=num+1
  660. vel.velocity=RootPart.CFrame.lookVector*50
  661. end
  662. con1:disconnect()
  663. hitbox.Parent=nil
  664. Humanoid.WalkSpeed=0
  665. for i=0,1,0.02 do
  666. swait()
  667. vel.velocity=RootPart.CFrame.lookVector*(50-50*i)
  668. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.6)*euler(.2,0,.5),.2)
  669. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.2)
  670. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1,0,-.4)*euler(0,.5,0),.2)
  671. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  672. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(.5,0,.8),.2)
  673. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  674. RH.C0=clerp(RH.C0,cf(1.1,-.4,-.1)*euler(0,1.57,0)*euler(-.1,-.5,.2),.2)
  675. LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(-.1,-.5,.4),.2)
  676. end
  677. vel.Parent=nil
  678. Humanoid.WalkSpeed=16
  679. attack=false
  680. end
  681.  
  682. function Boomerang()
  683. attack=true
  684. mana=mana-40
  685. Humanoid.WalkSpeed=5
  686. so("http://roblox.com/asset/?id=10209296",prt1,1,1.2)
  687. so("http://roblox.com/asset/?id=2101144",prt1,1,1)
  688. for _,c in pairs(modelzorz:children()) do
  689. if c.Name=="Boomerang1" or c.Name=="Boomerang2" then
  690. coroutine.resume(coroutine.create(function(Part)
  691. for i=1,.2,-0.1 do
  692. swait()
  693. Part.Transparency=i
  694. end
  695. end),c)
  696. end
  697. end
  698. for i=0,1,0.1 do
  699. swait()
  700. hwld.C0=clerp(hwld.C0,euler(3.14,3.14,0)*cf(0,1,0),.3)
  701. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.6)*euler(.2,0,-.5),.3)
  702. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,.5),.3)
  703. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,1)*euler(0,1.5,0),.3)
  704. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  705. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.6),.3)
  706. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  707. RH.C0=clerp(RH.C0,cf(1,-1,-.2)*euler(0,1.57,0)*euler(-.1,.5,-.6),.3)
  708. LH.C0=clerp(LH.C0,cf(-1.1,-.4,-.1)*euler(0,-1.57,0)*euler(.1,.5,-.2),.3)
  709. end
  710. hitbox.Parent=modelzorz
  711. hitbox.Size=vt(1,10,10)
  712. hitbox.Transparency=1
  713. hitbox.CFrame=prt1.CFrame
  714. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(20,30),"Knockdown2",prt1,.5,2) end)
  715. so("http://roblox.com/asset/?id=10209640",prt1,1,.6)
  716. for i=0,1,0.03 do
  717. so("rbxasset://sounds\\swordslash.wav",prt1,1,1.5)
  718. swait()
  719. hitbox.CFrame=prt1.CFrame
  720. --hwld.C0=clerp(hwld.C0,euler(3.14,3.14,0)*cf(0,1,0),.3)
  721. hwld.C0=euler(3.14+6.28*i,3.14,0)*cf(0,1+40*i,0)
  722. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1),.3)
  723. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-1),.3)
  724. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1)*euler(0,1.5,0),.3)
  725. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  726. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.6),.3)
  727. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  728. RH.C0=clerp(RH.C0,cf(.5,-1,.5)*euler(0,1.57,0)*euler(0,-1,0),.3)
  729. LH.C0=clerp(LH.C0,cf(-.5,-1,-.5)*euler(0,-1.57,0)*euler(0,-1,0),.3)
  730. end
  731. for i=0,1,0.03 do
  732. so("rbxasset://sounds\\swordslash.wav",prt1,1,1.5)
  733. swait()
  734. hitbox.CFrame=prt1.CFrame
  735. hwld.C0=euler(3.14+6.28+6.28*i,3.14,0)*cf(0,1+40-40*i,0)
  736. end
  737. con1:disconnect()
  738. hitbox.Parent=nil
  739. for _,c in pairs(modelzorz:children()) do
  740. if c.Name=="Boomerang1" or c.Name=="Boomerang2" then
  741. coroutine.resume(coroutine.create(function(Part)
  742. for i=.2,1,0.1 do
  743. swait()
  744. Part.Transparency=i
  745. end
  746. end),c)
  747. end
  748. end
  749. for i=0,1,0.05 do
  750. swait()
  751. hwld.C0=clerp(hwld.C0,euler(3.14,3.14,0)*cf(0,1,0),.2)
  752. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,-1),.2)
  753. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(.2,0,0),.2)
  754. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1)*euler(0,.5,0),.2)
  755. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  756. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1),.2)
  757. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  758. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  759. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  760. end
  761. swait(10)
  762. Humanoid.WalkSpeed=16
  763. attack=false
  764. end
  765.  
  766. function EnergyBlades()
  767. attack=true
  768. for i=0,1,0.1 do
  769. swait()
  770. hwld.C0=clerp(hwld.C0,euler(3.14,3.14,0)*cf(0,1,0),.3)
  771. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1),.3)
  772. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1),.3)
  773. RW.C0=clerp(RW.C0,cf(1.3,1,-.2)*euler(3.14,0,-.3)*euler(0,-.5,0),.3)
  774. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  775. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.3)
  776. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  777. end
  778. Humanoid.WalkSpeed=0
  779. for i=0,1,0.15 do
  780. swait()
  781. hwld.C0=clerp(hwld.C0,euler(3.14,3.14,0)*cf(0,1,0),.3)
  782. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1),.3)
  783. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1),.3)
  784. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3.14,0,0)*euler(0,-.5,0),.3)
  785. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  786. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.5),.3)
  787. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  788. end
  789. MagicCircle(TorsoColor,prt1.CFrame*cf(0,-4.5,0),1,1,1,5,.5,5,.05)
  790. so("http://roblox.com/asset/?id=169445602",prt1,1,.8)
  791. mana=mana-40
  792. for i=100,300,50 do
  793. local sord=part(3,modelzorz,0,0.5,TorsoColor,"Sord",vt(1,1,5))
  794. local smsh=mesh("SpecialMesh",sord,"FileMesh","rbxasset://fonts/sword.mesh",vt(0,0,0),vt(1,1,1))
  795. sord.Anchored=true
  796. newCF=cf(math.random(-600,600)/100,math.random(500,1000)/100,math.random(-600,600)/100)
  797. sord.CFrame=cf(RootPart.Position)*newCF
  798. sord.CFrame=cf(sord.Position,MMouse.Hit.p)*euler(3.14,0,0)
  799. MagicCircle(TorsoColor,sord.CFrame,5,5,10,1,1,3,.05)
  800. so("http://roblox.com/asset/?id=2101144",sord,.6,.7)
  801. game:GetService("Debris"):AddItem(sord,10)
  802. local hitt=false
  803. con=sord.Touched:connect(function(hit)
  804. if hitt==true then return end
  805. hitt=true
  806. --if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  807. if hit.Name~="Sord" then
  808. sord.Parent=nil
  809. local ref=part(3,workspace,0,1,hit.BrickColor,"Effect",vt())
  810. ref.Anchored=true
  811. ref.CFrame=cf(sord.Position)
  812. so("http://roblox.com/asset/?id=161006093",ref,1,1)
  813. so("http://roblox.com/asset/?id=10209303",ref,1,1)
  814. MagicCircle(TorsoColor,cf(ref.Position),1,1,1,2,2,2,.01)
  815. for i=0,10 do
  816. MagicBlock(TorsoColor,cf(ref.Position),1,1,1,1,1,1,.05,3)
  817. end
  818. game:GetService("Debris"):AddItem(ref,1)
  819. MagniDamage(ref,15,5,10,math.random(10,30),"Knockdown2")
  820. end
  821. debounce=Instance.new("BoolValue")
  822. debounce.Name="DebounceHit"
  823. debounce.Parent=hit.Parent
  824. debounce.Value=true
  825. game:GetService("Debris"):AddItem(debounce,.5)
  826. end)
  827. coroutine.resume(coroutine.create(function(Part,Cframe,numb)
  828. while Part.Parent~=nil do
  829. swait()
  830. numb=numb-1
  831. if numb<=0 then
  832. Part.CFrame=Part.CFrame*cf(0,0,2)
  833. local prt=Part:clone()
  834. prt.Size=vt()
  835. prt.Parent=workspace
  836. prt.CFrame=Part.CFrame
  837. table.insert(Effects,{prt,"Disappear",.1})
  838. else
  839. Part.CFrame=cf(RootPart.Position)*Cframe
  840. Part.CFrame=cf(Part.Position,MMouse.Hit.p)*euler(3.14,0,0)
  841. end
  842. end
  843. end),sord,newCF,i)
  844. end
  845.  
  846. swait(100)
  847. Humanoid.WalkSpeed=16
  848. attack=false
  849. end
  850.  
  851. function JetMode()
  852. attack=true
  853. Mode="Jet"
  854. for i=0,1,0.1 do
  855. swait()
  856. hwld.C0=clerp(hwld.C0,euler(3.14,3.14,0)*cf(0,1,0),.3)
  857. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.2,0,0),.3)
  858. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  859. RW.C0=clerp(RW.C0,cf(1.3,0.5,-.2)*euler(1.5,0,-.3),.3)
  860. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  861. LW.C0=clerp(LW.C0,cf(-.5,0.5,-0.5)*euler(1.6,0,1),.3)
  862. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  863. end
  864. so("http://roblox.com/asset/?id=10209640",prt1,1,.6)
  865. bg.Parent=RootPart
  866. velx.Parent=RootPart
  867. velCF=vt((RootPart.CFrame.lookVector.x*70),(RootPart.CFrame.lookVector.y*0),(RootPart.CFrame.lookVector.z*70))
  868. velx.velocity=velCF
  869. RH.Parent=nil
  870. LH.Parent=nil
  871. RHP.Part0=Torso
  872. RHP.C0=cf(0.5,-1,0)
  873. RHP.C1=cf(0,1,0)
  874. RHP.Part1=RightLeg
  875. RHP.Parent=Torso
  876. --
  877. LHP.Part0=Torso
  878. LHP.C0=cf(-0.5,-1,0)
  879. LHP.C1=cf(0,1,0)
  880. LHP.Part1=LeftLeg
  881. LHP.Parent=Torso
  882. hwld.Part1=Torso
  883. hwld.C0=euler(-1.57,3.14,0)*cf(-1.2,-.5,2)
  884. for i=0,1,0.1 do
  885. swait()
  886. hwld.C0=clerp(hwld.C0,euler(0,0,-1.57)*cf(1,2.5,0),.2)
  887. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.2)
  888. --RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  889. RootJoint.C0=RootCF*euler(0,0,-.5+3.4*i)
  890. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,0,.1),.2)
  891. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  892. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-.1),.2)
  893. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  894. end
  895. for i=0,1,0.05 do
  896. swait()
  897. hwld.C0=clerp(hwld.C0,euler(0,0,-1.57)*cf(1.5,2.5,0),.2)
  898. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57),.2)
  899. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.57),.2)
  900. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.3),.2)
  901. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  902. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.3),.2)
  903. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  904. RHP.C0=clerp(RHP.C0,cf(0.5,-1,0)*euler(0,0,.2),.2)
  905. LHP.C0=clerp(LHP.C0,cf(-0.5,-1,0)*euler(0,0,-.2),.2)
  906. end
  907. attack=false
  908. end
  909.  
  910. function attackjet()
  911. attack=true
  912. for i=0,1,0.1 do
  913. swait()
  914. hwld.C0=clerp(hwld.C0,euler(0,0,-1.57)*cf(1.5,2.5,0),.2)
  915. Neck.C0=clerp(Neck.C0,necko*euler(.3,0,1.57),.2)
  916. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.5,0,-1.57)*euler(0,0,-.5),.3)
  917. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1,0,.5),.2)
  918. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  919. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,0,-.5),.2)
  920. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  921. RHP.C0=clerp(RHP.C0,cf(0.5,-1,0)*euler(0,0,.2),.2)
  922. LHP.C0=clerp(LHP.C0,cf(-0.5,-1,0)*euler(0,0,-.2),.2)
  923. end
  924. so("http://roblox.com/asset/?id=161006221",prt1,1,1.1)
  925. hitbox.Parent=modelzorz
  926. hitbox.Size=vt(2,7,4)
  927. hitbox.Transparency=1
  928. hitbox.CFrame=prt1.CFrame
  929. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,7,10,math.random(10,30),"Knockdown2",RootPart,.5,1) end)
  930. for i=0,1,0.05 do
  931. swait()
  932. hitbox.CFrame=prt1.CFrame
  933. MagicClone(prt1,TorsoColor,prt1.CFrame,0,0,0,.2)
  934. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57),.2)
  935. RootJoint.C0=RootCF*cf(0,-8*i,0)*euler(.5-1.2*i,0,-1.57+5*i)*euler(0,0,-.5+.5*i)
  936. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57),.2)
  937. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  938. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57),.2)
  939. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  940. end
  941. for i=0,1,0.1 do
  942. swait()
  943. hitbox.CFrame=prt1.CFrame
  944. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57),.1)
  945. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.57)*euler(0,0,0),.1)
  946. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57),.1)
  947. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  948. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57),.1)
  949. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  950. end
  951. con1:disconnect()
  952. hitbox.Parent=nil
  953. attack=false
  954. end
  955.  
  956. function OverDriveJet()
  957. attack=true
  958. flyanim=true
  959. overjet=true
  960. for i=0,1,0.1 do
  961. swait()
  962. velCF=vt((RootPart.CFrame.lookVector.x*50*(i*1.5)),(RootPart.CFrame.lookVector.y*0),(RootPart.CFrame.lookVector.z*50*(i*1.5)))
  963. hwld.C0=clerp(hwld.C0,euler(0,0,-1.57)*cf(1.5,2.5,0),.3)
  964. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57),.3)
  965. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,-1.57),.3)
  966. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57),.3)
  967. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  968. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57),.3)
  969. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  970. RHP.C0=clerp(RHP.C0,cf(0.5,-1,0)*euler(0,0,.2),.3)
  971. LHP.C0=clerp(LHP.C0,cf(-0.5,-1,0)*euler(0,0,-.2),.3)
  972. end
  973. for i=25,125 do
  974. swait()
  975. velCF=vt((RootPart.CFrame.lookVector.x*75),(RootPart.CFrame.lookVector.y*0),(RootPart.CFrame.lookVector.z*75))
  976. if i%25==0 then
  977. mana=mana-12
  978. local ref=part(3,workspace,0,.5,TorsoColor,"Effect",vt())
  979. ref.Anchored=true
  980. ref.CFrame=cf(prt1.Position)
  981. rmsh=mesh("SpecialMesh",ref,"Sphere","",vt(0,0,0),vt(15,15,15))
  982. MagicBlock(TorsoColor,cf(ref.Position),5,5,5,1,1,1,.05,1)
  983. so("http://roblox.com/asset/?id=160745944",ref,1,1)
  984. game:GetService("Debris"):AddItem(ref,4)
  985. coroutine.resume(coroutine.create(function(Part,CF)
  986. while Part.Parent~=nil do
  987. swait()
  988. end
  989. local ref=part(3,workspace,0,1,TorsoColor,"Effect",vt())
  990. ref.Anchored=true
  991. ref.CFrame=CF
  992. game:GetService("Debris"):AddItem(ref,1)
  993. so("http://roblox.com/asset/?id=161006093",ref,1,1)
  994. so("http://roblox.com/asset/?id=10209303",ref,1,1)
  995. MagicCircle(TorsoColor,cf(ref.Position),20,20,20,15,15,15,.1)
  996. MagicBlock(TorsoColor,cf(ref.Position),20,20,20,1,1,1,.05,1)
  997. coroutine.resume(coroutine.create(function(Part)
  998. for i=0,30 do
  999. swait()
  1000. MagicBlock(TorsoColor,cf(Part.Position)*cf(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,300)/100),1,1,1,1,1,1,.1,3)
  1001. end
  1002. end),ref)
  1003. MagniDamage(ref,20,15,25,math.random(20,40),"Knockdown")
  1004. end),ref,ref.CFrame)
  1005. end
  1006. end
  1007. overjet=false
  1008. flyanim=false
  1009. attack=false
  1010. end
  1011.  
  1012. function BoomerangJet()
  1013. attack=true
  1014. mana=mana-20
  1015. so("http://roblox.com/asset/?id=10209296",prt1,1,1.2)
  1016. so("http://roblox.com/asset/?id=2101144",prt1,1,1)
  1017. for _,c in pairs(modelzorz:children()) do
  1018. if c.Name=="Boomerang1" or c.Name=="Boomerang2" then
  1019. coroutine.resume(coroutine.create(function(Part)
  1020. for i=1,.2,-0.1 do
  1021. swait()
  1022. Part.Transparency=i
  1023. end
  1024. end),c)
  1025. end
  1026. end
  1027. for i=0,1,0.1 do
  1028. swait()
  1029. hwld.C0=clerp(hwld.C0,euler(0,0,-1.57)*cf(1.5,2.5,0),.2)
  1030. Neck.C0=clerp(Neck.C0,necko*euler(.3,0,1.57),.2)
  1031. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.5,0,-1.57)*euler(0,0,-.5),.3)
  1032. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1,0,.5),.2)
  1033. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1034. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,0,-.5),.2)
  1035. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1036. RHP.C0=clerp(RHP.C0,cf(0.5,-1,0)*euler(0,0,.2),.2)
  1037. LHP.C0=clerp(LHP.C0,cf(-0.5,-1,0)*euler(0,0,-.2),.2)
  1038. end
  1039. hwld.Part1=RootPart
  1040. hwld.C0=euler(2,0,-1.57)*cf(0,2.5,0)
  1041. hitbox.Parent=modelzorz
  1042. hitbox.Size=vt(1,10,10)
  1043. hitbox.Transparency=1
  1044. hitbox.CFrame=prt1.CFrame
  1045. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(30,40),"Knockdown2",prt1,.5,2) end)
  1046. so("http://roblox.com/asset/?id=10209640",prt1,1,.6)
  1047. for i=0,1,0.05 do
  1048. swait()
  1049. so("rbxasset://sounds\\swordslash.wav",prt1,1,1.3)
  1050. hitbox.CFrame=prt1.CFrame
  1051. hwld.C0=euler(2-5*i,0,-1.57)*cf(0,2.5-2*i,30*i)
  1052. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57),.3)
  1053. RootJoint.C0=RootCF*euler(.5-1.5*i,0,-1.57)*euler(0,0,-.5+4*i)
  1054. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57),.3)
  1055. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1056. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57),.3)
  1057. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1058. RHP.C0=clerp(RHP.C0,cf(0.5,-1,0)*euler(0,0,.2),.3)
  1059. LHP.C0=clerp(LHP.C0,cf(-0.5,-1,0)*euler(0,0,-.2),.3)
  1060. end
  1061. for i=0,1,0.05 do
  1062. swait()
  1063. so("rbxasset://sounds\\swordslash.wav",prt1,1,1.3)
  1064. hitbox.CFrame=prt1.CFrame
  1065. hwld.C0=euler(2-5-5*i,0,-1.57)*cf(0,2.5-2+2*i,30-35*i)
  1066. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57),.3)
  1067. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.57)*euler(0,0,0),.1)
  1068. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1),.15)
  1069. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  1070. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-1,0,-1),.15)
  1071. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  1072. RHP.C0=clerp(RHP.C0,cf(0.5,-1,0)*euler(0,0,.2),.3)
  1073. LHP.C0=clerp(LHP.C0,cf(-0.5,-1,0)*euler(0,0,-.2),.3)
  1074. end
  1075. con1:disconnect()
  1076. hitbox.Parent=nil
  1077. hwld.Part1=Torso
  1078. for _,c in pairs(modelzorz:children()) do
  1079. if c.Name=="Boomerang1" or c.Name=="Boomerang2" then
  1080. coroutine.resume(coroutine.create(function(Part)
  1081. for i=.2,1,0.1 do
  1082. swait()
  1083. Part.Transparency=i
  1084. end
  1085. end),c)
  1086. end
  1087. end
  1088. attack=false
  1089. end
  1090.  
  1091. function EnergySwordJet()
  1092. attack=true
  1093. mana=mana-20
  1094. for i=0,1,0.1 do
  1095. swait()
  1096. hwld.C0=clerp(hwld.C0,euler(0,0,-1.57)*cf(1.5,2.5,0),.3)
  1097. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57),.3)
  1098. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-1,0,-1.57),.3)
  1099. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57),.2)
  1100. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1101. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57),.2)
  1102. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1103. RHP.C0=clerp(RHP.C0,cf(0.5,-1,0)*euler(0,0,.2),.2)
  1104. LHP.C0=clerp(LHP.C0,cf(-0.5,-1,0)*euler(0,0,-.2),.2)
  1105. end
  1106. num=0
  1107. for i=0,1,0.01 do
  1108. swait()
  1109. if num>=20 then
  1110. local sord=part(3,modelzorz,0,0.5,TorsoColor,"Sord",vt(1,1,4))
  1111. local smsh=mesh("SpecialMesh",sord,"FileMesh","rbxasset://fonts/sword.mesh",vt(0,0,0),vt(2,2,2))
  1112. sord.Anchored=true
  1113. newCF=cf(math.random(-600,600)/100,math.random(-600,600)/100,math.random(-600,600)/100)
  1114. sord.CFrame=cf(RootPart.Position)*newCF
  1115. sord.CFrame=cf(sord.Position,MMouse.Hit.p)*euler(3.14,0,0)
  1116. MagicCircle(TorsoColor,sord.CFrame,5,5,10,1,1,3,.05)
  1117. so("http://roblox.com/asset/?id=169445602",sord,1,.7)
  1118. game:GetService("Debris"):AddItem(sord,5)
  1119. local hitt=false
  1120. con=sord.Touched:connect(function(hit)
  1121. if hitt==true then return end
  1122. hitt=true
  1123. if hit.Parent==Character or hit.Parent.Parent==Character then return end
  1124. --if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1125. if hit.Name~="Sord" then
  1126. sord.Parent=nil
  1127. local ref=part(3,workspace,0,1,hit.BrickColor,"Effect",vt())
  1128. ref.Anchored=true
  1129. ref.CFrame=cf(sord.Position)
  1130. so("http://roblox.com/asset/?id=161006093",ref,1,1)
  1131. so("http://roblox.com/asset/?id=10209303",ref,1,1)
  1132. MagicCircle(TorsoColor,cf(ref.Position),1,1,1,2,2,2,.01)
  1133. for i=0,10 do
  1134. MagicBlock(TorsoColor,cf(ref.Position),1,1,1,1,1,1,.05,3)
  1135. end
  1136. game:GetService("Debris"):AddItem(ref,1)
  1137. MagniDamage(ref,15,5,10,math.random(10,30),"Knockdown2")
  1138. end
  1139. debounce=Instance.new("BoolValue")
  1140. debounce.Name="DebounceHit"
  1141. debounce.Parent=hit.Parent
  1142. debounce.Value=true
  1143. game:GetService("Debris"):AddItem(debounce,.5)
  1144. end)
  1145. coroutine.resume(coroutine.create(function(Part)
  1146. while Part.Parent~=nil do
  1147. swait()
  1148. Part.CFrame=Part.CFrame*cf(0,0,2)
  1149. for _,c in pairs(workspace:children()) do
  1150. local hum=c:findFirstChild("Humanoid")
  1151. if hum~=nil then
  1152. local head=c:findFirstChild("Torso")
  1153. if head~=nil then
  1154. local targ=head.Position-Part.Position
  1155. local mag=targ.magnitude
  1156. if mag<=10 and c.Name~=Player.Name then
  1157. Part.Parent=nil
  1158. local ref=part(3,workspace,0,1,TorsoColor,"Effect",vt())
  1159. ref.Anchored=true
  1160. ref.CFrame=cf(Part.Position)
  1161. so("http://roblox.com/asset/?id=161006093",ref,1,1)
  1162. so("http://roblox.com/asset/?id=10209303",ref,1,1)
  1163. MagicCircle(TorsoColor,cf(ref.Position),1,1,1,2,2,2,.01)
  1164. for i=0,10 do
  1165. MagicBlock(TorsoColor,cf(ref.Position),1,1,1,1,1,1,.05,3)
  1166. end
  1167. game:GetService("Debris"):AddItem(ref,1)
  1168. MagniDamage(ref,15,5,10,math.random(10,30),"Knockdown2")
  1169. end
  1170. end
  1171. end
  1172. end
  1173. end
  1174. end),sord)
  1175. num=0
  1176. end
  1177. num=num+1
  1178. RootJoint.C0=RootCF*euler(-1,0,-1.57)*euler(0,0,25*i)
  1179. end
  1180. attack=false
  1181. end
  1182.  
  1183. function ExitJet()
  1184. while attack==true do
  1185. swait()
  1186. end
  1187. attack=true
  1188. Mode="Normal"
  1189. bg.Parent=nil
  1190. velx.Parent=nil
  1191. RHP.Parent=nil
  1192. LHP.Parent=nil
  1193. RH.Parent=Torso
  1194. LH.Parent=Torso
  1195. hwld.Part1=RightArm
  1196. attack=false
  1197. end
  1198.  
  1199. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  1200. for _,c in pairs(workspace:children()) do
  1201. local hum=c:findFirstChild("Humanoid")
  1202. if hum~=nil then
  1203. local head=c:findFirstChild("Torso")
  1204. if head~=nil then
  1205. local targ=head.Position-Part.Position
  1206. local mag=targ.magnitude
  1207. if mag<=magni and c.Name~=Player.Name then
  1208. Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,3,1)
  1209. end
  1210. end
  1211. end
  1212. end
  1213. end
  1214.  
  1215. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1216. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1217. end
  1218.  
  1219. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  1220. LastPoint=Point
  1221. function effect(Color,Ref,LP,P1,returnn)
  1222. local effectsmsh=Instance.new("CylinderMesh")
  1223. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  1224. effectsmsh.Name="Mesh"
  1225. local effectsg=Instance.new("Part")
  1226. effectsg.formFactor=3
  1227. effectsg.CanCollide=false
  1228. effectsg.Name="Eff"
  1229. effectsg.Locked=true
  1230. effectsg.Anchored=true
  1231. effectsg.Size=Vector3.new(0.5,1,0.5)
  1232. effectsg.Parent=workspace
  1233. effectsmsh.Parent=effectsg
  1234. effectsg.BrickColor=Color1
  1235. effectsg.Reflectance=Ref
  1236. local point1=P1
  1237. local mg=(LP.p - point1.p).magnitude
  1238. effectsg.Size=Vector3.new(0.5,mg,0.5)
  1239. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1240. effectsmsh.Scale=Vector3.new(0.4,1,0.4)
  1241. game:GetService("Debris"):AddItem(effectsg,2)
  1242. if returnn then return effectsg end
  1243. if not returnn then
  1244. table.insert(Effects,{effectsg,"Cylinder",0.05,0.01,0,0.01,effectsmsh})
  1245. end
  1246. end
  1247.  
  1248. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
  1249. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1250. prt.Anchored=true
  1251. prt.CFrame=cframe
  1252. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1253. game:GetService("Debris"):AddItem(prt,5)
  1254. if Type==1 or Type==nil then
  1255. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  1256. elseif Type==2 then
  1257. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  1258. elseif Type==3 then
  1259. table.insert(Effects,{prt,"Block3",delay,x3,y3,z3,msh,vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)})
  1260. end
  1261. end
  1262.  
  1263. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1264. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1265. prt.Anchored=true
  1266. prt.CFrame=cframe
  1267. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1268. game:GetService("Debris"):AddItem(prt,2)
  1269. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1270. end
  1271.  
  1272. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1273. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1274. prt.Anchored=true
  1275. prt.CFrame=cframe
  1276. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1277. game:GetService("Debris"):AddItem(prt,2)
  1278. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1279. end
  1280.  
  1281. function MagicClone(part,brickcolor,cframe,x3,y3,z3,delay)
  1282. local prt=part:clone()
  1283. for _,v in pairs(prt:children()) do
  1284. if v.className=="Weld" then
  1285. v.Parent=nil
  1286. end
  1287. end
  1288. prt.Parent=workspace
  1289. prt.Name="Effect"
  1290. prt.Anchored=true
  1291. prt.BrickColor=brickcolor
  1292. prt.CFrame=cframe
  1293. game:GetService("Debris"):AddItem(prt,2)
  1294. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,prt.Mesh})
  1295. end
  1296.  
  1297. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1298. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1299. prt.Anchored=true
  1300. prt.CFrame=cframe
  1301. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1302. game:GetService("Debris"):AddItem(prt,5)
  1303. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1304. end
  1305.  
  1306. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,movnum)
  1307. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1308. prt.Anchored=true
  1309. prt.CFrame=cframe
  1310. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1311. game:GetService("Debris"):AddItem(prt,2)
  1312. table.insert(Effects,{prt,"Ring",delay,x3,y3,z3,msh,movnum})
  1313. --[[coroutine.resume(coroutine.create(function(Part,Mesh,num)
  1314. for i=0,1,delay do
  1315. swait()
  1316. Part.CFrame=Part.CFrame*cf(0,0,-num)
  1317. Part.Transparency=i
  1318. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1319. end
  1320. Part.Parent=nil
  1321. end),prt,msh,(math.random(0,1)+math.random())/5)]]
  1322. end
  1323.  
  1324. function Lightning(p0,p1,tym,ofs,col,th,tra,last)
  1325. --[[p0=pos1
  1326. p1=pos2
  1327. tym=times
  1328. ofs=offset
  1329. col=color
  1330. th=size
  1331. tra=transparency
  1332. last=lastingtime]]
  1333. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  1334. for i=1,tym do
  1335. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
  1336. li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1337. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  1338. if tym == i then
  1339. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  1340. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  1341. else
  1342. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  1343. end
  1344. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
  1345. end
  1346. end
  1347.  
  1348. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1349. if hit.Parent==nil then
  1350. return
  1351. end
  1352. h=hit.Parent:FindFirstChild("Humanoid")
  1353. for _,v in pairs(hit.Parent:children()) do
  1354. if v:IsA("Humanoid") then
  1355. h=v
  1356. end
  1357. end
  1358. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1359. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1360. end
  1361. if hit.Parent.className=="Hat" then
  1362. hit=hit.Parent.Parent:findFirstChild("Head")
  1363. end
  1364. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1365. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1366. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1367. return
  1368. end]]
  1369. -- hs(hit,1.2)
  1370. c=Instance.new("ObjectValue")
  1371. c.Name="creator"
  1372. c.Value=game:service("Players").LocalPlayer
  1373. c.Parent=h
  1374. game:GetService("Debris"):AddItem(c,.5)
  1375. Damage=minim+1
  1376. -- h:TakeDamage(Damage)
  1377. blocked=false
  1378. block=hit.Parent:findFirstChild("Block")
  1379. if block~=nil then
  1380. print(block.className)
  1381. if block.className=="NumberValue" then
  1382. if block.Value>0 then
  1383. blocked=true
  1384. if decreaseblock~=nil then
  1385. block.Value=block.Value-decreaseblock
  1386. end
  1387. end
  1388. end
  1389. if block.className=="IntValue" then
  1390. if block.Value>0 then
  1391. blocked=true
  1392. if decreaseblock~=nil then
  1393. block.Value=block.Value-decreaseblock
  1394. end
  1395. end
  1396. end
  1397. end
  1398. if blocked==false then
  1399. -- h:TakeDamage(Damage)
  1400. h.Health=h.Health-Damage
  1401.  
  1402. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  1403. else
  1404. h.Health=h.Health-Damage/2
  1405.  
  1406. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1407. end
  1408. if Type=="Knockdown" then
  1409. hum=hit.Parent.Humanoid
  1410. hum.PlatformStand=true
  1411. coroutine.resume(coroutine.create(function(HHumanoid)
  1412. swait(1)
  1413. HHumanoid.PlatformStand=false
  1414. end),hum)
  1415. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1416. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1417. local bodvol=Instance.new("BodyVelocity")
  1418. bodvol.velocity=(angle*knockback)/1.5
  1419. bodvol.P=5000
  1420. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1421. bodvol.Parent=hit
  1422. rl=Instance.new("BodyAngularVelocity")
  1423. rl.P=3000
  1424. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1425. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1426. rl.Parent=hit
  1427. game:GetService("Debris"):AddItem(bodvol,.5)
  1428. game:GetService("Debris"):AddItem(rl,.5)
  1429. elseif Type=="Knockdown2" then
  1430. hum=hit.Parent.Humanoid
  1431. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1432. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1433. local bodvol=Instance.new("BodyVelocity")
  1434. bodvol.velocity=angle*knockback
  1435. bodvol.P=5000
  1436. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1437. bodvol.Parent=hit
  1438. game:GetService("Debris"):AddItem(bodvol,.5)
  1439. --game:GetService("Debris"):AddItem(rl,.5)
  1440. elseif Type=="Normal" then
  1441. vp=Instance.new("BodyVelocity")
  1442. vp.P=500
  1443. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1444. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1445. if KnockbackType==1 then
  1446. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1447. elseif KnockbackType==2 then
  1448. vp.velocity=Property.CFrame.lookVector*knockback
  1449. end
  1450. if knockback>0 then
  1451. vp.Parent=hit.Parent.Torso
  1452. end
  1453. game:GetService("Debris"):AddItem(vp,.5)
  1454. elseif Type=="Up" then
  1455. local bodyVelocity=Instance.new("BodyVelocity")
  1456. bodyVelocity.velocity=vt(0,30,0)
  1457. bodyVelocity.P=5000
  1458. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1459. bodyVelocity.Parent=hit
  1460. game:GetService("Debris"):AddItem(bodyVelocity,1)
  1461. rl=Instance.new("BodyAngularVelocity")
  1462. rl.P=3000
  1463. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1464. rl.angularvelocity=Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  1465. rl.Parent=hit
  1466. game:GetService("Debris"):AddItem(rl,.5)
  1467. elseif Type=="OrbBlast" then
  1468. if mana>=30 then
  1469. mana=mana-30
  1470. so("http://roblox.com/asset/?id=161006093",hit,1,1)
  1471. so("http://roblox.com/asset/?id=10209303",hit,1,1)
  1472. MagicCircle(TorsoColor,cf(hit.Position),1,1,1,2,2,2,.01)
  1473. coroutine.resume(coroutine.create(function(Part)
  1474. for i=0,30 do
  1475. swait()
  1476. MagicBlock(TorsoColor,cf(Part.Position),1,1,1,1,1,1,.05,3)
  1477. end
  1478. end),hit)
  1479. local ref=part(3,workspace,0,1,hit.BrickColor,"Effect",vt())
  1480. ref.Anchored=true
  1481. ref.CFrame=cf(hit.Position)*cf(math.random(-10,10)/100,-.1,math.random(-10,10)/100)
  1482. game:GetService("Debris"):AddItem(ref,1)
  1483. MagniDamage(ref,10,10,20,math.random(20,40),"Knockdown2")
  1484. end
  1485. elseif Type=="Snare" then
  1486. bp=Instance.new("BodyPosition")
  1487. bp.P=2000
  1488. bp.D=100
  1489. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1490. bp.position=hit.Parent.Torso.Position
  1491. bp.Parent=hit.Parent.Torso
  1492. game:GetService("Debris"):AddItem(bp,1)
  1493. end
  1494. debounce=Instance.new("BoolValue")
  1495. debounce.Name="DebounceHit"
  1496. debounce.Parent=hit.Parent
  1497. debounce.Value=true
  1498. game:GetService("Debris"):AddItem(debounce,Delay)
  1499. c=Instance.new("ObjectValue")
  1500. c.Name="creator"
  1501. c.Value=Player
  1502. c.Parent=h
  1503. game:GetService("Debris"):AddItem(c,.5)
  1504. CRIT=false
  1505. end
  1506. end
  1507.  
  1508. showDamage=function(Char,Dealt,du,Color)
  1509. m=Instance.new("Model")
  1510. m.Name=tostring(math.floor(Dealt))
  1511. h=Instance.new("Humanoid")
  1512. h.Health=0
  1513. h.MaxHealth=0
  1514. h.Parent=m
  1515. c=Instance.new("Part")
  1516. c.Transparency=0
  1517. c.BrickColor=Color
  1518. c.Name="Head"
  1519. c.TopSurface=0
  1520. c.BottomSurface=0
  1521. c.formFactor="Plate"
  1522. c.Size=Vector3.new(1,.4,1)
  1523. ms=Instance.new("CylinderMesh")
  1524. ms.Scale=Vector3.new(.8,.8,.8)
  1525. if CRIT==true then
  1526. ms.Scale=Vector3.new(1,1.25,1)
  1527. end
  1528. ms.Parent=c
  1529. c.Reflectance=0
  1530. Instance.new("BodyGyro").Parent=c
  1531. c.Parent=m
  1532. if Char:findFirstChild("Head")~=nil then
  1533. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1534. elseif Char.Parent:findFirstChild("Head")~=nil then
  1535. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1536. end
  1537. f=Instance.new("BodyPosition")
  1538. f.P=2000
  1539. f.D=100
  1540. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1541. f.position=c.Position+Vector3.new(0,3,0)
  1542. f.Parent=c
  1543. game:GetService("Debris"):AddItem(m,.5+du)
  1544. c.CanCollide=false
  1545. m.Parent=workspace
  1546. c.CanCollide=false
  1547. end
  1548.  
  1549. combo=0
  1550. function ob1d(mouse)
  1551. if attack==true or equipped==false then return end
  1552. hold=true
  1553. if Mode=="Normal" then
  1554. if combo==0 then
  1555. combo=1
  1556. attackone()
  1557. elseif combo==1 then
  1558. combo=2
  1559. attackthree()
  1560. elseif combo==2 then
  1561. combo=0
  1562. attacktwo()
  1563. end
  1564. else
  1565. attackjet()
  1566. end
  1567. coroutine.resume(coroutine.create(function()
  1568. for i=1,50 do
  1569. if attack==false then
  1570. swait()
  1571. end
  1572. end
  1573. if attack==false then
  1574. combo=0
  1575. end
  1576. end))
  1577. end
  1578.  
  1579. function ob1u(mouse)
  1580. hold = false
  1581. end
  1582.  
  1583. buttonhold = false
  1584.  
  1585. eul=0
  1586. size=0
  1587. holdz=false
  1588. holdq=false
  1589. holde=false
  1590. cansword=true
  1591. equipped=false
  1592. function key(key)
  1593. if attack==true then return end
  1594. if key=="f" and Mode=="Normal" then
  1595. attack=true
  1596. if equipped==false then
  1597. equipped=true
  1598. RSH=ch.Torso["Right Shoulder"]
  1599. LSH=ch.Torso["Left Shoulder"]
  1600. --
  1601. RSH.Parent=nil
  1602. LSH.Parent=nil
  1603. --
  1604. RW.Name="Right Shoulder"
  1605. RW.Part0=ch.Torso
  1606. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1607. RW.C1=cf(0, 0.5, 0)
  1608. RW.Part1=ch["Right Arm"]
  1609. RW.Parent=ch.Torso
  1610. --
  1611. LW.Name="Left Shoulder"
  1612. LW.Part0=ch.Torso
  1613. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1614. LW.C1=cf(0, 0.5, 0)
  1615. LW.Part1=ch["Left Arm"]
  1616. LW.Parent=ch.Torso
  1617. --
  1618. equipanim()
  1619. else
  1620. equipped=false
  1621. hideanim()
  1622. swait(0)
  1623. RW.Parent=nil
  1624. LW.Parent=nil
  1625. RSH.Parent=player.Character.Torso
  1626. LSH.Parent=player.Character.Torso
  1627. end
  1628. attack=false
  1629. end
  1630. if equipped==false then return end
  1631. if Mode=="Normal" then
  1632. if key=="z" and mana>=20 then
  1633. OverDrive()
  1634. end
  1635. if key=="x" and mana>=40 then
  1636. Boomerang()
  1637. end
  1638. if key=="c" and mana>=30 and cansword==true then
  1639. cansword=false
  1640. coroutine.resume(coroutine.create(function()
  1641. swait(500)
  1642. cansword=true
  1643. end))
  1644. EnergyBlades()
  1645. end
  1646. if key=="v" and mana>=50 then
  1647. JetMode()
  1648. end
  1649. else
  1650. if key=="q" then
  1651. holdq=true
  1652. attack=true
  1653. flyanim=true
  1654. velCF=vt((RootPart.CFrame.lookVector.x*30),20,(RootPart.CFrame.lookVector.z*30))
  1655. coroutine.resume(coroutine.create(function()
  1656. while holdq==true do
  1657. swait()
  1658. velCF=vt((RootPart.CFrame.lookVector.x*30),20,(RootPart.CFrame.lookVector.z*30))
  1659. hwld.C0=clerp(hwld.C0,euler(0,.4,-1.57)*cf(1.2,2.5,0.5),.2)
  1660. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  1661. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,0),.2)
  1662. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.3),.2)
  1663. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1664. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.3),.2)
  1665. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1666. RHP.C0=clerp(RHP.C0,cf(0.5,-1,0)*euler(.4,0,.2),.2)
  1667. LHP.C0=clerp(LHP.C0,cf(-0.5,-1,0)*euler(.4,0,-.2),.2)
  1668. end
  1669. attack=false
  1670. flyanim=false
  1671. end))
  1672. end
  1673. if key=="e" then
  1674. holde=true
  1675. attack=true
  1676. flyanim=true
  1677. velCF=vt((RootPart.CFrame.lookVector.x*30),-20,(RootPart.CFrame.lookVector.z*30))
  1678. coroutine.resume(coroutine.create(function()
  1679. while holde==true do
  1680. swait()
  1681. velCF=vt((RootPart.CFrame.lookVector.x*30),-20,(RootPart.CFrame.lookVector.z*30))
  1682. hwld.C0=clerp(hwld.C0,euler(0,0,-1.57)*cf(1.5,2.5,0),.2)
  1683. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57)*euler(0,0,0),.3)
  1684. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,-1.57),.3)
  1685. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.5),.2)
  1686. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1687. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.5),.2)
  1688. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1689. RHP.C0=clerp(RHP.C0,cf(0.5,-1,0)*euler(0,0,.2),.2)
  1690. LHP.C0=clerp(LHP.C0,cf(-0.5,-1,0)*euler(0,0,-.2),.2)
  1691. end
  1692. attack=false
  1693. flyanim=false
  1694. end))
  1695. end
  1696. if key=="z" and mana>=60 then
  1697. OverDriveJet()
  1698. end
  1699. if key=="x" and mana>=20 then
  1700. BoomerangJet()
  1701. end
  1702. if key=="c" and mana>=20 then
  1703. EnergySwordJet()
  1704. end
  1705. if key=="v" then
  1706. ExitJet()
  1707. end
  1708. end
  1709. if key=="h" then
  1710. --mana=100
  1711. end
  1712. if key=="e" then
  1713. idle=500
  1714. end
  1715. coroutine.resume(coroutine.create(function()
  1716. for i=1,50 do
  1717. if attack==false then
  1718. swait()
  1719. end
  1720. end
  1721. if attack==false then
  1722. combo=0
  1723. end
  1724. end))
  1725. combo=0
  1726. end
  1727.  
  1728. function key2(key)
  1729. if key=="q" then
  1730. holdq=false
  1731. end
  1732. if key=="e" then
  1733. holde=false
  1734. end
  1735. end
  1736.  
  1737. function s(mouse)
  1738. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1739. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1740. mouse.KeyDown:connect(key)
  1741. mouse.KeyUp:connect(key2)
  1742.  
  1743. player=Player
  1744. ch=Character
  1745. MMouse=mouse
  1746. end
  1747.  
  1748. function ds(mouse)
  1749. end
  1750.  
  1751. Bin.Selected:connect(s)
  1752. Bin.Deselected:connect(ds)
  1753. print("Cyber Stratosphere loaded.")
  1754.  
  1755. local mananum=0
  1756. local handidle=false
  1757. local donum=0
  1758. while true do
  1759. swait()
  1760. if donum>=.5 then
  1761. handidle=true
  1762. elseif donum<=0 then
  1763. handidle=false
  1764. end
  1765. if handidle==false then
  1766. donum=donum+0.003
  1767. else
  1768. donum=donum-0.003
  1769. end
  1770. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1771. local velderp=RootPart.Velocity.y
  1772. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1773. if equipped==true then
  1774. if Anim=="Idle" and attack==false then
  1775. idle=idle+1
  1776. else
  1777. idle=0
  1778. end
  1779. if Mode=="Jet" then
  1780. if flyanim==false then
  1781. velCF=vt((RootPart.CFrame.lookVector.x*50),(RootPart.CFrame.lookVector.y*0),(RootPart.CFrame.lookVector.z*50))
  1782. end
  1783. velx.velocity=velCF
  1784. --local lpos=vt(workspace.CurrentCamera.CoordinateFrame.X,RootPart.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
  1785. --bg.cframe=cf(RootPart.Position,lpos)*euler(0,3.14,0)
  1786. bg.Parent=nil
  1787. if flyanim==false and attack==false then
  1788. Anim="Fly"
  1789. hwld.C0=clerp(hwld.C0,euler(0,0,-1.57)*cf(1.5,2.5,0),.3)
  1790. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57),.3)
  1791. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,.1,-1.57),.3)
  1792. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5+(donum*2),0,.3),.2)
  1793. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1794. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5+(donum*2),0,-.3),.2)
  1795. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1796. RHP.C0=clerp(RHP.C0,cf(0.5,-1,0)*euler(0,0,.2),.2)
  1797. LHP.C0=clerp(LHP.C0,cf(-0.5,-1,0)*euler(0,0,-.2),.2)
  1798. end
  1799. else
  1800. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1801. Anim="Jump"
  1802. if attack==false then
  1803. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.2)
  1804. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  1805. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  1806. RW.C0=clerp(RW.C0,cf(1.3,0.5,-.2)*euler(1.2,0,-.5),.2)
  1807. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1808. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.2)
  1809. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1810. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1811. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1812. end
  1813. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1814. Anim="Fall"
  1815. if attack==false then
  1816. hwld.C0=clerp(hwld.C0,euler(3.14,3.14,0)*cf(0,1,0),.3)
  1817. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.1)
  1818. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1)
  1819. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.1)
  1820. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,.3),.1)
  1821. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  1822. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.1)
  1823. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  1824. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1825. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1826. end
  1827. elseif torvel<1 and hitfloor~=nil then
  1828. Anim="Idle"
  1829. if idle>=300 then
  1830. if attack==false then
  1831. --hwld.C0=clerp(hwld.C0,euler(0,3.14,1.4)*euler(-.5,0,0)*cf(-1.2,.4,-.8),.1)
  1832. hwld.C0=clerp(hwld.C0,euler(-.3,2.8,1.4)*cf(-1.5,0,0.7),.1)
  1833. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.1)
  1834. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.1)
  1835. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.3)*euler(.5,0,0),.1)
  1836. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  1837. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.1)
  1838. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.1)
  1839. end
  1840. else
  1841. if attack==false then
  1842. hwld.C0=clerp(hwld.C0,euler(3.14,3.14,0)*cf(0,1,0),.3)
  1843. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.3),.3)
  1844. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.3)
  1845. RW.C0=clerp(RW.C0,cf(1.3,0.5,-.2)*euler(1.3-(donum/3),0,-.3-(donum/5)),.3)
  1846. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1847. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2+(donum/5)),.3)
  1848. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1849. RH.C0=clerp(RH.C0,RHC0,.3)
  1850. LH.C0=clerp(LH.C0,LHC0,.3)
  1851. end
  1852. end
  1853. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1854. Anim="Walk"
  1855. if attack==false then
  1856. hwld.C0=clerp(hwld.C0,euler(3.14,3.14,0)*cf(0,1,0),.3)
  1857. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5),.3)
  1858. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.2,0,.5),.3)
  1859. RW.C0=clerp(RW.C0,cf(1.3,0.5,-.2)*euler(1.2,0,-.5),.3)
  1860. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1861. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.3)
  1862. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1863. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.3)
  1864. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.3)
  1865. end
  1866. elseif torvel>=22 and hitfloor~=nil then
  1867. Anim="Run"
  1868. if attack==false then
  1869. hwld.C0=clerp(hwld.C0,euler(3.14,3.14,0)*cf(0,1,0),.3)
  1870. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5),.3)
  1871. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.2,0,.5),.3)
  1872. RW.C0=clerp(RW.C0,cf(1.3,0.5,-.2)*euler(1.2,0,-.5),.3)
  1873. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1874. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.3)
  1875. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1876. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.3)
  1877. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.3)
  1878. end
  1879. end
  1880. end
  1881. end
  1882. if #Effects>0 then
  1883. --table.insert(Effects,{prt,"Block1",delay})
  1884. for e=1,#Effects do
  1885. if Effects[e]~=nil then
  1886. --for j=1,#Effects[e] do
  1887. local Thing=Effects[e]
  1888. if Thing~=nil then
  1889. local Part=Thing[1]
  1890. local Mode=Thing[2]
  1891. local Delay=Thing[3]
  1892. local IncX=Thing[4]
  1893. local IncY=Thing[5]
  1894. local IncZ=Thing[6]
  1895. if Thing[1].Transparency<=1 then
  1896. if Thing[2]=="Block1" then
  1897. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1898. Mesh=Thing[7]
  1899. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1900. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1901. elseif Thing[2]=="Block2" then
  1902. Thing[1].CFrame=Thing[1].CFrame
  1903. Mesh=Thing[7]
  1904. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1905. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1906. elseif Thing[2]=="Block3" then
  1907. Thing[1].CFrame=Thing[1].CFrame*cf(Thing[8])*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1908. Mesh=Thing[7]
  1909. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1910. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1911. elseif Thing[2]=="Cylinder" then
  1912. Mesh=Thing[7]
  1913. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1914. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1915. elseif Thing[2]=="Blood" then
  1916. Mesh=Thing[7]
  1917. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1918. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1919. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1920. elseif Thing[2]=="Elec" then
  1921. Mesh=Thing[7]
  1922. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1923. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1924. elseif Thing[2]=="Ring" then
  1925. Mesh=Thing[7]
  1926. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1927. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1928. Thing[1].CFrame=Thing[1].CFrame*cf(0,0,-Thing[8])
  1929. elseif Thing[2]=="Disappear" then
  1930. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1931. end
  1932. else
  1933. Part.Parent=nil
  1934. table.remove(Effects,e)
  1935. end
  1936. end
  1937. --end
  1938. end
  1939. end
  1940. end
  1941. if mana<=0 and Mode=="Jet" then
  1942. coroutine.resume(coroutine.create(function()
  1943. ExitJet()
  1944. end))
  1945. end
  1946. if mana>=100 then
  1947. mana=100
  1948. if Mode=="Jet" then
  1949. mana=99
  1950. end
  1951. else
  1952. if mananum<=15 then
  1953. mananum=mananum+1
  1954. else
  1955. mananum=0
  1956. if Mode=="Normal" then
  1957. mana=mana+1
  1958. elseif Mode=="Jet" then
  1959. mana=mana-2
  1960. if attack==false then
  1961. MagicRing(Torso.BrickColor,prt22.CFrame*euler(0,1.57,0),1,1,1,.5,.5,.5,.05,.2)
  1962. end
  1963. if overjet==true then
  1964. MagicRing(Torso.BrickColor,prt22.CFrame*euler(0,1.57,0),1,1,1,.5,2,1,.1,0)
  1965. end
  1966. end
  1967. end
  1968. end
  1969. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  1970. fenbarmana4.Text="Energy("..mana..")"
  1971. end
  1972.  
  1973. --[[
  1974. Copyrighted (C) Fenrier 2014
  1975. ]]
Add Comment
Please, Sign In to add comment