xx_g

alia

Mar 17th, 2017
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 81.26 KB | None | 0 0
  1. --[[
  2. 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. local MainC0=euler(1.57,0,0)*cf(0,0,0)
  32. local MainC02=cf(0,0,-2.5)
  33. local Tracer1C0=MainC02*euler(0,1.57-(0.628*0),0)
  34. local Tracer2C0=MainC02*euler(0,1.57-(0.628*1),0)
  35. local Tracer3C0=MainC02*euler(0,1.57-(0.628*2),0)
  36. local Tracer4C0=MainC02*euler(0,1.57-(0.628*3),0)
  37. local Tracer5C0=MainC02*euler(0,1.57-(0.628*4),0)
  38. local Tracer6C0=MainC02*euler(0,1.57-(0.628*5),0)
  39. RootPart=Character.HumanoidRootPart
  40. RootJoint=RootPart.RootJoint
  41. RootCF=euler(-1.57,0,3.14)
  42. attack=false
  43. ailaattack=false
  44. attackdebounce=false
  45. MMouse=nil
  46. combo=0
  47. local MainWelds={}
  48. local PrtWelds={}
  49. local tehnum=1
  50. circle=false
  51. hovering=false
  52. fly=false
  53. ailasummoned=false
  54. local AilaParts={}
  55. local AilaWelds={}
  56. local AilaWeaponWelds={}
  57. ailatargetting=false
  58. TargetTorso=Torso
  59. local blocked=false
  60. --player
  61. player = nil
  62. --save shoulders
  63. RSH, LSH = nil, nil
  64. --welds
  65. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  66. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  67. LH=Torso["Left Hip"]
  68. RH=Torso["Right Hip"]
  69.  
  70. function swait(num)
  71. if num==0 or num==nil then
  72. game:service'RunService'.RenderStepped:wait()
  73. game:service'RunService'.RenderStepped:wait()
  74. else
  75. num=num*1.5
  76. for i=0,num do
  77. game:service'RunService'.RenderStepped:wait()
  78. end
  79. end
  80. end
  81.  
  82. if Character:findFirstChild("Tracers",true) ~= nil then
  83. Character:findFirstChild("Tracers",true).Parent = nil
  84. end
  85. if Character:findFirstChild("Aila's Halberd",true) ~= nil then
  86. Character:findFirstChild("Aila's Halberd",true).Parent = nil
  87. end
  88.  
  89.  
  90. function NoOutline(Part)
  91. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  92. end
  93.  
  94. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  95. local fp = it("Part")
  96. fp.formFactor = formfactor
  97. fp.Parent = parent
  98. fp.Reflectance = reflectance
  99. fp.Transparency = transparency
  100. fp.CanCollide = false
  101. fp.Locked=true
  102. fp.BrickColor = brickcolor
  103. fp.Name = name
  104. fp.Size = size
  105. fp.Position = Torso.Position
  106. NoOutline(fp)
  107. fp.Material="SmoothPlastic"
  108. fp:BreakJoints()
  109. return fp
  110. end
  111.  
  112. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  113. local mesh = it(Mesh)
  114. mesh.Parent = part
  115. if Mesh=="SpecialMesh" then
  116. mesh.MeshType = meshtype
  117. mesh.MeshId = meshid
  118. end
  119. mesh.Offset=offset
  120. mesh.Scale=scale
  121. return mesh
  122. end
  123.  
  124. function weld(parent,part0,part1,c0)
  125. local weld = it("Weld")
  126. weld.Parent = parent
  127. weld.Part0 = part0
  128. weld.Part1 = part1
  129. weld.C0 = c0
  130. return weld
  131. end
  132.  
  133. local modelzorz = Instance.new("Model")
  134. modelzorz.Parent = Character
  135. modelzorz.Name = "Tracers"
  136.  
  137. local prt1=part(1,modelzorz,0,1,Torso.BrickColor,"Base",vt(1,1,1))
  138. msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  139. local wld1=weld(prt1,prt1,RootPart,euler(0,0,0)*cf(0,0,0))
  140. local hitbox=part(1,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  141. hitbox.Anchored=false
  142.  
  143. --3.14/6=0.52
  144. --3.14/5=0.628
  145. numb=0
  146. for i=1,6 do
  147. local firstbase=part(1,modelzorz,0,1,Torso.BrickColor,"FirstBase",vt(1,1,1))
  148. local firstprt1=part(1,modelzorz,0,0,BrickColor.new("White"),"Part1",vt(1,1,1))
  149. local firstprt2=part(1,modelzorz,0,0,BrickColor.new("White"),"Part2",vt(1,1,1))
  150. local firstprt3=part(1,modelzorz,0,0,BrickColor.new("White"),"Part3",vt(1,1,1))
  151. local firstprt4=part(1,modelzorz,0,0,BrickColor.new("White"),"Part4",vt(1,1,1))
  152. local firstprt5=part(1,modelzorz,0,0,BrickColor.new("White"),"Part5",vt(1,1,1))
  153. local firstprt6=part(1,modelzorz,0,0.2,BrickColor.new("Bright red"),"Part6",vt(1,1,1))
  154. local firstprt7=part(1,modelzorz,0,0.2,BrickColor.new("Bright red"),"Part7",vt(1,1,1))
  155. local firstprt8=part(1,modelzorz,0,0,BrickColor.new("White"),"Part8",vt(1,1,1))
  156. local firstprt9=part(1,modelzorz,0,0,BrickColor.new("White"),"Part9",vt(1,1,1))
  157. local firstprt10=part(1,modelzorz,0,0.5,BrickColor.new("Bright red"),"Part10",vt(1,1,1))
  158. local firstprt11=part(1,modelzorz,0,0,BrickColor.new("Bright red"),"Part11",vt(1,1,1))
  159. local firstprt12=part(1,modelzorz,0,0,BrickColor.new("Black"),"Part12",vt(1,1,1))
  160. local firstprt13=part(1,modelzorz,0,0,BrickColor.new("Bright orange"),"Part13",vt(1,1,1))
  161. local firstprt14=part(1,modelzorz,0,0,BrickColor.new("Bright orange"),"Part14",vt(1,1,1))
  162.  
  163. firstbasemsh=mesh("BlockMesh",firstbase,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  164. firstmsh1=mesh("CylinderMesh",firstprt1,"","",vt(0,0,0),vt(0.5,0.2,0.5))
  165. firstmsh2=mesh("BlockMesh",firstprt2,"","",vt(0,0,0),vt(0.3,0.1,0.2))
  166. firstmsh3=mesh("BlockMesh",firstprt3,"","",vt(0,0,0),vt(0.3,0.1,0.2))
  167. firstmsh4=mesh("BlockMesh",firstprt4,"","",vt(0,0,0),vt(0.2,0.099,0.5))
  168. firstmsh5=mesh("BlockMesh",firstprt5,"","",vt(0,0,0),vt(0.2,0.099,0.5))
  169. firstmsh6=mesh("BlockMesh",firstprt6,"","",vt(0,0,0),vt(0.25,0.05,0.55))
  170. firstmsh7=mesh("BlockMesh",firstprt7,"","",vt(0,0,0),vt(0.25,0.05,0.55))
  171. firstmsh8=mesh("SpecialMesh",firstprt8,"Torso","",vt(0,0,0),vt(0.35,0.2,0.1))
  172. firstmsh9=mesh("SpecialMesh",firstprt9,"Torso","",vt(0,0,0),vt(0.35,0.4,0.1))
  173. firstmsh10=mesh("BlockMesh",firstprt10,"","",vt(0,0,0),vt(0.35,0.6,0.01))
  174. firstmsh11=mesh("BlockMesh",firstprt11,"","",vt(0,0,0),vt(0.2,0.6,0.15))
  175. firstmsh12=mesh("CylinderMesh",firstprt12,"","",vt(0,0,0),vt(0.35,0.21,0.35))
  176. firstmsh13=mesh("SpecialMesh",firstprt13,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(0.2,0.2,1.8))
  177. firstmsh14=mesh("BlockMesh",firstprt14,"","",vt(0,0,0),vt(0.05,0.2,0.27))
  178.  
  179. local firstbasewld=weld(firstbase,firstbase,prt1,cf(0,0,-2.5)*euler(0,1.57-numb,0))
  180. table.insert(MainWelds,firstbasewld)
  181. --[[coroutine.resume(coroutine.create(function(Weld,Numb)
  182. if tehnum==1 then
  183. while true do
  184. swait()
  185. Weld.C0=Tracer1C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0)
  186. end
  187. elseif tehnum==2 then
  188. while true do
  189. swait()
  190. Weld.C0=Tracer2C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0)
  191. end
  192. elseif tehnum==3 then
  193. while true do
  194. swait()
  195. Weld.C0=Tracer3C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0)
  196. end
  197. elseif tehnum==4 then
  198. while true do
  199. swait()
  200. Weld.C0=Tracer4C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0)
  201. end
  202. elseif tehnum==5 then
  203. while true do
  204. swait()
  205. Weld.C0=Tracer5C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0)
  206. end
  207. elseif tehnum==6 then
  208. while true do
  209. swait()
  210. Weld.C0=Tracer6C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0)
  211. end
  212. tehnum=tehnum+1
  213. --Weld.C0=MainC02*cf(0,0,-2.5)*euler(0,1.57-Numb,0)
  214. end
  215. end),firstbasewld,numb)]]
  216. local firstwld1=weld(firstprt1,firstprt1,firstbase,euler(1.57,0,0)*cf(0,0,0))
  217. coroutine.resume(coroutine.create(function(Weld)
  218. while true do
  219. swait()
  220. Weld.C0=MainC0
  221. end
  222. end),firstwld1)
  223. table.insert(PrtWelds,firstwld1)
  224. local firstwld2=weld(firstprt2,firstprt2,firstprt1,euler(0,0.7,0)*cf(-0.1,0,-0.2))
  225. local firstwld3=weld(firstprt3,firstprt3,firstprt1,euler(0,-0.7,0)*cf(0.1,0,-0.2))
  226. local firstwld4=weld(firstprt4,firstprt4,firstprt2,euler(0,0.7+1.57,0)*cf(0.05,0,-0.4))
  227. local firstwld5=weld(firstprt5,firstprt5,firstprt3,euler(0,-0.7+1.57,0)*cf(-0.05,0,-0.4))
  228. local firstwld6=weld(firstprt6,firstprt6,firstprt4,euler(0,0,0)*cf(0,0,0))
  229. local firstwld7=weld(firstprt7,firstprt7,firstprt5,euler(0,0,0)*cf(0,0,0))
  230. local firstwld8=weld(firstprt8,firstprt8,firstprt1,euler(-1.57,0,0)*cf(0,0,0.3))
  231. local firstwld9=weld(firstprt9,firstprt9,firstprt8,euler(0,0,3.14)*cf(0,0.36,0))
  232. local firstwld10=weld(firstprt10,firstprt10,firstprt9,euler(0,0,0)*cf(0,-0.1,0))
  233. local firstwld11=weld(firstprt11,firstprt11,firstprt9,euler(0,0,0)*cf(0,0.1,0))
  234. local firstwld12=weld(firstprt12,firstprt12,firstprt1,euler(0,0,0)*cf(0,0,0))
  235. local firstwld13=weld(firstprt13,firstprt13,firstprt1,euler(1.57,0,0)*cf(0,0,0.05))
  236. local firstwld14=weld(firstprt14,firstprt14,firstprt1,euler(1.57,0,0)*cf(0,0,-0.05))
  237.  
  238. coroutine.resume(coroutine.create(function()
  239. while true do
  240. for i=0,1,0.05 do
  241. if attack==false and combo==0 then
  242. swait()
  243. wld1.C0=euler(0,0,0)*cf(0,0.1*i,0)
  244. end
  245. end
  246. for i=0,1,0.05 do
  247. if attack==false and combo==0 then
  248. swait()
  249. wld1.C0=euler(0,0,0)*cf(0,0.1-0.1*i,0)
  250. end
  251. end
  252. swait(0)
  253. end
  254. end))
  255. numb=numb+0.628
  256. end
  257. for i=1,#MainWelds do
  258. print(MainWelds[i])
  259. coroutine.resume(coroutine.create(function(Weld,Numb)
  260. while true do
  261. swait()
  262. if Numb==1 then
  263. Weld.C0=Tracer1C0
  264. end
  265. if Numb==2 then
  266. Weld.C0=Tracer2C0
  267. end
  268. if Numb==3 then
  269. Weld.C0=Tracer3C0
  270. end
  271. if Numb==4 then
  272. Weld.C0=Tracer4C0
  273. end
  274. if Numb==5 then
  275. Weld.C0=Tracer5C0
  276. end
  277. if Numb==6 then
  278. Weld.C0=Tracer6C0
  279. end
  280. end
  281. end),MainWelds[i],i)
  282. --Weld.C0=Tracer6C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0)
  283. end
  284.  
  285. local Aila=Instance.new("Model")
  286. Aila.Parent=nil
  287. Aila.Name="Aila"
  288. local AHumanoid=Instance.new("Humanoid")
  289. AHumanoid.Parent=Aila
  290. AHumanoid.Name="Humanoid"
  291. AilaHealth=100
  292. AHumanoid.MaxHealth=AilaHealth
  293. AHumanoid.Health=AilaHealth
  294. --AHumanoid.Died:connect(function() swait(5) if Aila==nil then return end Aila:Remove() end)
  295.  
  296. local ARootPart=part("Symmetric",Aila,0,1,BrickColor.new("Bright blue"),"HumanoidRootPart",vt(2,2,1))
  297. local AHead=part("Symmetric",Aila,0,0,BrickColor.new("Pastel brown"),"Head",vt(2,1,1))
  298. local AHat=part("Symmetric",Aila,0,0,BrickColor.new("Bright blue"),"Hat",vt(2,2,2))
  299. local ATorso=part("Symmetric",Aila,0,0,BrickColor.new("Bright blue"),"Torso",vt(2,2,1))
  300. local ALeftArm=part("Symmetric",Aila,0,0,BrickColor.new("Medium stone grey"),"Left Arm",vt(1,2,1))
  301. local ALeftLeg=part("Symmetric",Aila,0,0,BrickColor.new("Medium stone grey"),"Left Leg",vt(1,2,1))
  302. local ARightArm=part("Symmetric",Aila,0,0,BrickColor.new("Medium stone grey"),"Right Arm",vt(1,2,1))
  303. local ARightLeg=part("Symmetric",Aila,0,0,BrickColor.new("Medium stone grey"),"Right Leg",vt(1,2,1))
  304. for _,c in pairs(Aila:children()) do
  305. table.insert(AilaParts,c)
  306. if c.className=="Part" then
  307. c.Material="Plastic"
  308. end
  309. end
  310.  
  311. AilaShirt=Instance.new("Shirt")
  312. AilaShirt.Parent=Aila
  313. AilaShirt.ShirtTemplate="http://www.roblox.com/asset/?id=23077769"
  314. AilaPants=Instance.new("Pants")
  315. AilaPants.Parent=Aila
  316. AilaPants.PantsTemplate="http://www.roblox.com/asset/?id=23080092"
  317.  
  318. local AHeadMsh=mesh("SpecialMesh",AHead,"Head","",vt(0,0,0),vt(1.25,1.25,1.25))
  319. local AHatMsh=mesh("SpecialMesh",AHat,"FileMesh","http://www.roblox.com/asset/?id=17438747",vt(0,0,0),vt(1,1,1))
  320. AHatMsh.TextureId="http://www.roblox.com/asset/?id=156410868"
  321.  
  322. local ARootJoint=weld(ATorso,ATorso,ARootPart,euler(0,0,0)*cf(0,0,0))
  323. local ANeck=weld(ATorso,ATorso,AHead,necko)
  324. ANeck.C1=necko2
  325. local ARW=weld(ATorso,ATorso,ARightArm,euler(0,0,0)*cf(1.5,0.5,0))
  326. ARW.C1=cf(0,0.5,0)
  327. local ALW=weld(ATorso,ATorso,ALeftArm,euler(0,0,0)*cf(-1.5,0.5,0))
  328. ALW.C1=cf(0,0.5,0)
  329. local ALH=weld(ATorso,ATorso,ALeftLeg,LHC0)
  330. ALH.C1=LHC1
  331. local ARH=weld(ATorso,ATorso,ARightLeg,RHC0)
  332. ARH.C1=RHC1
  333. local AHatWld=weld(ATorso,AHat,AHead,cf(0,-0.5,0))
  334. ARootJoint.C0=cf(0,0,0)
  335. ARW.C0=cf(1.5,0.5,0)*euler(0,0,0)
  336. ARW.C1=cf(0,0.5,0)
  337. ALW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
  338. ALW.C1=cf(0,0.5,0)
  339. for _,c in pairs(ATorso:children()) do
  340. table.insert(AilaWelds,c)
  341. end
  342.  
  343. local modelzorz2 = Instance.new("Model")
  344. modelzorz2.Parent = Aila
  345. modelzorz2.Name = "Aila's Halberd"
  346.  
  347. local aprt1=part(1,modelzorz2,0,0,BrickColor.new("Dark green"),"Part1",vt(1,1,1))
  348. local aprt2=part(1,modelzorz2,0,0,BrickColor.new("Dark green"),"Part2",vt(1,1,1))
  349. local aprt3=part(1,modelzorz2,0,0,BrickColor.new("Dark stone grey"),"Part3",vt(1,1,1))
  350. local aprt4=part(1,modelzorz2,0,0,BrickColor.new("Dark stone grey"),"Part4",vt(1,1,1))
  351. local aprt5=part(1,modelzorz2,0,0,BrickColor.new("Dark stone grey"),"Part5",vt(1,1,1))
  352. local aprt6=part(1,modelzorz2,0,0,BrickColor.new("Bright blue"),"Part6",vt(1,1,1))
  353. local aprt7=part(1,modelzorz2,0,0,BrickColor.new("Bright blue"),"Part7",vt(1,1,1))
  354. local aprt8=part(1,modelzorz2,0,0,BrickColor.new("Dark stone grey"),"Part8",vt(1,1,1))
  355. local aprt9=part(1,modelzorz2,0,0,BrickColor.new("White"),"Part9",vt(1,1,1))
  356. local aprt10=part(1,modelzorz2,0,0,BrickColor.new("Dark stone grey"),"Part10",vt(1,1,1))
  357. local aprt11=part(1,modelzorz2,0,0,BrickColor.new("White"),"Part11",vt(1,1,1))
  358. local aprt12=part(1,modelzorz2,0,0,BrickColor.new("Dark stone grey"),"Part12",vt(1,1,1))
  359. local aprt13=part(1,modelzorz2,0,0,BrickColor.new("White"),"Part13",vt(1,1,1))
  360. local aprt14=part(1,modelzorz2,0,0,BrickColor.new("Bright blue"),"Part14",vt(1,1,1))
  361. local aprt15=part(1,modelzorz2,0,0,BrickColor.new("White"),"Part15",vt(1,1,1))
  362. local aprt16=part(1,modelzorz2,0,0,BrickColor.new("Black"),"Part16",vt(1,1,1))
  363. local aprt17=part(1,modelzorz2,0,0,BrickColor.new("Dark stone grey"),"Part17",vt(1,1,1))
  364. local aprt18=part(1,modelzorz2,0,0,BrickColor.new("Dark stone grey"),"Part18",vt(1,1,1))
  365. local aprt19=part(1,modelzorz2,0,0,BrickColor.new("Cyan"),"Part19",vt(1,1,1))
  366. local aprt20=part(1,modelzorz2,0.1,0.5,BrickColor.new("Bright blue"),"Part20",vt(1,1,1))
  367. local aprt21=part(1,modelzorz2,0.1,0.5,BrickColor.new("Bright blue"),"Part21",vt(1,1,1))
  368. local aprt22=part(1,modelzorz2,0.1,0.5,BrickColor.new("Bright blue"),"Part22",vt(1,1,1))
  369. local aprt23=part(1,modelzorz2,0,0,BrickColor.new("White"),"Part23",vt(1,1,1))
  370. local ahitbox=part(1,modelzorz2,0,1,BrickColor.new("Black"),"Hitbox",vt(1,6,2))
  371.  
  372. amsh1=mesh("CylinderMesh",aprt1,"","",vt(0,0,0),vt(0.4,3,0.4))
  373. amsh2=mesh("BlockMesh",aprt2,"","",vt(0,0,0),vt(0.5,0.2,0.8))
  374. amsh3=mesh("BlockMesh",aprt3,"","",vt(0,0,0),vt(0.5,0.4,0.8))
  375. amsh4=mesh("BlockMesh",aprt4,"","",vt(0,0,0),vt(0.4,0.8,0.6))
  376. amsh5=mesh("BlockMesh",aprt5,"","",vt(0,0,0),vt(0.39,0.6,0.6))
  377. amsh6=mesh("BlockMesh",aprt6,"","",vt(0,0,0),vt(0.3,0.8,0.8))
  378. amsh7=mesh("BlockMesh",aprt7,"","",vt(0,0,0),vt(0.3,1,0.8))
  379. amsh8=mesh("CylinderMesh",aprt8,"","",vt(0,0,0),vt(0.5,1,0.5))
  380. amsh9=mesh("BlockMesh",aprt9,"","",vt(0,0,0),vt(0.5,1,0.8))
  381. amsh10=mesh("BlockMesh",aprt10,"","",vt(0,0,0),vt(0.2,0.6,0.5))
  382. amsh11=mesh("BlockMesh",aprt11,"","",vt(0,0,0),vt(0.6,1,0.8))
  383. amsh12=mesh("BlockMesh",aprt12,"","",vt(0,0,0),vt(0.2,0.6,0.5))
  384. amsh13=mesh("BlockMesh",aprt13,"","",vt(0,0,0),vt(0.59,1.5,0.8))
  385. amsh14=mesh("BlockMesh",aprt14,"","",vt(0,0,0),vt(0.4,1.7,1))
  386. amsh15=mesh("BlockMesh",aprt15,"","",vt(0,0,0),vt(0.59,3.5,0.5))
  387. amsh16=mesh("BlockMesh",aprt16,"","",vt(0,0,0),vt(0.49,3.5,0.4))
  388. amsh17=mesh("BlockMesh",aprt17,"","",vt(0,0,0),vt(0.2,0.4,0.2))
  389. amsh18=mesh("CylinderMesh",aprt18,"","",vt(0,0,0),vt(0.6,0.6,0.6))
  390. amsh19=mesh("SpecialMesh",aprt19,"Sphere","",vt(0,0,0),vt(0.6,1,0.6))
  391. amsh20=mesh("BlockMesh",aprt20,"","",vt(0,0,0),vt(0.05,1.2,1))
  392. amsh21=mesh("BlockMesh",aprt21,"","",vt(0,0,0),vt(0.05,2,1))
  393. amsh22=mesh("SpecialMesh",aprt22,"Wedge","",vt(0,0,0),vt(0.05,1,1))
  394. amsh23=mesh("BlockMesh",aprt23,"","",vt(0,0,0),vt(0.4,1,0.5))
  395.  
  396. local awld1=weld(aprt1,aprt1,ARightArm,euler(1.57,0,0)*cf(0,1,0))
  397. local awld2=weld(aprt1,aprt2,aprt1,euler(0.5,0,0)*cf(0,1.8,0.1))
  398. local awld3=weld(aprt1,aprt3,aprt2,euler(0,0,0)*cf(0,0.35,0))
  399. local awld4=weld(aprt1,aprt4,aprt3,euler(-0.6,0,0)*cf(0,0.4,0.15))
  400. local awld5=weld(aprt1,aprt5,aprt4,euler(1.57,0,0)*cf(0,0.2,-0.1))
  401. local awld6=weld(aprt1,aprt6,aprt5,euler(0,0,0)*cf(0,0,0))
  402. local awld7=weld(aprt1,aprt7,aprt4,euler(0,0,0)*cf(0,0,0))
  403. local awld8=weld(aprt1,aprt8,aprt1,euler(0,0,0)*cf(0,-1.5,0))
  404. local awld9=weld(aprt1,aprt9,aprt8,euler(0,0,0)*cf(0,-1,-0.1))
  405. local awld10=weld(aprt1,aprt10,aprt9,euler(-1,0,0)*cf(0,0.2,0.5))
  406. local awld11=weld(aprt1,aprt11,aprt9,euler(1,0,0)*cf(0,-0.5,0.5))
  407. local awld12=weld(aprt1,aprt12,aprt11,euler(1.57,0,0)*cf(0,-0.3,0.7))
  408. local awld13=weld(aprt1,aprt13,aprt11,euler(-1,0,0)*cf(0,-0.4,-0.8))
  409. local awld14=weld(aprt1,aprt14,aprt13,euler(0,0,0)*cf(0,0,-0.11))
  410. local awld15=weld(aprt1,aprt15,aprt13,euler(0,0,0)*cf(0,-0.2,-0.8))
  411. local awld16=weld(aprt1,aprt16,aprt15,euler(0,0,0)*cf(0,-0.01,0))
  412. local awld17=weld(aprt1,aprt17,aprt15,euler(0.7,0,0)*cf(0,2.2,0))
  413. local awld18=weld(aprt1,aprt18,aprt9,euler(0,0,1.57)*cf(0,0,0))
  414. local awld19=weld(aprt1,aprt19,aprt18,euler(0,0,0)*cf(0,0,0))
  415. local awld20=weld(aprt1,aprt20,aprt13,euler(-0.5,0,0)*cf(0,-0.2,0.3))
  416. local awld21=weld(aprt1,aprt21,aprt13,euler(0,0,0)*cf(0,-2,-0.1))
  417. local awld22=weld(aprt1,aprt22,aprt21,euler(0,0,0)*cf(0,-1.8,0))
  418. local awld23=weld(aprt1,aprt23,aprt15,euler(0,0,0)*cf(0,-1.5,-0.4))
  419. local ahitboxwld=weld(aprt1,ahitbox,aprt21,euler(0,0,0)*cf(0,1,0))
  420.  
  421. for _,c in pairs(aprt1:children()) do
  422. if c.className=="Weld" then
  423. table.insert(AilaWeaponWelds,c)
  424. end
  425. end
  426.  
  427. local AFace=Instance.new("Decal")
  428. AFace.Texture="http://www.roblox.com/asset/?id=157473950"
  429. AFace.Face="Front"
  430. AFace.Parent=AHead
  431.  
  432. local hoverpos=Instance.new("BodyPosition")
  433. local bv=Instance.new("BodyVelocity")
  434. bv.Parent=nil
  435. bv.maxForce=Vector3.new(4e+020, 4e+020, 4e+020)
  436.  
  437.  
  438. if (script.Parent.className ~= "HopperBin") then
  439. Tool = Instance.new("HopperBin")
  440. Tool.Parent = Backpack
  441. Tool.Name = "Fen & Aila"
  442. script.Parent = Tool
  443. end
  444. Bin = script.Parent
  445.  
  446. local Bg = it("BodyGyro")
  447. Bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  448. Bg.P = 20e+003
  449. Bg.Parent = nil
  450.  
  451. so = function(id,par,vol,pit)
  452. coroutine.resume(coroutine.create(function()
  453. local sou = Instance.new("Sound",par or workspace)
  454. sou.Volume=vol
  455. sou.Pitch=pit or 1
  456. sou.SoundId=id
  457. swait()
  458. sou:play()
  459. swait(6)
  460. sou:Remove()
  461. end))
  462. end
  463.  
  464. function hideanim()
  465. equipped=false
  466. wld1.C0=euler(0,0,0)
  467. MainC0=euler(1.57,0,0)*cf(0,0,0)
  468. MainC02=cf(0,0,-2.5)
  469. Tracer1C0=MainC02*euler(0,1.57-(0.628*0),0)
  470. Tracer2C0=MainC02*euler(0,1.57-(0.628*1),0)
  471. Tracer3C0=MainC02*euler(0,1.57-(0.628*2),0)
  472. Tracer4C0=MainC02*euler(0,1.57-(0.628*3),0)
  473. Tracer5C0=MainC02*euler(0,1.57-(0.628*4),0)
  474. Tracer6C0=MainC02*euler(0,1.57-(0.628*5),0)
  475. end
  476.  
  477. function equipanim()
  478. equipped=true
  479. for i=0,1,0.1 do
  480. swait()
  481. MainC0=euler(1.57+0.43*i,0,0)*cf(0,0,0)
  482. MainC02=cf(0,0,-2.5-0.5*i)
  483. Tracer1C0=MainC02*euler(0,1.57-(0.628*0),0)
  484. Tracer2C0=MainC02*euler(0,1.57-(0.628*1),0)
  485. Tracer3C0=MainC02*euler(0,1.57-(0.628*2),0)
  486. Tracer4C0=MainC02*euler(0,1.57-(0.628*3),0)
  487. Tracer5C0=MainC02*euler(0,1.57-(0.628*4),0)
  488. Tracer6C0=MainC02*euler(0,1.57-(0.628*5),0)
  489. Neck.C0=necko
  490. RootJoint.C0=RootCF
  491. RW.C0=cf(1.5,0.5,0)*euler(0,0,0.5*i)
  492. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  493. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.5*i)
  494. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  495. end
  496. end
  497.  
  498. --6.28/6=1.046
  499. function Circle(circtime)
  500. circle=true
  501. for i=0,1,circtime do
  502. swait()
  503. Tracer1C0=MainC02*euler(0,1.57-(0.628*0),0)*euler(0,(0.628*0)*i,0)*euler(0,-(1.046*0)*i,0)
  504. Tracer2C0=MainC02*euler(0,1.57-(0.628*1),0)*euler(0,(0.628*1)*i,0)*euler(0,-(1.046*1)*i,0)
  505. Tracer3C0=MainC02*euler(0,1.57-(0.628*2),0)*euler(0,(0.628*2)*i,0)*euler(0,-(1.046*2)*i,0)
  506. Tracer4C0=MainC02*euler(0,1.57-(0.628*3),0)*euler(0,(0.628*3)*i,0)*euler(0,-(1.046*3)*i,0)
  507. Tracer5C0=MainC02*euler(0,1.57-(0.628*4),0)*euler(0,(0.628*4)*i,0)*euler(0,-(1.046*4)*i,0)
  508. Tracer6C0=MainC02*euler(0,1.57-(0.628*5),0)*euler(0,(0.628*5)*i,0)*euler(0,-(1.046*5)*i,0)
  509. end
  510. coroutine.resume(coroutine.create(function()
  511. while circle==true do
  512. swait()
  513. Tracer1C0=MainC02*euler(0,1.57-(1.046*0),0)
  514. Tracer2C0=MainC02*euler(0,1.57-(1.046*1),0)
  515. Tracer3C0=MainC02*euler(0,1.57-(1.046*2),0)
  516. Tracer4C0=MainC02*euler(0,1.57-(1.046*3),0)
  517. Tracer5C0=MainC02*euler(0,1.57-(1.046*4),0)
  518. Tracer6C0=MainC02*euler(0,1.57-(1.046*5),0)
  519. end
  520. end))
  521. end
  522.  
  523. function UnCircle(circtime)
  524. circle=false
  525. for i=0,1,circtime do
  526. swait()
  527. Tracer1C0=MainC02*euler(0,1.57-(1.046*0),0)*euler(0,(1.046*0)*i,0)*euler(0,-(0.628*0)*i,0)
  528. Tracer2C0=MainC02*euler(0,1.57-(1.046*1),0)*euler(0,(1.046*1)*i,0)*euler(0,-(0.628*1)*i,0)
  529. Tracer3C0=MainC02*euler(0,1.57-(1.046*2),0)*euler(0,(1.046*2)*i,0)*euler(0,-(0.628*2)*i,0)
  530. Tracer4C0=MainC02*euler(0,1.57-(1.046*3),0)*euler(0,(1.046*3)*i,0)*euler(0,-(0.628*3)*i,0)
  531. Tracer5C0=MainC02*euler(0,1.57-(1.046*4),0)*euler(0,(1.046*4)*i,0)*euler(0,-(0.628*4)*i,0)
  532. Tracer6C0=MainC02*euler(0,1.57-(1.046*5),0)*euler(0,(1.046*5)*i,0)*euler(0,-(0.628*5)*i,0)
  533. end
  534. coroutine.resume(coroutine.create(function()
  535. while circle==false do
  536. swait()
  537. Tracer1C0=MainC02*euler(0,1.57-(0.628*0),0)
  538. Tracer2C0=MainC02*euler(0,1.57-(0.628*1),0)
  539. Tracer3C0=MainC02*euler(0,1.57-(0.628*2),0)
  540. Tracer4C0=MainC02*euler(0,1.57-(0.628*3),0)
  541. Tracer5C0=MainC02*euler(0,1.57-(0.628*4),0)
  542. Tracer6C0=MainC02*euler(0,1.57-(0.628*5),0)
  543. end
  544. end))
  545. end
  546.  
  547. function attackone()
  548. attack=true
  549. Humanoid.WalkSpeed=5
  550. coroutine.resume(coroutine.create(function()
  551. Circle(0.2)
  552. end))
  553. coroutine.resume(coroutine.create(function()
  554. for i=0,1,0.2 do
  555. swait()
  556. wld1.C0=euler(1.57*i,0,0)*cf(0,-1*i,2*i)
  557. MainC0=euler(2+1.14*i,0,0)*cf(0,0,0)
  558. MainC02=cf(0,0,-3+1.5*i)
  559. end
  560. end))
  561. for i=0,1,0.1 do
  562. swait()
  563. Neck.C0=necko*euler(0,0,0.5*i)
  564. RootJoint.C0=RootCF*euler(0,0,-0.5*i)
  565. RW.C0=cf(1.5,0.5,0)*euler(-0.2*i,0,0.5)
  566. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  567. LW.C0=cf(-1.5+1*i,0.5,-0.5*i)*euler(2.5*i,0,-0.5+1.5*i)
  568. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  569. end
  570. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(10,20),"Knockdown",RootPart) end)
  571. hitbox.Parent=modelzorz
  572. HBCF=prt1.CFrame
  573. hitbox.CFrame=HBCF
  574. hitbox.Size=vt(1.5,2,1.5)
  575. so("http://www.roblox.com/asset/?id=2101148",prt1,0.5,2)
  576. so("http://www.roblox.com/asset/?id=161006182",prt1,1,1)
  577. MagicCircle(BrickColor.new("White"),prt1.CFrame*cf(0,1,0),1,1,1,0.2,0.2,0.2,0.05)
  578. WaveEffect(BrickColor.new("Bright red"),prt1.CFrame*cf(0,0,0),0.5,0.5,0.5,0.2,0.6,0.2)
  579. for i=1,3 do
  580. MagicBlock2(BrickColor.new("White"),prt1.CFrame*euler((math.random(-1,0)+math.random())/2,(math.random(-1,0)+math.random())/2,(math.random(-1,0)+math.random())/2),0,0,0,0.2,0.2,0.2,0)
  581. end
  582. for i=0,1,0.2 do
  583. swait()
  584. hitbox.CFrame=HBCF*cf(0,0.8,0)
  585. HBCF=HBCF*cf(0,0.8,0)
  586. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),0.5,0.5,0.5,0.3,0.3,0.3)
  587. MainC0=euler(3.14-0.5*i,0,0)*cf(0,0,0)
  588. Neck.C0=necko*euler(0,0,0.5-0.5*i)
  589. RootJoint.C0=RootCF*euler(0,0,-0.5+0.5*i)
  590. RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.5)
  591. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  592. LW.C0=cf(-0.5-1*i,0.5,-0.5+0.5*i)*euler(2.5-2.7*i,0,1-1.5*i)
  593. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  594. end
  595. aninumb=2
  596. for i=0,1,0.2 do
  597. swait()
  598. hitbox.CFrame=HBCF*cf(0,0.4,0)
  599. HBCF=HBCF*cf(0,0.5,0)
  600. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),0.5,0.5,0.5,0.3,0.3,0.3)
  601. MainC0=euler(3.14-0.5-0.1*(i*aninumb),0,0)*cf(0,0,0)
  602. Neck.C0=necko*euler(0,0,-0.1*(i*aninumb))
  603. RootJoint.C0=RootCF*euler(0,0,0.1*(i*aninumb))
  604. RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.5)
  605. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  606. LW.C0=cf(-1.5,0.5,0)*euler(-0.2-0.1*(i*aninumb),0,-0.5)
  607. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  608. aninumb=aninumb-0.2
  609. end
  610. con1:disconnect()
  611. hitbox.Parent=nil
  612. Humanoid.WalkSpeed=16
  613. attack=false
  614. end
  615.  
  616. function attacktwo()
  617. attack=true
  618. Humanoid.WalkSpeed=5
  619. for i=0,1,0.1 do
  620. swait()
  621. MainC0=euler(2.54+0.6*i,0,0)*cf(0,0,0)
  622. MainC02=cf(0,0,-1.5-1*i)*euler(0,1*i,0)
  623. Neck.C0=necko*euler(0,0,-0.1+0.9*i)
  624. RootJoint.C0=RootCF*euler(0,0,0.1-0.9*i)
  625. RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.5+0.1*i)
  626. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  627. LW.C0=cf(-1.5,0.5,0)*euler(-0.3+1.3*i,0,-0.5+0.3*i)
  628. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  629. end
  630. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,30),"Normal",RootPart) end)
  631. hitbox.Parent=modelzorz
  632. HBCF=prt1.CFrame
  633. hitbox.CFrame=HBCF
  634. hitbox.Size=vt(4,5,4)
  635. MagicCircle(BrickColor.new("White"),prt1.CFrame*cf(0,0,0),4,4,4,0.4,0.4,0.4,0.05)
  636. WaveEffect(BrickColor.new("Bright red"),prt1.CFrame*cf(0,0,0),2,0.5,2,0.2,1.3,0.2)
  637. so("http://www.roblox.com/asset/?id=2101148",prt1,0.5,1.6)
  638. so("http://www.roblox.com/asset/?id=161006182",prt1,1,0.8)
  639. for i=0,1,0.15 do
  640. swait()
  641. hitbox.CFrame=HBCF
  642. HBCF=HBCF*cf(0,3,0)
  643. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),0.5,0.5,0.5,0.3,0.3,0.3)
  644. MainC02=cf(0,0,-2.5)*euler(0,1+0.5*i,0)
  645. MainC0=euler(3.14-0.5*i,0,0)*cf(0,0,0)
  646. Neck.C0=necko*euler(0,0,0.8+0.2*i)
  647. RootJoint.C0=RootCF*euler(0,0,-0.8-0.2*i)
  648. RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.6)
  649. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  650. LW.C0=cf(-1.5,0.5,0)*euler(1+2*i,0,-0.2)
  651. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  652. end
  653. aninumb=2
  654. for i=0,1,0.2 do
  655. swait()
  656. hitbox.CFrame=HBCF
  657. HBCF=HBCF*cf(0,0.5,0)
  658. MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),0.5,0.5,0.5,0.3,0.3,0.3)
  659. MainC02=cf(0,0,-2.5)*euler(0,1.5+0.1*(i*aninumb),0)
  660. MainC0=euler(2.64-0.1*(i*aninumb),0,0)*cf(0,0,0)
  661. Neck.C0=necko*euler(0,0,1)
  662. RootJoint.C0=RootCF*euler(0,0,-1)
  663. RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.6)
  664. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  665. LW.C0=cf(-1.5,0.5,0)*euler(3+0.1*(i*aninumb),0,-0.2)
  666. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  667. aninumb=aninumb-0.2
  668. end
  669. con1:disconnect()
  670. hitbox.Parent=nil
  671. Humanoid.WalkSpeed=16
  672. attack=false
  673. end
  674.  
  675. function attackthree()
  676. attack=true
  677. Humanoid.WalkSpeed=5
  678. for i=0,1,0.1 do
  679. swait()
  680. wld1.C0=euler(1.57,0,0)*cf(-0.8*i,-1+0.5*i,2)
  681. MainC02=cf(0,0,-2.5)*euler(0,1.6+1*i,0)
  682. MainC0=euler(2.54-4.11*i,0,0)*cf(0,0,0)
  683. Neck.C0=necko*euler(0,0,1-2*i)
  684. RootJoint.C0=RootCF*euler(0,0,-1+2*i)
  685. RW.C0=cf(1.5,0.5,0)*euler(-0.2+1.77*i,0,0.6+0.4*i)
  686. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  687. LW.C0=cf(-1.5,0.5,0)*euler(3.1-3.3*i,0,-0.2-0.2*i)
  688. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  689. end
  690. hitbox.Parent=modelzorz
  691. HBCF=prt1.CFrame
  692. hitbox.CFrame=HBCF
  693. hitbox.Size=vt(4,5,4)
  694. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,1,"Snare",RootPart) end)
  695. so("http://www.roblox.com/asset/?id=161006131",prt1,1,1.2)
  696. vel=Instance.new("BodyVelocity")
  697. vel.Parent=Torso
  698. vel.maxForce=vt(4e+005,4e+005,4e+005)*1
  699. vel.velocity=RootPart.CFrame.lookVector*50
  700. coroutine.resume(coroutine.create(function(Vel)
  701. swait(10)
  702. Vel.velocity=RootPart.CFrame.lookVector*10
  703. end),vel)
  704. bg=it("BodyGyro")
  705. bg.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge
  706. bg.P=20e+003
  707. bg.Parent=Head
  708. bg.cframe=Head.CFrame
  709. for i=0,1,0.05 do
  710. swait()
  711. hitbox.CFrame=HBCF
  712. HBCF=prt1.CFrame
  713. MainC02=cf(0,0,-2.5)*euler(0,2.6+2.4*i,0)
  714. MagicRing(BrickColor.new("White"),prt1.CFrame*euler(1.57,0,0),5,5,2,0,0,0)
  715. end
  716. con1:disconnect()
  717. hitbox.Parent=nil
  718. bg.Parent=nil
  719. vel.Parent=nil
  720. Humanoid.WalkSpeed=16
  721. attack=false
  722. end
  723.  
  724. function attackfour()
  725. attack=true
  726. Humanoid.WalkSpeed=0
  727. for i=0,1,0.2 do
  728. swait()
  729. wld1.C0=euler(1.57-1.57*i,0,0)*cf(-0.8+0.8*i,-0.5+3.5*i,2+2*i)
  730. MainC02=cf(0,0,-2.5)*euler(0,1.6+1-1.5*i,0)
  731. MainC0=euler(-1.57+1.57*i,0,0)*cf(0,0,0)
  732. Neck.C0=necko*euler(-0.4*i,0,-1+1*i)
  733. RootJoint.C0=RootCF*euler(0.5*i,0,1-1*i)
  734. RW.C0=cf(1.5,0.5,0)*euler(1.57+0.13*i,0,1-1*i)
  735. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  736. LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.4)
  737. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  738. LH.C0=LHC0*euler(0,0,-1*i)
  739. end
  740. for i=0,1,0.2 do
  741. swait()
  742. Neck.C0=necko*euler(-0.4,0,-0.2*i)
  743. RootJoint.C0=RootCF*cf(0,0,-1.5*i)*euler(0.5+0.3*i,0,0.5*i)
  744. RW.C0=cf(1.5,0.5,0)*euler(1.7-0.3*i,0,0.5*i)
  745. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  746. LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.4)
  747. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  748. RH.C0=RHC0*cf(0,0,0)*euler(0,-0.5*i,-0.5*i)
  749. LH.C0=LHC0*cf(-0.5*i,1*i,0)*euler(0.5*i,0,-1+0.5*i)
  750. end
  751. hitbox.Parent=modelzorz
  752. HBCF=prt1.CFrame
  753. hitbox.CFrame=HBCF
  754. hitbox.Size=vt(10,8,10)
  755. so("http://www.roblox.com/asset/?id=2233908",prt1,1,1.1)
  756. so("http://www.roblox.com/asset/?id=153092334",prt1,0.7,0.9)
  757. POS=prt1.Position
  758. WaveEffect2(BrickColor.new("White"),CFrame.new(POS),0.5,0.2,0.5,0.5,0.5,0.5)
  759. MagicCircle(BrickColor.new("White"),CFrame.new(POS),6,6,6,0.8,0.8,0.8,0.05)
  760. MagicBlock(BrickColor.new("Bright red"),CFrame.new(POS),1,1,1,2,2,2)
  761. MagicBlock(BrickColor.new("Bright stone grey"),CFrame.new(POS),1,1,1,2,2,2)
  762. coroutine.resume(coroutine.create(function(TehPos)
  763. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,20,40,1,"Knockdown",prt1) end)
  764. for i=1,5 do
  765. hitbox.CFrame=HBCF
  766. Lightning(TehPos+vt(math.random(-1,1),math.random(-1,1),math.random(-1,1)),TehPos+vt(math.random(-1,1),200,math.random(-1,1)),20,1,"White",0.1,0.1,0.4)
  767. swait(0.1)
  768. end
  769. con1:disconnect()
  770. hitbox.Parent=nil
  771. end),POS)
  772. swait(5)
  773. Humanoid.WalkSpeed=16
  774. coroutine.resume(coroutine.create(function()
  775. UnCircle(0.1)
  776. end))
  777. for i=0,1,0.1 do
  778. swait()
  779. wld1.C0=euler(0,0,0)*cf(0,3-3*i,4-4*i)
  780. MainC02=cf(0,0,-2.5-0.5*i)*euler(0,1.1-1.1*i,0)
  781. MainC0=euler(2*i,0,0)*cf(0,0,0)
  782. Neck.C0=necko*euler(-0.4+0.4*i,0,-0.2+0.2*i)
  783. RootJoint.C0=RootCF*cf(0,0,-1.5+1.5*i)*euler(0.8-0.8*i,0,0.5-0.5*i)
  784. RW.C0=cf(1.5,0.5,0)*euler(1.4-1.4*i,0,0.5)
  785. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  786. LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i,0,-0.4-0.1*i)
  787. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  788. RH.C0=RHC0*cf(0,0,0)*euler(0,-0.5+0.5*i,-0.5+0.5*i)
  789. LH.C0=LHC0*cf(-0.5+0.5*i,1-1*i,0)*euler(0.5-0.5*i,0,-0.5+0.5*i)
  790. end
  791. attack=false
  792. end
  793.  
  794. function dashattackone()
  795. attack=true
  796. coroutine.resume(coroutine.create(function()
  797. Circle(0.2)
  798. end))
  799. for i=0,1,0.2 do
  800. swait()
  801. wld1.C0=euler(1.57*i,0,0)*cf(0,0,1*i)
  802. MainC0=euler(2,0,0)*cf(0,0,0)
  803. MainC02=cf(0,0,-3)
  804. Neck.C0=necko*euler(0,0,0.5*i)
  805. RootJoint.C0=RootCF*euler(0,0,-1*i)
  806. RW.C0=cf(1.5,0.5,0)*euler(0,0,0.5+0.2*i)
  807. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  808. LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(1.57*i,0,-0.5+1.5*i)
  809. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  810. RH.C0=RHC0
  811. RH.C1=RHC1*cf(0,0,0)
  812. LH.C0=LHC0
  813. end
  814. hitbox.Parent=modelzorz
  815. HBCF=prt1.CFrame
  816. hitbox.CFrame=HBCF
  817. hitbox.Size=vt(4,5,4)
  818. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,1,"Snare",RootPart) end)
  819. vel=Instance.new("BodyVelocity")
  820. vel.Parent=Torso
  821. vel.maxForce=vt(4e+005,4e+005,4e+005)*1
  822. vel.velocity=RootPart.CFrame.lookVector*50
  823. bg=it("BodyGyro")
  824. bg.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge
  825. bg.P=20e+003
  826. bg.Parent=Head
  827. bg.cframe=Head.CFrame
  828. so("http://www.roblox.com/asset/?id=161006131",prt1,1,1.5)
  829. for i=0,1,0.1 do
  830. swait()
  831. HBCF=prt1.CFrame
  832. hitbox.CFrame=HBCF
  833. MainC02=cf(0,0,-3)*euler(0,2.5*i,0)
  834. MagicRing(BrickColor.new("White"),prt1.CFrame*cf(0,0.5,0)*euler(1.57,0,0),5,5,2,0,0,0)
  835. end
  836. con1:disconnect()
  837. hitbox.Parent=nil
  838. bg.Parent=nil
  839. vel.Parent=nil
  840. attack=false
  841. end
  842.  
  843. function dashattacktwo()
  844. attack=true
  845. Humanoid.WalkSpeed=5
  846. for i=0,1,0.1 do
  847. swait()
  848. wld1.C0=euler(1.57-1.57*i,0,0)*cf(0,0,1+3*i)
  849. MainC0=euler(2-2*i,0,0)*cf(0,0,0)
  850. MainC02=cf(0,0,-3-1*i)*euler(0,2.5-2.6*i,0)
  851. Neck.C0=necko*euler(0,0,0.5+1.07*i)
  852. RootJoint.C0=RootCF*euler(0,0,-1-0.57*i)
  853. LW.C0=cf(-1-0.5*i,0.5,-0.5+0.5*i)*euler(1.57,0,1-2.57*i)
  854. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  855. end
  856. swait(0.1)
  857. so("http://www.roblox.com/asset/?id=2233908",prt1,1,0.9)
  858. --so("http://www.roblox.com/asset/?id=2101148",prt1,0.5,2)
  859. so("http://www.roblox.com/asset/?id=161006182",prt1,1,1)
  860. WaveEffect2(BrickColor.new("White"),prt1.CFrame*cf(0,-2,0),0.5,0.2,0.5,0.7,0.3,0.7)
  861. MagicCircle(BrickColor.new("White"),prt1.CFrame,6,6,6,0.8,0.8,0.8,0.05)
  862. MagicBlock(BrickColor.new("Bright stone grey"),prt1.CFrame,1,1,1,2,2,2)
  863. hitbox.Parent=modelzorz
  864. hitbox.CFrame=HBCF
  865. HBCF=prt1.CFrame
  866. hitbox.Size=vt(10,5,10)
  867. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,1,"Knockdown",prt1) end)
  868. aninumb=2
  869. for i=0,1,0.2 do
  870. swait()
  871. MainC02=cf(0,0,-4)*euler(0,-0.1-2*i,0)
  872. LW.C0=cf(-1.5,0.5,0)*euler(1.57,0,-1.57)
  873. LW.C1=cf(0,0.5,0)*euler(-0.5*(i*aninumb),0,0)
  874. HBCF=prt1.CFrame
  875. hitbox.CFrame=HBCF
  876. aninumb=aninumb-0.2
  877. end
  878. con1:disconnect()
  879. hitbox.Parent=nil
  880. Humanoid.WalkSpeed=16
  881. attack=false
  882. end
  883.  
  884. function dashattackthree()
  885. attack=true
  886. Humanoid.WalkSpeed=5
  887. for i=0,1,0.1 do
  888. swait()
  889. wld1.C0=euler(1.57*i,0,0)*cf(0,-0.5*i,4)
  890. MainC0=euler(0,0,0)*cf(0,0,0)
  891. MainC02=cf(0,0,-4+1*i)*euler(-1*i,-2.1+2.1*i,0)
  892. LW.C0=cf(-1.5,0.5,0)*euler(1.57,0,-1.57)
  893. LW.C1=cf(0,0.5,0)*euler(-0.5+0.5*i,0,0)
  894. end
  895. Humanoid.WalkSpeed=0
  896. so("http://www.roblox.com/asset/?id=153092334",prt1,0.7,0.5)
  897. hitbox.Parent=modelzorz
  898. HBCF=prt1.CFrame
  899. hitbox.CFrame=HBCF
  900. hitbox.Size=vt(5,5,5)
  901. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(10,20),"Snare",RootPart) end)
  902. for i=0,1,0.1 do
  903. swait()
  904. HBCF=prt1.CFrame
  905. hitbox.CFrame=HBCF
  906. MagicCircle(BrickColor.new("White"),prt1.CFrame,0,0,0,1.5,1.5,1.5,0.1)
  907. wld1.C0=euler(1.57,0,0)*cf(0,-0.5,4)
  908. MainC0=euler(0,0,0)*cf(0,0,0)
  909. MainC02=cf(0,0,-3)*euler(-1+1*i,1.5*i,0)
  910. end
  911. con1:disconnect()
  912. hitbox.Parent=nil
  913. for i=0,1,0.1 do
  914. swait()
  915. MagicCircle(BrickColor.new("White"),prt1.CFrame,0,0,0,1,1,1,0.2)
  916. wld1.C0=euler(1.57,0,0)*cf(0,-0.5,4)
  917. MainC0=euler(3.14*i,0,0)*cf(0,0,0)
  918. MainC02=cf(0,0,-3)*euler(-0.5*i,1.5+1.5*i,0)
  919. Neck.C0=necko*euler(0,0,1.57-3.14*i)
  920. RootJoint.C0=RootCF*euler(0,0,-1.57+3.14*i)
  921. RW.C0=cf(1.5,0.5,0)*euler(1.57*i,0,0.7+0.87*i)
  922. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  923. LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.77*i,0,-1.57+1.57*i)
  924. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  925. end
  926. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,30,math.random(50,60),"Knockdown",RootPart) end)
  927. hitbox.Parent=modelzorz
  928. HBCF=prt1.CFrame
  929. hitbox.CFrame=HBCF
  930. hitbox.Size=vt(4,5,4)
  931. so("http://www.roblox.com/asset/?id=2101148",prt1,0.5,2)
  932. so("http://www.roblox.com/asset/?id=161006182",prt1,1,0.7)
  933. MagicCircle(BrickColor.new("White"),prt1.CFrame*cf(0,0,0),4,4,4,0.4,0.4,0.4,0.05)
  934. WaveEffect(BrickColor.new("White"),prt1.CFrame*cf(0,0,0),2,0.5,2,0.2,1.3,0.2)
  935. for i=1,3 do
  936. MagicBlock2(BrickColor.new("Bright orange"),prt1.CFrame*euler((math.random(-1,0)+math.random())/2,(math.random(-1,0)+math.random())/2,(math.random(-1,0)+math.random())/2),0,0,0,0.2,0.2,0.2,0)
  937. end
  938. for i=0,1,0.1 do
  939. swait()
  940. hitbox.CFrame=HBCF*cf(0,0.8,0)
  941. HBCF=HBCF*cf(0,0.8,0)
  942. MagicBlock(BrickColor.new("White"),hitbox.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),0.5,0.5,0.5,0.3,0.3,0.3)
  943. wld1.C0=euler(1.57,0,0)*cf(0,-0.5,4-7*i)
  944. MainC0=euler(3.14+5.5*i,0,0)*cf(0,0,0)
  945. MainC02=cf(0,0,-3-1*i)*euler(-0.5,3+1.5*i,0)
  946. Neck.C0=necko*euler(0,0,-1.57+2.57*i)
  947. RootJoint.C0=RootCF*euler(0,0,1.57-2.57*i)
  948. RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(1.57-0.57*i,0,1.57-2.57*i)
  949. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  950. LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.5*i)
  951. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  952. end
  953. aninumb=2
  954. for i=0,1,0.1 do
  955. swait()
  956. wld1.C0=euler(1.57,0,0)*cf(0,-0.5,-3-1*i)
  957. MainC0=euler(8.64+1*i,0,0)*cf(0,0,0)
  958. MainC02=cf(0,0,-4)*euler(-0.5,4.5,0)
  959. Neck.C0=necko*euler(0,0,1+0.1*(i*aninumb))
  960. RootJoint.C0=RootCF*euler(0,0,-1-0.1*(i*aninumb))
  961. RW.C0=cf(1,0.5,-0.5)*euler(1,0,-1+0.1*(i*aninumb))
  962. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  963. LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.5)
  964. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  965. aninumb=aninumb-0.1
  966. end
  967. coroutine.resume(coroutine.create(function()
  968. UnCircle(0.1)
  969. end))
  970. for i=0,1,0.1 do
  971. swait()
  972. wld1.C0=euler(1.57-1.57*i,0,0)*cf(0,-0.5+0.5*i,-4+4*i)
  973. MainC0=euler((0.16+3.14)+(1.84-3.14)*i,0,0)*cf(0,0,0)
  974. --MainC0=euler(9.64-9.64*i,0,0)*cf(0,0,0)
  975. MainC02=cf(0,0,-4+1*i)*euler(-0.5+0.5*i,0.07-0.07*i,0)
  976. Neck.C0=necko*euler(0,0,1.1-1.1*i)
  977. RootJoint.C0=RootCF*euler(0,0,-1.1+1.1*i)
  978. RW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(1-1*i,0,-0.9+1.4*i)
  979. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  980. LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i,0,-0.5)
  981. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  982. end
  983. con1:disconnect()
  984. hitbox.Parent=nil
  985. Humanoid.WalkSpeed=16
  986. attack=false
  987. end
  988.  
  989. function heavyattackone()
  990. attack=true
  991. Humanoid.WalkSpeed=5
  992. coroutine.resume(coroutine.create(function()
  993. Circle(0.1)
  994. end))
  995. for i=0,1,0.1 do
  996. swait()
  997. wld1.C0=euler(1.57*i,0,0)*cf(0,2*i,2*i)
  998. MainC0=euler(2+0.5*i,0,0)*cf(0,0,0)
  999. MainC02=cf(0,0,-3+2*i)*euler(0,0,0)
  1000. Neck.C0=necko*euler(0.2*i,0,0.5*i)
  1001. RootJoint.C0=RootCF*euler(0,0,-0.5*i)
  1002. RW.C0=cf(1.5-0.3*i,0.5,-0.5*i)*euler(-0.2*i,0,0.5-0.7*i)
  1003. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1004. LW.C0=cf(-1.5,0.5,0)*euler(-0.4*i,0,-0.5)
  1005. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1006. RH.C0=RHC0*cf(0.5*i,0.2*i,-0.2*i)*euler(-0.4*i,0,-0.2*i)
  1007. RH.C1=RHC1
  1008. LH.C0=LHC0*euler(-0.1*i,0,0)
  1009. LH.C1=LHC1
  1010. end
  1011. for i=0,1,0.2 do
  1012. swait()
  1013. wld1.C0=euler(1.57,0,0)*cf(0,2,2-0.5*i)
  1014. MainC0=euler(2.5-0.3*i,0,0)*cf(0,0,0)
  1015. MainC02=cf(0,0,-1-1*i)
  1016. Neck.C0=necko*euler(0.2-0.1*i,0,0.5-0.7*i)
  1017. RootJoint.C0=RootCF*euler(0,0,-0.5+0.7*i)
  1018. RW.C0=cf(1.2+0.3*i,0.5,-0.5+0.5*i)*euler(-0.2,0,-0.2+0.2*i)
  1019. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1020. LW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,-0.5)
  1021. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1022. RH.C0=RHC0*cf(0.5-0.5*i,0.2,-0.2)*euler(-0.4+0.4*i,0,-0.2+1.2*i)
  1023. RH.C1=RHC1
  1024. LH.C0=LHC0*euler(-0.1,0,0)
  1025. LH.C1=LHC1
  1026. end
  1027. aninumb=2
  1028. for i=0,1,0.1 do
  1029. swait()
  1030. wld1.C0=euler(1.57,0,0)*cf(0,2,1.5)
  1031. MainC0=euler(2.2,0,0)*cf(0,0,0)
  1032. MainC02=cf(0,0,-2)
  1033. Neck.C0=necko*euler(0.1,0,-0.2)
  1034. RootJoint.C0=RootCF*euler(0,0,0.2)
  1035. RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0)
  1036. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1037. LW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,-0.5)
  1038. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1039. RH.C0=RHC0*cf(0,0.2,-0.2)*euler(0,0,1+0.2*(i*aninumb))
  1040. RH.C1=RHC1
  1041. LH.C0=LHC0*euler(-0.1,0,0)
  1042. LH.C1=LHC1
  1043. aninumb=aninumb-0.1
  1044. end
  1045. Humanoid.WalkSpeed=16
  1046. attack=false
  1047. end
  1048.  
  1049. function Hover()
  1050. attack=true
  1051. dur=0
  1052. coroutine.resume(coroutine.create(function()
  1053. Circle(0.1)
  1054. end))
  1055. coroutine.resume(coroutine.create(function(Num)
  1056. for i=0,1,0.1 do
  1057. swait()
  1058. wld1.C0=euler(0,0,0)*cf(0,2*i,0)
  1059. MainC0=euler(2+0.5*i,-1*i,0)*cf(0,0,0)
  1060. MainC02=cf(0,0,-3+0.5*i)*euler(0,0,0)
  1061. RH.C0=RHC0*euler(-0.2*i,0,0)
  1062. LH.C0=LHC0*euler(-0.2*i,0,0)
  1063. end
  1064. while hovering==true do
  1065. swait()
  1066. MainC02=cf(0,0,-2.5)*euler(0,Num,0)
  1067. Num=Num+0.2
  1068. MagicBlock3(BrickColor.new("White"),prt1.CFrame*cf(math.random(-2,2),0,math.random(-2,2)),0,0,0,0.2,0.2,0.2)
  1069. end
  1070. end),dur)
  1071. hoverpos.maxForce=vt(4e+080,4e+080,4e+080)
  1072. hoverpos.Name="BP"
  1073. hoverpos.Parent=RootPart
  1074. hoverpos.P=2000
  1075. hoverpos.D=100
  1076. hoverpos.position=RootPart.Position
  1077. while hovering==true do
  1078. swait()
  1079. end
  1080. hoverpos.Parent=nil
  1081. coroutine.resume(coroutine.create(function()
  1082. for i=0,1,0.1 do
  1083. swait()
  1084. wld1.C0=euler(0,0,0)*cf(0,2-2*i,0)
  1085. MainC0=euler(2.5-0.5*i,-1+1*i,0)*cf(0,0,0)
  1086. MainC02=cf(0,0,-2.5-0.5*i)*euler(0,3.14+3.14*i,0)
  1087. RH.C0=RHC0*euler(-0.2+0.2*i,0,0)
  1088. LH.C0=LHC0*euler(-0.2+0.2*i,0,0)
  1089. end
  1090. end))
  1091. coroutine.resume(coroutine.create(function()
  1092. UnCircle(0.1)
  1093. end))
  1094. attack=false
  1095. end
  1096.  
  1097. function AilaEffect()
  1098. if ATorso.Parent~=nil then
  1099. local ailaef=part(1,workspace,0,1,BrickColor.new("Black"),"Ef",vt(1,1,1))
  1100. ailaef.CFrame=Torso.CFrame
  1101. ailaef.Anchored=true
  1102. game:GetService("Debris"):AddItem(ailaef,2)
  1103. --so("http://www.roblox.com/asset/?id=153092315",ailaef,0.5,1)
  1104. so("http://www.roblox.com/asset/?id=161006033",ailaef,0.5,1)
  1105. for i=1,2 do
  1106. MagicBlock(BrickColor.new("Bright blue"),ATorso.CFrame,1,1,1,2,2,2)
  1107. end
  1108. coroutine.resume(coroutine.create(function(Tors)
  1109. for i=1,6 do
  1110. for i=1,2 do
  1111. ElecEffect(Tors.CFrame,5,5,5)
  1112. end
  1113. swait(0.1)
  1114. end
  1115. end),ATorso)
  1116. BlastEffect(BrickColor.new("White"),ATorso.CFrame,2,2,2,1,1,1)
  1117. end
  1118. end
  1119.  
  1120. function AilaTeleport(AilaPos)
  1121. AilaEffect()
  1122. local LastPoint2=ATorso.CFrame
  1123. --ATorso.CFrame=AilaPos
  1124. --Aila:MoveTo(AilaPos)
  1125. ATorso.CFrame=CFrame.new(AilaPos)*cf(math.random(-1,0)+math.random(),math.random(-1,0)+math.random(),math.random(-1,0)+math.random())
  1126. local Point2=ATorso.CFrame
  1127. effect("White",0.1,1,LastPoint2,Point2)
  1128. LastPoint2=Point2
  1129. AilaEffect()
  1130. end
  1131.  
  1132. function HealthAila()
  1133. AilaHealth=1000
  1134. while AHumanoid.Health>=30 do
  1135. swait()
  1136. end
  1137. AHumanoid.Parent=nil
  1138. AHumanoid.MaxHealth=AilaHealth
  1139. AHumanoid.Health=AilaHealth
  1140. AHumanoid.Sit=false
  1141. AHumanoid.PlatformStand=false
  1142. AHumanoid.Jump=true
  1143. swait(0)
  1144. AHumanoid.Parent=Aila
  1145. for a=1,#AilaWeaponWelds do
  1146. AilaWeaponWelds[a].Parent=aprt1
  1147. end
  1148. for a=1,#AilaParts do
  1149. AilaParts[a].Parent=Aila
  1150. end
  1151. for a=1,#AilaWelds do
  1152. AilaWelds[a].Parent=ATorso
  1153. end
  1154. ARootJoint.C1=cf(0,-1,0)
  1155. ANeck.C0=necko*euler(0.4,0,0)
  1156. ARW.C0=cf(1.5,0.5,0)*euler(-0.4,0,0.4)
  1157. ARW.C1=cf(0,0.5,0)
  1158. ALW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.2)
  1159. ALW.C1=cf(0,0.5,0)
  1160. ALH.C0=LHC0*cf(-0.5,0.5,0)*euler(-0.1,0,0.2)
  1161. ALH.C1=LHC1
  1162. ARH.C0=RHC0*cf(0.2,0,0)*euler(-0.1,0,-0.6)
  1163. return AHumanoid
  1164. end
  1165.  
  1166. function SummonAila()
  1167. print("AILA SUMMONED")
  1168. coroutine.resume(coroutine.create(function()
  1169. while true do
  1170. swait()
  1171. HealthAila()
  1172. end
  1173. end))
  1174. for a=1,#AilaWeaponWelds do
  1175. AilaWeaponWelds[a].Parent=aprt1
  1176. end
  1177. for a=1,#AilaParts do
  1178. AilaParts[a].Parent=Aila
  1179. end
  1180. Aila.Parent=workspace
  1181. AHumanoid.Parent=Aila
  1182. AHumanoid.MaxHealth=AilaHealth
  1183. AHumanoid.Health=AilaHealth
  1184. ATorso.CFrame=Torso.CFrame*cf(0,0,-5)
  1185. AilaEffect()
  1186. ARootJoint.Parent=ATorso
  1187. ANeck.Parent=ATorso
  1188. AHatWld.Parent=AHat
  1189. ARW.Parent=ATorso
  1190. ALW.Parent=ATorso
  1191. ARH.Parent=ATorso
  1192. ALH.Parent=ATorso
  1193. for a=1,#AilaWeaponWelds do
  1194. AilaWeaponWelds[a].Parent=aprt1
  1195. end
  1196. ARootJoint.C1=cf(0,-1,0)
  1197. ANeck.C0=necko*euler(0.4,0,0)
  1198. ARW.C0=cf(1.5,0.5,0)*euler(-0.4,0,0.4)
  1199. ARW.C1=cf(0,0.5,0)
  1200. ALW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.2)
  1201. ALW.C1=cf(0,0.5,0)
  1202. ALH.C0=LHC0*cf(-0.5,0.5,0)*euler(-0.1,0,0.2)
  1203. ALH.C1=LHC1
  1204. ARH.C0=RHC0*cf(0.2,0,0)*euler(-0.1,0,-0.6)
  1205. coroutine.resume(coroutine.create(function()
  1206. while Aila.Parent~=nil do
  1207. for i=0,1,0.01 do
  1208. swait()
  1209. ARootJoint.C1=cf(0,1-0.3*i,0)
  1210. end
  1211. for i=0,1,0.01 do
  1212. swait()
  1213. ARootJoint.C1=cf(0,1-0.3+0.3*i,0)
  1214. end
  1215. end
  1216. end))
  1217. end
  1218.  
  1219. function UnsummonAila()
  1220. AilaEffect()
  1221. BlastEffect(BrickColor.new("White"),ATorso.CFrame,2,2,2,1,1,1)
  1222. for i=1,2 do
  1223. MagicBlock(BrickColor.new("Bright blue"),ATorso.CFrame,1,1,1,2,2,2)
  1224. end
  1225. coroutine.resume(coroutine.create(function(Tors)
  1226. for i=1,6 do
  1227. for i=1,2 do
  1228. ElecEffect(Tors.CFrame,5,5,5)
  1229. end
  1230. swait(0.1)
  1231. end
  1232. end),ATorso)
  1233. Aila.Parent=nil
  1234. end
  1235.  
  1236. function AilaSlash1()
  1237. ailaattack=true
  1238. AHumanoid.WalkSpeed=0
  1239. for i=0,1,0.1 do
  1240. swait()
  1241. ARootJoint.C0=euler(0,-1*i,0)
  1242. ANeck.C0=necko*euler(0.4,0,-1*i)
  1243. ARW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(-0.4+2.4*i,0,0.4-0.8*i)
  1244. ARW.C1=cf(0,0.5,0)*euler(0,-0.5*i,0)
  1245. ALW.C0=cf(-1.5,0.5,0)*euler(-0.2-0.2*i,0,-0.2)
  1246. ALW.C1=cf(0,0.5,0)*euler(0,0,0)
  1247. ALH.C0=LHC0*cf(-0.5+0.3*i,0.5-0.2*i,0)*euler(-0.1-0.3*i,0,0.2+0.4*i)
  1248. ARH.C0=RHC0*cf(0.2,0.3*i,0)*euler(-0.1-0.3*i,0,-0.6)
  1249. end
  1250. for _,v in pairs(ALLCHILD()) do
  1251. if v.className=="Model" then
  1252. if v:FindFirstChild("Torso")~=nil and v:FindFirstChild("Humanoid")~=nil and v~=Character and v~=Aila then
  1253. if (v.Torso.Position-aprt1.Position).magnitude<=5 then
  1254. attackdebounce=false
  1255. coroutine.resume(coroutine.create(function(Hit)
  1256. Damagefunc(Hit,10,20,math.random(5,10),"Normal",ARootPart)
  1257. end),v.Torso)
  1258. end
  1259. end
  1260. end
  1261. end
  1262. so("http://www.roblox.com/asset/?id=161006195",ahitbox,1,1)
  1263. acon1=ahitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,10),"Normal",ARootPart) end)
  1264. local LastPoint2=aprt22.CFrame*CFrame.new(0,aprt22.Size.Y*1.3,0)
  1265. for i=0,1,0.2 do
  1266. swait()
  1267. ARootJoint.C0=euler(0,-1+1.4*i,0)
  1268. ANeck.C0=necko*euler(0.4,0,-1+1.4*i)
  1269. ARW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(2-2.9*i,0,-0.4+0.7*i)
  1270. ARW.C1=cf(0,0.5,0)*euler(0,-0.5+0.4*i,0)
  1271. ALW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,-0.2)
  1272. ALW.C1=cf(0,0.5,0)*euler(0,0,0)
  1273. local Point2=aprt22.CFrame*CFrame.new(0,aprt22.Size.Y*1.3,0)
  1274. effect("White",0.1,1,LastPoint2,Point2)
  1275. LastPoint2=Point2
  1276. end
  1277. acon1:disconnect()
  1278. anumb=2
  1279. for i=0,1,0.1 do
  1280. swait()
  1281. ARootJoint.C0=euler(0,0.4+0.1*(i*anumb),0)
  1282. ANeck.C0=necko*euler(0.4,0,0.4+0.1*(i*anumb))
  1283. ARW.C0=cf(1.5,0.5,0)*euler(-0.9-0.1*(i*anumb),0,0.3+0.1*(i*anumb))
  1284. ARW.C1=cf(0,0.5,0)*euler(0,-0.1+0.1*(i*anumb),0)
  1285. ALW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,-0.2)
  1286. ALW.C1=cf(0,0.5,0)*euler(0,0,0)
  1287. anumb=anumb-0.1
  1288. end
  1289. for i=0,1,0.1 do
  1290. swait()
  1291. ARootJoint.C0=euler(0,0.5-0.5*i,0)
  1292. ANeck.C0=necko*euler(0.4,0,0.5-0.5*i)
  1293. ARW.C0=cf(1.5,0.5,0)*euler(-1+0.6*i,0,0.4)
  1294. ARW.C1=cf(0,0.5,0)*euler(0,0,0)
  1295. ALW.C0=cf(-1.5,0.5,0)*euler(-0.4+0.2*i,0,-0.2)
  1296. ALW.C1=cf(0,0.5,0)*euler(0,0,0)
  1297. ALH.C0=LHC0*cf(-0.2-0.3*i,0.3+0.2*i,0)*euler(-0.4+0.3*i,0,0.6-0.4*i)
  1298. ARH.C0=RHC0*cf(0.2,0.3-0.3*i,0)*euler(-0.4+0.3*i,0,-0.6)
  1299. end
  1300. AHumanoid.WalkSpeed=16
  1301. ailaattack=false
  1302. end
  1303.  
  1304. function AilaSlash2()
  1305. ailaattack=true
  1306. AHumanoid.WalkSpeed=0.1
  1307. for i=0,1,0.1 do
  1308. swait()
  1309. ARootJoint.C0=euler(0,-1*i,0)
  1310. ANeck.C0=necko*euler(0.4,0,-1*i)
  1311. ARW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(-0.4+1.97*i,0,0.4-0.8*i)
  1312. ARW.C1=cf(0,0.5,0)*euler(0,-1.57*i,0)
  1313. --ALW.C0=cf(-1.5,0.5,0)*euler(-0.2-0.2*i,0,-0.2)
  1314. ALW.C0=cf(-1.5,0.5,0)*euler(-0.2+1.77*i,0,-0.2-1.2*i)
  1315. ALW.C1=cf(0,0.5,0)*euler(0,0,0)
  1316. ALH.C0=LHC0*cf(-0.5+0.3*i,0.5-0.2*i,0)*euler(-0.1-0.3*i,0,0.2+0.4*i)
  1317. ARH.C0=RHC0*cf(0.2,0.3*i,0)*euler(-0.1-0.3*i,0,-0.6)
  1318. end
  1319. for _,v in pairs(ALLCHILD()) do
  1320. if v.className=="Model" then
  1321. if v:FindFirstChild("Torso")~=nil and v:FindFirstChild("Humanoid")~=nil and v~=Character and v~=Aila then
  1322. if (v.Torso.Position-aprt1.Position).magnitude<=5 then
  1323. attackdebounce=false
  1324. coroutine.resume(coroutine.create(function(Hit)
  1325. Damagefunc(Hit,10,20,math.random(5,10),"Normal",ARootPart)
  1326. end),v.Torso)
  1327. end
  1328. end
  1329. end
  1330. end
  1331. so("http://www.roblox.com/asset/?id=161006212",ahitbox,1,1)
  1332. acon1=ahitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,10),"Normal",ARootPart) end)
  1333. local LastPoint2=aprt22.CFrame*CFrame.new(0,aprt22.Size.Y*1.3,0)
  1334. for i=0,1,0.2 do
  1335. swait()
  1336. ARootJoint.C0=euler(0,-1+2*i,0)
  1337. ANeck.C0=necko*euler(0.4,0,-1+2*i)
  1338. ARW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(1.57,0,-0.4+1.97*i)
  1339. ARW.C1=cf(0,0.5,0)*euler(0,-1.57,0)
  1340. ALW.C0=cf(-1.5,0.5,0)*euler(1.57-1.77*i,0,-1.4+1.2*i)
  1341. ALW.C1=cf(0,0.5,0)*euler(0,0,0)
  1342. local Point2=aprt22.CFrame*CFrame.new(0,aprt22.Size.Y*1.3,0)
  1343. effect("White",0.1,1,LastPoint2,Point2)
  1344. LastPoint2=Point2
  1345. end
  1346. acon1:disconnect()
  1347. anumb=2
  1348. for i=0,1,0.1 do
  1349. swait()
  1350. ARootJoint.C0=euler(0,1+0.1*(i*anumb),0)
  1351. ANeck.C0=necko*euler(0.4,0,1+0.1*(i*anumb))
  1352. ARW.C0=cf(1.5,0.5,0)*euler(1.57,0,1.57+0.1*(i*anumb))
  1353. ARW.C1=cf(0,0.5,0)*euler(0,-1.57,0)
  1354. ALW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.2)
  1355. ALW.C1=cf(0,0.5,0)*euler(0,0,0)
  1356. anumb=anumb-0.1
  1357. end
  1358. AHumanoid.WalkSpeed=16
  1359. for i=0,1,0.1 do
  1360. swait()
  1361. ARootJoint.C0=euler(0,1.1-1.1*i,0)
  1362. ANeck.C0=necko*euler(0.4,0,1.1-1.1*i)
  1363. ARW.C0=cf(1.5,0.5,0)*euler(1.57-1.97*i,0,1.67-1.27*i)
  1364. ARW.C1=cf(0,0.5,0)*euler(0,-1.57+1.57*i,0)
  1365. ALW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.2)
  1366. ALW.C1=cf(0,0.5,0)*euler(0,0,0)
  1367. ALH.C0=LHC0*cf(-0.2-0.3*i,0.3+0.2*i,0)*euler(-0.4+0.3*i,0,0.6-0.4*i)
  1368. ARH.C0=RHC0*cf(0.2,0.3-0.3*i,0)*euler(-0.4+0.3*i,0,-0.6)
  1369. end
  1370. ailaattack=false
  1371. end
  1372.  
  1373. function AilaSlash3()
  1374. ailaattack=true
  1375. AHumanoid.WalkSpeed=0
  1376. for i=0,1,0.1 do
  1377. swait()
  1378. ARootJoint.C0=euler(-0.2*i,0.2*i,0)
  1379. ANeck.C0=necko*euler(0.4-0.4*i,0,0.2*i)
  1380. ARW.C0=cf(1.5,0.5,0)*euler(-0.4+2.4*i,0,0.4-0.2*i)
  1381. ARW.C1=cf(0,0.5,0)*euler(0,0.2*i,0)
  1382. ALW.C0=cf(-1.5,0.5,0)*euler(-0.2-0.2*i,0,-0.2)
  1383. ALW.C1=cf(0,0.5,0)*euler(0,0,0)
  1384. ALH.C0=LHC0*cf(-0.5+0.3*i,0.5-0.2*i,0)*euler(-0.1-0.3*i,0,0.2+0.4*i)
  1385. ARH.C0=RHC0*cf(0.2,0.3*i,0)*euler(-0.1-0.3*i,0,-0.6)
  1386. end
  1387. --[[local c = game.Workspace:GetChildren()
  1388. for i = 1, #c do
  1389. local hum = c[i]:findFirstChild("Humanoid")
  1390. if hum ~= nil and hum.Health ~= 0 then
  1391. local head = c[i]:findFirstChild("Head")
  1392. if head ~= nil then
  1393. local targ = head.Position - aprt1.Position
  1394. local mag = targ.magnitude
  1395. if mag <= 5 and c[i].Name ~= Player.Name then
  1396. attackdebounce=false
  1397. coroutine.resume(coroutine.create(function(Hit)
  1398. Damagefunc(Hit,10,20,math.random(20,30),"Normal",ARootPart)
  1399. end),head)
  1400. end
  1401. end
  1402. end
  1403. end]]
  1404. for _,v in pairs(ALLCHILD()) do
  1405. if v.className=="Model" then
  1406. if v:FindFirstChild("Torso")~=nil and v:FindFirstChild("Humanoid")~=nil and v~=Character and v~=Aila then
  1407. if (v.Torso.Position-aprt1.Position).magnitude<=5 then
  1408. attackdebounce=false
  1409. coroutine.resume(coroutine.create(function(Hit)
  1410. Damagefunc(Hit,10,20,math.random(20,30),"Normal",ARootPart)
  1411. end),v.Torso)
  1412. end
  1413. end
  1414. end
  1415. end
  1416. so("http://www.roblox.com/asset/?id=161006212",ahitbox,1,1.2)
  1417. acon1=ahitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(5,10),"Normal",ARootPart) end)
  1418. local LastPoint2=aprt22.CFrame*CFrame.new(0,aprt22.Size.Y*1.3,0)
  1419. for i=0,1,0.2 do
  1420. swait()
  1421. ARootJoint.C0=euler(-0.2+0.4*i,0.2-0.4*i,0)
  1422. ANeck.C0=necko*euler(0.4*i,0,0.2-0.4*i)
  1423. ARW.C0=cf(1.5-1*i,0.5,-0.5*i)*euler(2-2*i,0,0.2-1*i)
  1424. ARW.C1=cf(0,0.5,0)*euler(0,0.2,0)
  1425. ALW.C0=cf(-1.5,0.5,0)*euler(-0.4-0.2*i,0,-0.2)
  1426. ALW.C1=cf(0,0.5,0)*euler(0,0,0)
  1427. local Point2=aprt22.CFrame*CFrame.new(0,aprt22.Size.Y*1.3,0)
  1428. effect("White",0.1,1,LastPoint2,Point2)
  1429. LastPoint2=Point2
  1430. if i>0.7 and i<0.9 then
  1431. so("http://www.roblox.com/asset/?id=161006069",ahitbox,1,1)
  1432. WaveEffect(BrickColor.new("White"),aprt16.CFrame*cf(0,2,0),0.5,0.5,0.5,0.2,0.4,0.2)
  1433. coroutine.resume(coroutine.create(function()
  1434. --POS=ATorso.CFrame*cf(0,1,-10)
  1435. POS=aprt16.CFrame*cf(0,2,0)
  1436. local LastPoint2=aprt16.CFrame
  1437. local Point2=POS
  1438. effect("White",0.1,1,LastPoint2,Point2)
  1439. LastPoint2=Point2
  1440. MagicBlock(BrickColor.new("White"),POS,1,1,1,0.5,0.5,0.5)
  1441. numb=2
  1442. numb2=2
  1443. for i=1,3 do
  1444. swait(0.2)
  1445. POS2=POS*cf(0,numb,0)
  1446. local Point2=POS2
  1447. effect("White",0.1,1,LastPoint2,Point2)
  1448. LastPoint2=Point2
  1449. local ailaef=part(1,workspace,0,1,BrickColor.new("Black"),"Ef",vt(1,1,1))
  1450. ailaef.CFrame=POS2
  1451. ailaef.Anchored=true
  1452. game:GetService("Debris"):AddItem(ailaef,2)
  1453. MagicBlock(BrickColor.new("White"),POS2,1,1,1,numb2/2,numb2/2,numb2/2)
  1454. MagicBlock(BrickColor.new("White"),POS2,1,1,1,numb2,numb2,numb2)
  1455. --[[so("http://www.roblox.com/asset/?id=2101148",ailaef,1,1.1)
  1456. so("http://www.roblox.com/asset/?id=153092334",ailaef,0.7,1) ]]
  1457. so("http://www.roblox.com/asset/?id=161006093",ailaef,1,1)
  1458. for i=1,3 do
  1459. Lightning(ailaef.Position,ailaef.Position+vt(math.random(-numb2*2,numb2*2),math.random(-numb2*2,numb2*2),math.random(-numb2*2,numb2*2)),numb2,1,"White",0.3,0.1,0.2)
  1460. end
  1461. for _,v in pairs(ALLCHILD()) do
  1462. if v.className=="Model" then
  1463. if v:FindFirstChild("Torso")~=nil and v:FindFirstChild("Humanoid")~=nil and v~=Character and v~=Aila then
  1464. if (v.Torso.Position-ailaef.Position).magnitude<=numb2*3 then
  1465. attackdebounce=false
  1466. coroutine.resume(coroutine.create(function(Hit)
  1467. Damagefunc(Hit,10,20,math.random(10,30),"Normal",ARootPart)
  1468. end),v.Torso)
  1469. end
  1470. end
  1471. end
  1472. end
  1473. numb=numb+5
  1474. numb2=numb2+1
  1475. end
  1476. end))
  1477. end
  1478. end
  1479. acon1:disconnect()
  1480. anumb=2
  1481. for i=0,1,0.1 do
  1482. swait()
  1483. ARootJoint.C0=euler(0.2+0.1*(i*anumb),-0.2-0.1*(i*anumb),0)
  1484. ANeck.C0=necko*euler(0.4,0,-0.2)
  1485. ARW.C0=cf(0.5,0.5,-0.5)*euler(-0.1*(i*anumb),0,-0.8-0.1*(i*anumb))
  1486. ARW.C1=cf(0,0.5,0)*euler(0,0.2,0)
  1487. ALW.C0=cf(-1.5,0.5,0)*euler(-0.6,0,-0.2)
  1488. ALW.C1=cf(0,0.5,0)*euler(0,0,0)
  1489. anumb=anumb-0.1
  1490. end
  1491. for i=0,1,0.1 do
  1492. swait()
  1493. ARootJoint.C0=euler(0.3-0.4*i,-0.3+0.3*i,0)
  1494. ANeck.C0=necko*euler(0.4-0.6*i,0,-0.2+0.1*i)
  1495. ARW.C0=cf(0.5+1*i,0.5,-0.5+0.5*i)*euler(-0.1+2.6*i,0,-0.9+1*i)
  1496. ARW.C1=cf(0,0.5,0)*euler(0,0.2,0)
  1497. ALW.C0=cf(-1.5,0.5,0)*euler(-0.6-0.2*i,0,-0.2-0.2*i)
  1498. ALW.C1=cf(0,0.5,0)*euler(0,0,0)
  1499. end
  1500. so("http://roblox.com/asset/?id=161006221",ahitbox,1,1)
  1501. --12.56
  1502. for i=0,1,0.2 do
  1503. swait()
  1504. awld1.C0=euler(1.57,7.56*i,0)*cf(0,1,0)
  1505. ARootJoint.C0=euler(-0.1,0,0)
  1506. ANeck.C0=necko*euler(-0.2-0.05*i,0,-0.1-0.15*i)
  1507. ARW.C0=cf(1.5,0.5,0)*euler(2.5+0.2*i,0,0.1-0.05*i)
  1508. ARW.C1=cf(0,0.5,0)*euler(0,0.2,0)
  1509. ALW.C0=cf(-1.5,0.5,0)*euler(-0.8,0,-0.4+0.2*i)
  1510. ALW.C1=cf(0,0.5,0)*euler(0,0,0)
  1511. end
  1512. for i=0,1,0.2 do
  1513. swait()
  1514. awld1.C0=euler(1.57,7.56+4*i,0)*cf(0,1,0)
  1515. ARootJoint.C0=euler(-0.1,0,0)
  1516. ANeck.C0=necko*euler(-0.25,0,-0.25-0.05*i)
  1517. ARW.C0=cf(1.5,0.5,0)*euler(2.7+0.1*i,0,0.05-0.05*i)
  1518. ARW.C1=cf(0,0.5,0)*euler(0,0.2-0.2*i,0)
  1519. end
  1520. so("http://www.roblox.com/asset/?id=161006195",ahitbox,1,1)
  1521. for i=0,1,0.2 do
  1522. swait()
  1523. awld1.C0=euler(1.57,0,0)*cf(0,1,0)
  1524. ARootJoint.C0=euler(-0.1+0.2*i,0,0)
  1525. ANeck.C0=necko*euler(-0.25+0.45*i,0,-0.3+0.1*i)
  1526. ARW.C0=cf(1.5,0.5,0)*euler(2.8-3*i,0,0.2*i)
  1527. ARW.C1=cf(0,0.5,0)*euler(0,0,0)
  1528. end
  1529. for i=0,1,0.1 do
  1530. swait()
  1531. ARootJoint.C0=euler(0.1-0.1*i,0,0)
  1532. ANeck.C0=necko*euler(0.25+0.25*i,0,-0.2+0.2*i)
  1533. ARW.C0=cf(1.5,0.5,0)*euler(-0.2-0.2*i,0,0.2+0.2*i)
  1534. ARW.C1=cf(0,0.5,0)*euler(0,0,0)
  1535. ALW.C0=cf(-1.5,0.5,0)*euler(-0.8+0.6*i,0,-0.2)
  1536. ALW.C1=cf(0,0.5,0)*euler(0,0,0)
  1537. ALH.C0=LHC0*cf(-0.2-0.3*i,0.3+0.2*i,0)*euler(-0.4+0.3*i,0,0.6-0.4*i)
  1538. ARH.C0=RHC0*cf(0.2,0.3-0.3*i,0)*euler(-0.4+0.3*i,0,-0.6)
  1539. end
  1540. --[[for i=0,1,0.1 do
  1541. swait()
  1542. ARootJoint.C0=euler(0.3-0.3*i,-0.3+0.3*i,0)
  1543. ANeck.C0=necko*euler(0.4,0,-0.2+0.2*i)
  1544. ARW.C0=cf(0.5+1*i,0.5,-0.5+0.5*i)*euler(-0.1-0.3*i,0,-0.9+1.3*i)
  1545. ARW.C1=cf(0,0.5,0)*euler(0,0.2-0.2*i,0)
  1546. ALW.C0=cf(-1.5,0.5,0)*euler(-0.6+0.4*i,0,-0.2)
  1547. ALW.C1=cf(0,0.5,0)*euler(0,0,0)
  1548. ALH.C0=LHC0*cf(-0.2-0.3*i,0.3+0.2*i,0)*euler(-0.4+0.3*i,0,0.6-0.4*i)
  1549. ARH.C0=RHC0*cf(0.2,0.3-0.3*i,0)*euler(-0.4+0.3*i,0,-0.6)
  1550. end]]
  1551. AHumanoid.WalkSpeed=16
  1552. ailaattack=false
  1553. end
  1554.  
  1555. function AilaSlash4()
  1556. ailaattack=true
  1557. AHumanoid.WalkSpeed=0
  1558. for i=0,1,0.1 do
  1559. swait()
  1560. awld1.C0=euler(1.57+1.17*i,0,0)*cf(0,1-0.5*i,-0.2*i)
  1561. ARootJoint.C0=euler(0,-0.5*i,0)
  1562. ANeck.C0=necko*euler(0.4,0,-0.5*i)
  1563. ARW.C0=cf(1.5,0.5,0)*euler(-0.4+1.57*i,0,0.4-0.4*i)
  1564. ARW.C1=cf(0,0.5,0)*euler(0,0,-0.5*i)
  1565. ALW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.2)
  1566. ALW.C1=cf(0,0.5,0)
  1567. ALH.C0=LHC0*cf(-0.5+0.3*i,0.5-0.2*i,0)*euler(-0.1-0.3*i,0,0.2+0.4*i)
  1568. ARH.C0=RHC0*cf(0.2,0.3*i,0)*euler(-0.1-0.3*i,0,-0.6)
  1569. end
  1570. so("http://www.roblox.com/asset/?id=161006069",ahitbox,1,1)
  1571. WaveEffect(BrickColor.new("White"),aprt16.CFrame*cf(0,2,0),0.5,0.5,0.5,0.2,0.4,0.2)
  1572. coroutine.resume(coroutine.create(function()
  1573. --POS=ATorso.CFrame*cf(0,1,-10)
  1574. POS=aprt16.CFrame*cf(0,2,0)
  1575. local LastPoint2=aprt16.CFrame
  1576. local Point2=POS
  1577. effect("White",0.1,1,LastPoint2,Point2)
  1578. LastPoint2=Point2
  1579. MagicBlock(BrickColor.new("White"),POS,1,1,1,0.5,0.5,0.5)
  1580. numb=2
  1581. numb2=2
  1582. for i=1,10 do
  1583. swait(0)
  1584. POS2=POS*cf(0,numb,0)
  1585. local Point2=POS2
  1586. effect("White",0.1,1,LastPoint2,Point2)
  1587. LastPoint2=Point2
  1588. local ailaef=part(1,workspace,0,1,BrickColor.new("Black"),"Ef",vt(1,1,1))
  1589. ailaef.CFrame=POS2
  1590. ailaef.Anchored=true
  1591. game:GetService("Debris"):AddItem(ailaef,2)
  1592. MagicBlock(BrickColor.new("White"),POS2,1,1,1,numb2/2,numb2/2,numb2/2)
  1593. MagicBlock(BrickColor.new("White"),POS2,1,1,1,numb2,numb2,numb2)
  1594. so("http://www.roblox.com/asset/?id=161006093",ailaef,1,1)
  1595. for i=1,numb2 do
  1596. Lightning(ailaef.Position,ailaef.Position+vt(math.random(-numb2*2,numb2*2),math.random(-numb2*2,numb2*2),math.random(-numb2*2,numb2*2)),numb2,1,"White",0.3,0.1,0.2)
  1597. end
  1598. for _,v in pairs(ALLCHILD()) do
  1599. if v.className=="Model" then
  1600. if v:FindFirstChild("Torso")~=nil and v:FindFirstChild("Humanoid")~=nil and v~=Character and v~=Aila then
  1601. if (v.Torso.Position-ailaef.Position).magnitude<=numb2*3 then
  1602. attackdebounce=false
  1603. coroutine.resume(coroutine.create(function(Hit)
  1604. Damagefunc(Hit,10,20,math.random(10,30),"Normal",ARootPart)
  1605. end),v.Torso)
  1606. end
  1607. end
  1608. end
  1609. end
  1610. numb=numb+5
  1611. numb2=numb2+0.1
  1612. end
  1613. end))
  1614. --[[so("http://www.roblox.com/asset/?id=2697431",ahitbox,1,0.3)
  1615. WaveEffect(BrickColor.new("White"),aprt16.CFrame*cf(0,2,0),0.5,0.5,0.5,0.2,0.4,0.2)
  1616. for i=1,3 do
  1617. eul=euler((math.random(-1,0)+math.random())/3,(math.random(-1,0)+math.random())/3,(math.random(-1,0)+math.random())/3)
  1618. MagicBlock2(BrickColor.new("White"),aprt16.CFrame*cf(0,2,0)*eul,0.5,0.5,0.5,0.2,0.2,0.2,0.3)
  1619. local shot=part(3,workspace,0,0,BrickColor.new("White"),"Effect",vt(0.5,0.5,0.5))
  1620. shot.Anchored=true
  1621. shot.CFrame=aprt16.CFrame*cf(0,2,0)*eul
  1622. msh=mesh("BlockMesh",shot,"","",vt(0,0,0),vt(1,1,1))
  1623. coroutine.resume(coroutine.create(function(Part,Mesh,Dist)
  1624. local LastPoint2=Part.CFrame
  1625. for i=1,20 do
  1626. swait()
  1627. Part.CFrame=Part.CFrame*cf(0,Dist,0)
  1628. local Point2=Part.CFrame
  1629. effect("White",0.1,0.5,LastPoint2,Point2)
  1630. LastPoint2=Point2
  1631. if i==4 or i==8 or i==12 or i==16 or i==20 then
  1632. ThePos=Part.CFrame*cf(math.random(-1,0)+math.random(),math.random(-1,0)+math.random(),math.random(-1,0)+math.random())
  1633. MagicBlock(BrickColor.new("White"),ThePos,1,1,1,1,1,1)
  1634. so("http://www.roblox.com/asset/?id=2101148",Part,0.7,1.5)
  1635. local c = game.Workspace:GetChildren()
  1636. for i = 1, #c do
  1637. local hum = c[i]:findFirstChild("Humanoid")
  1638. if hum ~= nil and hum.Health ~= 0 then
  1639. local head = c[i]:findFirstChild("Head")
  1640. if head ~= nil then
  1641. local targ = head.Position - Part.Position
  1642. local mag = targ.magnitude
  1643. if mag <= 5 and c[i].Name ~= Player.Name then
  1644. attackdebounce=false
  1645. coroutine.resume(coroutine.create(function(Hit)
  1646. Damagefunc(Hit,5,10,math.random(20,40),"Normal",ARootPart)
  1647. end),head)
  1648. end
  1649. end
  1650. end
  1651. end
  1652. end
  1653. end
  1654. local efprt=part(3,workspace,0,1,BrickColor.new("White"),"Effect",vt(0.5,0.5,0.5))
  1655. efprt.Anchored=true
  1656. efprt.CFrame=Part.CFrame
  1657. game:GetService("Debris"):AddItem(efprt,2)
  1658. MagicBlock(BrickColor.new("White"),efprt.CFrame,1,1,1,2,2,2)
  1659. MagicBlock(BrickColor.new("Bright blue"),efprt.CFrame,1,1,1,1.5,1.5,1.5)
  1660. for i=1,3 do
  1661. Lightning(efprt.Position,efprt.Position+vt(math.random(-10,10),math.random(-10,10),math.random(-10,10)),5,1,"White",0.3,0.1,0.2)
  1662. end
  1663. so("http://www.roblox.com/asset/?id=2101148",efprt,1,1)
  1664. so("http://www.roblox.com/asset/?id=153092334",efprt,0.7,1)
  1665. local c = game.Workspace:GetChildren()
  1666. for i = 1, #c do
  1667. local hum = c[i]:findFirstChild("Humanoid")
  1668. if hum ~= nil and hum.Health ~= 0 then
  1669. local head = c[i]:findFirstChild("Head")
  1670. if head ~= nil then
  1671. local targ = head.Position - Part.Position
  1672. local mag = targ.magnitude
  1673. if mag <= 7 and c[i].Name ~= Player.Name then
  1674. attackdebounce=false
  1675. coroutine.resume(coroutine.create(function(Hit)
  1676. Damagefunc(Hit,10,30,math.random(50,100),"Knockdown",ARootPart)
  1677. end),head)
  1678. end
  1679. end
  1680. end
  1681. end
  1682. Part.Parent=nil
  1683. end),shot,msh,1+math.random()/2)
  1684. end]]
  1685. for i=0,1,0.2 do
  1686. swait()
  1687. awld1.C0=euler(2.74-0.5*i,0,0)*cf(0,0.5+0.5*i,-0.2+0.2*i)
  1688. ARootJoint.C0=euler(0,-0.5+1*i,0)
  1689. ANeck.C0=necko*euler(0.4,0,-0.5+1*i)
  1690. ARW.C0=cf(1.5,0.5,0)*euler(1.17+0.83*i,0,0)
  1691. ARW.C1=cf(0,0.5,0)*euler(0,0,-0.5+0.5*i)
  1692. ALW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.2-0.4*i)
  1693. ALW.C1=cf(0,0.5,0)
  1694. end
  1695. anumb=2
  1696. for i=0,1,0.1 do
  1697. swait()
  1698. awld1.C0=euler(2.74-0.5-0.1*(i*anumb),0,0)*cf(0,1,0)
  1699. ARootJoint.C0=euler(0,0.5+0.1*(i*anumb),0)
  1700. ANeck.C0=necko*euler(0.4,0,0.5)
  1701. ARW.C0=cf(1.5,0.5,0)*euler(2+0.1*(i*anumb),0,0)
  1702. ARW.C1=cf(0,0.5,0)*euler(0,0,0)
  1703. ALW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.6-0.1*(i*anumb))
  1704. ALW.C1=cf(0,0.5,0)
  1705. anumb=anumb-0.1
  1706. end
  1707. --2.14-0.27=1.57
  1708. for i=0,1,0.1 do
  1709. swait()
  1710. awld1.C0=euler(2.14-0.3*i,0,0)*cf(0,1,0)
  1711. ARootJoint.C0=euler(0,0.6-0.6*i,0)
  1712. ANeck.C0=necko*euler(0.4+0.1*i,0,0.5-0.5*i)
  1713. ARW.C0=cf(1.5,0.5,0)*euler(2.1-0.53*i,0,0)
  1714. ARW.C1=cf(0,0.5,0)*euler(0,-1.57*i,0)
  1715. ALW.C0=cf(-1.5,0.5,0)*euler(-0.2+1.77*i,0,-0.7+0.6*i)
  1716. ALW.C1=cf(0,0.5,0)
  1717. end
  1718. for i=0,1,0.2 do
  1719. swait()
  1720. awld1.C0=euler(1.84-0.27*i,0,0)*cf(0,1,0)
  1721. ARootJoint.C0=euler(0.1*i,0.1*i,0)
  1722. ANeck.C0=necko*euler(0.5,0,-0.1*i)
  1723. ARW.C0=cf(1.5,0.5,0)*euler(1.57,0,1*i)
  1724. ARW.C1=cf(0,0.5,0)*euler(0,-1.57,0)
  1725. ALW.C0=cf(-1.5,0.5,0)*euler(1.57,0,-0.1-1.3*i)
  1726. ALW.C1=cf(0,0.5,0)
  1727. end
  1728. so("http://www.roblox.com/asset/?id=2697295",ahitbox,1,0.5)
  1729. so("http://www.roblox.com/asset/?id=161006212",ahitbox,1,0.7)
  1730. anumb=2
  1731. for i=0,1,0.1 do
  1732. swait()
  1733. awld1.C0=euler(1.57,0,0)*cf(0,1,0)
  1734. ARootJoint.C0=euler(0.1+0.05*(i*anumb),0.1+0.05*(i*anumb),0)
  1735. ANeck.C0=necko*euler(0.5,0,-0.1-0.05*(i*anumb))
  1736. ARW.C0=cf(1.5,0.5,0)*euler(1.57,0,1+0.5*(i*anumb))
  1737. ARW.C1=cf(0,0.5,0)*euler(0,-1.57,0)
  1738. ALW.C0=cf(-1.5,0.5,0)*euler(1.57,0,-1.4)
  1739. ALW.C1=cf(0,0.5,0)
  1740. anumb=anumb-0.1
  1741. end
  1742. for i=0,1,0.1 do
  1743. swait()
  1744. ARootJoint.C0=euler(0.15-0.15*i,0.15-0.15*i,0)
  1745. ANeck.C0=necko*euler(0.5-0.1*i,0,-0.15+0.15*i)
  1746. ARW.C0=cf(1.5,0.5,0)*euler(1.57-1.97*i,0,1.5-1.1*i)
  1747. ARW.C1=cf(0,0.5,0)*euler(0,-1.57+1.57*i,0)
  1748. ALW.C0=cf(-1.5,0.5,0)*euler(1.57-1.77*i,0,-1.4+1.2*i)
  1749. ALW.C1=cf(0,0.5,0)
  1750. ALH.C0=LHC0*cf(-0.2-0.3*i,0.3+0.2*i,0)*euler(-0.4+0.3*i,0,0.6-0.4*i)
  1751. ARH.C0=RHC0*cf(0.2,0.3-0.3*i,0)*euler(-0.4+0.3*i,0,-0.6)
  1752. end
  1753. AHumanoid.WalkSpeed=16
  1754. ailaattack=false
  1755. end
  1756.  
  1757. function ALLCHILD()
  1758. local all={}
  1759. for _,v in pairs(workspace:children()) do
  1760. table.insert(all,v)
  1761. end
  1762. return all
  1763. end
  1764.  
  1765. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1766. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1767. end
  1768.  
  1769. --[[local LastPoint=prt4.CFrame*CFrame.new(0,prt4.Size.Y*2.5,0)
  1770. local Point=prt4.CFrame*CFrame.new(0,prt4.Size.Y*2.5,0)]]
  1771. function effect(Color,Ref,Size,LP,P1,returnn)
  1772. local effectsmsh = Instance.new("BlockMesh")
  1773. effectsmsh.Scale = Vector3.new(0.4,1,0.4)
  1774. effectsmsh.Name = "Mesh"
  1775. local effectsg = Instance.new("Part")
  1776. effectsg.formFactor = 3
  1777. effectsg.CanCollide = false
  1778. effectsg.Name = "Eff"
  1779. effectsg.Locked = true
  1780. effectsg.Anchored = true
  1781. effectsg.Size = Vector3.new(0.2,1,0.2)
  1782. effectsg.Parent = workspace
  1783. effectsmsh.Parent = effectsg
  1784. effectsg.BrickColor = BrickColor.new(Color)
  1785. effectsg.Reflectance = Ref
  1786. local point1 = P1
  1787. local mg = (LP.p - point1.p).magnitude
  1788. effectsg.Size = Vector3.new(Size,mg,Size)
  1789. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1790. if returnn then return effectsg end
  1791. coroutine.resume(coroutine.create(function()
  1792. if not returnn then
  1793. for i = 0 , 1 , 0.1 do
  1794. swait()
  1795. effectsg.Transparency = 1*i
  1796. effectsmsh.Scale = Vector3.new(Size-Size*i,1,Size-Size*i)
  1797. end
  1798. swait()
  1799. effectsg.Parent = nil
  1800. end
  1801. end))
  1802. end
  1803.  
  1804. function ElecEffect(cff,x,y,z)
  1805. local prt=part(3,workspace,0,0,BrickColor.new("White"),"Part",vt(1,1,1))
  1806. prt.Anchored=true
  1807. xval=math.random()
  1808. yval=math.random()
  1809. zval=math.random()
  1810. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  1811. coroutine.resume(coroutine.create(function(Part,Mesh,Frame,xvaal,yvaal,zvaal)
  1812. Part.CFrame=Frame*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1813. for i=1,30 do
  1814. swait()
  1815. xvaal=xvaal-0.1
  1816. yvaal=yvaal-0.1
  1817. zvaal=zvaal-0.1
  1818. Mesh.Scale=vt(xvaal,yvaal,zvaal)
  1819. Part.Transparency=Part.Transparency+0.001
  1820. end
  1821. Part.Parent=nil
  1822. end),prt,msh,cff,xval,yval,zval)
  1823. end
  1824.  
  1825. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1826. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1827. prt.Anchored=true
  1828. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1829. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1830. game:GetService("Debris"):AddItem(prt,2)
  1831. coroutine.resume(coroutine.create(function(Part,Mesh)
  1832. for i=0,1,0.1 do
  1833. swait()
  1834. Part.CFrame=Part.CFrame
  1835. Part.Transparency=i
  1836. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1837. end
  1838. Part.Parent=nil
  1839. end),prt,msh)
  1840. end
  1841.  
  1842. function MagicBlock2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,decrease)
  1843. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1844. prt.Anchored=true
  1845. prt.CFrame=cframe
  1846. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1847. game:GetService("Debris"):AddItem(prt,2)
  1848. CF=prt.CFrame
  1849. num=math.random(5,20)
  1850. coroutine.resume(coroutine.create(function(Part,Mesh,CF2,Num)
  1851. for i=0,1.05,0.05 do
  1852. swait()
  1853. Part.CFrame=CF2*cf(0,i*Num,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1854. Part.Transparency=i
  1855. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1856. Num=Num-decrease
  1857. end
  1858. Part.Parent=nil
  1859. end),prt,msh,CF,num)
  1860. end
  1861.  
  1862. function MagicBlock3(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1863. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1864. prt.Anchored=true
  1865. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1866. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1867. game:GetService("Debris"):AddItem(prt,2)
  1868. coroutine.resume(coroutine.create(function(Part,Mesh)
  1869. for i=0,1,0.1 do
  1870. swait()
  1871. TehCF=cframe
  1872. Part.CFrame=TehCF*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1873. Part.Transparency=i
  1874. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1875. end
  1876. Part.Parent=nil
  1877. end),prt,msh)
  1878. end
  1879.  
  1880. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1881. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1882. prt.Anchored=true
  1883. prt.CFrame=cframe
  1884. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1885. game:GetService("Debris"):AddItem(prt,2)
  1886. coroutine.resume(coroutine.create(function(Part,Mesh)
  1887. for i=0,1,delay do
  1888. swait()
  1889. Part.CFrame=Part.CFrame
  1890. Part.Transparency=i
  1891. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1892. end
  1893. Part.Parent=nil
  1894. end),prt,msh)
  1895. end
  1896.  
  1897. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1898. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1899. prt.Anchored=true
  1900. prt.CFrame=cframe
  1901. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  1902. game:GetService("Debris"):AddItem(prt,2)
  1903. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  1904. for i=0,1,0.1 do
  1905. swait()
  1906. Part.CFrame=Part.CFrame*cf(0,0,-num)
  1907. Part.Transparency=i
  1908. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1909. end
  1910. Part.Parent=nil
  1911. end),prt,msh,(math.random(0,2)+math.random())/5)
  1912. end
  1913.  
  1914. function MagicFire(brickcolor,cframe,x1,y1,z1)
  1915. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1916. prt.Anchored=true
  1917. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1918. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1919. game:GetService("Debris"):AddItem(prt,2)
  1920. coroutine.resume(coroutine.create(function(Part,Mesh)
  1921. for i=0,1,0.1 do
  1922. swait()
  1923. Part.CFrame=cf(Part.Position+vt(0,0.5,0))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1924. Part.Transparency=i
  1925. Mesh.Scale=Mesh.Scale+vt(0.1,0.1,0.1)
  1926. end
  1927. Part.Parent=nil
  1928. end),prt,msh)
  1929. end
  1930.  
  1931. function BlastEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1932. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1933. prt.Anchored=true
  1934. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1935. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=24388358",vt(0,0,0),vt(x1,y1,z1))
  1936. game:GetService("Debris"):AddItem(prt,2)
  1937. coroutine.resume(coroutine.create(function(Part,Mesh)
  1938. for i=0,1,0.05 do
  1939. swait()
  1940. Part.CFrame=Part.CFrame
  1941. Part.Transparency=i
  1942. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1943. end
  1944. Part.Parent=nil
  1945. end),prt,msh)
  1946. end
  1947.  
  1948. function ElecEffect(cff,x,y,z)
  1949. local prt=part(3,workspace,0,0,BrickColor.new("White"),"Part",vt(1,1,1))
  1950. prt.Anchored=true
  1951. xval=math.random()
  1952. yval=math.random()
  1953. zval=math.random()
  1954. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  1955. coroutine.resume(coroutine.create(function(Part,Mesh,Frame,xvaal,yvaal,zvaal)
  1956. Part.CFrame=Frame*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1957. for i=1,8 do
  1958. swait()
  1959. xvaal=xvaal-0.1
  1960. yvaal=yvaal-0.1
  1961. zvaal=zvaal-0.1
  1962. Mesh.Scale=vt(xvaal,yvaal,zvaal)
  1963. Part.Transparency=Part.Transparency+0.09
  1964. end
  1965. Part.Parent=nil
  1966. end),prt,msh,cff,xval,yval,zval)
  1967. end
  1968.  
  1969. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1970. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1971. prt.Anchored=true
  1972. prt.CFrame=cframe
  1973. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1323306",vt(0,0,0),vt(x1,y1,z1))
  1974. game:GetService("Debris"):AddItem(prt,2)
  1975. coroutine.resume(coroutine.create(function(Part,Mesh)
  1976. for i=0,1,0.1 do
  1977. swait()
  1978. Part.CFrame=Part.CFrame*cf(0,y3,0)
  1979. Part.Transparency=i
  1980. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1981. end
  1982. Part.Parent=nil
  1983. end),prt,msh)
  1984. end
  1985.  
  1986. function WaveEffect2(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
  1987. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1988. prt.Anchored=true
  1989. prt.CFrame=cframe
  1990. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1991. game:GetService("Debris"):AddItem(prt,2)
  1992. coroutine.resume(coroutine.create(function(Part,Mesh)
  1993. for i=0,1,0.05 do
  1994. swait()
  1995. Part.CFrame=Part.CFrame
  1996. Part.Transparency=i
  1997. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1998. end
  1999. Part.Parent=nil
  2000. end),prt,msh)
  2001. end
  2002.  
  2003. function Lightning(p0,p1,tym,ofs,col,th,tra,last)
  2004. --[[p0=pos1
  2005. p1=pos2
  2006. tym=times
  2007. ofs=offset
  2008. col=color
  2009. th=size
  2010. tra=transparency
  2011. last=lastingtime]]
  2012. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  2013. for i=1,tym do
  2014. 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)
  2015. 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)])
  2016. light1=Instance.new("PointLight")
  2017. light1.Brightness=.8
  2018. light1.Color=Color3.new(.2,255,.2)
  2019. light1.Range=8
  2020. light1.Parent=li
  2021. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  2022. if tym == i then
  2023. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  2024. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  2025. else
  2026. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  2027. end
  2028. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
  2029. end
  2030. end
  2031.  
  2032. so = function(id,par,vol,pit)
  2033. coroutine.resume(coroutine.create(function()
  2034. local sou = Instance.new("Sound",par or workspace)
  2035. sou.Volume=vol
  2036. sou.Pitch=pit or 1
  2037. sou.SoundId=id
  2038. swait()
  2039. sou:play()
  2040. game:GetService("Debris"):AddItem(sou,6)
  2041. end))
  2042. end
  2043.  
  2044. function findNearestTorso(pos)
  2045. local list = game:service("Workspace"):children()
  2046. local torso = nil
  2047. local dist = 50
  2048. local temp = nil
  2049. local human = nil
  2050. local temp2 = nil
  2051. for x = 1, #list do
  2052. temp2 = list[x]
  2053. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Name ~= "IoneIinessDoL") then
  2054. temp = temp2:findFirstChild("Torso")
  2055. human = temp2:findFirstChild("Humanoid")
  2056. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  2057. if (temp.Position - pos).magnitude < dist then
  2058. torso = temp
  2059. dist = (temp.Position - pos).magnitude
  2060. end
  2061. end
  2062. end
  2063. end
  2064. return torso
  2065. end
  2066.  
  2067. Damagefunc=function(hit,minim,maxim,knockback,Type,Property)
  2068. if hit.Parent==nil then
  2069. return
  2070. end
  2071. CPlayer=Bin
  2072. h=hit.Parent:FindFirstChild("Humanoid")
  2073. for _,v in pairs(hit.Parent:children()) do
  2074. if v:IsA("Humanoid") then
  2075. h=v
  2076. end
  2077. end
  2078. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent.Name~=Aila.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2079. if attackdebounce == false then
  2080. attackdebounce = true
  2081. coroutine.resume(coroutine.create(function()
  2082. swait(5)
  2083. attackdebounce = false
  2084. end))
  2085. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2086. return
  2087. end]]
  2088. -- hs(hit,1.2)
  2089. c=Instance.new("ObjectValue")
  2090. c.Name="creator"
  2091. c.Value=game:service("Players").LocalPlayer
  2092. c.Parent=h
  2093. game:GetService("Debris"):AddItem(c,.5)
  2094. Damage=math.random(minim,maxim)
  2095. -- h:TakeDamage(Damage)
  2096. blocked=false
  2097. block=hit.Parent:findFirstChild("Block")
  2098. if block~=nil then
  2099. if block.className=="IntValue" then
  2100. if block.Value>0 then
  2101. blocked=true
  2102. block.Value=block.Value-1
  2103. print(block.Value)
  2104. end
  2105. end
  2106. end
  2107. if blocked==false then
  2108. -- h:TakeDamage(Damage)
  2109. h.Health=h.Health-Damage
  2110. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  2111. else
  2112. h.Health=h.Health-(Damage/2)
  2113. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  2114. end
  2115. if Type=="Knockdown" then
  2116. hum=hit.Parent.Humanoid
  2117. hum.PlatformStand=true
  2118. coroutine.resume(coroutine.create(function(HHumanoid)
  2119. swait(1)
  2120. HHumanoid.PlatformStand=false
  2121. end),hum)
  2122. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2123. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2124. local bodvol=Instance.new("BodyVelocity")
  2125. bodvol.velocity=angle*knockback
  2126. bodvol.P=5000
  2127. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2128. bodvol.Parent=hit
  2129. rl=Instance.new("BodyAngularVelocity")
  2130. rl.P=3000
  2131. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2132. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2133. rl.Parent=hit
  2134. game:GetService("Debris"):AddItem(bodvol,.5)
  2135. game:GetService("Debris"):AddItem(rl,.5)
  2136. elseif Type=="Normal" then
  2137. vp=Instance.new("BodyVelocity")
  2138. vp.P=500
  2139. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2140. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2141. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  2142. if knockback>0 then
  2143. vp.Parent=hit.Parent.Torso
  2144. end
  2145. game:GetService("Debris"):AddItem(vp,.5)
  2146. elseif Type=="Up" then
  2147. local bodyVelocity=Instance.new("BodyVelocity")
  2148. bodyVelocity.velocity=vt(0,20,0)
  2149. bodyVelocity.P=5000
  2150. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2151. bodyVelocity.Parent=hit
  2152. game:GetService("Debris"):AddItem(bodyVelocity,.5)
  2153. elseif Type=="Snare" then
  2154. bp=Instance.new("BodyPosition")
  2155. bp.P=2000
  2156. bp.D=100
  2157. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2158. bp.position=hit.Parent.Torso.Position
  2159. bp.Parent=hit.Parent.Torso
  2160. game:GetService("Debris"):AddItem(bp,1)
  2161. elseif Type=="Freeze" then
  2162. BodPos=Instance.new("BodyPosition")
  2163. BodPos.P=50000
  2164. BodPos.D=1000
  2165. BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2166. BodPos.position=hit.Parent.Torso.Position
  2167. BodPos.Parent=hit.Parent.Torso
  2168. BodGy = it("BodyGyro")
  2169. BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  2170. BodGy.P = 20e+003
  2171. BodGy.Parent=hit.Parent.Torso
  2172. BodGy.cframe = hit.Parent.Torso.CFrame
  2173. hit.Parent.Torso.Anchored=true
  2174. coroutine.resume(coroutine.create(function(Part)
  2175. swait(1.5)
  2176. Part.Anchored=false
  2177. end),hit.Parent.Torso)
  2178. game:GetService("Debris"):AddItem(BodPos,3)
  2179. game:GetService("Debris"):AddItem(BodGy,3)
  2180. end
  2181. c=Instance.new("ObjectValue")
  2182. c.Name="creator"
  2183. c.Value=Player
  2184. c.Parent=h
  2185. game:GetService("Debris"):AddItem(c,.5)
  2186. CRIT=false
  2187. hitDeb=true
  2188. AttackPos=6
  2189. end
  2190. end
  2191. end
  2192.  
  2193. showDamage=function(Char,Dealt,du,Color)
  2194. m=Instance.new("Model")
  2195. m.Name=tostring(Dealt)
  2196. h=Instance.new("Humanoid")
  2197. h.Health=0
  2198. h.MaxHealth=0
  2199. h.Parent=m
  2200. c=Instance.new("Part")
  2201. c.Transparency=0
  2202. c.BrickColor=Color
  2203. c.Name="Head"
  2204. c.TopSurface=0
  2205. c.BottomSurface=0
  2206. c.formFactor="Plate"
  2207. c.Size=Vector3.new(1,.4,1)
  2208. ms=Instance.new("CylinderMesh")
  2209. ms.Scale=Vector3.new(.8,.8,.8)
  2210. if CRIT==true then
  2211. ms.Scale=Vector3.new(1,1.25,1)
  2212. end
  2213. ms.Parent=c
  2214. c.Reflectance=0
  2215. Instance.new("BodyGyro").Parent=c
  2216. c.Parent=m
  2217. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2218. f=Instance.new("BodyPosition")
  2219. f.P=2000
  2220. f.D=100
  2221. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2222. f.position=c.Position+Vector3.new(0,3,0)
  2223. f.Parent=c
  2224. game:GetService("Debris"):AddItem(m,.5+du)
  2225. c.CanCollide=false
  2226. m.Parent=workspace
  2227. c.CanCollide=false
  2228. end
  2229.  
  2230. combo=0
  2231. num=0
  2232. function ob1d(mouse)
  2233. if attack==true then return end
  2234. hold=true
  2235. if combo==1 then
  2236. combo=2
  2237. attacktwo()
  2238. elseif combo==2 then
  2239. combo=3
  2240. attackthree()
  2241. elseif combo==3 then
  2242. combo=4
  2243. attackfour()
  2244. elseif combo==5 then
  2245. combo=6
  2246. dashattacktwo()
  2247. elseif combo==6 then
  2248. combo=7
  2249. dashattackthree()
  2250. else
  2251. combo=0
  2252. end
  2253. if holdq==true then
  2254. combo=8
  2255. heavyattackone()
  2256. else
  2257. local fentorvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2258. if fentorvel>10 then
  2259. if combo==0 then
  2260. combo=5
  2261. dashattackone()
  2262. end
  2263. else
  2264. if combo==0 then
  2265. combo=1
  2266. attackone()
  2267. end
  2268. end
  2269. end
  2270. coroutine.resume(coroutine.create(function()
  2271. swait(5)
  2272. if attack==false then
  2273. combo=0
  2274. UnCircle(1)
  2275. wld1.C0=euler(0,0,0)
  2276. MainC0=euler(2,0,0)*cf(0,0,0)
  2277. MainC02=cf(0,0,-3)
  2278. Neck.C0=necko
  2279. RootJoint.C0=RootCF
  2280. RW.C0=cf(1.5,0.5,0)*euler(0,0,0.5)
  2281. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  2282. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.5)
  2283. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  2284. RH.C0=RHC0
  2285. RH.C1=RHC1
  2286. LH.C0=LHC0
  2287. LH.C1=LHC1
  2288. end
  2289. end))
  2290. end
  2291.  
  2292. function ob1u(mouse)
  2293. hold = false
  2294. end
  2295.  
  2296. buttonhold = false
  2297.  
  2298. eul=0
  2299. holdq=false
  2300. jumpcount=0
  2301. function key(key)
  2302. if key:byte()==32 then
  2303. if attack==false then
  2304. jumpcount=jumpcount+1
  2305. end
  2306. if hovering==true then
  2307. hovering=false
  2308. return end
  2309. coroutine.resume(coroutine.create(function()
  2310. swait(5)
  2311. jumpcount=0
  2312. end))
  2313. if jumpcount==2 then
  2314. hovering=true
  2315. Hover()
  2316. end
  2317. end
  2318. if key=="f" and hovering==true then
  2319. if fly==false then
  2320. fly=true
  2321. hoverpos.Parent=nil
  2322. coroutine.resume(coroutine.create(function()
  2323. for i=0,1,0.2 do
  2324. wld1.C0=euler(1.57*i,0,0)*cf(0,2-2*i,-1*i)
  2325. swait()
  2326. end
  2327. end))
  2328. coroutine.resume(coroutine.create(function()
  2329. while fly==true do
  2330. bv.Parent=RootPart
  2331. bv.velocity=MMouse.Hit.lookVector*35
  2332. Bg.Parent=RootPart
  2333. Bg.cframe=cf(RootPart.Position, MMouse.Hit.p)*euler(-0.3,0,0)
  2334. RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.2)
  2335. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  2336. LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.2)
  2337. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  2338. swait()
  2339. end
  2340. RW.C0=cf(1.5,0.5,0)*euler(0,0,0.5)
  2341. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  2342. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.5)
  2343. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  2344. end))
  2345. else
  2346. coroutine.resume(coroutine.create(function()
  2347. for i=0,1,0.2 do
  2348. wld1.C0=euler(1.57-1.57*i,0,0)*cf(0,2*i,-1+1*i)
  2349. swait()
  2350. end
  2351. end))
  2352. fly=false
  2353. hoverpos.position=RootPart.Position
  2354. hoverpos.Parent=RootPart
  2355. Bg.Parent=nil
  2356. bv.Parent=nil
  2357. end
  2358. end
  2359. if attack==true then return end
  2360. if key=="e" then
  2361. for i=0,1,0.1 do
  2362. swait()
  2363. print(RW.C0.CFrame.fromEulerAnglesXYZ)
  2364. RW.C0=cf(1.5,0.5,0)*euler(0,0,0.5)
  2365. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  2366. LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.5)
  2367. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  2368. end
  2369. end
  2370. if key=="q" then
  2371. holdq=true
  2372. end
  2373. if key=="g" then
  2374. if ailasummoned==false then
  2375. ailasummoned=true
  2376. SummonAila()
  2377. else
  2378. ailasummoned=false
  2379. UnsummonAila()
  2380. end
  2381. end
  2382. if key=="z" then
  2383. if MMouse.Target~=nil and MMouse.Target.Parent:findFirstChild("Humanoid")~=nil and MMouse.Target.Parent:findFirstChild("Torso")~=nil then
  2384. TargetTorso=MMouse.Target.Parent.Torso
  2385. ailatargetting=true
  2386. end
  2387. end
  2388. if key=="x" then
  2389. TargetTorso=Torso
  2390. ailatargetting=false
  2391. end
  2392. if ailaattack==true then return end
  2393. if key=="c" then
  2394. --AilaTeleport(TargetTorso.CFrame)
  2395. AilaTeleport(TargetTorso.Position)
  2396. end
  2397. if key=="v" then
  2398. AilaSlash4()
  2399. end
  2400. if key=="b" then
  2401. AilaSlash3()
  2402. end
  2403. end
  2404.  
  2405. function key2(key)
  2406. if key=="q" then
  2407. holdq=false
  2408. end
  2409. end
  2410.  
  2411. function s(mouse)
  2412. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2413. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2414. mouse.KeyDown:connect(key)
  2415. mouse.KeyUp:connect(key2)
  2416. unsheathed = true
  2417. player = Player
  2418. ch = Character
  2419. MMouse = mouse
  2420. RSH = ch.Torso["Right Shoulder"]
  2421. LSH = ch.Torso["Left Shoulder"]
  2422. --
  2423. RSH.Parent = nil
  2424. LSH.Parent = nil
  2425. --
  2426. RW.Part0 = ch.Torso
  2427. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2428. RW.C1 = CFrame.new(0, 0.5, 0)
  2429. RW.Part1 = ch["Right Arm"]
  2430. RW.Parent = ch.Torso
  2431. --_G.R = RW
  2432. --
  2433. LW.Part0 = ch.Torso
  2434. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2435. LW.C1 = CFrame.new(0, 0.5, 0)
  2436. LW.Part1 = ch["Left Arm"]
  2437. LW.Parent = ch.Torso
  2438. --_G.L = LW
  2439. --
  2440. equipanim()
  2441. end
  2442.  
  2443. function ds(mouse)
  2444. hideanim()
  2445. swait(0)
  2446. RW.Parent = nil
  2447. LW.Parent = nil
  2448. RSH.Parent = player.Character.Torso
  2449. LSH.Parent = player.Character.Torso
  2450. end
  2451.  
  2452. Bin.Selected:connect(s)
  2453. Bin.Deselected:connect(ds)
  2454. coroutine.resume(coroutine.create(function(Hum)
  2455. swait(0.1)
  2456. Hum.Died:connect(function() ATorso.Parent=nil; UnsummonAila() end)
  2457. end),Humanoid)
  2458. print("Fen & Aila loaded.")
  2459.  
  2460. local Abg=Instance.new("BodyGyro")
  2461. Abg.Parent=nil
  2462. Abg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  2463. Abg.P = 500000
  2464. Abg.Name = "BodyGyro"
  2465. coroutine.resume(coroutine.create(function()
  2466. while true do
  2467. swait()
  2468. local dist=TargetTorso.Position-ARootPart.Position
  2469. local magnidist=dist.magnitude
  2470. if ailatargetting==false then
  2471. Abg.Parent=nil
  2472. if magnidist >= 20 then
  2473. if math.random(1,3)==1 and Aila.Parent~=nil then
  2474. --AilaTeleport(TargetTorso.CFrame)
  2475. AilaTeleport(TargetTorso.Position)
  2476. end
  2477. --AHumanoid:MoveTo(TargetTorso.Position,TargetTorso)
  2478. AHumanoid.WalkToPoint=TargetTorso.Position
  2479. swait(1)
  2480. end
  2481. else
  2482. Abg.Parent=ARootPart
  2483. local pos4 = Vector3.new(TargetTorso.Position.x,ARootPart.Position.Y,TargetTorso.Position.z)
  2484. Abg.cframe=CFrame.new(ARootPart.Position,pos4)
  2485. if magnidist <= 8 then
  2486. slash=math.random(1,3)
  2487. if slash==1 then
  2488. AilaSlash1()
  2489. elseif slash==2 then
  2490. AilaSlash2()
  2491. elseif slash==3 then
  2492. AilaSlash3()
  2493. end
  2494. elseif magnidist <= 15 then
  2495. slash=math.random(1,4)
  2496. if slash==1 then
  2497. if math.random(1,2)==1 then
  2498. AilaSlash1()
  2499. else
  2500. AilaSlash2()
  2501. end
  2502. else
  2503. if math.random(1,2)==1 then
  2504. AilaSlash3()
  2505. else
  2506. AilaSlash4()
  2507. end
  2508. end
  2509. end
  2510. if magnidist >= 20 then
  2511. if math.random(1,2)==1 and Aila.Parent~=nil then
  2512. --AilaTeleport(TargetTorso.CFrame)
  2513. AilaTeleport(TargetTorso.Position)
  2514. slash=math.random(1,4)
  2515. if slash==1 then
  2516. if math.random(1,2)==1 then
  2517. AilaSlash1()
  2518. else
  2519. AilaSlash2()
  2520. end
  2521. else
  2522. if math.random(1,2)==1 then
  2523. AilaSlash3()
  2524. else
  2525. AilaSlash4()
  2526. end
  2527. end
  2528. end
  2529. --AHumanoid:MoveTo(TargetTorso.Position,TargetTorso)
  2530. end
  2531. if magnidist >= 40 then
  2532. AilaSlash4()
  2533. end
  2534. AHumanoid.WalkToPoint=TargetTorso.Position
  2535. swait(0.1)
  2536. end
  2537. end
  2538. end))
  2539. coroutine.resume(coroutine.create(function()
  2540. AilaAnim="Idle"
  2541. while true do
  2542. swait()
  2543. local torvel=(ARootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2544. if torvel < 1 then
  2545. coroutine.resume(coroutine.create(function()
  2546. if AilaAnim=="Walk" then
  2547. for i=0,1,0.1 do
  2548. swait()
  2549. if ailaattack==false then
  2550. ARootJoint.C0=euler(0.2-0.2*i,0,0)
  2551. end
  2552. end
  2553. end
  2554. end))
  2555. AilaAnim="Idle"
  2556. elseif torvel < 19 then
  2557. coroutine.resume(coroutine.create(function()
  2558. if AilaAnim=="Idle" then
  2559. for i=0,1,0.1 do
  2560. swait()
  2561. if ailaattack==false then
  2562. ARootJoint.C0=euler(0.2*i,0,0)
  2563. end
  2564. end
  2565. end
  2566. end))
  2567. AilaAnim="Walk"
  2568. end
  2569. end
  2570. end))
  2571. --[[
  2572. Copyrighted (C) Fenrier 2014
  2573. ]]
Add Comment
Please, Sign In to add comment