ViggoCS

Fen_And_Alia

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