Aidenr24

Untitled

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