Advertisement
memberhero

Untitled

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