Advertisement
frog2128

Untitled

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