Advertisement
memberhero

fendam script

Jan 15th, 2019
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 197.28 KB | None | 0 0
  1. --[[
  2. Made by Fenrier.
  3. ]]
  4.  
  5. Player=game:GetService("Players").LocalPlayer
  6. Character=Player.Character
  7. PlayerGui=Player.PlayerGui
  8. Backpack=Player.Backpack
  9. Torso=Character.Torso
  10. Head=Character.Head
  11. Humanoid=Character.Humanoid
  12. LeftArm=Character["Left Arm"]
  13. LeftLeg=Character["Left Leg"]
  14. RightArm=Character["Right Arm"]
  15. RightLeg=Character["Right Leg"]
  16. LS=Torso["Left Shoulder"]
  17. LH=Torso["Left Hip"]
  18. RS=Torso["Right Shoulder"]
  19. RH=Torso["Right Hip"]
  20. Neck=Torso.Neck
  21. it=Instance.new
  22. vt=Vector3.new
  23. cf=CFrame.new
  24. euler=CFrame.fromEulerAnglesXYZ
  25. angles=CFrame.Angles
  26. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  29. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  30. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RootPart=Character.HumanoidRootPart
  33. RootJoint=RootPart.RootJoint
  34. RootCF=euler(-1.57,0,3.14)
  35. attack = false
  36. attackdebounce = false
  37. MMouse=nil
  38. combo=0
  39. local idle=0
  40. local Anim="Idle"
  41. local Effects={}
  42. local Weapon={}
  43. local Welds={}
  44. local Armor={}
  45. local AWelds={}
  46. local PDriver={}
  47. local PDWelds={}
  48. local AilaBot={}
  49. local ABWelds={}
  50. local decreaseatk=0
  51. local decreasedef=0
  52. local decreasemvmt=0
  53. local Mode="Normal"
  54. local AilaMode="Passive"
  55. local AilaTarget="None"
  56. local AilaTarget2=nil
  57. local intro=false
  58. local brigatk=false
  59. local explode=false
  60. local move2do=false
  61. local tavis=false
  62. local laarmvis=false
  63. local raarmvis=false
  64. local lalegvis=false
  65. local ralegvis=false
  66. local lpdvis=false
  67. local rpdvis=false
  68. local ailaattack=false
  69. local move1="(Z)\
  70. Aila Stingers"
  71. local move2="(X)\
  72. Booster Blaze"
  73. local move3="(C)\
  74. Ground Bunker"
  75. local move4="(V)\
  76. AilaBot"
  77. local cooldowns={}
  78. local cooldown1=0 table.insert(cooldowns,cooldown1)
  79. local cooldown2=0 table.insert(cooldowns,cooldown2)
  80. local cooldown3=0 table.insert(cooldowns,cooldown3)
  81. local cooldown4=0 table.insert(cooldowns,cooldown4)
  82. local cooldownsadd={}
  83. local cooldownadd1=.35 table.insert(cooldownsadd,cooldownadd1)
  84. local cooldownadd2=.23 table.insert(cooldownsadd,cooldownadd2)
  85. local cooldownadd3=.28 table.insert(cooldownsadd,cooldownadd3)
  86. local cooldownadd4=.5 table.insert(cooldownsadd,cooldownadd4)
  87. local cooldownmax=100
  88.  
  89. --blocknum=100
  90. local manualguardend=false
  91. --player
  92. player=nil
  93. --save shoulders
  94. RSH, LSH=nil, nil
  95. --welds
  96. RW, LW=Instance.new("Motor"), Instance.new("Motor")
  97. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  98. LH=Torso["Left Hip"]
  99. RH=Torso["Right Hip"]
  100. TorsoColor=Torso.BrickColor
  101. NewCol=BrickColor.new("Earth green").Color
  102. NewCol2=BrickColor.new("Bright blue").Color
  103. if Player:findFirstChild("Color1")~=nil then
  104. NewCol2=Player.Color1.Value
  105. end
  106. if Player:findFirstChild("Color2")~=nil then
  107. NewCol=Player.Color2.Value
  108. end
  109. local mdec=Instance.new("NumberValue",Decrease)
  110. mdec.Name="DecreaseDef"
  111. mdec.Value=.4
  112. local mdec2=Instance.new("NumberValue",Decrease)
  113. mdec2.Name="DecreaseMvmt"
  114. mdec2.Value=.1
  115.  
  116. local Animate=Humanoid.Animator
  117. --[[local animation=Instance.new("Animation")
  118. animation.AnimationId="http://www.roblox.com/Asset?ID=180435571"
  119. local animTrack=Humanoid:LoadAnimation(animation)]]
  120. local canjump=true
  121. function removeControl()
  122. canjump=false
  123. end
  124. function resumeControl()
  125. canjump=true
  126. end
  127. Player.Character.Humanoid.Changed:connect(function()
  128. if canjump==false then
  129. Player.Character.Humanoid.Jump=false
  130. end
  131. end)
  132. --[[
  133. removeControl()
  134. resumeControl()
  135. ]]
  136.  
  137. function swait(num)
  138. if num==0 or num==nil then
  139. --if Stagger.Value==false or Stun.Value<=100 then
  140. game:GetService("RunService").Heartbeat:wait()
  141. --end
  142. else
  143. for i=0,num do
  144. game:GetService("RunService").Heartbeat:wait()
  145. --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
  146. break
  147. end]]
  148. end
  149. end
  150. end
  151.  
  152.  
  153.  
  154. if Torso:findFirstChild("ParticleEmitter",true) ~= nil then
  155. Torso:findFirstChild("ParticleEmitter",true).Parent = nil
  156. end
  157. if Character:findFirstChild("Arm Guard",true) ~= nil then
  158. Character:findFirstChild("Arm Guard",true).Parent = nil
  159. end
  160. if Character:findFirstChild("Armor",true) ~= nil then
  161. Character:findFirstChild("Armor",true).Parent = nil
  162. end
  163. if Character:findFirstChild("Pile Driver",true) ~= nil then
  164. Character:findFirstChild("Pile Driver",true).Parent = nil
  165. end
  166. if Character:findFirstChild("AilaBot",true) ~= nil then
  167. Character:findFirstChild("AilaBot",true).Parent = nil
  168. end
  169. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  170. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  171. end
  172. if Character:findFirstChild("Stats",true) ~= nil then
  173. Character:findFirstChild("Stats",true).Parent = nil
  174. end
  175. local Stats=Instance.new("BoolValue")
  176. Stats.Name="Stats"
  177. Stats.Parent=Character
  178. local Atk=Instance.new("NumberValue")
  179. Atk.Name="Damage"
  180. Atk.Parent=Stats
  181. Atk.Value=1
  182. local Def=Instance.new("NumberValue")
  183. Def.Name="Defense"
  184. Def.Parent=Stats
  185. Def.Value=1
  186. local Mvmt=Instance.new("NumberValue")
  187. Mvmt.Name="Movement"
  188. Mvmt.Parent=Stats
  189. Mvmt.Value=1
  190. local Block=Instance.new("BoolValue")
  191. Block.Name="Block"
  192. Block.Parent=Stats
  193. Block.Value=false
  194. local Stun=Instance.new("NumberValue")
  195. Stun.Name="Stun"
  196. Stun.Parent=Stats
  197. Stun.Value=0
  198. local StunT=Instance.new("NumberValue")
  199. StunT.Name="StunThreshold"
  200. StunT.Parent=Stats
  201. StunT.Value=100
  202. local Rooted=Instance.new("BoolValue")
  203. Rooted.Name="Rooted"
  204. Rooted.Parent=Stats
  205. Rooted.Value=false
  206. local Decrease=Instance.new("BoolValue")
  207. Decrease.Name="Decrease"
  208. Decrease.Parent=Stats
  209. Decrease.Value=false
  210. local mana=Instance.new("NumberValue")
  211. mana.Name="Mana"
  212. mana.Parent=Stats
  213. mana.Value=0
  214. local passive1=Instance.new("NumberValue",Decrease)
  215. passive1.Name="DecreaseDef"
  216. passive1.Value=0
  217. local passive2=Instance.new("NumberValue",Decrease)
  218. passive2.Name="DecreaseMvmt"
  219. passive2.Value=0
  220.  
  221. --[[
  222. decreaseatk=0
  223. decreasedef=0
  224. decreasemvmt=0
  225. for _,c in pairs(Decrease:children()) do
  226. if c.Name=="DecreaseAtk" then
  227. deccreaseatk=decreaseatk+c.Value
  228. elseif c.Name=="DecreaseDef" then
  229. deccreasedef=decreasedef+c.Value
  230. elseif c.Name=="DecreaseMvmt" then
  231. deccreasemvmt=decreasemvmt+c.Value
  232. end
  233. end
  234. Atk.Value=1-decreaseatk
  235. Def.Value=1-decreasedef
  236. Mvmt.Value=1-decreasemvmt
  237. ]]
  238.  
  239. local Stunned=Instance.new("BoolValue")
  240. Stunned.Name="Stunned"
  241. Stunned.Parent=Stats
  242. Stunned.Value=false
  243. local Stagger=Instance.new("BoolValue")
  244. Stagger.Name="Stagger"
  245. Stagger.Parent=Stats
  246. Stagger.Value=false
  247. local StaggerHit=Instance.new("BoolValue")
  248. StaggerHit.Name="StaggerHit"
  249. StaggerHit.Parent=Stats
  250. StaggerHit.Value=false
  251. local RecentEnemy=Instance.new("ObjectValue")
  252. RecentEnemy.Name="RecentEnemy"
  253. RecentEnemy.Parent=Stats
  254. RecentEnemy.Value=nil
  255.  
  256. function NoOutline(Part)
  257. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  258. end
  259.  
  260. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  261. local fp=it("Part")
  262. fp.formFactor=formfactor
  263. fp.Parent=parent
  264. fp.Reflectance=reflectance
  265. fp.Transparency=transparency
  266. fp.CanCollide=false
  267. fp.Locked=true
  268. fp.BrickColor=brickcolor
  269. fp.Name=name
  270. fp.Size=size
  271. fp.Position=Torso.Position
  272. NoOutline(fp)
  273. fp.Material="SmoothPlastic"
  274. fp:BreakJoints()
  275. return fp
  276. end
  277.  
  278. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  279. local mesh=it(Mesh)
  280. mesh.Parent=part
  281. if Mesh=="SpecialMesh" then
  282. mesh.MeshType=meshtype
  283. if meshid~="nil" then
  284. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  285. end
  286. end
  287. mesh.Offset=offset
  288. mesh.Scale=scale
  289. return mesh
  290. end
  291.  
  292. function weld(parent,part0,part1,c0)
  293. local weld=it("Motor")
  294. weld.Parent=parent
  295. weld.Part0=part0
  296. weld.Part1=part1
  297. weld.C0=c0
  298. return weld
  299. end
  300.  
  301. function gui(GuiType,parent,text,backtrans,backcol,pos,size)
  302. local gui=it(GuiType)
  303. gui.Parent=parent
  304. gui.Text=text
  305. gui.BackgroundTransparency=backtrans
  306. gui.BackgroundColor3=backcol
  307. gui.SizeConstraint="RelativeXY"
  308. gui.TextXAlignment="Center"
  309. gui.TextYAlignment="Center"
  310. gui.Position=pos
  311. gui.Size=size
  312. gui.Font="SourceSans"
  313. gui.FontSize="Size14"
  314. gui.TextWrapped=false
  315. gui.TextStrokeTransparency=0
  316. gui.TextColor=BrickColor.new("White")
  317. return gui
  318. end
  319.  
  320. local Color1=Torso.BrickColor
  321.  
  322. local fengui=it("GuiMain")
  323. fengui.Parent=Player.PlayerGui
  324. fengui.Name="WeaponGUI"
  325. local fenframe=it("Frame")
  326. fenframe.Parent=fengui
  327. fenframe.BackgroundColor3=Color3.new(255,255,255)
  328. fenframe.BackgroundTransparency=1
  329. fenframe.BorderColor3=Color3.new(17,17,17)
  330. fenframe.Size=UDim2.new(0.1,0,0.1,0)
  331. fenframe.Position=UDim2.new(0.95,0,0.7,0)
  332. local fenframe2=it("Frame")
  333. fenframe2.Parent=fengui
  334. fenframe2.BackgroundColor3=Color3.new(255,255,255)
  335. fenframe2.BackgroundTransparency=1
  336. fenframe2.BorderColor3=Color3.new(17,17,17)
  337. fenframe2.Size=UDim2.new(0.2,0,0.1,0)
  338. fenframe2.Position=UDim2.new(0.4,0,0.85,0)
  339. local fenframe3=it("Frame")
  340. fenframe3.Parent=fengui
  341. fenframe3.BackgroundColor3=Color3.new(255,255,255)
  342. fenframe3.BackgroundTransparency=1
  343. fenframe3.BorderColor3=Color3.new(17,17,17)
  344. fenframe3.Size=UDim2.new(0.2,0,0.2,0)
  345. fenframe3.Position=UDim2.new(0.8,0,0.8,0)
  346. fenframe3.Name="MoveFrame"
  347. local fenframe4=it("Frame")
  348. fenframe4.Parent=fengui
  349. fenframe4.BackgroundColor3=Color3.new(255,255,255)
  350. fenframe4.BackgroundTransparency=1
  351. fenframe4.BorderColor3=Color3.new(17,17,17)
  352. fenframe4.Size=UDim2.new(0.1,0,0.1,0)
  353. fenframe4.Position=UDim2.new(0,0,0.7,0)
  354. local pressedf=false
  355. local fenframe5=it("Frame")
  356. fenframe5.Parent=fengui
  357. fenframe5.Parent=nil
  358. fenframe5.BackgroundColor3=Color3.new(0,0,0)
  359. fenframe5.BackgroundTransparency=1
  360. fenframe5.BorderColor3=Color3.new(0,0,0)
  361. fenframe5.Size=UDim2.new(1,0,1,0)
  362. fenframe5.Position=UDim2.new(0,0,0,0)
  363. fenframe5.ZIndex=2
  364. local tellbar=gui("TextLabel",fenframe5,"Press 'F' to equip your weapon.",1,Color3.new(0,0,0),UDim2.new(.25,0,.25,0),UDim2.new(.5,0,.5,0))
  365. tellbar.Font="Arial"
  366. tellbar.TextScaled=true
  367. tellbar.TextTransparency=1
  368. tellbar.TextStrokeTransparency=1
  369. tellbar.ZIndex=2
  370. local fnumb=0
  371. --gui(GuiType,parent,text,backtrans,backcol,pos,size)
  372. local fenbarmana1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(.4,0,-4,0))
  373. local fenbarmana2=gui("TextLabel",fenframe,"",0,BrickColor.new(NewCol2).Color,UDim2.new(0,0,0,0),UDim2.new(.4,0,0,0))
  374. local fenbarmana4=gui("TextLabel",fenframe,"Mana("..mana.Value..")",1,Color3.new(0,0,0),UDim2.new(0,0,.2,0),UDim2.new(.4,0,.2,0))
  375. local fenbardamage=gui("TextLabel",fenframe2,"Damage",.55,Color3.new(155/255,0,0),UDim2.new(-.23,0,0,0),UDim2.new(.2,0,1,0))
  376. local fenbardef=gui("TextLabel",fenframe2,"Defense",0.55,Color3.new(0,0,155/255),UDim2.new(-.46,0,0,0),UDim2.new(.2,0,1,0))
  377. local fenbarmove=gui("TextLabel",fenframe2,"Walkspeed",0.55,Color3.new(0,155/255,0),UDim2.new(1.03,0,0,0),UDim2.new(.2,0,1,0))
  378. local fenbarhp1=gui("TextLabel",fenframe2,"",0,Color3.new(0,0,0),UDim2.new(-.46,0,1,0),UDim2.new(1.92,0,.4,0))
  379. local fenbarhp2=gui("TextLabel",fenbarhp1,"",0,Color3.new(1,0,0),UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  380. local fenbarhp3=gui("TextLabel",fenbarhp1,"(100)",1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  381. local fenbarstun1=gui("TextLabel",fenframe4,"",0,Color3.new(0,0,0),UDim2.new(.2,0,0,0),UDim2.new(.4,0,-4,0))
  382. local fenbarstun2=gui("TextLabel",fenframe4,"",0,Color3.new(0.960784,0.803922,0.188235),UDim2.new(.2,0,0,0),UDim2.new(.4,0,0,0))
  383. local fenbarstun3=gui("TextLabel",fenframe4,"Stun("..Stun.Value..")",1,Color3.new(0.960784,0.803922,0.188235),UDim2.new(.2,0,.2,0),UDim2.new(.4,0,.2,0))
  384. local fenbarmove1=gui("TextButton",fenframe3,move1,.55,Color3.new(.5,.5,.5),UDim2.new(0.1,0,0.1,0),UDim2.new(.4,0,.4,0))
  385. fenbarmove1.ZIndex=2
  386. local fenbarmove1b=gui("TextLabel",fenbarmove1,"",.55,BrickColor.new(NewCol2).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  387. local fenbarmove2=gui("TextButton",fenframe3,move2,.55,Color3.new(.5,.5,.5),UDim2.new(0.6,0,0.1,0),UDim2.new(.4,0,.4,0))
  388. fenbarmove2.ZIndex=2
  389. local fenbarmove2b=gui("TextLabel",fenbarmove2,"",.55,BrickColor.new(NewCol2).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  390. local fenbarmove3=gui("TextButton",fenframe3,move3,.55,Color3.new(.5,.5,.5),UDim2.new(0.1,0,0.6,0),UDim2.new(.4,0,.4,0))
  391. fenbarmove3.ZIndex=2
  392. local fenbarmove3b=gui("TextLabel",fenbarmove3,"",.55,BrickColor.new(NewCol2).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  393. local fenbarmove4=gui("TextButton",fenframe3,move4,.55,Color3.new(.5,.5,.5),UDim2.new(0.6,0,0.6,0),UDim2.new(.4,0,.4,0))
  394. fenbarmove4.ZIndex=2
  395. local fenbarmove4b=gui("TextLabel",fenbarmove4,"",.55,BrickColor.new(NewCol2).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  396.  
  397. local modelzorz=Instance.new("Model")
  398. modelzorz.Parent=Character
  399. modelzorz.Name="Arm Guard"
  400.  
  401. local lprt1=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part01",vt())
  402. local lprt2=part(3,modelzorz,0,0,BrickColor.new("Bright yellow"),"Part02",vt())
  403. local lprt3=part(3,modelzorz,0,0,BrickColor.new(NewCol2),"Part03",vt()) lprt3.Material="Neon"
  404. local rprt1=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part01",vt())
  405. local rprt2=part(3,modelzorz,0,0,BrickColor.new("Bright yellow"),"Part02",vt())
  406. local rprt3=part(3,modelzorz,0,0,BrickColor.new(NewCol2),"Part03",vt()) rprt3.Material="Neon"
  407.  
  408. local lmsh1=mesh("BlockMesh",lprt1,"nil","nil",vt(0,0,0),vt(5.01,4,5.01))
  409. local lmsh2=mesh("CylinderMesh",lprt2,"nil","nil",vt(0,0,0),vt(3,.1,3))
  410. local lmsh3=mesh("SpecialMesh",lprt3,"Sphere","nil",vt(0,0,0),vt(2,1,2))
  411. local rmsh1=mesh("BlockMesh",rprt1,"nil","nil",vt(0,0,0),vt(5.01,4,5.01))
  412. local rmsh2=mesh("CylinderMesh",rprt2,"nil","nil",vt(0,0,0),vt(3,.1,3))
  413. local rmsh3=mesh("SpecialMesh",rprt3,"Sphere","nil",vt(0,0,0),vt(2,1,2))
  414.  
  415. local lwld1=weld(lprt1,lprt1,LeftArm,euler(0,0,0)*cf(0,.5,0))
  416. local lwld2=weld(lprt1,lprt2,lprt1,euler(0,0,1.57)*cf(.5,0,0))
  417. local lwld3=weld(lprt1,lprt3,lprt2,euler(0,0,0)*cf(0,0,0))
  418. local rwld1=weld(lprt1,rprt1,RightArm,euler(0,3.14,0)*cf(0,.5,0))
  419. local rwld2=weld(lprt1,rprt2,rprt1,euler(0,0,1.57)*cf(.5,0,0))
  420. local rwld3=weld(lprt1,rprt3,rprt2,euler(0,0,0)*cf(0,0,0))
  421.  
  422. for i=.3,-.45,-.15 do
  423. local lprt4=part(3,modelzorz,.5,0,BrickColor.new("Bright yellow"),"Part04",vt())
  424. local lmsh4=mesh("BlockMesh",lprt4,"nil","nil",vt(0,0,0),vt(2,.5,5.1))
  425. local lwld4=weld(lprt1,lprt4,lprt1,euler(0,0,.3)*cf(.18,i,0))
  426. local lprt5=part(3,modelzorz,.5,0,BrickColor.new("Bright yellow"),"Part04",vt())
  427. local lmsh5=mesh("BlockMesh",lprt5,"nil","nil",vt(0,0,0),vt(2,.5,5.1))
  428. local lwld5=weld(lprt1,lprt5,lprt1,euler(0,0,-.3)*cf(-.18,i,0))
  429. end
  430.  
  431. for i=.3,-.45,-.15 do
  432. local rprt4=part(3,modelzorz,.5,0,BrickColor.new("Bright yellow"),"Part04",vt())
  433. local rmsh4=mesh("BlockMesh",rprt4,"nil","nil",vt(0,0,0),vt(2,.5,5.1))
  434. local rwld4=weld(lprt1,rprt4,rprt1,euler(0,0,.3)*cf(.18,i,0))
  435. local rprt5=part(3,modelzorz,.5,0,BrickColor.new("Bright yellow"),"Part04",vt())
  436. local rmsh5=mesh("BlockMesh",rprt5,"nil","nil",vt(0,0,0),vt(2,.5,5.1))
  437. local rwld5=weld(lprt1,rprt5,rprt1,euler(0,0,-.3)*cf(-.18,i,0))
  438. end
  439.  
  440. for _,c in pairs(modelzorz:children()) do
  441. table.insert(Weapon,c)
  442. end
  443. for _,c in pairs(lprt1:children()) do
  444. if c.className=="Motor" then
  445. table.insert(Welds,c)
  446. end
  447. end
  448. --[[for i=1,#Weapon do
  449. Weapon[i].Transparency=1
  450. end]]
  451.  
  452. armor=Instance.new("Model")
  453. armor.Parent=Character
  454. armor.Name="Armor"
  455.  
  456. atprt1=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Torso Part01",vt())
  457. atprt2=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Torso Part02",vt())
  458. atprt3=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Torso Part03",vt())
  459. atprt4=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Torso Part04",vt())
  460. atprt5=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Torso Part05",vt())
  461. atprt6=part(3,armor,0,0,BrickColor.new("Black"),"Armor Torso Part06",vt())
  462. atprt7=part(3,armor,.5,0,BrickColor.new("New Yeller"),"Armor Torso Part07",vt()) atprt7.Material="Neon"
  463. atprt8=part(3,armor,0,0,BrickColor.new("Black"),"Armor Torso Part08",vt())
  464. atprt9=part(3,armor,0,0,BrickColor.new("Black"),"Armor Torso Part09",vt())
  465. atprt10=part(3,armor,0,0,BrickColor.new("Black"),"Armor Torso Part10",vt())
  466. atprt11=part(3,armor,0,0,BrickColor.new("Black"),"Armor Torso Part11",vt())
  467. atprt12=part(3,armor,0,0,BrickColor.new("Black"),"Armor Torso Part12",vt())
  468. atprt13=part(3,armor,0,0,BrickColor.new("Black"),"Armor Torso Part13",vt())
  469. atprt14=part(3,armor,0,0,BrickColor.new("New Yeller"),"Armor Torso Part14",vt()) atprt14.Material="Neon"
  470. atprt15=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Torso Part15",vt())
  471. atprt16=part(3,armor,0,0,BrickColor.new("White"),"Armor Torso Part16",vt())
  472. atprt17=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Torso Part17",vt())
  473. atprt18=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Torso Part18",vt())
  474. atprt19=part(3,armor,0,0,BrickColor.new("White"),"Armor Torso Part19",vt())
  475. atprt20=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Torso Part20",vt())
  476. atprt21=part(3,armor,0,0,BrickColor.new("White"),"Armor Torso Part21",vt())
  477. alaprt1=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor LeftArm Part01",vt())
  478. alaprt2=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor LeftArm Part02",vt())
  479. alaprt3=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor LeftArm Part03",vt())
  480. alaprt4=part(3,armor,0,0,BrickColor.new("White"),"Armor LeftArm Part04",vt())
  481. alaprt5=part(3,armor,0,0,BrickColor.new("White"),"Armor LeftArm Part05",vt())
  482. alaprt6=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor LeftArm Part06",vt())
  483. alaprt9=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor LeftArm Part09",vt())
  484. araprt1=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor RightArm Part01",vt())
  485. araprt2=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor RightArm Part02",vt())
  486. araprt3=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor RightArm Part03",vt())
  487. araprt4=part(3,armor,0,0,BrickColor.new("White"),"Armor RightArm Part04",vt())
  488. araprt5=part(3,armor,0,0,BrickColor.new("White"),"Armor RightArm Part05",vt())
  489. araprt6=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor RightArm Part06",vt())
  490. araprt9=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor RightArm Part09",vt())
  491. allprt1=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor LeftLeg Part01",vt())
  492. allprt2=part(3,armor,0,0,BrickColor.new("White"),"Armor LeftLeg Part02",vt())
  493. allprt3=part(3,armor,0,0,BrickColor.new("Black"),"Armor LeftLeg Part03",vt())
  494. allprt4=part(3,armor,0,0,BrickColor.new("White"),"Armor LeftLeg Part04",vt())
  495. allprt5=part(3,armor,0,0,BrickColor.new("White"),"Armor LeftLeg Part05",vt())
  496. allprt6=part(3,armor,0,0,BrickColor.new("White"),"Armor LeftLeg Part06",vt())
  497. allprt7=part(3,armor,0,0,BrickColor.new("White"),"Armor LeftLeg Part07",vt())
  498. allprt8=part(3,armor,0,0,BrickColor.new("White"),"Armor LeftLeg Part08",vt())
  499. allprt9=part(3,armor,0,0,BrickColor.new("White"),"Armor LeftLeg Part09",vt())
  500. allprt10=part(3,armor,0,0,BrickColor.new("White"),"Armor LeftLeg Part10",vt())
  501. arlprt1=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor RightLeg Part01",vt())
  502. arlprt2=part(3,armor,0,0,BrickColor.new("White"),"Armor RightLeg Part02",vt())
  503. arlprt3=part(3,armor,0,0,BrickColor.new("Black"),"Armor RightLeg Part03",vt())
  504. arlprt4=part(3,armor,0,0,BrickColor.new("White"),"Armor RightLeg Part04",vt())
  505. arlprt5=part(3,armor,0,0,BrickColor.new("White"),"Armor RightLeg Part05",vt())
  506. arlprt6=part(3,armor,0,0,BrickColor.new("White"),"Armor RightLeg Part06",vt())
  507. arlprt7=part(3,armor,0,0,BrickColor.new("White"),"Armor RightLeg Part07",vt())
  508. arlprt8=part(3,armor,0,0,BrickColor.new("White"),"Armor RightLeg Part08",vt())
  509. arlprt9=part(3,armor,0,0,BrickColor.new("White"),"Armor RightLeg Part09",vt())
  510. arlprt10=part(3,armor,0,0,BrickColor.new("White"),"Armor RightLeg Part10",vt())
  511. ahprt1=part(3,armor,0,1,BrickColor.new("Black"),"Armor Head Part01",vt())
  512. ahprt2=part(3,armor,0,1,BrickColor.new("Black"),"Armor Head Part02",vt())
  513. ahprt2v=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Head Part02visor",vt())
  514. ahprt3=part(3,armor,0,1,BrickColor.new("Black"),"Armor Head Part03",vt())
  515. ahprt3v=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Head Part03visor",vt())
  516. ahprt4=part(3,armor,0,1,BrickColor.new("Black"),"Armor Head Part04",vt())
  517. ahprt5=part(3,armor,0,1,BrickColor.new("Black"),"Armor Head Part05",vt())
  518. ahprt6=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Head Part06",vt())
  519. ahprt7=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Head Part07",vt())
  520. ahprt8=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Head Part08",vt())
  521. ahprt9=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Head Part09",vt())
  522. ahprt10=part(3,armor,0,1,BrickColor.new("Black"),"Armor Head Part10",vt())
  523. ahprt11=part(3,armor,0,1,BrickColor.new("Black"),"Armor Head Part11",vt())
  524. ahprt12=part(3,armor,.8,1,BrickColor.new("Black"),"Armor Head Part12",vt())
  525. ahprt13=part(3,armor,.8,1,BrickColor.new("Black"),"Armor Head Part13",vt())
  526. ahprt10v=part(3,armor,0,0,BrickColor.new("Black"),"Armor Head Part10v",vt())
  527. ahprt11v=part(3,armor,0,0,BrickColor.new("Black"),"Armor Head Part11v",vt())
  528. ahprt12v=part(3,armor,.8,0,BrickColor.new("New Yeller"),"Armor Head Part12v",vt()) ahprt12v.Material="Neon"
  529. ahprt13v=part(3,armor,.8,0,BrickColor.new("New Yeller"),"Armor Head Part13v",vt()) ahprt12v.Material="Neon"
  530. ahprt14=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Head Part14",vt())
  531. ahprt15=part(3,armor,0,0,BrickColor.new("White"),"Armor Head Part15",vt())
  532. ahprt16=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Head Part16",vt())
  533. ahprt17=part(3,armor,0,0,BrickColor.new("White"),"Armor Head Part17",vt())
  534. ahprt18=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Head Part18",vt())
  535. ahprt19=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Head Part19",vt())
  536. ahprt20=part(3,armor,0,0,BrickColor.new("Black"),"Armor Head Part20",vt())
  537. ahprt21=part(3,armor,.5,0,BrickColor.new("New Yeller"),"Armor Head Part21",vt()) ahprt21.Material="Neon"
  538. ahprt22=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Head Part22",vt())
  539. ahprt23=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Head Part23",vt())
  540. ahprt24=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Head Part24",vt())
  541. ahprt25=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Head Part25",vt())
  542. ahprt26=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Head Part26",vt())
  543. ahprt27=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor Head Part27",vt())
  544.  
  545. atmsh1=mesh("BlockMesh",atprt1,"nil","nil",vt(0,0,0),vt(10.5,4,5.5))
  546. atmsh2=mesh("BlockMesh",atprt2,"nil","nil",vt(0,0,0),vt(4.5,2.01,5.5))
  547. atmsh3=mesh("BlockMesh",atprt3,"nil","nil",vt(0,0,0),vt(4.5,2.01,5.5))
  548. atmsh4=mesh("SpecialMesh",atprt4,"Wedge","nil",vt(0,0,0),vt(5.5,5,3))
  549. atmsh5=mesh("SpecialMesh",atprt5,"Wedge","nil",vt(0,0,0),vt(5.5,5,3))
  550. atmsh6=mesh("CylinderMesh",atprt6,"nil","nil",vt(0,0,0),vt(5,1,5))
  551. atmsh7=mesh("SpecialMesh",atprt7,"Sphere","nil",vt(0,0,0),vt(4,2,4))
  552. atmsh8=mesh("BlockMesh",atprt8,"nil","nil",vt(0,0,0),vt(2.9,1,1))
  553. atmsh9=mesh("BlockMesh",atprt9,"nil","nil",vt(0,0,0),vt(2.9,1,1))
  554. atmsh10=mesh("BlockMesh",atprt10,"nil","nil",vt(0,0,0),vt(4.9,1,.5))
  555. atmsh11=mesh("BlockMesh",atprt11,"nil","nil",vt(0,0,0),vt(4.9,1,.5))
  556. atmsh12=mesh("BlockMesh",atprt12,"nil","nil",vt(0,0,0),vt(1.2,1,.5))
  557. atmsh13=mesh("BlockMesh",atprt13,"nil","nil",vt(0,0,0),vt(1.2,1,.5))
  558. atmsh14=mesh("SpecialMesh",atprt14,"Sphere","nil",vt(0,0,0),vt(2,1,2))
  559. atmsh15=mesh("SpecialMesh",atprt15,"FileMesh","3270017",vt(0,0,0),vt(.4,.4,1))
  560. atmsh16=mesh("SpecialMesh",atprt16,"FileMesh","3270017",vt(0,0,0),vt(.5,.5,2))
  561. atmsh17=mesh("SpecialMesh",atprt17,"FileMesh","3270017",vt(0,0,0),vt(.7,.7,2.5))
  562. atmsh18=mesh("SpecialMesh",atprt18,"FileMesh","9756362",vt(0,0,0),vt(.5,.2,1.5))
  563. atmsh19=mesh("SpecialMesh",atprt19,"FileMesh","9756362",vt(0,0,0),vt(.55,.4,.5))
  564. atmsh20=mesh("SpecialMesh",atprt20,"FileMesh","9756362",vt(0,0,0),vt(.5,.2,1.5))
  565. atmsh21=mesh("SpecialMesh",atprt21,"FileMesh","9756362",vt(0,0,0),vt(.55,.4,.5))
  566. alamsh1=mesh("BlockMesh",alaprt1,"nil","nil",vt(0,0,0),vt(5.2,5.5,5.2))
  567. alamsh2=mesh("CylinderMesh",alaprt2,"nil","nil",vt(0,0,0),vt(7.1,2,7.1))
  568. alamsh3=mesh("SpecialMesh",alaprt3,"FileMesh","9756362",vt(0,0,0),vt(.2,1.2,.8))
  569. alamsh4=mesh("SpecialMesh",alaprt4,"FileMesh","9756362",vt(0,0,0),vt(.1,.7,.3))
  570. alamsh5=mesh("SpecialMesh",alaprt5,"FileMesh","9756362",vt(0,0,0),vt(.1,.7,.3))
  571. alamsh6=mesh("BlockMesh",alaprt6,"nil","nil",vt(0,0,0),vt(5.01,2.5,5.01))
  572. alamsh9=mesh("SpecialMesh",alaprt9,"Wedge","nil",vt(0,0,0),vt(6,4,8))
  573. aramsh1=mesh("BlockMesh",araprt1,"nil","nil",vt(0,0,0),vt(5.2,5.5,5.2))
  574. aramsh2=mesh("CylinderMesh",araprt2,"nil","nil",vt(0,0,0),vt(7.1,2,7.1))
  575. aramsh3=mesh("SpecialMesh",araprt3,"FileMesh","9756362",vt(0,0,0),vt(.2,1.2,.8))
  576. aramsh4=mesh("SpecialMesh",araprt4,"FileMesh","9756362",vt(0,0,0),vt(.1,.7,.3))
  577. aramsh5=mesh("SpecialMesh",araprt5,"FileMesh","9756362",vt(0,0,0),vt(.1,.7,.3))
  578. aramsh6=mesh("BlockMesh",araprt6,"nil","nil",vt(0,0,0),vt(5.01,2.5,5.01))
  579. aramsh9=mesh("SpecialMesh",araprt9,"Wedge","nil",vt(0,0,0),vt(6,4,8))
  580. allmsh1=mesh("BlockMesh",allprt1,"nil","nil",vt(0,0,0),vt(5.1,8.5,5.1))
  581. allmsh2=mesh("BlockMesh",allprt2,"nil","nil",vt(0,0,0),vt(5.2,1.51,5.2))
  582. allmsh3=mesh("BlockMesh",allprt3,"nil","nil",vt(0,0,0),vt(3,1.4,5.2))
  583. allmsh4=mesh("BlockMesh",allprt4,"nil","nil",vt(0,0,0),vt(2,2.2,.5))
  584. allmsh5=mesh("BlockMesh",allprt5,"nil","nil",vt(0,0,0),vt(2,2.2,.5))
  585. allmsh6=mesh("BlockMesh",allprt6,"nil","nil",vt(0,0,0),vt(3,.5,.5))
  586. allmsh7=mesh("BlockMesh",allprt7,"nil","nil",vt(0,0,0),vt(3,.5,.5))
  587. allmsh8=mesh("SpecialMesh",allprt8,"Wedge","nil",vt(0,0,0),vt(.5,2,3))
  588. allmsh9=mesh("SpecialMesh",allprt9,"Wedge","nil",vt(0,0,0),vt(.5,2,3))
  589. allmsh10=mesh("SpecialMesh",allprt10,"FileMesh","9756362",vt(0,0,0),vt(.5,.7,.1))
  590. arlmsh1=mesh("BlockMesh",arlprt1,"nil","nil",vt(0,0,0),vt(5.1,8.5,5.1))
  591. arlmsh2=mesh("BlockMesh",arlprt2,"nil","nil",vt(0,0,0),vt(5.2,1.51,5.2))
  592. arlmsh3=mesh("BlockMesh",arlprt3,"nil","nil",vt(0,0,0),vt(3,1.4,5.2))
  593. arlmsh4=mesh("BlockMesh",arlprt4,"nil","nil",vt(0,0,0),vt(2,2.2,.5))
  594. arlmsh5=mesh("BlockMesh",arlprt5,"nil","nil",vt(0,0,0),vt(2,2.2,.5))
  595. arlmsh6=mesh("BlockMesh",arlprt6,"nil","nil",vt(0,0,0),vt(3,.5,.5))
  596. arlmsh7=mesh("BlockMesh",arlprt7,"nil","nil",vt(0,0,0),vt(3,.5,.5))
  597. arlmsh8=mesh("SpecialMesh",arlprt8,"Wedge","nil",vt(0,0,0),vt(.5,2,3))
  598. arlmsh9=mesh("SpecialMesh",arlprt9,"Wedge","nil",vt(0,0,0),vt(.5,2,3))
  599. arlmsh10=mesh("SpecialMesh",arlprt10,"FileMesh","9756362",vt(0,0,0),vt(.5,.7,.1))
  600. ahmsh2=mesh("BlockMesh",ahprt2v,"nil","nil",vt(0,0,0),vt(4,3,1))
  601. ahmsh3=mesh("BlockMesh",ahprt3v,"nil","nil",vt(0,0,0),vt(4,3,1))
  602. --[[ahmsh4=mesh("BlockMesh",ahprt4,"nil","nil",vt(0,0,0),vt(2,2,2))
  603. ahmsh5=mesh("BlockMesh",ahprt5,"nil","nil",vt(0,0,0),vt(2,2,2))]]
  604. ahmsh6=mesh("BlockMesh",ahprt6,"nil","nil",vt(0,0,0),vt(4,2,1))
  605. ahmsh7=mesh("BlockMesh",ahprt7,"nil","nil",vt(0,0,0),vt(4,2,1))
  606. ahmsh8=mesh("BlockMesh",ahprt8,"nil","nil",vt(0,0,0),vt(4,3,1))
  607. ahmsh9=mesh("BlockMesh",ahprt9,"nil","nil",vt(0,0,0),vt(4,3,1))
  608. ahmsh10=mesh("BlockMesh",ahprt10v,"nil","nil",vt(0,0,0),vt(4,2,.5))
  609. ahmsh11=mesh("BlockMesh",ahprt11v,"nil","nil",vt(0,0,0),vt(4,2,.5))
  610. ahmsh12=mesh("BlockMesh",ahprt12v,"nil","nil",vt(0,0,0),vt(1,.5,1))
  611. ahmsh13=mesh("BlockMesh",ahprt13v,"nil","nil",vt(0,0,0),vt(1,.5,1))
  612. ahmsh14=mesh("SpecialMesh",ahprt14,"FileMesh","9756362",vt(0,0,0),vt(.8,1.2,.2))
  613. ahmsh15=mesh("SpecialMesh",ahprt15,"FileMesh","9756362",vt(0,0,0),vt(.6,.8,.2))
  614. ahmsh16=mesh("SpecialMesh",ahprt16,"FileMesh","9756362",vt(0,0,0),vt(.8,1.2,.2))
  615. ahmsh17=mesh("SpecialMesh",ahprt17,"FileMesh","9756362",vt(0,0,0),vt(.6,.8,.2))
  616. ahmsh18=mesh("BlockMesh",ahprt18,"nil","nil",vt(0,0,0),vt(4.5,1,.5))
  617. ahmsh19=mesh("BlockMesh",ahprt19,"nil","nil",vt(0,0,0),vt(4.5,1,.5))
  618. ahmsh20=mesh("SpecialMesh",ahprt20,"FileMesh","9756362",vt(0,0,0),vt(1,.8,.6))
  619. ahmsh21=mesh("SpecialMesh",ahprt21,"FileMesh","9756362",vt(0,0,0),vt(.4,.4,.4))
  620. ahmsh22=mesh("SpecialMesh",ahprt22,"FileMesh","9756362",vt(0,0,0),vt(1,1,.6))
  621. ahmsh23=mesh("SpecialMesh",ahprt23,"FileMesh","9756362",vt(0,0,0),vt(1,1.1,.6))
  622. ahmsh24=mesh("SpecialMesh",ahprt24,"FileMesh","9756362",vt(0,0,0),vt(1,1.2,.4))
  623. ahmsh25=mesh("BlockMesh",ahprt25,"nil","nil",vt(0,0,0),vt(4,5,1))
  624. ahmsh26=mesh("BlockMesh",ahprt26,"nil","nil",vt(0,0,0),vt(4,5,1))
  625. ahmsh27=mesh("SpecialMesh",ahprt27,"FileMesh","9756362",vt(0,0,0),vt(1,.5,1))
  626.  
  627. atwld1=weld(atprt1,atprt1,Torso,euler(0,0,0)*cf(0,-.2,0))
  628. atwld2=weld(atprt1,atprt2,atprt1,euler(0,0,0)*cf(-.6,-.6,0))
  629. atwld3=weld(atprt1,atprt3,atprt1,euler(0,0,0)*cf(.6,-.6,0))
  630. atwld4=weld(atprt1,atprt4,atprt1,euler(1.57,1.57,0)*cf(-.5,.7,0))
  631. atwld5=weld(atprt1,atprt5,atprt1,euler(1.57,-1.57,0)*cf(.5,.7,0))
  632. atwld6=weld(atprt1,atprt6,atprt1,euler(1.57,0,0)*cf(0,.2,.5))
  633. atwld7=weld(atprt1,atprt7,atprt6,euler(0,0,0)*cf(0,0,0))
  634. atwld8=weld(atprt1,atprt8,atprt6,cf(.75,0,0)*euler(0,0,0))
  635. atwld9=weld(atprt1,atprt9,atprt6,cf(.75,0,0)*euler(0,-3.14,0))
  636. atwld10=weld(atprt1,atprt10,atprt6,cf(.95,0,0)*euler(0,-.73,0))
  637. atwld11=weld(atprt1,atprt11,atprt6,cf(.95,0,0)*euler(0,-2.41,0))
  638. atwld12=weld(atprt1,atprt12,atprt6,cf(.58,0,0)*euler(0,.8,0))
  639. atwld13=weld(atprt1,atprt13,atprt6,cf(.58,0,0)*euler(0,2.34,0))
  640. atwld14=weld(atprt1,atprt14,atprt1,euler(1.57,0,0)*cf(0,0,-.5))
  641. atwld15=weld(atprt1,atprt15,atprt14,euler(1.57,0,0)*cf(0,0,0))
  642. atwld16=weld(atprt1,atprt16,atprt14,euler(1.57,0,0)*cf(0,0,0))
  643. atwld17=weld(atprt1,atprt17,atprt14,euler(1.57,0,0)*cf(0,0,0))
  644. atwld18=weld(atprt1,atprt18,atprt14,euler(.2,-.2,-.2)*cf(.65,.2,0))
  645. atwld19=weld(atprt1,atprt19,atprt18,euler(0,0,0)*cf(0,0,0))
  646. atwld20=weld(atprt1,atprt20,atprt14,euler(.2,.2,.2)*cf(-.65,.2,0))
  647. atwld21=weld(atprt1,atprt21,atprt20,euler(0,0,0)*cf(0,0,0))
  648. alawld1=weld(atprt1,alaprt1,LeftArm,euler(0,0,0)*cf(0,.5,0))
  649. alawld2=weld(atprt1,alaprt2,alaprt1,euler(0,0,0)*cf(0,-.2,0))
  650. alawld3=weld(atprt1,alaprt3,alaprt1,euler(0,0,-.4)*cf(.5,-.4,0))
  651. alawld4=weld(atprt1,alaprt4,alaprt1,euler(0,1.2,0)*cf(.4,.2,.55))
  652. alawld5=weld(atprt1,alaprt5,alaprt1,euler(0,-1.2,0)*cf(.4,.2,-.55))
  653. alawld6=weld(atprt1,alaprt6,LeftArm,euler(0,0,0)*cf(0,-.8,0))
  654. alawld9=weld(atprt1,alaprt9,alaprt6,euler(-.3,-1.57,0)*cf(.3,-.3,0))
  655. arawld1=weld(atprt1,araprt1,RightArm,euler(0,3.14,0)*cf(0,.5,0))
  656. arawld2=weld(atprt1,araprt2,araprt1,euler(0,0,0)*cf(0,-.2,0))
  657. arawld3=weld(atprt1,araprt3,araprt1,euler(0,0,-.4)*cf(.5,-.4,0))
  658. arawld4=weld(atprt1,araprt4,araprt1,euler(0,1.2,0)*cf(.4,.2,.55))
  659. arawld5=weld(atprt1,araprt5,araprt1,euler(0,-1.2,0)*cf(.4,.2,-.55))
  660. arawld6=weld(atprt1,araprt6,RightArm,euler(0,3.14,0)*cf(0,-.8,0))
  661. arawld9=weld(atprt1,araprt9,araprt6,euler(-.3,-1.57,0)*cf(.3,-.3,0))
  662. allwld1=weld(atprt1,allprt1,LeftLeg,euler(0,0,0)*cf(0,.2,0))
  663. allwld2=weld(atprt1,allprt2,allprt1,euler(0,0,0)*cf(0,.7,0))
  664. allwld3=weld(atprt1,allprt3,allprt2,euler(0,0,0)*cf(0,0.03,0.01))
  665. allwld4=weld(atprt1,allprt4,allprt1,euler(.1,-.1,.3)*cf(.2,0,.5))
  666. allwld5=weld(atprt1,allprt5,allprt1,euler(.1,.1,-.3)*cf(-.2,0,.5))
  667. allwld6=weld(atprt1,allprt6,allprt4,euler(0,0,0)*cf(.1,-.27,0))
  668. allwld7=weld(atprt1,allprt7,allprt5,euler(0,0,0)*cf(-.1,-.27,0))
  669. allwld8=weld(atprt1,allprt8,allprt6,euler(-.2,3.4,-.4)*cf(.44,-.13,-.25))
  670. allwld9=weld(atprt1,allprt9,allprt7,euler(-.2,-3.4,.4)*cf(-.44,-.13,-.25))
  671. allwld10=weld(atprt1,allprt10,allprt1,euler(.2,0,0)*cf(0,-.3,.55))
  672. arlwld1=weld(atprt1,arlprt1,RightLeg,euler(0,0,0)*cf(0,.2,0))
  673. arlwld2=weld(atprt1,arlprt2,arlprt1,euler(0,0,0)*cf(0,.7,0))
  674. arlwld3=weld(atprt1,arlprt3,arlprt2,euler(0,0,0)*cf(0,0.03,0.01))
  675. arlwld4=weld(atprt1,arlprt4,arlprt1,euler(.1,-.1,.3)*cf(.2,0,.5))
  676. arlwld5=weld(atprt1,arlprt5,arlprt1,euler(.1,.1,-.3)*cf(-.2,0,.5))
  677. arlwld6=weld(atprt1,arlprt6,arlprt4,euler(0,0,0)*cf(.1,-.27,0))
  678. arlwld7=weld(atprt1,arlprt7,arlprt5,euler(0,0,0)*cf(-.1,-.27,0))
  679. arlwld8=weld(atprt1,arlprt8,arlprt6,euler(-.2,3.4,-.4)*cf(.44,-.13,-.25))
  680. arlwld9=weld(atprt1,arlprt9,arlprt7,euler(-.2,-3.4,.4)*cf(-.44,-.13,-.25))
  681. arlwld10=weld(atprt1,arlprt10,arlprt1,euler(.2,0,0)*cf(0,-.3,.55))
  682. ahwld1=weld(atprt1,ahprt1,Head,euler(0,0,0)*cf(0,.1,0))
  683. ahwld2=weld(atprt1,ahprt2,ahprt1,euler(0,-.7,0)*cf(.27,.1,.5))
  684. ahwld3=weld(atprt1,ahprt3,ahprt1,euler(0,.7,0)*cf(-.27,.1,.5))
  685. ahwld2v=weld(atprt1,ahprt2v,ahprt2,euler(0,0,0)*cf(0,0,0))
  686. ahwld3v=weld(atprt1,ahprt3v,ahprt3,euler(0,0,0)*cf(0,0,0))
  687. ahwld4=weld(atprt1,ahprt4,ahprt2,euler(0,0,0)*cf(.4,0,0))
  688. ahwld5=weld(atprt1,ahprt5,ahprt3,euler(0,0,0)*cf(-.4,0,0))
  689. ahwld6=weld(atprt1,ahprt6,ahprt4,cf(.35,.1,0)*euler(0,-.8,0))
  690. ahwld7=weld(atprt1,ahprt7,ahprt5,cf(-.35,.1,0)*euler(0,.8,0))
  691. ahwld8=weld(atprt1,ahprt8,ahprt4,cf(.35,-.4,0)*euler(0,-.8,0))
  692. ahwld9=weld(atprt1,ahprt9,ahprt5,cf(-.35,-.4,0)*euler(0,.8,0))
  693. ahwld10=weld(atprt1,ahprt10,ahprt2,euler(0,0,0)*cf(0,-.5,0))
  694. ahwld11=weld(atprt1,ahprt11,ahprt3,euler(0,0,0)*cf(0,-.5,0))
  695. ahwld12=weld(atprt1,ahprt12,ahprt10,euler(0,0,0)*cf(-.1,0,0))
  696. ahwld13=weld(atprt1,ahprt13,ahprt11,euler(0,0,0)*cf(.1,0,0))
  697. ahwld10v=weld(atprt1,ahprt10v,ahprt10,euler(0,0,0)*cf(0,0,0))
  698. ahwld11v=weld(atprt1,ahprt11v,ahprt11,euler(0,0,0)*cf(0,0,0))
  699. ahwld12v=weld(atprt1,ahprt12v,ahprt10v,euler(0,0,0)*cf(-.1,0,0))
  700. ahwld13v=weld(atprt1,ahprt13v,ahprt11v,euler(0,0,0)*cf(.1,0,0))
  701. ahwld14=weld(atprt1,ahprt14,ahprt8,euler(-.1,0,-1)*cf(-.2,0,.15))
  702. ahwld15=weld(atprt1,ahprt15,ahprt14,euler(0,0,0)*cf(0,0,.05))
  703. ahwld16=weld(atprt1,ahprt16,ahprt9,euler(-.1,0,1)*cf(.2,0,.15))
  704. ahwld17=weld(atprt1,ahprt17,ahprt16,euler(0,0,0)*cf(0,0,.05))
  705. ahwld18=weld(atprt1,ahprt18,ahprt2,euler(-.4,.1,0)*cf(0,-.7,.1))
  706. ahwld19=weld(atprt1,ahprt19,ahprt3,euler(-.4,-.1,0)*cf(0,-.7,.1))
  707. ahwld20=weld(atprt1,ahprt20,ahprt1,euler(-.2,0,0)*cf(0,-.7,.4))
  708. ahwld21=weld(atprt1,ahprt21,ahprt20,euler(.4,0,0)*cf(0,-.2,.1))
  709. ahwld22=weld(atprt1,ahprt22,ahprt1,euler(-.4,0,0)*cf(0,-.7,.2))
  710. ahwld23=weld(atprt1,ahprt23,ahprt1,euler(-.8,0,0)*cf(0,-.7,0))
  711. ahwld24=weld(atprt1,ahprt24,ahprt1,euler(-1.2,0,0)*cf(0,-.7,-.2))
  712. ahwld25=weld(atprt1,ahprt25,ahprt1,euler(0,.5,0)*cf(.3,-.1,-.6))
  713. ahwld26=weld(atprt1,ahprt26,ahprt1,euler(0,-.5,0)*cf(-.3,-.1,-.6))
  714. ahwld27=weld(atprt1,ahprt27,ahprt1,euler(0,0,0)*cf(0,-.6,-.5))
  715.  
  716. for i=1.57,6.28,1.57 do
  717. alaprt7=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor LeftArm Part07",vt())
  718. alaprt8=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor LeftArm Part08",vt())
  719. alamsh7=mesh("SpecialMesh",alaprt7,"Wedge","nil",vt(0,0,0),vt(.5,2.3,2))
  720. alamsh8=mesh("SpecialMesh",alaprt8,"Wedge","nil",vt(0,0,0),vt(.5,2.3,2))
  721. alawld7=weld(atprt1,alaprt7,alaprt6,euler(1.57,0,0)*cf(.46,.45,.225)*euler(0,i,0))
  722. alawld8=weld(atprt1,alaprt8,alaprt6,euler(1.57,3.14,0)*cf(.46,.45,-.225)*euler(0,i,0))
  723. end
  724.  
  725. for i=1.57,6.28,1.57 do
  726. araprt7=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor RightArm Part07",vt())
  727. araprt8=part(3,armor,0,0,BrickColor.new(NewCol2),"Armor RightArm Part08",vt())
  728. aramsh7=mesh("SpecialMesh",araprt7,"Wedge","nil",vt(0,0,0),vt(.5,2.3,2))
  729. aramsh8=mesh("SpecialMesh",araprt8,"Wedge","nil",vt(0,0,0),vt(.5,2.3,2))
  730. arawld7=weld(atprt1,araprt7,araprt6,euler(1.57,0,0)*cf(.46,.45,.225)*euler(0,i,0))
  731. arawld8=weld(atprt1,araprt8,araprt6,euler(1.57,3.14,0)*cf(.46,.45,-.225)*euler(0,i,0))
  732. end
  733.  
  734. for i=.4,-.6,-.2 do
  735. allprt11=part(3,armor,0,0,BrickColor.new("White"),"Armor LeftLeg Part11",vt())
  736. allmsh11=mesh("SpecialMesh",allprt11,"FileMesh","9756362",vt(0,0,0),vt(.8,.5,.1))
  737. allwld11=weld(atprt1,allprt11,allprt1,euler(0,0,0)*cf(0,i,-.55))
  738. end
  739.  
  740. for i=.4,-.6,-.2 do
  741. arlprt11=part(3,armor,0,0,BrickColor.new("White"),"Armor RightLeg Part11",vt())
  742. arlmsh11=mesh("SpecialMesh",arlprt11,"FileMesh","9756362",vt(0,0,0),vt(.8,.5,.1))
  743. arlwld11=weld(atprt1,arlprt11,arlprt1,euler(0,0,0)*cf(0,i,-.55))
  744. end
  745.  
  746. for _,c in pairs(armor:children()) do
  747. table.insert(Armor,c)
  748. end
  749. for _,c in pairs(atprt1:children()) do
  750. if c.className=="Motor" then
  751. table.insert(AWelds,c)
  752. end
  753. end
  754. for i=1,#Armor do
  755. Armor[i].Transparency=1
  756. end
  757.  
  758. pdriver=Instance.new("Model")
  759. pdriver.Parent=Character
  760. pdriver.Name="Pile Driver"
  761.  
  762. pdprt1=part(3,pdriver,0,0,BrickColor.new(NewCol2),"Pile Driver Part01",vt())
  763. pdprt2=part(3,pdriver,0,0,BrickColor.new(NewCol2),"Pile Driver Part02",vt())
  764. pdprt3=part(3,pdriver,0,0,BrickColor.new("White"),"Pile Driver Part03",vt())
  765. pdprt4=part(3,pdriver,0,0,BrickColor.new("Black"),"Pile Driver Part04",vt())
  766. pdprt5=part(3,pdriver,0,0,BrickColor.new("White"),"Pile Driver Part05",vt())
  767. pdprt6=part(3,pdriver,0,0,BrickColor.new(NewCol2),"Pile Driver Part06",vt())
  768. pdprt7=part(3,pdriver,0,0,BrickColor.new("Really black"),"Pile Driver Part07",vt())
  769. pdprt8=part(3,pdriver,0,0,BrickColor.new("White"),"Pile Driver Part08",vt())
  770. pdprt9=part(3,pdriver,.6,0,BrickColor.new("Medium stone grey"),"Pile Driver Part09",vt())
  771. pdprt10=part(3,pdriver,.6,0,BrickColor.new("Medium stone grey"),"Pile Driver Part10",vt())
  772. pdprt11=part(3,pdriver,0,0,BrickColor.new(NewCol2),"Pile Driver Part11",vt())
  773. pdprt12=part(3,pdriver,0,0,BrickColor.new(NewCol2),"Pile Driver Part12",vt())
  774. pdprt13=part(3,pdriver,0,0,BrickColor.new("White"),"Pile Driver Part13",vt())
  775. pdprt14=part(3,pdriver,0,0,BrickColor.new(NewCol2),"Pile Driver Part14",vt())
  776. pdprt15=part(3,pdriver,0,0,BrickColor.new("White"),"Pile Driver Part15",vt())
  777. pdprt16=part(3,pdriver,0,0,BrickColor.new("Black"),"Pile Driver Part16",vt())
  778. pdprt17=part(3,pdriver,0,0,BrickColor.new("Really black"),"Pile Driver Part17",vt())
  779. pdprt18=part(3,pdriver,0,0,BrickColor.new("White"),"Pile Driver Part18",vt())
  780. pdprt19=part(3,pdriver,.6,0,BrickColor.new("Medium stone grey"),"Pile Driver Part19",vt())
  781. pdprt20=part(3,pdriver,.6,0,BrickColor.new("Medium stone grey"),"Pile Driver Part20",vt())
  782.  
  783. pdmsh1=mesh("SpecialMesh",pdprt1,"Torso","nil",vt(0,0,0),vt(6,2,7))
  784. pdmsh2=mesh("SpecialMesh",pdprt2,"Torso","nil",vt(0,0,0),vt(6,2,7))
  785. pdmsh3=mesh("SpecialMesh",pdprt3,"FileMesh","9756362",vt(0,0,0),vt(.5,.2,1))
  786. pdmsh4=mesh("BlockMesh",pdprt4,"nil","nil",vt(0,0,0),vt(2,2,1))
  787. pdmsh5=mesh("SpecialMesh",pdprt5,"FileMesh","9756362",vt(0,0,0),vt(.5,.2,1))
  788. pdmsh6=mesh("SpecialMesh",pdprt6,"FileMesh","9756362",vt(0,0,0),vt(.5,.3,.5))
  789. pdmsh7=mesh("CylinderMesh",pdprt7,"nil","nil",vt(0,0,0),vt(3,1.1,3))
  790. pdmsh8=mesh("SpecialMesh",pdprt8,"FileMesh","9756362",vt(0,0,0),vt(1,.2,1))
  791. pdmsh9=mesh("CylinderMesh",pdprt9,"nil","nil",vt(0,0,0),vt(2,7,2))
  792. pdmsh10=mesh("SpecialMesh",pdprt10,"FileMesh","1778999",vt(0,0,0),vt(.3,.1,.3))
  793. pdmsh11=mesh("SpecialMesh",pdprt11,"Torso","nil",vt(0,0,0),vt(6,2,7))
  794. pdmsh12=mesh("SpecialMesh",pdprt12,"Torso","nil",vt(0,0,0),vt(6,2,7))
  795. pdmsh13=mesh("SpecialMesh",pdprt13,"FileMesh","9756362",vt(0,0,0),vt(.5,.2,1))
  796. pdmsh14=mesh("SpecialMesh",pdprt14,"FileMesh","9756362",vt(0,0,0),vt(.5,.3,.5))
  797. pdmsh15=mesh("SpecialMesh",pdprt15,"FileMesh","9756362",vt(0,0,0),vt(.5,.2,1))
  798. pdmsh16=mesh("BlockMesh",pdprt16,"nil","nil",vt(0,0,0),vt(2,2,1))
  799. pdmsh17=mesh("CylinderMesh",pdprt17,"nil","nil",vt(0,0,0),vt(3,1.1,3))
  800. pdmsh18=mesh("SpecialMesh",pdprt18,"FileMesh","9756362",vt(0,0,0),vt(1,.2,1))
  801. pdmsh19=mesh("CylinderMesh",pdprt19,"nil","nil",vt(0,0,0),vt(2,7,2))
  802. pdmsh20=mesh("SpecialMesh",pdprt20,"FileMesh","1778999",vt(0,0,0),vt(.3,.1,.3))
  803.  
  804. pdwld1=weld(pdprt1,pdprt1,LeftArm,euler(1.57,1.57,0)*cf(.6,.35,0))
  805. pdwld2=weld(pdprt1,pdprt2,pdprt1,euler(3.14,0,0)*cf(0,.4,0))
  806. pdwld3=weld(pdprt1,pdprt3,pdprt2,euler(0,0,-.785)*cf(.4,0,0))
  807. pdwld4=weld(pdprt1,pdprt4,pdprt3,euler(0,0,0)*cf(0,0,0))
  808. pdwld5=weld(pdprt1,pdprt5,pdprt2,euler(0,0,.785)*cf(-.4,0,0))
  809. pdwld6=weld(pdprt1,pdprt6,pdprt5,euler(0,0,0)*cf(0,0,0))
  810. pdwld7=weld(pdprt1,pdprt7,pdprt2,euler(1.57,0,0)*cf(0,.2,-.6))
  811. pdwld8=weld(pdprt1,pdprt8,pdprt2,euler(1.57,0,0)*cf(0,.2,.7))
  812. pdwld9=weld(pdprt1,pdprt9,pdprt7,euler(0,0,0)*cf(0,-.2,0))
  813. pdwld10=weld(pdprt1,pdprt10,pdprt9,euler(3.14,0,0)*cf(0,.78,0))
  814. pdwld11=weld(pdprt1,pdprt11,RightArm,euler(1.57,-1.57,0)*cf(-.6,.35,0))
  815. pdwld12=weld(pdprt1,pdprt12,pdprt11,euler(3.14,0,0)*cf(0,.4,0))
  816. pdwld13=weld(pdprt1,pdprt13,pdprt12,euler(0,0,-.785)*cf(.4,0,0))
  817. pdwld14=weld(pdprt1,pdprt14,pdprt13,euler(0,0,0)*cf(0,0,0))
  818. pdwld15=weld(pdprt1,pdprt15,pdprt12,euler(0,0,.785)*cf(-.4,0,0))
  819. pdwld16=weld(pdprt1,pdprt16,pdprt15,euler(0,0,0)*cf(0,0,0))
  820. pdwld17=weld(pdprt1,pdprt17,pdprt12,euler(1.57,0,0)*cf(0,.2,-.6))
  821. pdwld18=weld(pdprt1,pdprt18,pdprt12,euler(1.57,0,0)*cf(0,.2,.7))
  822. pdwld19=weld(pdprt1,pdprt19,pdprt17,euler(0,0,0)*cf(0,-.2,0))
  823. pdwld20=weld(pdprt1,pdprt20,pdprt19,euler(3.14,0,0)*cf(0,.78,0))
  824. for _,c in pairs(pdriver:children()) do
  825. table.insert(PDriver,c)
  826. end
  827. for _,c in pairs(pdprt1:children()) do
  828. if c.className=="Motor" then
  829. table.insert(PDWelds,c)
  830. end
  831. end
  832. for i=1,#PDriver do
  833. PDriver[i].Transparency=1
  834. end
  835.  
  836. local ailabot=Instance.new("Model")
  837. ailabot.Parent=Character
  838. ailabot.Name="AilaBot"
  839.  
  840. ailaref=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Ref",vt())
  841. abtprt1=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Torso Part01",vt())
  842. abtprt2=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Torso Part02",vt())
  843. abtprt3=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Torso Part03",vt())
  844. abtprt4=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Torso Part04",vt())
  845. abtprt5=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Torso Part05",vt())
  846. abtprt8=part(3,ailabot,0,1,BrickColor.new("White"),"AilaBot Torso Part08",vt())
  847. abtprt9=part(3,ailabot,0,1,BrickColor.new("White"),"AilaBot Torso Part09",vt())
  848. abtprt10=part(3,ailabot,0,1,BrickColor.new("White"),"AilaBot Torso Part10",vt())
  849. abtprt15=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Torso Part15",vt())
  850. abtprt17=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Torso Part17",vt())
  851. abtprt18=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Torso Part18",vt())
  852. abtprt19=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Torso Part19",vt())
  853. abtprt20=part(3,ailabot,0,0,BrickColor.new("Bright yellow"),"AilaBot Torso Part20",vt())
  854. --[[abtprt14=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Torso Part14",vt())
  855. abtprt15=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Torso Part15",vt())
  856. abtprt16=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Torso Part16",vt())
  857. abtprt17=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Torso Part17",vt())
  858. abtprt18=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Torso Part18",vt())
  859. abtprt19=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Torso Part19",vt())]]
  860. abraprt1=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Right Arm Part01",vt())
  861. abraprt2=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Right Arm Part02",vt())
  862. abraprt3=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Right Arm Part03",vt())
  863. abraprt4=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Right Arm Part04",vt())
  864. abraprt5=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Right Arm Part05",vt())
  865. abraprt6=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Right Arm Part06",vt())
  866. abraprt7=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Right Arm Part07",vt())
  867. abraprt8=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Right Arm Part08",vt())
  868. abraprt9=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Right Arm Part09",vt())
  869. abraprt10=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Right Arm Part10",vt())
  870. abraprt11=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Right Arm Part11",vt())
  871. abraprt14=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Right Arm Part14",vt())
  872. abraprt15=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Right Arm Part15",vt())
  873. abraprt16=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Right Arm Part16",vt())
  874. abraprt17=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Right Arm Part17",vt())
  875. abraprt18=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Right Arm Part18",vt())
  876. abraprt19=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Right Arm Part19",vt())
  877. abraprt20=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Right Arm Part20",vt())
  878. abraprt21=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Right Arm Part21",vt())
  879. abraprt22=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Right Arm Part22",vt())
  880. abraprt23=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Right Arm Part23",vt())
  881. abraprt24=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Right Arm Part24",vt())
  882. abraprt25=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Right Arm Part25",vt())
  883. abraprt26=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Right Arm Part26",vt())
  884. ablaprt1=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Left Arm Part01",vt())
  885. ablaprt2=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Left Arm Part02",vt())
  886. ablaprt2=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Left Arm Part02",vt())
  887. ablaprt3=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Left Arm Part03",vt())
  888. ablaprt4=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Left Arm Part04",vt())
  889. ablaprt5=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Left Arm Part05",vt())
  890. ablaprt6=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Left Arm Part06",vt())
  891. ablaprt7=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Left Arm Part07",vt())
  892. ablaprt8=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Left Arm Part08",vt())
  893. ablaprt9=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Left Arm Part09",vt())
  894. ablaprt10=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Left Arm Part10",vt())
  895. ablaprt11=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Left Arm Part11",vt())
  896. ablaprt14=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Left Arm Part14",vt())
  897. ablaprt15=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Left Arm Part15",vt())
  898. ablaprt16=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Left Arm Part16",vt())
  899. ablaprt17=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Left Arm Part17",vt())
  900. ablaprt18=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Left Arm Part18",vt())
  901. ablaprt19=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Left Arm Part19",vt())
  902. ablaprt20=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Left Arm Part20",vt())
  903. ablaprt21=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Left Arm Part21",vt())
  904. ablaprt22=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Left Arm Part22",vt())
  905. ablaprt23=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Left Arm Part23",vt())
  906. ablaprt24=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Left Arm Part24",vt())
  907. ablaprt25=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Left Arm Part25",vt())
  908. ablaprt26=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Left Arm Part26",vt())
  909. head=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Head",vt())
  910.  
  911. arefmsh=mesh("BlockMesh",ailaref,"nil","nil",vt(0,0,0),vt(1,1,1))
  912. abtmsh1=mesh("SpecialMesh",abtprt1,"Torso","nil",vt(0,0,0),vt(20,18,10))
  913. abtmsh2=mesh("SpecialMesh",abtprt2,"FileMesh","9756362",vt(0,0,0),vt(3,1.7,2))
  914. abtmsh3=mesh("SpecialMesh",abtprt3,"FileMesh","9756362",vt(0,0,0),vt(2,2.5,1))
  915. abtmsh4=mesh("SpecialMesh",abtprt4,"Torso","nil",vt(0,0,0),vt(14,5,10))
  916. abtmsh5=mesh("SpecialMesh",abtprt5,"FileMesh","9756362",vt(0,0,0),vt(1.5,2.5,.5))
  917. abtmsh8=mesh("CylinderMesh",abtprt8,"nil","nil",vt(0,0,0),vt(0,0,0))
  918. abtmsh9=mesh("CylinderMesh",abtprt9,"nil","nil",vt(0,0,0),vt(0,0,0))
  919. abtmsh10=mesh("CylinderMesh",abtprt10,"nil","nil",vt(0,0,0),vt(0,0,0))
  920. abtmsh15=mesh("BlockMesh",abtprt15,"nil","nil",vt(0,0,0),vt(8,8,3))
  921. abtmsh17=mesh("SpecialMesh",abtprt17,"Sphere","nil",vt(0,0,0),vt(5,5,5))
  922. abtmsh18=mesh("SpecialMesh",abtprt18,"Sphere","nil",vt(0,0,0),vt(5,5,5))
  923. abtmsh19=mesh("SpecialMesh",abtprt19,"Sphere","nil",vt(0,0,0),vt(8,8,10))
  924. abtmsh20=mesh("CylinderMesh",abtprt20,"nil","nil",vt(0,0,0),vt(6,1,6))
  925. --[[abtmsh14=mesh("SpecialMesh",abtprt14,"Torso","nil",vt(0,0,0),vt(13,5,5))
  926. abtmsh15=mesh("SpecialMesh",abtprt15,"Torso","nil",vt(0,0,0),vt(13,5,5))
  927. abtmsh16=mesh("BlockMesh",abtprt16,"nil","nil",vt(0,0,0),vt(1,5,8))
  928. abtmsh17=mesh("BlockMesh",abtprt17,"nil","nil",vt(0,0,0),vt(1,5,8))
  929. abtmsh18=mesh("BlockMesh",abtprt18,"nil","nil",vt(0,0,0),vt(10,1,8))
  930. abtmsh19=mesh("SpecialMesh",abtprt19,"Torso","nil",vt(0,0,0),vt(13,5,5))]]
  931. abramsh1=mesh("BlockMesh",abraprt1,"nil","nil",vt(0,0,0),vt(1,1,1))
  932. abramsh2=mesh("SpecialMesh",abraprt2,"Torso","nil",vt(0,0,0),vt(13,5,5))
  933. abramsh3=mesh("BlockMesh",abraprt3,"nil","nil",vt(0,0,0),vt(1,5,8))
  934. abramsh4=mesh("BlockMesh",abraprt4,"nil","nil",vt(0,0,0),vt(1,5,8))
  935. abramsh5=mesh("BlockMesh",abraprt5,"nil","nil",vt(0,0,0),vt(10,1,8))
  936. abramsh6=mesh("SpecialMesh",abraprt6,"Torso","nil",vt(0,0,0),vt(13,5,5))
  937. abramsh7=mesh("SpecialMesh",abraprt7,"Sphere","nil",vt(0,0,0),vt(8,5,8))
  938. --abramsh8=mesh("BlockMesh",abraprt8,"nil","nil",vt(0,0,0),vt(5,13,5))
  939. abramsh8=mesh("SpecialMesh",abraprt8,"Torso","nil",vt(0,0,0),vt(6,8,4))
  940. abramsh9=mesh("CylinderMesh",abraprt9,"nil","nil",vt(0,0,0),vt(5,4.1,5))
  941. abramsh10=mesh("CylinderMesh",abraprt10,"nil","nil",vt(0,0,0),vt(5.1,3.1,5.1))
  942. abramsh11=mesh("BlockMesh",abraprt11,"nil","nil",vt(0,0,0),vt(4,10,3))
  943. abramsh14=mesh("BlockMesh",abraprt14,"nil","nil",vt(0,0,0),vt(3,3,2))
  944. abramsh15=mesh("SpecialMesh",abraprt15,"Sphere","nil",vt(0,0,0),vt(0,0,0))
  945. abramsh16=mesh("BlockMesh",abraprt16,"nil","nil",vt(0,0,0),vt(.8,2,.5))
  946. abramsh17=mesh("BlockMesh",abraprt17,"nil","nil",vt(0,0,0),vt(.8,1.5,.5))
  947. abramsh18=mesh("SpecialMesh",abraprt18,"Sphere","nil",vt(0,0,0),vt(0,0,0))
  948. abramsh19=mesh("BlockMesh",abraprt19,"nil","nil",vt(0,0,0),vt(.8,2,.5))
  949. abramsh20=mesh("BlockMesh",abraprt20,"nil","nil",vt(0,0,0),vt(.8,1.5,.5))
  950. abramsh21=mesh("SpecialMesh",abraprt21,"Sphere","nil",vt(0,0,0),vt(0,0,0))
  951. abramsh22=mesh("BlockMesh",abraprt22,"nil","nil",vt(0,0,0),vt(.8,2,.5))
  952. abramsh23=mesh("BlockMesh",abraprt23,"nil","nil",vt(0,0,0),vt(.8,1.5,.5))
  953. abramsh24=mesh("SpecialMesh",abraprt24,"Sphere","nil",vt(0,0,0),vt(0,0,0))
  954. abramsh25=mesh("BlockMesh",abraprt25,"nil","nil",vt(0,0,0),vt(.8,2,.5))
  955. abramsh26=mesh("BlockMesh",abraprt26,"nil","nil",vt(0,0,0),vt(.8,1.5,.5))
  956. ablamsh1=mesh("BlockMesh",ablaprt1,"nil","nil",vt(0,0,0),vt(1,1,1))
  957. ablamsh2=mesh("SpecialMesh",ablaprt2,"Torso","nil",vt(0,0,0),vt(13,5,5))
  958. ablamsh3=mesh("BlockMesh",ablaprt3,"nil","nil",vt(0,0,0),vt(1,5,8))
  959. ablamsh4=mesh("BlockMesh",ablaprt4,"nil","nil",vt(0,0,0),vt(1,5,8))
  960. ablamsh5=mesh("BlockMesh",ablaprt5,"nil","nil",vt(0,0,0),vt(10,1,8))
  961. ablamsh6=mesh("SpecialMesh",ablaprt6,"Torso","nil",vt(0,0,0),vt(13,5,5))
  962. ablamsh7=mesh("SpecialMesh",ablaprt7,"Sphere","nil",vt(0,0,0),vt(8,5,8))
  963. --ablamsh8=mesh("BlockMesh",ablaprt8,"nil","nil",vt(0,0,0),vt(5,13,5))
  964. ablamsh8=mesh("SpecialMesh",ablaprt8,"Torso","nil",vt(0,0,0),vt(6,8,4))
  965. ablamsh9=mesh("CylinderMesh",ablaprt9,"nil","nil",vt(0,0,0),vt(5,4.1,5))
  966. ablamsh10=mesh("CylinderMesh",ablaprt10,"nil","nil",vt(0,0,0),vt(5.1,3.1,5.1))
  967. ablamsh11=mesh("BlockMesh",ablaprt11,"nil","nil",vt(0,0,0),vt(4,10,3))
  968. ablamsh14=mesh("BlockMesh",ablaprt14,"nil","nil",vt(0,0,0),vt(3,3,2))
  969. ablamsh15=mesh("SpecialMesh",ablaprt15,"Sphere","nil",vt(0,0,0),vt(0,0,0))
  970. ablamsh16=mesh("BlockMesh",ablaprt16,"nil","nil",vt(0,0,0),vt(.8,2,.5))
  971. ablamsh17=mesh("BlockMesh",ablaprt17,"nil","nil",vt(0,0,0),vt(.8,1.5,.5))
  972. ablamsh18=mesh("SpecialMesh",ablaprt18,"Sphere","nil",vt(0,0,0),vt(0,0,0))
  973. ablamsh19=mesh("BlockMesh",ablaprt19,"nil","nil",vt(0,0,0),vt(.8,2,.5))
  974. ablamsh20=mesh("BlockMesh",ablaprt20,"nil","nil",vt(0,0,0),vt(.8,1.5,.5))
  975. ablamsh21=mesh("SpecialMesh",ablaprt21,"Sphere","nil",vt(0,0,0),vt(0,0,0))
  976. ablamsh22=mesh("BlockMesh",ablaprt22,"nil","nil",vt(0,0,0),vt(.8,2,.5))
  977. ablamsh23=mesh("BlockMesh",ablaprt23,"nil","nil",vt(0,0,0),vt(.8,1.5,.5))
  978. ablamsh24=mesh("SpecialMesh",ablaprt24,"Sphere","nil",vt(0,0,0),vt(0,0,0))
  979. ablamsh25=mesh("BlockMesh",ablaprt25,"nil","nil",vt(0,0,0),vt(.8,2,.5))
  980. ablamsh26=mesh("BlockMesh",ablaprt26,"nil","nil",vt(0,0,0),vt(.8,1.5,.5))
  981. hmsh1=mesh("SpecialMesh",head,"Head","nil",vt(0,0,0),vt(10,10,10))
  982.  
  983. --arefwld=weld(abtprt1,ailaref,RootPart,euler(0,0,-3.14)*cf(0,-5,8))
  984. abtwld1=weld(abtprt1,abtprt1,ailaref,euler(0,0,0)*cf(0,0,0))
  985. --abtwld1=weld(abtprt1,abtprt1,RootPart,euler(0,0,3.14)*cf(0,0,0))
  986. abtwld2=weld(abtprt1,abtprt2,abtprt1,euler(0,0,0)*cf(0,.7,1))
  987. abtwld3=weld(abtprt1,abtprt3,abtprt2,euler(0,0,0)*cf(0,-.8,0))
  988. abtwld4=weld(abtprt1,abtprt4,abtprt1,euler(0,0,0)*cf(0,-2.3,0))
  989. abtwld5=weld(abtprt1,abtprt5,abtprt4,euler(.2,0,0)*cf(0,0,1))
  990. abtwld8=weld(abtprt1,abtprt8,abtprt4,euler(0,0,0)*cf(0,-.5,0))
  991. abtwld9=weld(abtprt1,abtprt9,abtprt4,euler(0,0,0)*cf(0,-1.5,0))
  992. abtwld10=weld(abtprt1,abtprt10,abtprt4,euler(0,0,0)*cf(0,-2.5,0))
  993. abtwld15=weld(abtprt1,abtprt15,abtprt1,euler(0,0,0)*cf(0,.5,-1))
  994. abtwld17=weld(abtprt1,abtprt17,abtprt1,euler(0,0,.3)*cf(1.4,-1,-1))
  995. abtwld18=weld(abtprt1,abtprt18,abtprt1,euler(0,0,-.3)*cf(-1.4,-1,-1))
  996. abtwld19=weld(abtprt1,abtprt19,abtprt15,euler(0,0,0)*cf(0,0,.2))
  997. abtwld20=weld(abtprt1,abtprt20,abtprt19,euler(1.57,0,0)*cf(0,0,-.6))
  998. --[[abtwld14=weld(abtprt1,abtprt14,abtprt1,euler(3.14,1.57,-.1)*cf(2,1.4,0))
  999. abtwld15=weld(abtprt1,abtprt15,abtprt1,euler(3.14,1.57,.1)*cf(-2,1.4,0))
  1000. abtwld16=weld(abtprt1,abtprt16,abtprt14,euler(0,0,-.3)*cf(-1.05,0,1.3))
  1001. abtwld17=weld(abtprt1,abtprt17,abtprt14,euler(0,0,.3)*cf(1.05,0,1.3))
  1002. abtwld18=weld(abtprt1,abtprt18,abtprt14,euler(0,0,0)*cf(0,-.4,1.3))
  1003. abtwld19=weld(abtprt1,abtprt19,abtprt14,euler(0,0,0)*cf(0,0,2.6))]]
  1004. abrawld1=weld(abtprt1,abraprt1,abtprt1,euler(3.14,1.57,-.1)*cf(2,1.4,0))
  1005. abrawld2=weld(abtprt1,abraprt2,abraprt1,euler(0,0,0)*cf(0,0,0)) --joint
  1006. abrawld3=weld(abtprt1,abraprt3,abraprt2,euler(0,0,-.3)*cf(-1.05,0,1.3))
  1007. abrawld4=weld(abtprt1,abraprt4,abraprt2,euler(0,0,.3)*cf(1.05,0,1.3))
  1008. abrawld5=weld(abtprt1,abraprt5,abraprt2,euler(0,0,0)*cf(0,-.4,1.3))
  1009. abrawld6=weld(abtprt1,abraprt6,abraprt2,euler(0,0,0)*cf(0,0,2.6))
  1010. abrawld7=weld(abtprt1,abraprt7,abraprt2,euler(0,0,0)*cf(0,0,1.1))
  1011. abrawld8=weld(abtprt1,abraprt8,abraprt7,euler(3.14,0,0)*cf(0,.9,0)*euler(-.1,0,-.2)) --joint
  1012. abrawld9=weld(abtprt1,abraprt9,abraprt8,euler(1.57,0,0)*cf(0,-.9,0))
  1013. abrawld10=weld(abtprt1,abraprt10,abraprt9,euler(0,.2,0)*cf(0,0,0)) --joint
  1014. abrawld11=weld(abtprt1,abraprt11,abraprt10,euler(-1.57,0,0)*cf(0,0,-1)*euler(0,.2,0))
  1015. abrawld14=weld(abtprt1,abraprt14,abraprt11,euler(0,0,0)*cf(0,-1.3,-.1)*euler(0,0,0))
  1016. abrawld15=weld(abtprt1,abraprt15,abraprt14,euler(0,0,0)*cf(.219,-.3,-.15)*euler(0,0,0))
  1017. abrawld16=weld(abtprt1,abraprt16,abraprt15,cf(0,-.2,0)*euler(.5,0,0))
  1018. abrawld17=weld(abtprt1,abraprt17,abraprt16,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0))
  1019. abrawld17.C1=cf(0,.15,.05)*euler(-1,0,0)
  1020. abrawld18=weld(abtprt1,abraprt18,abraprt14,euler(0,0,0)*cf(0,-.3,-.15)*euler(0,0,0))
  1021. abrawld19=weld(abtprt1,abraprt19,abraprt18,cf(0,-.2,0)*euler(.5,0,0))
  1022. abrawld20=weld(abtprt1,abraprt20,abraprt19,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0))
  1023. abrawld20.C1=cf(0,.15,.05)*euler(-1,0,0)
  1024. abrawld21=weld(abtprt1,abraprt21,abraprt14,euler(0,0,0)*cf(-.219,-.3,-.15)*euler(0,0,0))
  1025. abrawld22=weld(abtprt1,abraprt22,abraprt21,cf(0,-.2,0)*euler(.5,0,0))
  1026. abrawld23=weld(abtprt1,abraprt23,abraprt22,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0))
  1027. abrawld23.C1=cf(0,.15,.05)*euler(-1,0,0)
  1028. abrawld24=weld(abtprt1,abraprt24,abraprt14,euler(0,1.4,0)*euler(.7,0,0)*cf(.3,-.1,-.1)*euler(0,0,0))
  1029. abrawld25=weld(abtprt1,abraprt25,abraprt24,cf(0,-.2,0)*euler(-.3,0,0))
  1030. abrawld26=weld(abtprt1,abraprt26,abraprt25,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0))
  1031. abrawld26.C1=cf(0,.15,.03)*euler(-.5,0,0)
  1032. ablawld1=weld(abtprt1,ablaprt1,abtprt1,euler(3.14,1.57,.1)*cf(-2,1.4,0))
  1033. ablawld2=weld(abtprt1,ablaprt2,ablaprt1,euler(0,0,0)*cf(0,0,0)) --joint
  1034. ablawld3=weld(abtprt1,ablaprt3,ablaprt2,euler(0,0,-.3)*cf(-1.05,0,-1.3))
  1035. ablawld4=weld(abtprt1,ablaprt4,ablaprt2,euler(0,0,.3)*cf(1.05,0,-1.3))
  1036. ablawld5=weld(abtprt1,ablaprt5,ablaprt2,euler(0,0,0)*cf(0,-.4,-1.3))
  1037. ablawld6=weld(abtprt1,ablaprt6,ablaprt2,euler(0,0,0)*cf(0,0,-2.6))
  1038. ablawld7=weld(abtprt1,ablaprt7,ablaprt2,euler(0,0,0)*cf(0,0,-1.1))
  1039. ablawld8=weld(abtprt1,ablaprt8,ablaprt7,euler(3.14,0,0)*cf(0,.9,0)*euler(.1,0,-.2)) --joint
  1040. ablawld9=weld(abtprt1,ablaprt9,ablaprt8,euler(1.57,0,0)*cf(0,-.9,0))
  1041. ablawld10=weld(abtprt1,ablaprt10,ablaprt9,euler(0,.2,0)*cf(0,0,0)) --joint
  1042. ablawld11=weld(abtprt1,ablaprt11,ablaprt10,euler(-1.57,0,0)*cf(0,0,-1)*euler(0,.2,0))
  1043. ablawld14=weld(abtprt1,ablaprt14,ablaprt11,euler(0,0,0)*cf(0,-1.3,-.1)*euler(0,0,0))
  1044. ablawld15=weld(abtprt1,ablaprt15,ablaprt14,euler(0,3.14,0)*cf(.219,-.3,.15)*euler(0,0,0))
  1045. ablawld16=weld(abtprt1,ablaprt16,ablaprt15,cf(0,-.2,0)*euler(.5,0,0))
  1046. ablawld17=weld(abtprt1,ablaprt17,ablaprt16,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0))
  1047. ablawld17.C1=cf(0,.15,.05)*euler(-1,0,0)
  1048. ablawld18=weld(abtprt1,ablaprt18,ablaprt14,euler(0,3.14,0)*cf(0,-.3,.15)*euler(0,0,0))
  1049. ablawld19=weld(abtprt1,ablaprt19,ablaprt18,cf(0,-.2,0)*euler(.5,0,0))
  1050. ablawld20=weld(abtprt1,ablaprt20,ablaprt19,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0))
  1051. ablawld20.C1=cf(0,.15,.05)*euler(-1,0,0)
  1052. ablawld21=weld(abtprt1,ablaprt21,ablaprt14,euler(0,3.14,0)*cf(-.219,-.3,.15)*euler(0,0,0))
  1053. ablawld22=weld(abtprt1,ablaprt22,ablaprt21,cf(0,-.2,0)*euler(.5,0,0))
  1054. ablawld23=weld(abtprt1,ablaprt23,ablaprt22,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0))
  1055. ablawld23.C1=cf(0,.15,.05)*euler(-1,0,0)
  1056. ablawld24=weld(abtprt1,ablaprt24,ablaprt14,euler(0,1.4,0)*euler(-.7,0,0)*cf(.3,-.1,.1)*euler(0,0,0))
  1057. ablawld25=weld(abtprt1,ablaprt25,ablaprt24,cf(0,-.2,0)*euler(-.3,0,0))
  1058. ablawld26=weld(abtprt1,ablaprt26,ablaprt25,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0))
  1059. ablawld26.C1=cf(0,.15,.03)*euler(-.5,0,0)
  1060. hwld1=weld(abtprt1,head,abtprt1,euler(.3,0,3.14)*cf(0,2.5,.3))
  1061. --hwld1=weld(abtprt1,head,abtprt1,euler(0,0,3.14)*cf(0,2.5,0))
  1062.  
  1063. abw1prt1=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Weapon01 Part01",vt())
  1064. abw1prt2=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Weapon01 Part02",vt())
  1065. abw1prt3=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Weapon01 Part03",vt())
  1066. abw1prt4=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Weapon01 Part04",vt())
  1067. abw1prt5=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Weapon01 Part05",vt())
  1068. abw1prt6=part(3,ailabot,.2,0,BrickColor.new("White"),"AilaBot Weapon01 Part06",vt())
  1069. abw1prt7=part(3,ailabot,.2,0,BrickColor.new("White"),"AilaBot Weapon01 Part07",vt())
  1070. abw1prt8=part(3,ailabot,.05,0,BrickColor.new("Bright yellow"),"AilaBot Weapon01 Part08",vt()) abw1prt8.Material="Neon"
  1071. abw1prt9=part(3,ailabot,.05,0,BrickColor.new("Bright yellow"),"AilaBot Weapon01 Part09",vt()) abw1prt9.Material="Neon"
  1072. abw1prt10=part(3,ailabot,.2,0,BrickColor.new("White"),"AilaBot Weapon01 Part10",vt())
  1073. abw1prt11=part(3,ailabot,0,0,BrickColor.new("Really black"),"AilaBot Weapon01 Part11",vt())
  1074. abw2prt1=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Weapon02 Part01",vt())
  1075. abw2prt2=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Weapon02 Part02",vt())
  1076. abw2prt3=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Weapon02 Part03",vt())
  1077. abw2prt4=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Weapon02 Part04",vt())
  1078. abw2prt5=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Weapon02 Part05",vt())
  1079. abw2prt6=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Weapon02 Part06",vt())
  1080. abw2prt10=part(3,ailabot,0,0,BrickColor.new("Really black"),"AilaBot Weapon02 Part10",vt())
  1081. abw2prt11=part(3,ailabot,0,0,BrickColor.new("Really black"),"AilaBot Weapon02 Part11",vt())
  1082. abw2prt12=part(3,ailabot,0,0,BrickColor.new("Really black"),"AilaBot Weapon02 Part12",vt())
  1083. abw2prt13=part(3,ailabot,0,0,BrickColor.new("Really black"),"AilaBot Weapon02 Part13",vt())
  1084. abw1msh1=mesh("SpecialMesh",abw1prt1,"Torso","nil",vt(0,0,0),vt(7,5,8))
  1085. abw1msh2=mesh("BlockMesh",abw1prt2,"nil","nil",vt(0,0,0),vt(15,4,6))
  1086. abw1msh3=mesh("BlockMesh",abw1prt3,"nil","nil",vt(0,0,0),vt(1,1,1))
  1087. abw1msh4=mesh("SpecialMesh",abw1prt4,"Torso","nil",vt(0,0,0),vt(8,8,12))
  1088. abw1msh5=mesh("CylinderMesh",abw1prt5,"nil","nil",vt(0,0,0),vt(8,12.1,8))
  1089. abw1msh6=mesh("CylinderMesh",abw1prt6,"nil","nil",vt(0,0,0),vt(7.5,20,7.5))
  1090. abw1msh7=mesh("SpecialMesh",abw1prt7,"Sphere","nil",vt(0,0,0),vt(7.5,7.5,7.5))
  1091. abw1msh8=mesh("CylinderMesh",abw1prt8,"nil","nil",vt(0,0,0),vt(7.6,2,7.6))
  1092. abw1msh9=mesh("SpecialMesh",abw1prt9,"FileMesh","1778999",vt(0,0,0),vt(1.14,.5,1.14))
  1093. abw1msh10=mesh("CylinderMesh",abw1prt10,"nil","nil",vt(0,0,0),vt(5,12,5))
  1094. abw1msh11=mesh("CylinderMesh",abw1prt11,"nil","nil",vt(0,0,0),vt(4,1,4))
  1095. abw2msh1=mesh("BlockMesh",abw2prt1,"nil","nil",vt(0,0,0),vt(0,0,0))
  1096. abw2msh2=mesh("CylinderMesh",abw2prt2,"nil","nil",vt(0,0,0),vt(5,7,5))
  1097. abw2msh3=mesh("CylinderMesh",abw2prt3,"nil","nil",vt(0,0,0),vt(5,15,5))
  1098. abw2msh4=mesh("BlockMesh",abw2prt4,"nil","nil",vt(0,0,0),vt(1,1,1))
  1099. abw2msh5=mesh("BlockMesh",abw2prt5,"nil","nil",vt(0,0,0),vt(1,1,1))
  1100. abw2msh6=mesh("BlockMesh",abw2prt6,"nil","nil",vt(0,0,0),vt(1,1,1))
  1101. abw2msh10=mesh("CylinderMesh",abw2prt10,"nil","nil",vt(0,0,0),vt(1.5,1,1.5))
  1102. abw2msh11=mesh("CylinderMesh",abw2prt11,"nil","nil",vt(0,0,0),vt(1.5,1,1.5))
  1103. abw2msh12=mesh("CylinderMesh",abw2prt12,"nil","nil",vt(0,0,0),vt(1.5,1,1.5))
  1104. abw2msh13=mesh("CylinderMesh",abw2prt13,"nil","nil",vt(0,0,0),vt(1.5,1,1.5))
  1105. abw1wld1=weld(abtprt1,abw1prt1,abtprt1,euler(-1.57,0,-1.57)*euler(0,0,1.57)*cf(-1.4,1,-1.5))
  1106. abw1wld2=weld(abtprt1,abw1prt2,abw1prt1,euler(0,0,0)*cf(-1.3,-.11,0))
  1107. --abw1wld3=weld(abtprt1,abw1prt3,abw1prt2,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0)) --joint
  1108. --abw1wld3=weld(abtprt1,abw1prt3,abw1prt2,euler(0,0,0)*cf(0,-.6,0)*euler(-1.6,0,0)) --joint
  1109. abw1wld3=weld(abtprt1,abw1prt3,abw1prt2,euler(0,3.14,0)*cf(0,0,-.5)*euler(-.5,0,0)) --joint
  1110. abw1wld4=weld(abtprt1,abw1prt4,abw1prt3,euler(3.14,0,0)*cf(0,-.2,0))
  1111. abw1wld5=weld(abtprt1,abw1prt5,abw1prt4,euler(1.57,0,0)*cf(0,.8,0))
  1112. abw1wld6=weld(abtprt1,abw1prt6,abw1prt5,euler(0,0,0)*cf(0,-.6,0))
  1113. abw1wld7=weld(abtprt1,abw1prt7,abw1prt6,euler(0,0,0)*cf(0,2,0))
  1114. abw1wld8=weld(abtprt1,abw1prt8,abw1prt6,euler(0,0,0)*cf(0,-2,0))
  1115. abw1wld9=weld(abtprt1,abw1prt9,abw1prt8,euler(0,0,0)*cf(0,-.6,0))
  1116. abw1wld10=weld(abtprt1,abw1prt10,abw1prt9,euler(0,0,0)*cf(0,-.2,0))
  1117. abw1wld11=weld(abtprt1,abw1prt11,abw1prt10,euler(3.14,0,0)*cf(0,-1.11,0))
  1118. abw2wld1=weld(abtprt1,abw2prt1,abraprt11,euler(0,0,3.14)*cf(0,-.8,-.4)) --joint euler(0,0,0)*cf(0,.1,-.4)
  1119. --abw2wld2=weld(abtprt1,abw2prt2,abw2prt1,euler(1.57,0,0)*cf(0,.8,-.2))
  1120. abw2wld2=weld(abtprt1,abw2prt2,abw2prt1,euler(1.57,0,0)*cf(0,.8,-.6))
  1121. abw2wld3=weld(abtprt1,abw2prt3,abw2prt2,euler(1.57,0,0)*cf(0,0,-.8))
  1122. abw2wld4=weld(abtprt1,abw2prt4,abw2prt3,euler(0,0,0)*cf(0,1.5,0)) --joint
  1123. abw2wld5=weld(abtprt1,abw2prt5,abw2prt3,euler(0,0,0)*cf(.1,.6,0)) --joint (.2,-.2,0)
  1124. abw2wld6=weld(abtprt1,abw2prt6,abw2prt3,euler(0,0,0)*cf(-.1,.6,0)) --joint
  1125. abw2wld10=weld(abtprt1,abw2prt10,abw2prt4,euler(0,0,0)*cf(0,.91,.3)*euler(0,0,0)) --gun1
  1126. abw2wld11=weld(abtprt1,abw2prt11,abw2prt4,euler(0,0,0)*cf(0,.91,.3)*euler(0,1.57,0))
  1127. abw2wld12=weld(abtprt1,abw2prt12,abw2prt4,euler(0,0,0)*cf(0,.91,.3)*euler(0,3.14,0))
  1128. abw2wld13=weld(abtprt1,abw2prt13,abw2prt4,euler(0,0,0)*cf(0,.91,.3)*euler(0,4.71,0))
  1129.  
  1130. for i=-1,1,1 do
  1131. abw2prt7=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Weapon02 Part07",vt())
  1132. abw2msh7=mesh("BlockMesh",abw2prt7,"nil","nil",vt(0,0,0),vt(1.2,18,3))
  1133. abw2wld7=weld(abtprt1,abw2prt7,abw2prt5,euler(0,0,0)*cf(.4,0,0)*euler(0,i,0))
  1134. abw2prt8=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Weapon02 Part08",vt())
  1135. abw2msh8=mesh("BlockMesh",abw2prt8,"nil","nil",vt(0,0,0),vt(1.2,18,3))
  1136. abw2wld8=weld(abtprt1,abw2prt8,abw2prt6,euler(0,0,0)*cf(.4,0,0)*euler(0,i+3.14,0))
  1137. end
  1138.  
  1139. for i=1.57,6.28,1.57 do
  1140. abw2prt9=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Weapon02 Part09",vt())
  1141. abw2msh9=mesh("CylinderMesh",abw2prt9,"nil","nil",vt(0,0,0),vt(2.5,5,2.5))
  1142. abw2wld9=weld(abtprt1,abw2prt9,abw2prt4,euler(0,0,0)*cf(0,.5,.3)*euler(0,i,0))
  1143. end
  1144.  
  1145. for d=1,2 do
  1146. for i=-1.6,1.6,.8 do
  1147. abw1prt12=part(3,ailabot,0,0,BrickColor.new("Bright yellow"),"AilaBot Weapon01 Part12",vt()) abw1prt12.Material="Neon"
  1148. abw1msh12=mesh("SpecialMesh",abw1prt12,"FileMesh","9756362",vt(0,0,0),vt(.5,.2,1))
  1149. if d==1 then
  1150. abw1wld12=weld(abtprt1,abw1prt12,abw1prt6,euler(0,-.5,0)*cf(-.6,i,.2))
  1151. else
  1152. abw1wld12=weld(abtprt1,abw1prt12,abw1prt6,euler(0,.5,0)*cf(.6,i,.2))
  1153. end
  1154. end
  1155. end
  1156.  
  1157. num=1.75
  1158. abhprt1=part(3,ailabot,0,1,BrickColor.new("Black"),"AilaBot Head Part01",vt())
  1159. abhprt2=part(3,ailabot,0,1,BrickColor.new("Black"),"AilaBot Head Part02",vt())
  1160. abhprt2v=part(3,ailabot,0,0,BrickColor.new(NewCol2),"AilaBot Head Part02visor",vt())
  1161. abhprt3=part(3,ailabot,0,1,BrickColor.new("Black"),"AilaBot Head Part03",vt())
  1162. abhprt3v=part(3,ailabot,0,0,BrickColor.new(NewCol2),"AilaBot Head Part03visor",vt())
  1163. abhprt4=part(3,ailabot,0,1,BrickColor.new("Black"),"AilaBot Head Part04",vt())
  1164. abhprt5=part(3,ailabot,0,1,BrickColor.new("Black"),"AilaBot Head Part05",vt())
  1165. abhprt6=part(3,ailabot,0,0,BrickColor.new(NewCol2),"AilaBot Head Part06",vt())
  1166. abhprt7=part(3,ailabot,0,0,BrickColor.new(NewCol2),"AilaBot Head Part07",vt())
  1167. abhprt8=part(3,ailabot,0,0,BrickColor.new(NewCol2),"AilaBot Head Part08",vt())
  1168. abhprt9=part(3,ailabot,0,0,BrickColor.new(NewCol2),"AilaBot Head Part09",vt())
  1169. abhprt10=part(3,ailabot,0,1,BrickColor.new("Black"),"AilaBot Head Part10",vt())
  1170. abhprt11=part(3,ailabot,0,1,BrickColor.new("Black"),"AilaBot Head Part11",vt())
  1171. abhprt12=part(3,ailabot,.8,1,BrickColor.new("Black"),"AilaBot Head Part12",vt())
  1172. abhprt13=part(3,ailabot,.8,1,BrickColor.new("Black"),"AilaBot Head Part13",vt())
  1173. abhprt10v=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Head Part10v",vt())
  1174. abhprt11v=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Head Part11v",vt())
  1175. abhprt12v=part(3,ailabot,.8,0,BrickColor.new("New Yeller"),"AilaBot Head Part12v",vt()) abhprt12v.Material="Neon"
  1176. abhprt13v=part(3,ailabot,.8,0,BrickColor.new("New Yeller"),"AilaBot Head Part13v",vt()) abhprt13v.Material="Neon"
  1177. abhprt14=part(3,ailabot,0,0,BrickColor.new(NewCol2),"AilaBot Head Part14",vt())
  1178. abhprt15=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Head Part15",vt())
  1179. abhprt16=part(3,ailabot,0,0,BrickColor.new(NewCol2),"AilaBot Head Part16",vt())
  1180. abhprt17=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Head Part17",vt())
  1181. abhprt18=part(3,ailabot,0,0,BrickColor.new(NewCol2),"AilaBot Head Part18",vt())
  1182. abhprt19=part(3,ailabot,0,0,BrickColor.new(NewCol2),"AilaBot Head Part19",vt())
  1183. abhprt20=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Head Part20",vt())
  1184. abhprt21=part(3,ailabot,.5,0,BrickColor.new("New Yeller"),"AilaBot Head Part21",vt()) abhprt21.Material="Neon"
  1185. abhprt22=part(3,ailabot,0,0,BrickColor.new(NewCol2),"AilaBot Head Part22",vt())
  1186. abhprt23=part(3,ailabot,0,0,BrickColor.new(NewCol2),"AilaBot Head Part23",vt())
  1187. abhprt24=part(3,ailabot,0,0,BrickColor.new(NewCol2),"AilaBot Head Part24",vt())
  1188. abhprt25=part(3,ailabot,0,0,BrickColor.new(NewCol2),"AilaBot Head Part25",vt())
  1189. abhprt26=part(3,ailabot,0,0,BrickColor.new(NewCol2),"AilaBot Head Part26",vt())
  1190. abhprt27=part(3,ailabot,0,0,BrickColor.new(NewCol2),"AilaBot Head Part27",vt())
  1191. abhmshdecoy=mesh("BlockMesh",abhprt1,"nil","nil",vt(0,0,0),vt(0,0,0))
  1192. abhmshdecoy=mesh("BlockMesh",abhprt2,"nil","nil",vt(0,0,0),vt(0,0,0))
  1193. abhmshdecoy=mesh("BlockMesh",abhprt3,"nil","nil",vt(0,0,0),vt(0,0,0))
  1194. abhmshdecoy=mesh("BlockMesh",abhprt4,"nil","nil",vt(0,0,0),vt(0,0,0))
  1195. abhmshdecoy=mesh("BlockMesh",abhprt5,"nil","nil",vt(0,0,0),vt(0,0,0))
  1196. abhmshdecoy=mesh("BlockMesh",abhprt10,"nil","nil",vt(0,0,0),vt(0,0,0))
  1197. abhmshdecoy=mesh("BlockMesh",abhprt11,"nil","nil",vt(0,0,0),vt(0,0,0))
  1198. abhmshdecoy=mesh("BlockMesh",abhprt12,"nil","nil",vt(0,0,0),vt(0,0,0))
  1199. abhmshdecoy=mesh("BlockMesh",abhprt13,"nil","nil",vt(0,0,0),vt(0,0,0))
  1200. abhmsh2=mesh("BlockMesh",abhprt2v,"nil","nil",vt(0,0,0),vt(7,5.25,1.75))
  1201. abhmsh3=mesh("BlockMesh",abhprt3v,"nil","nil",vt(0,0,0),vt(7,5.25,1.75))
  1202. abhmsh6=mesh("BlockMesh",abhprt6,"nil","nil",vt(0,0,0),vt(7,3.5,1.75))
  1203. abhmsh7=mesh("BlockMesh",abhprt7,"nil","nil",vt(0,0,0),vt(7,3.5,1.75))
  1204. abhmsh8=mesh("BlockMesh",abhprt8,"nil","nil",vt(0,0,0),vt(7,5.25,1.75))
  1205. abhmsh9=mesh("BlockMesh",abhprt9,"nil","nil",vt(0,0,0),vt(7,5.25,1.75))
  1206. abhmsh10=mesh("BlockMesh",abhprt10v,"nil","nil",vt(0,0,0),vt(7,3.5,.875))
  1207. abhmsh11=mesh("BlockMesh",abhprt11v,"nil","nil",vt(0,0,0),vt(7,3.5,.875))
  1208. abhmsh12=mesh("BlockMesh",abhprt12v,"nil","nil",vt(0,0,0),vt(1.75,.875,1.75))
  1209. abhmsh13=mesh("BlockMesh",abhprt13v,"nil","nil",vt(0,0,0),vt(1.75,.875,1.75))
  1210. abhmsh14=mesh("SpecialMesh",abhprt14,"FileMesh","9756362",vt(0,0,0),vt(.8*num,1.2*num,.2*num))
  1211. abhmsh15=mesh("SpecialMesh",abhprt15,"FileMesh","9756362",vt(0,0,0),vt(.6*num,.8*num,.2*num))
  1212. abhmsh16=mesh("SpecialMesh",abhprt16,"FileMesh","9756362",vt(0,0,0),vt(.8*num,1.2*num,.2*num))
  1213. abhmsh17=mesh("SpecialMesh",abhprt17,"FileMesh","9756362",vt(0,0,0),vt(.6*num,.8*num,.2*num))
  1214. abhmsh18=mesh("BlockMesh",abhprt18,"nil","nil",vt(0,0,0),vt(7.875,1.75,.875))
  1215. abhmsh19=mesh("BlockMesh",abhprt19,"nil","nil",vt(0,0,0),vt(7.875,1.75,.875))
  1216. abhmsh20=mesh("SpecialMesh",abhprt20,"FileMesh","9756362",vt(0,0,0),vt(1*num,.8*num,.6*num))
  1217. abhmsh21=mesh("SpecialMesh",abhprt21,"FileMesh","9756362",vt(0,0,0),vt(.4*num,.4*num,.4*num))
  1218. abhmsh22=mesh("SpecialMesh",abhprt22,"FileMesh","9756362",vt(0,0,0),vt(1*num,1*num,.6*num))
  1219. abhmsh23=mesh("SpecialMesh",abhprt23,"FileMesh","9756362",vt(0,0,0),vt(1*num,1.1*num,.6*num))
  1220. abhmsh24=mesh("SpecialMesh",abhprt24,"FileMesh","9756362",vt(0,0,0),vt(1*num,1.2*num,.4*num))
  1221. abhmsh25=mesh("BlockMesh",abhprt25,"nil","nil",vt(0,0,0),vt(4*num,5*num,1*num))
  1222. abhmsh26=mesh("BlockMesh",abhprt26,"nil","nil",vt(0,0,0),vt(4*num,5*num,1*num))
  1223. abhmsh27=mesh("SpecialMesh",abhprt27,"FileMesh","9756362",vt(0,0,0),vt(1*num,.5*num,1*num))
  1224. abhwld1=weld(abtprt1,abhprt1,head,euler(0,0,0)*cf(0,.175,0))
  1225. abhwld2=weld(abtprt1,abhprt2,abhprt1,euler(0,-.7,0)*cf(.4725,.175,.875))
  1226. abhwld3=weld(abtprt1,abhprt3,abhprt1,euler(0,.7,0)*cf(-.4725,.175,.875))
  1227. abhwld2v=weld(abtprt1,abhprt2v,abhprt2,euler(0,0,0)*cf(0,0,0))
  1228. abhwld3v=weld(abtprt1,abhprt3v,abhprt3,euler(0,0,0)*cf(0,0,0))
  1229. abhwld4=weld(abtprt1,abhprt4,abhprt2,euler(0,0,0)*cf(.7,0,0))
  1230. abhwld5=weld(abtprt1,abhprt5,abhprt3,euler(0,0,0)*cf(-.7,0,0))
  1231. abhwld6=weld(abtprt1,abhprt6,abhprt4,cf(.6125,.175,0)*euler(0,-.8,0))
  1232. abhwld7=weld(abtprt1,abhprt7,abhprt5,cf(-.6125,.175,0)*euler(0,.8,0))
  1233. abhwld8=weld(abtprt1,abhprt8,abhprt4,cf(.6125,-.7,0)*euler(0,-.8,0))
  1234. abhwld9=weld(abtprt1,abhprt9,abhprt5,cf(-.6125,-.7,0)*euler(0,.8,0))
  1235. abhwld10=weld(abtprt1,abhprt10,abhprt2,euler(0,0,0)*cf(0,-.875,0))
  1236. abhwld11=weld(abtprt1,abhprt11,abhprt3,euler(0,0,0)*cf(0,-.875,0))
  1237. abhwld12=weld(abtprt1,abhprt12,abhprt10,euler(0,0,0)*cf(-.175,0,0))
  1238. abhwld13=weld(abtprt1,abhprt13,abhprt11,euler(0,0,0)*cf(.175,0,0))
  1239. abhwld10v=weld(abtprt1,abhprt10v,abhprt10,euler(0,0,0)*cf(0,0,0))
  1240. abhwld11v=weld(abtprt1,abhprt11v,abhprt11,euler(0,0,0)*cf(0,0,0))
  1241. abhwld12v=weld(abtprt1,abhprt12v,abhprt10v,euler(0,0,0)*cf(-.175,0,0))
  1242. abhwld13v=weld(abtprt1,abhprt13v,abhprt11v,euler(0,0,0)*cf(.175,0,0))
  1243. abhwld14=weld(abtprt1,abhprt14,abhprt8,euler(-.1,0,-1)*cf(-.35,0,.2625))
  1244. abhwld15=weld(abtprt1,abhprt15,abhprt14,euler(0,0,0)*cf(0,0,.05))
  1245. abhwld16=weld(abtprt1,abhprt16,abhprt9,euler(-.1,0,1)*cf(.35,0,.2625))
  1246. abhwld17=weld(abtprt1,abhprt17,abhprt16,euler(0,0,0)*cf(0,0,.05))
  1247. abhwld18=weld(abtprt1,abhprt18,abhprt2,euler(-.4,.1,0)*cf(0,-1.225,.175))
  1248. abhwld19=weld(abtprt1,abhprt19,abhprt3,euler(-.4,-.1,0)*cf(0,-1.225,.175))
  1249. abhwld20=weld(abtprt1,abhprt20,abhprt1,euler(-.2,0,0)*cf(0,-.7*num,.4*num))
  1250. abhwld21=weld(abtprt1,abhprt21,abhprt20,euler(.4,0,0)*cf(0,-.2*num,.1*num))
  1251. abhwld22=weld(abtprt1,abhprt22,abhprt1,euler(-.4,0,0)*cf(0,-.7*num,.2*num))
  1252. abhwld23=weld(abtprt1,abhprt23,abhprt1,euler(-.8,0,0)*cf(0,-.7*num,0))
  1253. abhwld24=weld(abtprt1,abhprt24,abhprt1,euler(-1.2,0,0)*cf(0,-.7*num,-.2*num))
  1254. abhwld25=weld(abtprt1,abhprt25,abhprt1,euler(0,.5,0)*cf(.3*num,-.1*num,-.6*num))
  1255. abhwld26=weld(abtprt1,abhprt26,abhprt1,euler(0,-.5,0)*cf(-.3*num,-.1*num,-.6*num))
  1256. abhwld27=weld(abtprt1,abhprt27,abhprt1,euler(0,0,0)*cf(0,-.6*num,-.5*num))
  1257.  
  1258. for i=2.093,6.28,2.093 do
  1259. num=math.random(1500,3000)/100
  1260. local abtprt6=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Torso Part06",vt())
  1261. local abtmsh6=mesh("CylinderMesh",abtprt6,"nil","nil",vt(0,0,0),vt(2,num,2))
  1262. local abtwld6=weld(abtprt1,abtprt6,abtprt4,cf(0,0,.5)*euler(0,i,0))
  1263. local abtprt7=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Torso Part07",vt())
  1264. local abtmsh7=mesh("SpecialMesh",abtprt7,"Head","nil",vt(0,0,0),vt(2,2,2))
  1265. local abtwld7=weld(abtprt1,abtprt7,abtprt6,euler(0,0,0)*cf(0,-num/10,0))
  1266. end
  1267.  
  1268. for i=.44857,6.28,.44857 do
  1269. if math.random(1,2)==1 then
  1270. local abtprt11=part(3,ailabot,0,0,BrickColor.new("Bright yellow"),"AilaBot Torso Part11",vt()) abtprt11.Material="Neon"
  1271. local abtmsh11=mesh("BlockMesh",abtprt11,"nil","nil",vt(0,0,0),vt(6,1,1))
  1272. local abtwld11=weld(abtprt1,abtprt11,abtprt8,cf(0,0,2.5)*euler(0,i,0))
  1273. end
  1274. end
  1275.  
  1276. for i=.48307,6.28,.48307 do
  1277. if math.random(1,2)==1 then
  1278. local abtprt11=part(3,ailabot,0,0,BrickColor.new("Bright yellow"),"AilaBot Torso Part11",vt()) abtprt11.Material="Neon"
  1279. local abtmsh11=mesh("BlockMesh",abtprt11,"nil","nil",vt(0,0,0),vt(5.5,1,1))
  1280. local abtwld11=weld(abtprt1,abtprt11,abtprt9,cf(0,0,2.1)*euler(0,i,0))
  1281. end
  1282. end
  1283.  
  1284. for i=.523,6.28,.523 do
  1285. if math.random(1,2)==1 then
  1286. local abtprt11=part(3,ailabot,0,0,BrickColor.new("Bright yellow"),"AilaBot Torso Part11",vt()) abtprt11.Material="Neon"
  1287. local abtmsh11=mesh("BlockMesh",abtprt11,"nil","nil",vt(0,0,0),vt(5,1,1))
  1288. local abtwld11=weld(abtprt1,abtprt11,abtprt10,cf(0,0,1.7)*euler(0,i,0))
  1289. end
  1290. end
  1291.  
  1292. for i=1,2 do
  1293. local abtprt12=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Torso Part12",vt())
  1294. local abtmsh12=mesh("SpecialMesh",abtprt12,"Wedge","nil",vt(0,0,0),vt(5,8,11))
  1295. if i==1 then
  1296. local abtwld12=weld(abtprt1,abtprt12,abtprt4,euler(3.14,0,2)*euler(0,.4,0)*cf(1.7,.4,0))
  1297. else
  1298. local abtwld12=weld(abtprt1,abtprt12,abtprt4,euler(3.14,0,-2)*euler(0,-.4,0)*cf(-1.7,.4,0))
  1299. end
  1300. local abtprt13=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Torso Part13",vt())
  1301. local abtmsh13=mesh("SpecialMesh",abtprt13,"FileMesh","9756362",vt(0,0,0),vt(.5,1,2))
  1302. local abtwld13=weld(abtprt1,abtprt13,abtprt12,euler(.6,0,0)*cf(0,.35,.5))
  1303. end
  1304.  
  1305. for i=1,2 do
  1306. local abtprt14=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Torso Part14",vt())
  1307. local abtmsh14=mesh("SpecialMesh",abtprt14,"Torso","nil",vt(0,0,0),vt(13,5,5))
  1308. local wldprt=ablaprt2
  1309. if i==2 then
  1310. wldprt=abraprt2
  1311. end
  1312. local abtwld14=weld(abtprt1,abtprt14,wldprt,euler(3.14,0,0)*cf(0,1,0))
  1313. end
  1314.  
  1315. for i=.785,6.28,1.57 do
  1316. local abtprt16=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Torso Part16",vt())
  1317. local abtmsh16=mesh("SpecialMesh",abtprt16,"FileMesh","9756362",vt(0,0,0),vt(1,1,1))
  1318. local abtwld16=weld(abtprt1,abtprt16,abtprt15,euler(1,0,0)*cf(0,.8,0)*euler(0,0,i))
  1319. end
  1320.  
  1321. for i=1,2 do
  1322. local dpart=abtprt17
  1323. if i==2 then dpart=abtprt18 end
  1324. local abtprt19=part(3,ailabot,0,0,BrickColor.new("White"),"AilaBot Torso Part19",vt())
  1325. local abtmsh19=mesh("SpecialMesh",abtprt19,"FileMesh","9756362",vt(0,0,0),vt(1,3,.5))
  1326. local abtwld19=weld(abtprt1,abtprt19,dpart,euler(0,0,0)*cf(0,-.5,0)*euler(0,0,0))
  1327. for d=1.57,6.28,1.57 do
  1328. local abtprt20=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Torso Part20",vt())
  1329. local abtmsh20=mesh("SpecialMesh",abtprt20,"Wedge","nil",vt(0,0,0),vt(2,2,8))
  1330. local abtwld20=weld(abtprt1,abtprt20,abtprt19,euler(1.57+.1,1.57,0)*cf(-.5,1.3,0)*euler(0,d,0))
  1331. end
  1332. end
  1333.  
  1334. for i=1.57,6.28,1.57 do
  1335. local abtprt21=part(3,ailabot,0,0,BrickColor.new("Black"),"AilaBot Torso Part21",vt())
  1336. local abtmsh21=mesh("CylinderMesh",abtprt21,"nil","nil",vt(0,0,0),vt(1,1,1))
  1337. local abtwld21=weld(abtprt1,abtprt21,abtprt19,euler(1.57,0,0)*cf(0,0,-.9)*euler(.4,0,i))
  1338. end
  1339.  
  1340. for i=1,3 do
  1341. ablaprt12=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Left Arm Part12",vt())
  1342. abraprt12=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Right Arm Part12",vt())
  1343. local n=6
  1344. if i==3 then
  1345. n=5
  1346. end
  1347. ablamsh12=mesh("CylinderMesh",ablaprt12,"nil","nil",vt(0,0,0),vt(n,1,n))
  1348. abramsh12=mesh("CylinderMesh",abraprt12,"nil","nil",vt(0,0,0),vt(n,1,n))
  1349. local c6=.3
  1350. if i==2 then
  1351. c6=-.8
  1352. elseif i==3 then
  1353. c6=-1
  1354. end
  1355. ablawld12=weld(abtprt1,ablaprt12,ablaprt11,euler(0,0,0)*cf(0,c6,0))
  1356. abrawld12=weld(abtprt1,abraprt12,abraprt11,euler(0,0,0)*cf(0,c6,0))
  1357. end
  1358.  
  1359. for i=1,2 do
  1360. ablaprt13=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Left Arm Part13",vt())
  1361. abraprt13=part(3,ailabot,0,0,BrickColor.new("Bright blue"),"AilaBot Right Arm Part13",vt())
  1362. ablamsh13=mesh("SpecialMesh",ablaprt13,"FileMesh","9756362",vt(0,0,0),vt(.8,1.5,.2))
  1363. abramsh13=mesh("SpecialMesh",abraprt13,"FileMesh","9756362",vt(0,0,0),vt(.8,1.5,.2))
  1364. local n=.5
  1365. if i==2 then n=n*-1 end
  1366. ablawld13=weld(abtprt1,ablaprt13,ablaprt11,euler(0,0,0)*cf(0,-.25,n))
  1367. abrawld13=weld(abtprt1,abraprt13,abraprt11,euler(0,0,0)*cf(0,-.25,n))
  1368. end
  1369. for _,c in pairs(ailabot:children()) do
  1370. table.insert(AilaBot,c)
  1371. end
  1372. for _,c in pairs(abtprt1:children()) do
  1373. if c.className=="Motor" then
  1374. table.insert(ABWelds,c)
  1375. end
  1376. end
  1377. ailabot.Parent=nil
  1378.  
  1379. local abpos=it("BodyPosition",ailaref)
  1380. abpos.P=4000
  1381. abpos.D=200
  1382. abpos.maxForce=Vector3.new(545000,545000,545000)
  1383. local abgy=Instance.new("BodyGyro",ailaref)
  1384. abgy.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1385. abgy.P=300e+003
  1386. abgy.cframe=RootPart.CFrame
  1387.  
  1388. local hitbox=part(3,modelzorz,0,1,BrickColor.new("Black"),"Hitbox2",vt())
  1389. hitbox.Anchored=false
  1390. local hbwld=weld(hitbox,hitbox,RootPart,euler(0,0,0)*cf(0,0,0))
  1391. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  1392. hitbox2.Anchored=true
  1393. local hitboxCF=cf(0,0,0)
  1394.  
  1395. hboxpos=Instance.new("BodyPosition",nil)
  1396. hboxpos.P=2000
  1397. hboxpos.D=100
  1398. hboxpos.maxForce=Vector3.new(545000,545000,545000)
  1399.  
  1400. function hitboxweld()
  1401. hbwld.Parent=modelzorz
  1402. hbwld.Part0=hitbox
  1403. hbwld.Part1=prtt
  1404. end
  1405.  
  1406. function disappearhat()
  1407. for _,c in pairs(Character:children()) do
  1408. if c.className=="Hat" then
  1409. c.Handle.Transparency=1
  1410. end
  1411. end
  1412. end
  1413.  
  1414. function appearhat()
  1415. for _,c in pairs(Character:children()) do
  1416. if c.className=="Hat" then
  1417. c.Handle.Transparency=0
  1418. end
  1419. end
  1420. end
  1421. appearhat()
  1422. function disappeargaunt()
  1423. for i=1,#Weapon do
  1424. Weapon[i].Transparency=1
  1425. end
  1426. end
  1427.  
  1428. function appeargaunt()
  1429. for i=1,#Weapon do
  1430. Weapon[i].Transparency=0
  1431. end
  1432. end
  1433.  
  1434. local nr=NumberRange.new
  1435. local ns=NumberSequence.new
  1436. local cs=ColorSequence.new
  1437. local parti=it("ParticleEmitter")
  1438. parti.Color=cs(NewCol2,NewCol2)
  1439. parti.LightEmission=1
  1440. parti.Texture="http://www.roblox.com/asset/?id=241779220"
  1441. sizeseq=ns({NumberSequenceKeypoint.new(0,2),NumberSequenceKeypoint.new(1,8)})
  1442. transseq=ns({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.1,.5),NumberSequenceKeypoint.new(.8,.5),NumberSequenceKeypoint.new(1,1)})
  1443. parti.Transparency=transseq
  1444. parti.Size=sizeseq
  1445. parti.Acceleration=vt(0,-1,0)
  1446. parti.Lifetime=nr(1,3)
  1447. parti.Rate=80
  1448. parti.RotSpeed=nr(90)
  1449. parti.Speed=nr(2)
  1450. parti.VelocitySpread=180
  1451. parti.Parent=Torso
  1452. parti.Enabled=false
  1453. parti.ZOffset=2
  1454. parti2=parti:Clone()
  1455. parti2.Parent=lprt1
  1456. parti2.Size=ns({NumberSequenceKeypoint.new(0,2),NumberSequenceKeypoint.new(1,.1)})
  1457. parti2.Texture="http://www.roblox.com/asset/?id=243728166"
  1458. parti2.Color=cs(NewCol,NewCol2)
  1459. parti2.ZOffset=0
  1460. parti2.Acceleration=vt(0,0,0)
  1461. parti2.Lifetime=nr(3,3)
  1462. parti2.Rate=20
  1463. parti2.Speed=nr(-3)
  1464. parti2.VelocitySpread=90
  1465. parti3=parti2:Clone()
  1466. parti3.Parent=rprt1
  1467. parti4=parti2:Clone()
  1468. parti4.Parent=ahprt21
  1469. parti4.Color=cs(Color3.new(1,1,0),Color3.new(1,1,0))
  1470. parti4.Size=ns({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,0)})
  1471. parti4.Texture="http://www.roblox.com/asset/?id=243728206"
  1472. parti4.Lifetime=nr(10,10)
  1473. parti4.Rate=1
  1474. parti4.RotSpeed=nr(0)
  1475. parti4.Speed=nr(.5)
  1476. parti4.VelocitySpread=180
  1477. parti4.Enabled=false
  1478.  
  1479. --[[hbodpos=Instance.new("BodyPosition",hitbox)
  1480. hbodpos.P=2000
  1481. hbodpos.D=100
  1482. hbodpos.maxForce=Vector3.new(545000,545000,545000)]]
  1483.  
  1484. if (script.Parent.className~="HopperBin") then
  1485. Tool=Instance.new("HopperBin")
  1486. Tool.Parent=Backpack
  1487. Tool.Name="Fendam"
  1488. script.Parent=Tool
  1489. end
  1490. Bin=script.Parent
  1491. if Bin.Name=="Fendam" then
  1492. Bin.Name="Fendam"
  1493. end
  1494.  
  1495. local bodvel=Instance.new("BodyVelocity")
  1496. local bg=Instance.new("BodyGyro")
  1497.  
  1498. so = function(id,par,vol,pit)
  1499. local sou = Instance.new("Sound",par or workspace)
  1500. sou.Volume=vol
  1501. sou.Pitch=pit or 1
  1502. sou.SoundId="http://www.roblox.com/asset/?id="..id
  1503. coroutine.resume(coroutine.create(function(Sound)
  1504. swait()
  1505. Sound:play()
  1506. end),sou)
  1507. game:GetService("Debris"):AddItem(sou,6)
  1508. end
  1509.  
  1510. function clerp(a,b,t)
  1511. local qa = {QuaternionFromCFrame(a)}
  1512. local qb = {QuaternionFromCFrame(b)}
  1513. local ax, ay, az = a.x, a.y, a.z
  1514. local bx, by, bz = b.x, b.y, b.z
  1515. local _t = 1-t
  1516. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1517. end
  1518.  
  1519. function QuaternionFromCFrame(cf)
  1520. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1521. local trace = m00 + m11 + m22
  1522. if trace > 0 then
  1523. local s = math.sqrt(1 + trace)
  1524. local recip = 0.5/s
  1525. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1526. else
  1527. local i = 0
  1528. if m11 > m00 then
  1529. i = 1
  1530. end
  1531. if m22 > (i == 0 and m00 or m11) then
  1532. i = 2
  1533. end
  1534. if i == 0 then
  1535. local s = math.sqrt(m00-m11-m22+1)
  1536. local recip = 0.5/s
  1537. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1538. elseif i == 1 then
  1539. local s = math.sqrt(m11-m22-m00+1)
  1540. local recip = 0.5/s
  1541. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1542. elseif i == 2 then
  1543. local s = math.sqrt(m22-m00-m11+1)
  1544. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1545. end
  1546. end
  1547. end
  1548.  
  1549. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1550. local xs, ys, zs = x + x, y + y, z + z
  1551. local wx, wy, wz = w*xs, w*ys, w*zs
  1552. local xx = x*xs
  1553. local xy = x*ys
  1554. local xz = x*zs
  1555. local yy = y*ys
  1556. local yz = y*zs
  1557. local zz = z*zs
  1558. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1559. end
  1560.  
  1561. function QuaternionSlerp(a, b, t)
  1562. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1563. local startInterp, finishInterp;
  1564. if cosTheta >= 0.0001 then
  1565. if (1 - cosTheta) > 0.0001 then
  1566. local theta = math.acos(cosTheta)
  1567. local invSinTheta = 1/math.sin(theta)
  1568. startInterp = math.sin((1-t)*theta)*invSinTheta
  1569. finishInterp = math.sin(t*theta)*invSinTheta
  1570. else
  1571. startInterp = 1-t
  1572. finishInterp = t
  1573. end
  1574. else
  1575. if (1+cosTheta) > 0.0001 then
  1576. local theta = math.acos(-cosTheta)
  1577. local invSinTheta = 1/math.sin(theta)
  1578. startInterp = math.sin((t-1)*theta)*invSinTheta
  1579. finishInterp = math.sin(t*theta)*invSinTheta
  1580. else
  1581. startInterp = t-1
  1582. finishInterp = t
  1583. end
  1584. end
  1585. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1586. end
  1587.  
  1588. function hideanim()
  1589. equipped=false
  1590. for i=0,1,0.1 do
  1591. swait()
  1592. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.4)
  1593. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  1594. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  1595. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1596. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  1597. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1598. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1599. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1600. end
  1601. mdec.Parent=Decrease
  1602. end
  1603.  
  1604. mdec.Parent=Decrease
  1605. function equipanim()
  1606. equipped=true
  1607. mdec.Parent=nil
  1608. n=0
  1609. local dec=Instance.new("NumberValue",Decrease)
  1610. dec.Name="DecreaseMvmt"
  1611. dec.Value=10
  1612. so("300915902",RootPart,1,1)
  1613. for i=0,50 do
  1614. swait()
  1615. if i==0 then
  1616. laarmvis=true
  1617. elseif i==5 then
  1618. raarmvis=true
  1619. elseif i==10 then
  1620. lalegvis=true
  1621. elseif i==15 then
  1622. ralegvis=true
  1623. elseif i==20 then
  1624. tavis=true
  1625. end
  1626. n=n+1
  1627. if n>6 then
  1628. if n>=9 then
  1629. n=0
  1630. Clone()
  1631. end
  1632. for i=1,3 do
  1633. ElecEffect(Torso.CFrame,3,3,3)
  1634. end
  1635. end
  1636. if i<=25 then
  1637. Neck.C0=clerp(Neck.C0,necko*euler(.6,0,0),.15)
  1638. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.1)*euler(.1,0,0),.15)
  1639. RW.C0=clerp(RW.C0,cf(.7,0.4,-.5)*euler(1.5,0,-1.2),.15)
  1640. LW.C0=clerp(LW.C0,cf(-.7,0.4,-.5)*euler(.7,0,1),.15)
  1641. RH.C0=clerp(RH.C0,cf(.95,-.9,0)*euler(0,1.57,0)*euler(-.1,0,.1),.15)
  1642. LH.C0=clerp(LH.C0,cf(-.95,-.9,0)*euler(0,-1.57,0)*euler(-.1,0,-.1),.15)
  1643. else
  1644. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0),.2)
  1645. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.1)*euler(-.1,0,0),.2)
  1646. RW.C0=clerp(RW.C0,cf(1,0.7,-.5)*euler(2.5,0,-.8),.2)
  1647. LW.C0=clerp(LW.C0,cf(-1,0.7,-.5)*euler(2,0,.6),.2)
  1648. RH.C0=clerp(RH.C0,cf(.95,-.9,0)*euler(0,1.57,0)*euler(-.1,0,-.1),.2)
  1649. LH.C0=clerp(LH.C0,cf(-.95,-.9,0)*euler(0,-1.57,0)*euler(-.1,0,.1),.2)
  1650. end
  1651. end
  1652. laarmvis=false
  1653. raarmvis=false
  1654. lalegvis=false
  1655. ralegvis=false
  1656. tavis=false
  1657. dec.Parent=nil
  1658. local hit,pos=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,200,Character)
  1659. if hit~=nil then
  1660. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  1661. ref.Anchored=true
  1662. ref.CFrame=cf(pos)
  1663. game:GetService("Debris"):AddItem(ref,1)
  1664. MagicWave(BrickColor.new("Bright blue"),cf(ref.Position),1,1,1,1.2,.2,1.2,.05)
  1665. end
  1666. --[[if intro==false then
  1667. intro=true
  1668. local dec=Instance.new("NumberValue",Decrease)
  1669. dec.Name="DecreaseMvmt"
  1670. dec.Value=10
  1671. for i=0,1,0.3 do
  1672. swait()
  1673. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  1674. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1675. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(2,0,-1),.3)
  1676. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1677. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.4,0,1.2),.3)
  1678. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1679. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1680. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1681. end
  1682. for i=0,1,0.1 do
  1683. swait()
  1684. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  1685. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1686. RW.C0=clerp(RW.C0,cf(.8,0.5,-.5)*euler(1.4,0,-1.2),.3)
  1687. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1688. LW.C0=clerp(LW.C0,cf(-.8,0.5,-.5)*euler(2,0,1),.3)
  1689. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1690. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1691. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1692. end
  1693. parti.Enabled=true
  1694. parti2.Enabled=true
  1695. parti3.Enabled=true
  1696. for i=0,20 do
  1697. swait()
  1698. MagicCircle(BrickColor.new(NewCol2),Torso.CFrame,5,5,5,4,4,4,.1)
  1699. end
  1700. passive1.Value=-.5
  1701. passive2.Value=.1
  1702. disappearhat()
  1703. disappeargaunt()
  1704. for i=1,#Armor do
  1705. if Armor[i].Name~="Armor Head Part01" and Armor[i].Name~="Armor Head Part04" and Armor[i].Name~="Armor Head Part05" and Armor[i].Name~="Armor Head Part02" and Armor[i].Name~="Armor Head Part03" and Armor[i].Name~="Armor Head Part10" and Armor[i].Name~="Armor Head Part11" and Armor[i].Name~="Armor Head Part12" and Armor[i].Name~="Armor Head Part13" then
  1706. Armor[i].Transparency=0
  1707. end
  1708. end
  1709. parti.Enabled=false
  1710. parti2.Enabled=false
  1711. parti3.Enabled=false
  1712. parti4.Enabled=true
  1713. local hit,pos=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,200,Character)
  1714. if hit~=nil then
  1715. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  1716. ref.Anchored=true
  1717. ref.CFrame=cf(pos)
  1718. game:GetService("Debris"):AddItem(ref,1)
  1719. MagicWave(BrickColor.new(NewCol2),cf(ref.Position),1,1,1,.5,.2,.5,.02)
  1720. end
  1721. for i=0,1,0.05 do
  1722. swait()
  1723. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0),.4)
  1724. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  1725. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57),.4)
  1726. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1727. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57),.4)
  1728. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1729. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.4)
  1730. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.4)
  1731. end
  1732. for i=0,1,0.1 do
  1733. swait()
  1734. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  1735. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,0),.3)
  1736. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,.6),.3)
  1737. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1738. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,0,-.6),.3)
  1739. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1740. RH.C0=clerp(RH.C0,cf(1.1,-.6,0)*euler(0,1.57,0)*euler(0,0,-.5),.3)
  1741. LH.C0=clerp(LH.C0,cf(-1,-.6,-.4)*euler(0,-1.57,0)*euler(-.1,0,.2),.3)
  1742. end
  1743. pdriver.Parent=Character
  1744. for i=1,#PDriver do
  1745. PDriver[i].Transparency=1
  1746. end
  1747. for i=1,#PDWelds do
  1748. PDWelds[i].Parent=pdprt1
  1749. end
  1750. for i=1,-.1,-0.05 do
  1751. swait()
  1752. for d=1,#PDriver do
  1753. PDriver[d].Transparency=i
  1754. end
  1755. end
  1756. for i=1,#PDriver do
  1757. PDriver[i].Transparency=0
  1758. end
  1759. for i=0,1,0.1 do
  1760. swait()
  1761. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  1762. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1763. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(2.4,0,-1.2),.3)
  1764. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1765. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.5,0,1),.3)
  1766. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1767. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1768. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1769. end
  1770. dec.Parent=nil
  1771. else
  1772. for i=1,0,-0.1 do
  1773. swait()
  1774. for d=1,#PDriver do
  1775. PDriver[d].Transparency=i
  1776. end
  1777. end
  1778. for d=1,#PDriver do
  1779. PDriver[d].Transparency=0
  1780. end
  1781. end]]
  1782. end
  1783.  
  1784. function StaggerAnim()
  1785. attack=true
  1786. removeControl()
  1787. for i=1,math.random(2,4) do
  1788. ClangEffect(BrickColor.new("New Yeller"),cf(hitbox.Position)*euler(math.random(-50,50)/100,math.random(-50,50),math.random(-50,50)/100),0,.1,.2,math.random(150,300)/1000)
  1789. end
  1790. for i=0,1,0.35 do
  1791. swait()
  1792. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  1793. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.3)
  1794. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,-.4),.3)
  1795. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.3)
  1796. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1797. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.3)
  1798. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1799. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.3)
  1800. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  1801. end
  1802. for i=0,1,0.2 do
  1803. swait()
  1804. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  1805. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.4)
  1806. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(-.5,0,-.4),.4)
  1807. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.4)
  1808. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1809. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.4)
  1810. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1811. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.4)
  1812. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.5),.4)
  1813. end
  1814. for i=0,1,0.1 do
  1815. swait()
  1816. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.4)*euler(.5,0,0),.3)
  1817. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(-.2,0,-.4),.3)
  1818. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,.4)*euler(0,-.4,0),.3)
  1819. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1820. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-.2)*euler(0,.4,0),.3)
  1821. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1822. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,1.2),.3)
  1823. LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  1824. end
  1825. for i=1,40 do
  1826. swait()
  1827. if Stun.Value>=StunT.Value then
  1828. break
  1829. end
  1830. end
  1831. resumeControl()
  1832. combo=0
  1833. attack=false
  1834. end
  1835.  
  1836. function StaggerHitt()
  1837. attack=true
  1838. for i=1,math.random(2,4) do
  1839. ClangEffect(BrickColor.new("New Yeller"),cf(hitbox.Position)*euler(math.random(-50,50)/100,math.random(-50,50),math.random(-50,50)/100),0,.1,.2,math.random(150,300)/1000)
  1840. end
  1841. for i=0,1,0.1 do
  1842. swait()
  1843. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.7)*euler(.1,0,0),.3)
  1844. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,-.6),.3)
  1845. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.9)*euler(0,-.7,0),.3)
  1846. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1847. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.3)
  1848. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1849. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.2,0,-.4),.3)
  1850. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  1851. end
  1852. attack=false
  1853. end
  1854.  
  1855. function StunAnim()
  1856. attack=true
  1857. Stunned.Value=true
  1858. removeControl()
  1859. showDamage(Character,"Stunned","Interrupt")
  1860. local dec=Instance.new("NumberValue",Decrease)
  1861. dec.Name="DecreaseMvmt"
  1862. dec.Value=10
  1863. for i=0,1,0.3 do
  1864. swait()
  1865. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.5),.2)
  1866. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,-3),.2)
  1867. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.3),.2)
  1868. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1869. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.4)*euler(0,-.1,0),.2)
  1870. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1871. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
  1872. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
  1873. end
  1874. for i=0,1,0.3 do
  1875. swait()
  1876. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-.5),.2)
  1877. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.8,0,-3),.2)
  1878. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  1879. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1880. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1.2,0,.8)*euler(0,-.1,0),.2)
  1881. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1882. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
  1883. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
  1884. end
  1885. for i=0,1,0.3 do
  1886. swait()
  1887. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-1),.2)
  1888. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1.57,0,-3),.2)
  1889. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  1890. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1891. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8)*euler(0,-.1,0),.2)
  1892. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1893. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
  1894. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
  1895. end
  1896. local gairost=Instance.new("BodyGyro")
  1897. gairost.Parent=RootPart
  1898. gairost.maxTorque=Vector3.new(4e+005,0,4e+005)*math.huge
  1899. gairost.P=20e+003
  1900. gairost.cframe=cf(0,0,0)
  1901. for i=0,1,0.1 do
  1902. swait()
  1903. if hitfloor~=nil then
  1904. end
  1905. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.3)
  1906. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*euler(1.57,0,-3.14),.3)
  1907. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1.5)*euler(.2,0,0),.3)
  1908. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1909. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,-1.57)*euler(0,0,0),.3)
  1910. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1911. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
  1912. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
  1913. end
  1914. for i=1,70 do
  1915. swait()
  1916. gairost.cframe=RootPart.CFrame
  1917. if hitfloor~=nil then
  1918. Torso.Velocity=vt(0,0,0)
  1919. end
  1920. end
  1921. for i=0,1,0.2 do
  1922. swait()
  1923. Stun.Value=0
  1924. gairost.cframe=RootPart.CFrame
  1925. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  1926. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1,0,-4),.3)
  1927. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1)*euler(.2,-1,0),.3)
  1928. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1929. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,.2)*euler(0,0,0),.3)
  1930. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1931. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
  1932. LH.C0=clerp(LH.C0,cf(-1,-1,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
  1933. end
  1934. resumeControl()
  1935. gairost.Parent=nil
  1936. dec.Parent=nil
  1937. Stun.Value=0
  1938. combo=0
  1939. Stunned.Value=false
  1940. attack=false
  1941. for i=1,10 do
  1942. swait()
  1943. Stun.Value=0
  1944. end
  1945. end
  1946.  
  1947. --idle
  1948. --[[Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.1)*euler(.1,0,0),.3)
  1949. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.1),.3)
  1950. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.4,0,.5)*euler(0,-1,0),.3)
  1951. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.4,0,-.5)*euler(0,.5,0),.3)
  1952. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.1)*euler(0,1.57,0)*euler(0,-.1,.1),.3)
  1953. LH.C0=clerp(LH.C0,cf(-1,-.8,.4)*euler(0,-1.57,0)*euler(-.2,.4,.2),.3)]]
  1954.  
  1955. function attackone()
  1956. attack=true
  1957. if Mode=="Normal" then
  1958. laarmvis=true
  1959. lpdvis=true
  1960. for i=0,1,0.1 do
  1961. swait()
  1962. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,-.2,0),.4)
  1963. pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,-.2,0),.4)
  1964. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,.2,0),.3)
  1965. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.5),.3)
  1966. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.6,0,.6)*euler(0,.5,0),.3)
  1967. LW.C0=clerp(LW.C0,cf(-1.1,0.5,-.5)*euler(1.57,0,.4)*euler(0,0,0),.3)
  1968. RH.C0=clerp(RH.C0,cf(1.2,-.9,-.2)*euler(0,1.57,0)*euler(0,-.5,-.1),.3)
  1969. LH.C0=clerp(LH.C0,cf(-1,-.8,.4)*euler(0,-1.57,0)*euler(-.2,0,.1),.3)
  1970. end
  1971. so("203691885",pdprt9,.5,1.5)
  1972. --so("172146984",pdprt9,1,3) --huge explosion
  1973. --so("163573436",pdprt9,1,1)
  1974. so("81116747",pdprt9,1,1)
  1975. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*90 end
  1976. RecentEnemy.Value=nil
  1977. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,7,math.random(20,25),"Normal",RootPart,.5,2,math.random(5,8),nil,true) end)
  1978. hbwld.Parent=nil
  1979. hboxpos.Parent=hitbox
  1980. hitbox.Parent=modelzorz
  1981. hitbox.Size=vt(2,6,2)
  1982. hitboxCF=pdprt9.CFrame*cf(0,0,0)
  1983. hitbox.CFrame=hitboxCF
  1984. --pdprt4
  1985. MagicBlock(BrickColor.new("Bright red"),pdprt7.CFrame,1,1,1,3,3,3,.2,3,pdprt7)
  1986. MagicBlock(BrickColor.new("Bright yellow"),pdprt7.CFrame,1,1,1,2.5,2.5,2.5,.1,3,pdprt7)
  1987. MagicBoom2(BrickColor.new("Bright red"),pdprt7.CFrame,.5,.5,.5,.2,.5,.2,.1,pdprt7)
  1988. num=0
  1989. for i=0,1,0.07 do
  1990. swait()
  1991. num=num+1
  1992. if num==5 then
  1993. Bullet(pdprt4)
  1994. end
  1995. if num<=5 then
  1996. MagicBlock(BrickColor.new("Bright red"),pdprt7.CFrame,1,1,1,4,4,4,.25,1)
  1997. end
  1998. hitboxCF=pdprt9.CFrame*cf(0,0,0)
  1999. hitbox.CFrame=hitboxCF
  2000. MagniDamage(hitbox,6,5,7,math.random(20,25),"Normal",false,nil,nil,nil,math.random(5,8),RootPart,.5,2)
  2001. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,.8,0),.5)
  2002. --pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,.8,0),.5)
  2003. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.4)*euler(.3,0,0),.3)
  2004. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.5),.3)
  2005. if i>=.1 then
  2006. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.54,0,-.4)*euler(0,0,0),.3)
  2007. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.4)*euler(0,0,0),.3)
  2008. else
  2009. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.57,0,-.5)*euler(0,0,0),.3)
  2010. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.4)*euler(0,0,0),.3)
  2011. end
  2012. RH.C0=clerp(RH.C0,cf(1.2,-1,.2)*euler(0,1.57,0)*euler(0,.2,-.5),.3)
  2013. LH.C0=clerp(LH.C0,cf(-1,-.9,-.2)*euler(0,-1.57,0)*euler(0,.5,.2),.3)
  2014. if RecentEnemy.Value~=nil then
  2015. Torso.Velocity=vt(0,0,0)
  2016. end
  2017. end
  2018. --con1:disconnect()
  2019. hitbox.Parent=modelzorz
  2020. hitbox.Size=vt()
  2021. hitboxweld()
  2022. hboxpos.Parent=nil
  2023. lpdvis=false
  2024. else
  2025. local refat=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2026. refat.Anchored=true
  2027. refat.CFrame=LeftArm.CFrame*cf(0,-1,0)
  2028. game:GetService("Debris"):AddItem(refat,5)
  2029. for i=1,3 do
  2030. local Col="Medium blue"
  2031. if i==2 then
  2032. Col="Bright blue"
  2033. end
  2034. MagicCircle(BrickColor.new(Col),LeftArm.CFrame*cf(0,-1,0),1,1,1,1*i,1*i,1*i,.08)
  2035. end
  2036. so("300915947",refat,1,.6)
  2037. for i=0,1,0.15 do
  2038. swait()
  2039. refat.CFrame=LeftArm.CFrame*cf(0,-1-3*i,0)
  2040. ElecEffect(LeftArm.CFrame*cf(0,-1,0),1,1,1)
  2041. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.4)*euler(.1,0,0),.4)
  2042. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.1)*euler(0,0,-.4),.4)
  2043. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.8)*euler(0,0,0),.4)
  2044. LW.C0=clerp(LW.C0,cf(-.8,0.5,-.5)*euler(1.8,0,1.2)*euler(0,-1,0)*euler(0,0,-.5),.4)
  2045. RH.C0=clerp(RH.C0,cf(1.05,-.8,.1)*euler(0,1.57,0)*euler(-.2,.1,.1),.4)
  2046. LH.C0=clerp(LH.C0,cf(-1,-.95,-.2)*euler(0,-1.57,0)*euler(0,.4,.1),.4)
  2047. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2048. break
  2049. end
  2050. end
  2051. local d=0
  2052. for i=0,1,0.1 do
  2053. swait()
  2054. refat.CFrame=LeftArm.CFrame*cf(0,-4+2*i,0)
  2055. if i<.7 then
  2056. MagniDamage(refat,5,5,7,math.random(10,20),"Normal",true,nil,nil,nil,math.random(4,6),RootPart,.2,2)
  2057. end
  2058. for i=1,3 do
  2059. ElecEffect2(refat.CFrame,4,4,4)
  2060. end
  2061. if d%2==0 and i<.7 then
  2062. for i=1,3 do
  2063. local Col="Medium blue"
  2064. if i==2 then
  2065. Col="Bright blue"
  2066. end
  2067. MagicCircle(BrickColor.new(Col),refat.CFrame,0,0,0,.8*i,.8*i,.8*i,.08)
  2068. end
  2069. end
  2070. d=d+1
  2071. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.4)*euler(.1,0,0),.3)
  2072. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.1)*euler(0,0,-.4),.3)
  2073. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,1)*euler(0,0,0),.3)
  2074. LW.C0=clerp(LW.C0,cf(-1.5,0.3,0)*euler(1.57,0,-1.57)*euler(0,-1.5,0)*euler(0,0,.4),.3)
  2075. RH.C0=clerp(RH.C0,cf(1.05,-.8,.1)*euler(0,1.57,0)*euler(-.2,.1,.1),.3)
  2076. LH.C0=clerp(LH.C0,cf(-1,-.95,-.2)*euler(0,-1.57,0)*euler(0,.4,.1),.3)
  2077. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2078. break
  2079. end
  2080. end
  2081. refat.Parent=nil
  2082. end
  2083. attack=false
  2084. end
  2085.  
  2086. function attacktwo()
  2087. attack=true
  2088. if Mode=="Normal" then
  2089. raarmvis=true
  2090. rpdvis=true
  2091. for i=0,1,0.1 do
  2092. swait()
  2093. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,-.2,0),.4)
  2094. pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,-.2,0),.4)
  2095. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,1)*euler(0,0,0),.3)
  2096. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.3)
  2097. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.4,0,-1),.3)
  2098. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.6,0,-1)*euler(0,0,0),.3)
  2099. RH.C0=clerp(RH.C0,cf(.8,-1,-.4)*euler(0,1.57,0)*euler(0,1,-.1),.3)
  2100. LH.C0=clerp(LH.C0,cf(-.8,-.9,.4)*euler(0,-1.57,0)*euler(0,1,.1),.3)
  2101. end
  2102. so("203691885",pdprt19,.5,1.5)
  2103. so("81116747",pdprt19,1,1)
  2104. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*100 end
  2105. RecentEnemy.Value=nil
  2106. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,7,math.random(20,25),"Normal",RootPart,.5,2,math.random(5,8),nil,true) end)
  2107. hbwld.Parent=nil
  2108. hboxpos.Parent=hitbox
  2109. hitbox.Parent=modelzorz
  2110. hitbox.Size=vt(2,6,2)
  2111. hitboxCF=pdprt19.CFrame*cf(0,0,0)
  2112. hitbox.CFrame=hitboxCF
  2113. MagicBlock(BrickColor.new("Bright red"),pdprt17.CFrame,1,1,1,3,3,3,.2,3,pdprt17)
  2114. MagicBlock(BrickColor.new("Bright yellow"),pdprt17.CFrame,1,1,1,2.5,2.5,2.5,.1,3,pdprt17)
  2115. MagicBoom2(BrickColor.new("Bright red"),pdprt17.CFrame,.5,.5,.5,.2,.5,.2,.1,pdprt17)
  2116. num=0
  2117. for i=0,1,0.07 do
  2118. swait()
  2119. num=num+1
  2120. if num==5 then
  2121. Bullet(pdprt16)
  2122. end
  2123. if num<=5 then
  2124. MagicBlock(BrickColor.new("Bright red"),pdprt17.CFrame,1,1,1,4,4,4,.25,1)
  2125. end
  2126. hitboxCF=pdprt19.CFrame*cf(0,0,0)
  2127. hitbox.CFrame=hitboxCF
  2128. MagniDamage(hitbox,6,5,7,math.random(20,25),"Normal",false,nil,nil,nil,math.random(5,8),RootPart,.5,2)
  2129. pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,.8,0),.5)
  2130. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-1.57)*euler(.2,0,0),.3)
  2131. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,1.57),.3)
  2132. if i>=.2 then
  2133. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0)*euler(0,0,.2),.3)
  2134. else
  2135. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.8,0,1.2),.3)
  2136. end
  2137. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.4,0,-.4),.3)
  2138. RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(.2,-1.57,0),.3)
  2139. LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.3)
  2140. if RecentEnemy.Value~=nil then
  2141. Torso.Velocity=vt(0,0,0)
  2142. end
  2143. end
  2144. --con1:disconnect()
  2145. hitbox.Parent=modelzorz
  2146. hitbox.Size=vt()
  2147. hitboxweld()
  2148. hboxpos.Parent=nil
  2149. rpdvis=false
  2150. else
  2151. local refat=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2152. refat.Anchored=true
  2153. refat.CFrame=RightArm.CFrame*cf(0,-1,0)
  2154. game:GetService("Debris"):AddItem(refat,5)
  2155. for i=1,3 do
  2156. local Col="Medium blue"
  2157. if i==2 then
  2158. Col="Bright blue"
  2159. end
  2160. MagicCircle(BrickColor.new(Col),RightArm.CFrame*cf(0,-1,0),1,1,1,1*i,1*i,1*i,.08)
  2161. end
  2162. so("300915983",refat,1,.7)
  2163. for i=0,1,0.15 do
  2164. swait()
  2165. refat.CFrame=RightArm.CFrame*cf(0,-1,0)
  2166. ElecEffect(refat.CFrame,1,1,1)
  2167. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.6)*euler(.3,0,0),.4)
  2168. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.3),.4)
  2169. RW.C0=clerp(RW.C0,cf(1.2,0.5,.3)*euler(1.4,0,.2)*euler(0,1,0),.4)
  2170. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-.6)*euler(0,0,0),.4)
  2171. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.1)*euler(0,1.57,0)*euler(0,-.3,-.1),.4)
  2172. LH.C0=clerp(LH.C0,cf(-1.1,-.8,.2)*euler(0,-1.57,0)*euler(-.1,.2,.2),.4)
  2173. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2174. break
  2175. end
  2176. end
  2177. local d=0
  2178. for i=0,1,0.1 do
  2179. swait()
  2180. refat.CFrame=RightArm.CFrame*cf(0,-1-8*i,0)
  2181. if i<.7 then
  2182. MagniDamage(refat,6,5,7,math.random(10,20),"Normal",true,nil,nil,nil,math.random(4,6),RootPart,.2,2)
  2183. end
  2184. for i=1,3 do
  2185. ElecEffect2(refat.CFrame,5,5,5)
  2186. end
  2187. if d%2==0 and i<.9 then
  2188. cef=refat.CFrame*cf(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  2189. for i=1,3 do
  2190. local Col="Medium blue"
  2191. if i==2 then
  2192. Col="Bright blue"
  2193. end
  2194. MagicCircle(BrickColor.new(Col),cef,0,0,0,.5*i,.5*i,.5*i,.08)
  2195. end
  2196. end
  2197. d=d+1
  2198. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.3)*euler(.05,0,0),.3)
  2199. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.3),.3)
  2200. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.5)*euler(1.5,0,.3)*euler(0,1.57,0),.3)
  2201. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.6)*euler(0,0,0),.3)
  2202. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.1)*euler(0,1.57,0)*euler(0,-.3,-.1),.3)
  2203. LH.C0=clerp(LH.C0,cf(-1.1,-.8,.2)*euler(0,-1.57,0)*euler(-.1,.2,.2),.3)
  2204. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2205. break
  2206. end
  2207. end
  2208. refat.Parent=nil
  2209. end
  2210. attack=false
  2211. end
  2212.  
  2213. function attackthree()
  2214. attack=true
  2215. local refat=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2216. if Mode=="Normal" then
  2217. lalegvis=true
  2218. ralegvis=true
  2219. RecentEnemy.Value=nil
  2220. for i=0,1,0.2 do
  2221. swait()
  2222. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,.2),.3)
  2223. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(.2,0,0)*euler(0,0,.4),.3)
  2224. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.5,0,-1)*euler(0,1.57,0),.3)
  2225. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2226. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,0,-.3)*euler(0,-1.57,0),.3)
  2227. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2228. RH.C0=clerp(RH.C0,cf(1.1,-.8,-.2)*euler(0,1.57,0)*euler(-.2,0,.4)*euler(0,0,0),.2)
  2229. LH.C0=clerp(LH.C0,cf(-1,0,-.6)*euler(0,-1.57,0)*euler(0,0,.4)*euler(-.1,0,0),.2)
  2230. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2231. break
  2232. end
  2233. end
  2234. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*80 end
  2235. so("200632211",LeftLeg,1,.8)
  2236. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,6,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(8,10),nil,true,false,"Movement",.1,100) end)
  2237. hbwld.Parent=nil
  2238. hboxpos.Parent=hitbox
  2239. hitbox.Parent=modelzorz
  2240. hitbox.Size=vt(1.5,2.5,1.5)
  2241. hitboxCF=LeftLeg.CFrame
  2242. hitbox.CFrame=hitboxCF
  2243. RecentEnemy.Value=nil
  2244. for i=0,1,0.1 do
  2245. swait()
  2246. hitboxCF=LeftLeg.CFrame
  2247. hitbox.CFrame=hitboxCF
  2248. MagniDamage(hitbox,3,4,5,math.random(20,25),"Normal",false,nil,nil,nil,math.random(5,8),RootPart,.5,2)
  2249. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0)*euler(0,0,.4),.5)
  2250. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-.8,-.2)*euler(.2,0,0)*euler(0,0,-.4),.5)
  2251. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(1,0,-.2)*euler(0,1.57,0),.5)
  2252. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2253. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-1,0,-.5)*euler(0,0,0),.5)
  2254. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2255. RH.C0=clerp(RH.C0,cf(1.1,-1,-.4)*euler(0,1.57,0)*euler(0,0,-.1)*euler(.1,0,0),.5)
  2256. LH.C0=clerp(LH.C0,cf(-1.1,-.4,-.4)*euler(0,-1.57,0)*euler(0,0,-2)*euler(-.3,0,0),.5)
  2257. if RecentEnemy.Value~=nil then
  2258. Torso.Velocity=vt(0,0,0)
  2259. end
  2260. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2261. break
  2262. end
  2263. end
  2264. --con1:disconnect()
  2265. hitbox.Parent=modelzorz
  2266. hitbox.Size=vt()
  2267. hitboxweld()
  2268. hboxpos.Parent=nil
  2269. if RecentEnemy.Value~=nil then
  2270. for i=0,1,0.15 do
  2271. swait()
  2272. --Neck.C0=clerp(Neck.C0,necko*euler(0,.4,0),.3)
  2273. --RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,.4,0)*cf(0,0,-.4),.3)
  2274. Neck.C0=clerp(Neck.C0,necko*euler(0,-.5,0)*euler(0,0,-1.3),.3)
  2275. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(0,0,1.3)*euler(0,.5,0),.3)
  2276. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1)*euler(0,0,0),.3)
  2277. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2278. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.5)*euler(0,0,0),.3)
  2279. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2280. --RH.C0=clerp(RH.C0,cf(.6,-.7,-.4)*euler(0,1.57,0)*euler(-.5,0,0),.3)
  2281. --LH.C0=clerp(LH.C0,cf(-.3,-.4,-.7)*euler(0,-1.57,0)*euler(0,0,-.1)*euler(-.7,0,0),.3)
  2282. RH.C0=clerp(RH.C0,cf(.6,-.4,-.7)*euler(0,1.57,0)*euler(0,0,-.1)*euler(-.7,0,0),.3)
  2283. LH.C0=clerp(LH.C0,cf(-.9,-.4,-.4)*euler(0,-1.57,0)*euler(-.5,0,0),.3)
  2284. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2285. break
  2286. end
  2287. end
  2288. RecentEnemy.Value=nil
  2289. local dec=Instance.new("NumberValue",Decrease)
  2290. dec.Name="DecreaseMvmt"
  2291. dec.Value=10
  2292. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*100 end
  2293. so("200632136",LeftLeg,1,.8)
  2294. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,6,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(8,10),nil,true,false,"Movement",.1,100) end)
  2295. hbwld.Parent=nil
  2296. hboxpos.Parent=hitbox
  2297. hitbox.Parent=modelzorz
  2298. hitbox.Size=vt(1.5,2.5,1.5)
  2299. hitboxCF=LeftLeg.CFrame
  2300. hitbox.CFrame=hitboxCF
  2301. for i=0,1,0.1 do
  2302. swait()
  2303. hitboxCF=RightLeg.CFrame
  2304. hitbox.CFrame=hitboxCF
  2305. MagniDamage(hitbox,3,5,7,math.random(10,15),"Normal",false,nil,nil,nil,math.random(5,8),RootPart,.5,2)
  2306. Neck.C0=clerp(Neck.C0,necko*euler(0,-.5,0)*euler(0,0,-1),.3)
  2307. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*euler(0,0,1.3)*euler(0,1,0),.3)
  2308. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.5,0,-1)*euler(0,0,0),.3)
  2309. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2310. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.8,0,-.3)*euler(0,0,0),.3)
  2311. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2312. RH.C0=clerp(RH.C0,cf(.8,-.8,-.2)*euler(0,1.57,0)*euler(0,0,-.1)*euler(-.5,0,0),.3)
  2313. LH.C0=clerp(LH.C0,cf(-.9,-.6,-.8)*euler(0,-1.57,0)*euler(-.3,0,1.2),.3)
  2314. if RecentEnemy.Value~=nil then
  2315. Torso.Velocity=vt(0,0,0)
  2316. end
  2317. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2318. break
  2319. end
  2320. end
  2321. dec.Parent=nil
  2322. hitbox.Parent=modelzorz
  2323. hitbox.Size=vt()
  2324. hitboxweld()
  2325. hboxpos.Parent=nil
  2326. end
  2327. else
  2328. for i=0,1,0.1 do
  2329. swait()
  2330. ElecEffect(LeftArm.CFrame*cf(0,-1,0),1,1,1)
  2331. ElecEffect(RightArm.CFrame*cf(0,-1,0),1,1,1)
  2332. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.1)*euler(-.1,0,0),.3)
  2333. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(.2,0,.1),.3)
  2334. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(1.7,0,-.2)*euler(0,1.5,0),.3)
  2335. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.3)*euler(1.7,0,.2)*euler(0,-1.5,0),.3)
  2336. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.3)*euler(0,1.57,0)*euler(0,-.1,.4),.3)
  2337. LH.C0=clerp(LH.C0,cf(-1,-.8,-.1)*euler(0,-1.57,0)*euler(-.2,.4,-.1),.3)
  2338. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  2339. break
  2340. end
  2341. end
  2342. refat.Anchored=true
  2343. refat.CFrame=RootPart.CFrame*cf(0,0,-6)
  2344. game:GetService("Debris"):AddItem(refat,5)
  2345. so("300916014",refat,1,1)
  2346. MagniDamage(refat,6,6,8,math.random(20,30),"Normal",true,nil,nil,nil,math.random(4,6),RootPart,.2,2)
  2347. for i=1,3 do
  2348. local Col="Medium blue"
  2349. if i==2 then
  2350. Col="Bright blue"
  2351. end
  2352. MagicCircle(BrickColor.new(Col),refat.CFrame,3,3,3,2*i,2*i,2*i,.08)
  2353. end
  2354. end
  2355. attack=false
  2356. if Mode~="Normal" then
  2357. local d=0
  2358. for i=0,1,0.1 do
  2359. swait()
  2360. for i=1,3 do
  2361. ElecEffect2(refat.CFrame,6,6,6)
  2362. end
  2363. if d%2==0 and i<.9 then
  2364. cef=refat.CFrame*cf(math.random(-400,400)/100,math.random(-400,400)/100,math.random(-400,400)/100)
  2365. for i=1,3 do
  2366. local Col="Medium blue"
  2367. if i==2 then
  2368. Col="Bright blue"
  2369. end
  2370. MagicCircle(BrickColor.new(Col),cef,0,0,0,.5*i,.5*i,.5*i,.08)
  2371. end
  2372. end
  2373. d=d+1
  2374. end
  2375. refat.Parent=nil
  2376. end
  2377. end
  2378.  
  2379. function attackfour()
  2380. attack=true
  2381. tavis=true
  2382. laarmvis=true
  2383. raarmvis=true
  2384. lpdvis=true
  2385. rpdvis=true
  2386. for i=0,1,0.1 do
  2387. swait()
  2388. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,-.2,0),.4)
  2389. pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,-.2,0),.4)
  2390. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,0,0),.3)
  2391. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(.2,0,0)*euler(0,0,0),.3)
  2392. RW.C0=clerp(RW.C0,cf(1.5,0.5,.3)*euler(1.7,0,-.2)*euler(0,1.57,0),.3)
  2393. LW.C0=clerp(LW.C0,cf(-1.5,0.5,.3)*euler(1.7,0,.2)*euler(0,-1.57,0),.3)
  2394. RH.C0=clerp(RH.C0,cf(1.1,-.8,-.2)*euler(0,1.57,0)*euler(-.1,0,.2)*euler(0,0,0),.2)
  2395. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,.1),.2)
  2396. end
  2397. so("203691885",pdprt9,.5,1.5)
  2398. so("81116747",pdprt9,1,1)
  2399. so("203691885",pdprt19,.5,1.5)
  2400. so("81116747",pdprt19,1,1)
  2401. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*120 end
  2402. RecentEnemy.Value=nil
  2403. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,7,10,math.random(30,30),"Normal",RootPart,.5,2,math.random(5,8),nil,true) end)
  2404. hbwld.Parent=nil
  2405. hboxpos.Parent=hitbox
  2406. hitbox.Parent=modelzorz
  2407. hitbox.Size=vt(4,4,8)
  2408. hitboxCF=Torso.CFrame*cf(0,0,-2)
  2409. hitbox.CFrame=hitboxCF
  2410. --pdprt4
  2411. MagicBlock(BrickColor.new("Bright red"),pdprt7.CFrame,1,1,1,3,3,3,.2,3,pdprt7)
  2412. MagicBlock(BrickColor.new("Bright yellow"),pdprt7.CFrame,1,1,1,2.5,2.5,2.5,.1,3,pdprt7)
  2413. MagicBoom2(BrickColor.new("Bright red"),pdprt7.CFrame,.5,.5,.5,.2,.5,.2,.1,pdprt7)
  2414. MagicBlock(BrickColor.new("Bright red"),pdprt17.CFrame,1,1,1,3,3,3,.2,3,pdprt17)
  2415. MagicBlock(BrickColor.new("Bright yellow"),pdprt17.CFrame,1,1,1,2.5,2.5,2.5,.1,3,pdprt17)
  2416. MagicBoom2(BrickColor.new("Bright red"),pdprt17.CFrame,.5,.5,.5,.2,.5,.2,.1,pdprt17)
  2417. num=0
  2418. for i=0,1,0.07 do
  2419. swait()
  2420. num=num+1
  2421. if num==9 then
  2422. Bullet(pdprt4)
  2423. Bullet(pdprt16)
  2424. end
  2425. if num<=5 then
  2426. MagicBlock(BrickColor.new("Bright red"),pdprt7.CFrame,1,1,1,4,4,4,.25,1)
  2427. MagicBlock(BrickColor.new("Bright red"),pdprt17.CFrame,1,1,1,4,4,4,.25,1)
  2428. end
  2429. hitboxCF=Torso.CFrame*cf(0,0,-2)
  2430. hitbox.CFrame=hitboxCF
  2431. MagniDamage(hitbox,8,7,10,math.random(30,30),"Normal",false,nil,nil,nil,math.random(5,8),RootPart,.5,2)
  2432. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,.8,0),.5)
  2433. pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,.8,0),.5)
  2434. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,0),.5)
  2435. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(.2,0,0)*euler(0,0,0),.5)
  2436. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.7,0,-.1)*euler(0,1.57,0),.5)
  2437. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.7,0,.1)*euler(0,-1.57,0),.5)
  2438. RH.C0=clerp(RH.C0,cf(1.1,-.8,-.2)*euler(0,1.57,0)*euler(-.1,0,.2)*euler(0,0,0),.5)
  2439. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,.1),.5)
  2440. if RecentEnemy.Value~=nil then
  2441. Torso.Velocity=vt(0,0,0)
  2442. end
  2443. end
  2444. --con1:disconnect()
  2445. hitbox.Parent=modelzorz
  2446. hitbox.Size=vt()
  2447. hitboxweld()
  2448. hboxpos.Parent=nil
  2449. laarmvis=false
  2450. raarmvis=false
  2451. lalegvis=false
  2452. ralegvis=false
  2453. tavis=false
  2454. lpdvis=false
  2455. rpdvis=false
  2456. attack=false
  2457. end
  2458.  
  2459. --[[Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.1)*euler(.1,0,0),.3)
  2460. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.1),.3)
  2461. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.4,0,.5)*euler(0,-1,0),.3)
  2462. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.4,0,-.5)*euler(0,.5,0),.3)
  2463. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.1)*euler(0,1.57,0)*euler(0,-.1,.1),.3)
  2464. LH.C0=clerp(LH.C0,cf(-1,-.8,.4)*euler(0,-1.57,0)*euler(-.2,.4,.2),.3)]]
  2465.  
  2466. function eyeeffect(Part)
  2467. MagicCircle(BrickColor.new("Institutional white"),cf(Part.Position),0,0,0,.2,5,.2,.1)
  2468. MagicCircle(BrickColor.new("Institutional white"),cf(Part.Position)*euler(1.57,0,0),0,0,0,.2,5,.2,.1)
  2469. MagicCircle(BrickColor.new("Institutional white"),cf(Part.Position)*euler(0,0,1.57),0,0,0,.2,5,.2,.1)
  2470. end
  2471.  
  2472. function ChangeTarget()
  2473. attack=true
  2474. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2475. ref.Anchored=true
  2476. ref.CFrame=Head.CFrame*cf(-.25,.25,-.6)
  2477. game:GetService("Debris"):AddItem(ref,1)
  2478. local dec=Instance.new("NumberValue",Decrease)
  2479. dec.Name="DecreaseMvmt"
  2480. dec.Value=10
  2481. if AilaTarget=="None" then
  2482. local cando=true
  2483. if MMouse.Target~=nil then
  2484. if MMouse.Target.Parent:findFirstChild("Humanoid")~=nil and MMouse.Target.Parent:findFirstChild("Torso")~=nil then
  2485. if game.Players:GetPlayerFromCharacter(MMouse.Target.Parent)~=nil then
  2486. if Player.Neutral==false and game.Players:GetPlayerFromCharacter(MMouse.Target.Parent).TeamColor==Player.TeamColor then
  2487. cando=false
  2488. end
  2489. end
  2490. if cando==true then
  2491. Targ=MMouse.Target
  2492. for i=0,1,0.1 do
  2493. swait()
  2494. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.3)*euler(.2,0,0),.3)
  2495. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.6),.3)
  2496. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.4,0,.5)*euler(0,-1,0),.3)
  2497. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(2.8,0,.5)*euler(0,.5,0),.3)
  2498. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.1)*euler(0,1.57,0)*euler(0,-.1,-.2),.3)
  2499. LH.C0=clerp(LH.C0,cf(-1.2,-.8,.1)*euler(0,-1.57,0)*euler(0,.6,-.1),.3)
  2500. end
  2501. AilaTarget="Target"
  2502. AilaTarget2=Targ.Parent.Torso
  2503. eyeeffect(ref)
  2504. so("300563970",Head,1,1)
  2505. for i=0,1,0.1 do
  2506. swait()
  2507. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.6)*euler(0,0,0),.3)
  2508. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.6),.3)
  2509. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.4,0,.5)*euler(0,-1,0),.3)
  2510. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-.6)*euler(0,-1.57,0),.3)
  2511. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.1)*euler(0,1.57,0)*euler(0,-.1,-.2),.3)
  2512. LH.C0=clerp(LH.C0,cf(-1.2,-.8,.1)*euler(0,-1.57,0)*euler(0,.6,-.1),.3)
  2513. end
  2514. end
  2515. end
  2516. end
  2517. elseif AilaTarget=="Target" then
  2518. for i=0,1,0.1 do
  2519. swait()
  2520. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.3)*euler(.2,0,0),.3)
  2521. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.6),.3)
  2522. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.4,0,.5)*euler(0,-1,0),.3)
  2523. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(2.8,0,.5)*euler(0,.5,0),.3)
  2524. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.1)*euler(0,1.57,0)*euler(0,-.1,-.2),.3)
  2525. LH.C0=clerp(LH.C0,cf(-1.2,-.8,.1)*euler(0,-1.57,0)*euler(0,.6,-.1),.3)
  2526. end
  2527. AilaTarget="Nearest"
  2528. so("300563977",Head,1,1)
  2529. eyeeffect(ref)
  2530. for i=0,1,0.1 do
  2531. swait()
  2532. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.3)*euler(.2,0,0),.3)
  2533. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.6),.3)
  2534. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.4,0,.5)*euler(0,-1,0),.3)
  2535. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.8,0,.5)*euler(0,.5,0)*euler(-2,0,0),.3)
  2536. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.1)*euler(0,1.57,0)*euler(0,-.1,-.2),.3)
  2537. LH.C0=clerp(LH.C0,cf(-1.2,-.8,.1)*euler(0,-1.57,0)*euler(0,.6,-.1),.3)
  2538. end
  2539. elseif AilaTarget=="Nearest" then
  2540. for i=0,1,0.1 do
  2541. swait()
  2542. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.3)*euler(.2,0,0),.3)
  2543. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.6),.3)
  2544. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.4,0,.5)*euler(0,-1,0),.3)
  2545. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(2.8,0,.5)*euler(0,.5,0),.3)
  2546. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.1)*euler(0,1.57,0)*euler(0,-.1,-.2),.3)
  2547. LH.C0=clerp(LH.C0,cf(-1.2,-.8,.1)*euler(0,-1.57,0)*euler(0,.6,-.1),.3)
  2548. end
  2549. AilaTarget="None"
  2550. so("300563954",Head,1,1)
  2551. eyeeffect(ref)
  2552. end
  2553. dec.Parent=nil
  2554. attack=false
  2555. end
  2556.  
  2557. function aopenleftfist()
  2558. ablawld16.C0=clerp(ablawld16.C0,cf(0,-.2,0)*euler(.5,0,0),.4)
  2559. ablawld19.C0=clerp(ablawld19.C0,cf(0,-.2,0)*euler(.5,0,0),.4)
  2560. ablawld22.C0=clerp(ablawld22.C0,cf(0,-.2,0)*euler(.5,0,0),.4)
  2561. ablawld25.C0=clerp(ablawld25.C0,cf(0,-.2,0)*euler(-.3,0,0),.4)
  2562. ablawld17.C0=clerp(ablawld17.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.4)
  2563. ablawld17.C1=clerp(ablawld17.C1,cf(0,.15,.05)*euler(-1,0,0),.4)
  2564. ablawld20.C0=clerp(ablawld20.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.4)
  2565. ablawld20.C1=clerp(ablawld20.C1,cf(0,.15,.05)*euler(-1,0,0),.4)
  2566. ablawld23.C0=clerp(ablawld23.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.4)
  2567. ablawld23.C1=clerp(ablawld23.C1,cf(0,.15,.05)*euler(-1,0,0),.4)
  2568. ablawld26.C0=clerp(ablawld26.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.4)
  2569. ablawld26.C1=clerp(ablawld26.C1,cf(0,.15,.03)*euler(-.5,0,0),.4)
  2570. end
  2571.  
  2572. function acloseleftfist()
  2573. ablawld16.C0=clerp(ablawld16.C0,cf(0,-.2,0)*euler(1,0,0),.4)
  2574. ablawld19.C0=clerp(ablawld19.C0,cf(0,-.2,0)*euler(1,0,0),.4)
  2575. ablawld22.C0=clerp(ablawld22.C0,cf(0,-.2,0)*euler(1,0,0),.4)
  2576. ablawld25.C0=clerp(ablawld25.C0,cf(0,-.2,0)*euler(-.3,0,0),.4)
  2577. ablawld17.C0=clerp(ablawld17.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.4)
  2578. ablawld17.C1=clerp(ablawld17.C1,cf(0,.15,.05)*euler(-1.5,0,0),.4)
  2579. ablawld20.C0=clerp(ablawld20.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.4)
  2580. ablawld20.C1=clerp(ablawld20.C1,cf(0,.15,.05)*euler(-1.5,0,0),.4)
  2581. ablawld23.C0=clerp(ablawld23.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.4)
  2582. ablawld23.C1=clerp(ablawld23.C1,cf(0,.15,.05)*euler(-1.5,0,0),.4)
  2583. ablawld26.C0=clerp(ablawld26.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.4)
  2584. ablawld26.C1=clerp(ablawld26.C1,cf(0,.15,.03)*euler(-1,0,0),.4)
  2585. end
  2586.  
  2587. function aopenrightfist()
  2588. abrawld16.C0=clerp(abrawld16.C0,cf(0,-.2,0)*euler(.5,0,0),.4)
  2589. abrawld19.C0=clerp(abrawld19.C0,cf(0,-.2,0)*euler(.5,0,0),.4)
  2590. abrawld22.C0=clerp(abrawld22.C0,cf(0,-.2,0)*euler(.5,0,0),.4)
  2591. abrawld25.C0=clerp(abrawld25.C0,cf(0,-.2,0)*euler(-.3,0,0),.4)
  2592. abrawld17.C0=clerp(abrawld17.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.4)
  2593. abrawld17.C1=clerp(abrawld17.C1,cf(0,.15,.05)*euler(-1,0,0),.4)
  2594. abrawld20.C0=clerp(abrawld20.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.4)
  2595. abrawld20.C1=clerp(abrawld20.C1,cf(0,.15,.05)*euler(-1,0,0),.4)
  2596. abrawld23.C0=clerp(abrawld23.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.4)
  2597. abrawld23.C1=clerp(abrawld23.C1,cf(0,.15,.05)*euler(-1,0,0),.4)
  2598. abrawld26.C0=clerp(abrawld26.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.4)
  2599. abrawld26.C1=clerp(abrawld26.C1,cf(0,.15,.03)*euler(-.5,0,0),.4)
  2600. end
  2601.  
  2602. function acloserightfist()
  2603. abrawld16.C0=clerp(abrawld16.C0,cf(0,-.2,0)*euler(1,0,0),.4)
  2604. abrawld19.C0=clerp(abrawld19.C0,cf(0,-.2,0)*euler(1,0,0),.4)
  2605. abrawld22.C0=clerp(abrawld22.C0,cf(0,-.2,0)*euler(1,0,0),.4)
  2606. abrawld25.C0=clerp(abrawld25.C0,cf(0,-.2,0)*euler(-.3,0,0),.4)
  2607. abrawld17.C0=clerp(abrawld17.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.4)
  2608. abrawld17.C1=clerp(abrawld17.C1,cf(0,.15,.05)*euler(-1.5,0,0),.4)
  2609. abrawld20.C0=clerp(abrawld20.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.4)
  2610. abrawld20.C1=clerp(abrawld20.C1,cf(0,.15,.05)*euler(-1.5,0,0),.4)
  2611. abrawld23.C0=clerp(abrawld23.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.4)
  2612. abrawld23.C1=clerp(abrawld23.C1,cf(0,.15,.05)*euler(-1.5,0,0),.4)
  2613. abrawld26.C0=clerp(abrawld26.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.4)
  2614. abrawld26.C1=clerp(abrawld26.C1,cf(0,.15,.03)*euler(-1,0,0),.4)
  2615. end
  2616.  
  2617. function LaserShot()
  2618. ailaattack=true
  2619. for i=0,1,0.1 do
  2620. swait()
  2621. acloseleftfist()
  2622. hwld1.C0=clerp(hwld1.C0,euler(.3,0,3.14)*euler(0,.8,0)*cf(0,2.5,.3),.3)
  2623. abtwld1.C1=clerp(abtwld1.C1,euler(0,.8,0),.3)
  2624. abrawld2.C0=clerp(abrawld2.C0,euler(0,0,0)*cf(0,0,0),.2)
  2625. abrawld8.C0=clerp(abrawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(-.3,0,-.4),.2)
  2626. abrawld10.C0=clerp(abrawld10.C0,euler(0,1.2,0)*cf(0,0,0),.2)
  2627. ablawld2.C0=clerp(ablawld2.C0,euler(0,0,-.5)*cf(0,0,0),.2)
  2628. ablawld8.C0=clerp(ablawld8.C0,euler(3.14,-.2,0)*cf(0,.9,0)*euler(.2,0,-.5),.2)
  2629. ablawld10.C0=clerp(ablawld10.C0,euler(0,1.2,0)*cf(0,0,0),.2)
  2630. abw1wld3.C0=clerp(abw1wld3.C0,euler(0,-.8,0)*cf(0,-.6,0)*euler(-1.6,0,0),.2)
  2631. abgy.cframe=cf(abw1prt11.Position,AilaTarget2.Position)*euler(0,0,3.14)
  2632. end
  2633. local cylind=part(3,ailabot,0,.5,BrickColor.new("Medium blue"),"Effect",vt())
  2634. cylind.Anchored=true
  2635. cylind.CFrame=abw1prt11.CFrame
  2636. local cmsh=mesh("CylinderMesh",cylind,"","",vt(0,0,0),vt(1,1,1))
  2637. game:GetService("Debris"):AddItem(cylind,10)
  2638. local ceef=cf(abw1prt11.Position,AilaTarget2.Position)
  2639. so("169380469",abw1prt11,1,2)
  2640. for i=0,2,0.1 do
  2641. swait()
  2642. if i<1 then
  2643. ceef=cf(abw1prt11.Position,AilaTarget2.Position)
  2644. abgy.cframe=cf(abw1prt11.Position,AilaTarget2.Position)*euler(0,0,3.14)
  2645. end
  2646. MagicCircle(BrickColor.new("Medium blue"),abw1prt11.CFrame,0,0,0,3,3,3,.2,ailabot)
  2647. MagicCircle2(BrickColor.new("Bright blue"),abw1prt11.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,6,0),1,1,1,0,0,0,.1)
  2648. --abgy.cframe=cf(abw1prt11.Position,AilaTarget2.Position)*euler(0,0,3.14)
  2649. local hit,pos=rayCast(abw1prt11.Position,ceef.lookVector,999,Character)
  2650. local mag=(abw1prt11.Position-pos).magnitude
  2651. cylind.CFrame=CFrame.new((abw1prt11.Position+pos)/2,pos)*angles(1.57,0,0)
  2652. if i<1 then
  2653. cmsh.Scale=vt(8-5*i,mag*5,8-5*i)
  2654. else
  2655. cmsh.Scale=vt(3,mag*5,3)
  2656. end
  2657. end
  2658. cylind.Parent=nil
  2659. local hit,pos=rayCast(abw1prt11.Position,ceef.lookVector,999,Character)
  2660. local mag=(abw1prt11.Position-pos).magnitude
  2661. if pos~=nil then
  2662. so("300916038",abw1prt11,1,1)
  2663. MagicCircle(BrickColor.new("Medium blue"),abw1prt11.CFrame,6,6,6,3,3,3,.08,ailabot)
  2664. MagicHead(BrickColor.new("Medium blue"),CFrame.new((abw1prt11.Position+pos)/2,pos)*angles(1.57,0,0),3,mag*5,3,1,1,1,.1)
  2665. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2666. ref.Anchored=true
  2667. ref.CFrame=cf(pos)
  2668. game:GetService("Debris"):AddItem(ref,1)
  2669. so("300916057",ref,1,1)
  2670. MagniDamage(ref,10,5,7,math.random(30,40),"Knockdown2",true,"Movement",.2,100,math.random(3,4),ref,0,1)
  2671. for i=1,3 do
  2672. MagicCircle(BrickColor.new("Medium blue"),cf(ref.Position),5,5,5,4*i,4*i,4*i,.08)
  2673. end
  2674. end
  2675. for i=0,1,0.1 do
  2676. swait()
  2677. aopenleftfist()
  2678. hwld1.C0=clerp(hwld1.C0,euler(.3,0,3.14)*euler(0,-.2,0)*cf(0,2.5,.3),.3)
  2679. abtwld1.C1=clerp(abtwld1.C1,euler(0,-.2,0),.3)
  2680. abrawld2.C0=clerp(abrawld2.C0,euler(0,0,0)*cf(0,0,0),.2)
  2681. abrawld8.C0=clerp(abrawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(-.1,0,-.3),.2)
  2682. abrawld10.C0=clerp(abrawld10.C0,euler(0,1,0)*cf(0,0,0),.2)
  2683. ablawld2.C0=clerp(ablawld2.C0,euler(0,0,-.2)*cf(0,0,0),.2)
  2684. ablawld8.C0=clerp(ablawld8.C0,euler(3.14,-.2,0)*cf(0,.9,0)*euler(.1,0,-.2),.2)
  2685. ablawld10.C0=clerp(ablawld10.C0,euler(0,1,0)*cf(0,0,0),.2)
  2686. abw1wld3.C0=clerp(abw1wld3.C0,euler(0,.2,0)*cf(0,-.6,0)*euler(-1.6,0,0),.2)
  2687. end
  2688. ailaattack=false
  2689. end
  2690.  
  2691. --[[abtwld1.C1=clerp(abtwld1.C1,euler(0,0,0),.3)
  2692. hwld1.C0=clerp(hwld1.C0,euler(.3,0,3.14)*cf(0,2.5,.3),.3)
  2693. abrawld2.C0=clerp(abrawld2.C0,euler(0,0,0)*cf(0,0,0),.3)
  2694. abrawld8.C0=clerp(abrawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(-.1,0,0),.3)
  2695. abrawld10.C0=clerp(abrawld10.C0,euler(0,.6,0)*cf(0,0,0),.3)
  2696. ablawld2.C0=clerp(ablawld2.C0,euler(0,0,0)*cf(0,0,0),.3)
  2697. ablawld8.C0=clerp(ablawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(.1,0,-.2),.3)
  2698. ablawld10.C0=clerp(ablawld10.C0,euler(0,.2,0)*cf(0,0,0),.3)
  2699. abw1wld3.C0=clerp(abw1wld3.C0,euler(0,0,0)*cf(0,-.6,0)*euler(-1.6,0,0),.3)
  2700. abw2wld1.C0=clerp(abw2wld1.C0,euler(0,0,0)*cf(0,-.2,-.4),.3)
  2701. abw2wld5.C0=clerp(abw2wld5.C0,euler(0,0,0)*cf(.2,-.2,0),.3)
  2702. abw2wld6.C0=clerp(abw2wld6.C0,euler(0,0,0)*cf(-.2,-.2,0),.3)]]
  2703.  
  2704. function QuadBarrage()
  2705. ailaattack=true
  2706. for i=0,1,0.1 do
  2707. swait()
  2708. abgy.cframe=cf(abw2prt4.Position,AilaTarget2.Position)*euler(0,0,3.14)
  2709. abtwld1.C1=clerp(abtwld1.C1,euler(0,-.3,0),.3)
  2710. hwld1.C0=clerp(hwld1.C0,euler(.2,0,3.14)*euler(0,-.3,0)*cf(0,2.5,.3),.3)
  2711. abrawld2.C0=clerp(abrawld2.C0,euler(0,0,.4)*cf(0,0,0),.3)
  2712. abrawld8.C0=clerp(abrawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(0,0,.8)*euler(0,-.2,0)*euler(-1.1,0,0),.3)
  2713. --abrawld9.C0=clerp(abrawld9.C0,euler(1.57,0,0)*cf(0,-.9,0),.3)
  2714. abrawld9.C0=clerp(abrawld9.C0,euler(1.57,0,0)*euler(0,.4,0)*cf(0,-.9,0),.3)
  2715. abrawld10.C0=clerp(abrawld10.C0,euler(0,.2,0)*cf(0,0,0),.3)
  2716. ablawld2.C0=clerp(ablawld2.C0,euler(0,0,0)*cf(0,0,0),.3)
  2717. ablawld8.C0=clerp(ablawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(.3,0,-.4),.3)
  2718. ablawld10.C0=clerp(ablawld10.C0,euler(0,.8,0)*cf(0,0,0),.3)
  2719. abw1wld3.C0=clerp(abw1wld3.C0,euler(0,0,0)*cf(0,-.6,0)*euler(-1.6,0,0),.3)
  2720. abw2wld1.C0=clerp(abw2wld1.C0,euler(0,0,0)*cf(0,-.2,-.4),.3)
  2721. abw2wld5.C0=clerp(abw2wld5.C0,euler(0,0,0)*cf(.2,-.2,0),.3)
  2722. abw2wld6.C0=clerp(abw2wld6.C0,euler(0,0,0)*cf(-.2,-.2,0),.3)
  2723. end
  2724. OldPos=AilaTarget2.Position
  2725. for i=1,4 do
  2726. local tpart=abw2prt10
  2727. if i==2 then
  2728. tpart=abw2prt11
  2729. elseif i==3 then
  2730. tpart=abw2prt12
  2731. elseif i==4 then
  2732. tpart=abw2prt13
  2733. end
  2734. spread=vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)*(tpart.Position-OldPos).magnitude/100
  2735. local ceef=cf((tpart.Position+OldPos)/2,OldPos+spread)
  2736. --local ceef=cf(tpart.Position,AilaTarget2.Position)
  2737. local hit,pos=rayCast(tpart.Position,ceef.lookVector,999,Character)
  2738. local mag=(tpart.Position-pos).magnitude
  2739. if pos~=nil then
  2740. so("87015121",tpart,.6,1)
  2741. MagicCircle(BrickColor.new("Bright yellow"),tpart.CFrame,2,2,2,2,2,2,.1,ailabot)
  2742. MagicHead(BrickColor.new("Bright yellow"),CFrame.new((tpart.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,.4,.4,.4,.1)
  2743. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2744. ref.Anchored=true
  2745. ref.CFrame=cf(pos)
  2746. game:GetService("Debris"):AddItem(ref,1)
  2747. so("172146984",ref,.4,1.4) --huge explosion
  2748. so("163573436",ref,.4,1)
  2749. MagniDamage(ref,6,4,5,0,"Normal",true,nil,nil,nil,math.random(1,3),ref,0,1)
  2750. for i=1,2 do
  2751. MagicBlock(BrickColor.new("Bright yellow"),cf(ref.Position),1,1,1,2*i,2*i,2*i,.12,4)
  2752. end
  2753. end
  2754. swait(5)
  2755. end
  2756. --[[for i=0,1,0.2 do
  2757. swait()
  2758. abgy.cframe=cf(abw2prt4.Position,AilaTarget2.Position)*euler(0,0,3.14)
  2759. abtwld1.C1=clerp(abtwld1.C1,euler(0,-.1,0),.4)
  2760. hwld1.C0=clerp(hwld1.C0,euler(.3,0,3.14)*euler(0,-.1,0)*cf(0,2.5,.3),.4)
  2761. abrawld2.C0=clerp(abrawld2.C0,euler(0,0,.3)*cf(0,0,0),.4)
  2762. abrawld8.C0=clerp(abrawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(0,0,.6)*euler(0,-.2,0)*euler(-1.1,0,0),.4)
  2763. --abrawld9.C0=clerp(abrawld9.C0,euler(1.57,0,0)*cf(0,-.9,0),.3)
  2764. abrawld9.C0=clerp(abrawld9.C0,euler(1.57,0,0)*euler(0,.4,0)*cf(0,-.9,0),.4)
  2765. abrawld10.C0=clerp(abrawld10.C0,euler(0,.8,0)*cf(0,0,0),.4)
  2766. end]]
  2767. abrawld9.C0=euler(1.57,0,0)*cf(0,-.9,0)
  2768. ailaattack=false
  2769. end
  2770.  
  2771. function QuadBurst()
  2772. ailaattack=true
  2773. for i=0,1,0.1 do
  2774. swait()
  2775. abgy.cframe=cf(abw2prt4.Position,AilaTarget2.Position)*euler(0,0,3.14)
  2776. abtwld1.C1=clerp(abtwld1.C1,euler(0,-.3,0),.3)
  2777. hwld1.C0=clerp(hwld1.C0,euler(.2,0,3.14)*euler(0,-.3,0)*cf(0,2.5,.3),.3)
  2778. abrawld2.C0=clerp(abrawld2.C0,euler(0,0,.4)*cf(0,0,0),.3)
  2779. abrawld8.C0=clerp(abrawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(0,0,.8)*euler(0,-.2,0)*euler(-1.1,0,0),.3)
  2780. --abrawld9.C0=clerp(abrawld9.C0,euler(1.57,0,0)*cf(0,-.9,0),.3)
  2781. abrawld9.C0=clerp(abrawld9.C0,euler(1.57,0,0)*euler(0,.4,0)*cf(0,-.9,0),.3)
  2782. abrawld10.C0=clerp(abrawld10.C0,euler(0,.2,0)*cf(0,0,0),.3)
  2783. ablawld2.C0=clerp(ablawld2.C0,euler(0,0,0)*cf(0,0,0),.3)
  2784. ablawld8.C0=clerp(ablawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(.3,0,-.4),.3)
  2785. ablawld10.C0=clerp(ablawld10.C0,euler(0,.8,0)*cf(0,0,0),.3)
  2786. abw1wld3.C0=clerp(abw1wld3.C0,euler(0,0,0)*cf(0,-.6,0)*euler(-1.6,0,0),.3)
  2787. abw2wld1.C0=clerp(abw2wld1.C0,euler(0,0,0)*cf(0,-.2,-.4),.3)
  2788. abw2wld5.C0=clerp(abw2wld5.C0,euler(0,0,0)*cf(.2,-.2,0),.3)
  2789. abw2wld6.C0=clerp(abw2wld6.C0,euler(0,0,0)*cf(-.2,-.2,0),.3)
  2790. end
  2791. OldPos=AilaTarget2.Position
  2792. for i=1,4 do
  2793. local tpart=abw2prt10
  2794. if i==2 then
  2795. tpart=abw2prt11
  2796. elseif i==3 then
  2797. tpart=abw2prt12
  2798. elseif i==4 then
  2799. tpart=abw2prt13
  2800. end
  2801. spread=vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)*(tpart.Position-OldPos).magnitude/100
  2802. local ceef=cf((tpart.Position+OldPos)/2,OldPos+spread)
  2803. --local ceef=cf(tpart.Position,AilaTarget2.Position)
  2804. local hit,pos=rayCast(tpart.Position,ceef.lookVector,999,Character)
  2805. local mag=(tpart.Position-pos).magnitude
  2806. if pos~=nil then
  2807. so("87015121",tpart,.6,1)
  2808. MagicCircle(BrickColor.new("Bright yellow"),tpart.CFrame,2,2,2,2,2,2,.1,ailabot)
  2809. MagicHead(BrickColor.new("Bright yellow"),CFrame.new((tpart.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,.4,.4,.4,.1)
  2810. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2811. ref.Anchored=true
  2812. ref.CFrame=cf(pos)
  2813. game:GetService("Debris"):AddItem(ref,1)
  2814. so("172146984",ref,.4,1.4) --huge explosion
  2815. so("163573436",ref,.4,1)
  2816. MagniDamage(ref,6,5,8,0,"Normal",true,nil,nil,nil,math.random(3,6),ref,0,1)
  2817. for i=1,2 do
  2818. MagicBlock(BrickColor.new("Bright yellow"),cf(ref.Position),1,1,1,2*i,2*i,2*i,.12,4)
  2819. end
  2820. end
  2821. end
  2822. for i=0,1,0.1 do
  2823. swait()
  2824. abgy.cframe=cf(abw2prt4.Position,AilaTarget2.Position)*euler(0,0,3.14)
  2825. abtwld1.C1=clerp(abtwld1.C1,euler(0,.1,0),.4)
  2826. hwld1.C0=clerp(hwld1.C0,euler(.3,0,3.14)*euler(0,.1,0)*cf(0,2.5,.3),.4)
  2827. abrawld2.C0=clerp(abrawld2.C0,euler(0,0,.3)*cf(0,0,0),.4)
  2828. abrawld8.C0=clerp(abrawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(0,0,.6)*euler(0,-.2,0)*euler(-1.1,0,0),.4)
  2829. --abrawld9.C0=clerp(abrawld9.C0,euler(1.57,0,0)*cf(0,-.9,0),.3)
  2830. abrawld9.C0=clerp(abrawld9.C0,euler(1.57,0,0)*euler(0,.4,0)*cf(0,-.9,0),.4)
  2831. abrawld10.C0=clerp(abrawld10.C0,euler(0,.8,0)*cf(0,0,0),.4)
  2832. end
  2833. abrawld9.C0=euler(1.57,0,0)*cf(0,-.9,0)
  2834. ailaattack=false
  2835. end
  2836.  
  2837. function SatelliteShot()
  2838. ailaattack=true
  2839. for i=0,1,0.1 do
  2840. swait()
  2841. pos4=vt(AilaTarget2.Position.X,abtprt4.Position.Y,AilaTarget2.Position.Z)
  2842. abgy.cframe=cf(abtprt4.Position,pos4)*euler(0,0,3.14)
  2843. acloseleftfist()
  2844. abtwld1.C1=clerp(abtwld1.C1,euler(0,0,0),.3)
  2845. hwld1.C0=clerp(hwld1.C0,euler(.1,0,3.14)*cf(0,2.5,.3),.3)
  2846. abrawld2.C0=clerp(abrawld2.C0,euler(0,0,0)*cf(0,0,0),.3)
  2847. abrawld8.C0=clerp(abrawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(-.3,0,-.2),.3)
  2848. abrawld10.C0=clerp(abrawld10.C0,euler(0,1.2,0)*cf(0,0,0),.3)
  2849. ablawld2.C0=clerp(ablawld2.C0,euler(0,0,1.1)*cf(0,0,0),.3)
  2850. ablawld8.C0=clerp(ablawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(.1,0,.8),.3)
  2851. ablawld10.C0=clerp(ablawld10.C0,euler(0,1,0)*cf(0,0,0),.3)
  2852. abw1wld3.C0=clerp(abw1wld3.C0,euler(0,0,0)*cf(0,-.6,0)*euler(0,0,0),.3)
  2853. abw2wld1.C0=clerp(abw2wld1.C0,euler(0,0,0)*cf(0,-.2,-.4),.3)
  2854. abw2wld5.C0=clerp(abw2wld5.C0,euler(0,0,0)*cf(.2,-.2,0),.3)
  2855. abw2wld6.C0=clerp(abw2wld6.C0,euler(0,0,0)*cf(-.2,-.2,0),.3)
  2856. end
  2857. for i=0,1,0.1 do
  2858. swait()
  2859. pos4=vt(AilaTarget2.Position.X,abtprt4.Position.Y,AilaTarget2.Position.Z)
  2860. abgy.cframe=cf(abtprt4.Position,pos4)*euler(0,0,3.14)
  2861. aopenleftfist()
  2862. abtwld1.C1=clerp(abtwld1.C1,euler(0,0,0),.3)
  2863. hwld1.C0=clerp(hwld1.C0,euler(.1,0,3.14)*cf(0,2.5,.3),.3)
  2864. abrawld2.C0=clerp(abrawld2.C0,euler(0,0,0)*cf(0,0,0),.3)
  2865. abrawld8.C0=clerp(abrawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(-.3,0,-.2),.3)
  2866. abrawld10.C0=clerp(abrawld10.C0,euler(0,1.2,0)*cf(0,0,0),.3)
  2867. ablawld2.C0=clerp(ablawld2.C0,euler(0,0,1.1)*cf(0,0,0),.3)
  2868. ablawld8.C0=clerp(ablawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(.1,0,-.2),.3)
  2869. ablawld10.C0=clerp(ablawld10.C0,euler(0,.4,0)*cf(0,0,0),.3)
  2870. end
  2871. for i=1,5 do
  2872. if AilaTarget2~=nil then
  2873. so("300916038",abw1prt11,1,1)
  2874. local hit,pos=rayCast(abw1prt11.Position,(abw1prt11.CFrame*euler(-1.57,0,0)).lookVector,300,Character)
  2875. local mag=(abw1prt11.Position-pos).magnitude
  2876. MagicCircle(BrickColor.new("Medium blue"),abw1prt11.CFrame,6,6,6,3,3,3,.08,ailabot)
  2877. MagicHead(BrickColor.new("Medium blue"),CFrame.new((abw1prt11.Position+pos)/2,pos)*angles(1.57,0,0),6,mag*5,6,-.5,1,-.5,.1)
  2878. swait(5)
  2879. cf2=AilaTarget2.Position+vt(math.random(-1500,1500)/100,100,math.random(-1500,1500)/100)
  2880. local hit2,pos2=rayCast(cf2,(CFrame.new(cf2,cf2 - Vector3.new(0,1,0))).lookVector,999,Character)
  2881. if hit2~=nil then
  2882. local d1=part(3,workspace,0,.5,BrickColor.new("Medium blue"),"Effect",vt())
  2883. d1.Anchored=true
  2884. d1.CFrame=cf(pos2)
  2885. game:GetService("Debris"):AddItem(d1,5)
  2886. msh=mesh("CylinderMesh",d1,"nil","nil",vt(0,0,0),vt(80,5,80))
  2887. d2=d1:Clone()
  2888. d2.Parent=d1
  2889. d2.CFrame=cf(d1.Position)
  2890. d2.BrickColor=BrickColor.new("White")
  2891. d2.Mesh.Scale=vt(0,5,0)
  2892. table.insert(Effects,{d1,"SatelliteStrike",d2,d2.Mesh,0})
  2893. end
  2894. end
  2895. end
  2896. ailaattack=false
  2897. end
  2898.  
  2899. function do1()
  2900. if attack==true then return end
  2901. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  2902. local manacost=15
  2903. if Mode~="Normal" then
  2904. manacost=10
  2905. end
  2906. if cooldowns[1]>=cooldownmax and mana.Value>=manacost then
  2907. --if true then
  2908. attack=true
  2909. cooldowns[1]=0
  2910. if Mode=="Normal" then
  2911. tavis=true
  2912. aspear11=part(3,modelzorz,0,0,BrickColor.new("White"),"Aila Spear11",vt())
  2913. aspear12=part(3,modelzorz,.5,0,BrickColor.new("White"),"Aila Spear12",vt())
  2914. aspear13=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Aila Spear13",vt())
  2915. aspear14=part(3,modelzorz,0,0,BrickColor.new("White"),"Aila Spear14",vt())
  2916. aspear21=part(3,modelzorz,0,0,BrickColor.new("White"),"Aila Spear21",vt())
  2917. aspear22=part(3,modelzorz,.5,0,BrickColor.new("White"),"Aila Spear22",vt())
  2918. aspear23=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Aila Spear23",vt())
  2919. aspear24=part(3,modelzorz,0,0,BrickColor.new("White"),"Aila Spear24",vt())
  2920. aspear31=part(3,modelzorz,0,0,BrickColor.new("White"),"Aila Spear31",vt())
  2921. aspear32=part(3,modelzorz,.5,0,BrickColor.new("White"),"Aila Spear32",vt())
  2922. aspear33=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Aila Spear33",vt())
  2923. aspear34=part(3,modelzorz,0,0,BrickColor.new("White"),"Aila Spear34",vt())
  2924. aspearmsh11=mesh("SpecialMesh",aspear11,"FileMesh","9756362",vt(0,0,0),vt(.7,.7,.2))
  2925. aspearmsh12=mesh("SpecialMesh",aspear12,"Wedge","nil",vt(0,0,0),vt(1,3,10))
  2926. aspearmsh13=mesh("SpecialMesh",aspear13,"Wedge","nil",vt(0,0,0),vt(1.1,2.5,9))
  2927. aspearmsh14=mesh("SpecialMesh",aspear14,"FileMesh","9756362",vt(0,0,0),vt(.5,.5,.5))
  2928. aspearmsh21=mesh("SpecialMesh",aspear21,"FileMesh","9756362",vt(0,0,0),vt(.7,.7,.2))
  2929. aspearmsh22=mesh("SpecialMesh",aspear22,"Wedge","nil",vt(0,0,0),vt(1,3,10))
  2930. aspearmsh23=mesh("SpecialMesh",aspear23,"Wedge","nil",vt(0,0,0),vt(1.1,2.5,9))
  2931. aspearmsh24=mesh("SpecialMesh",aspear24,"FileMesh","9756362",vt(0,0,0),vt(.5,.5,.5))
  2932. aspearmsh31=mesh("SpecialMesh",aspear31,"FileMesh","9756362",vt(0,0,0),vt(.7,.7,.2))
  2933. aspearmsh32=mesh("SpecialMesh",aspear32,"Wedge","nil",vt(0,0,0),vt(1,3,10))
  2934. aspearmsh33=mesh("SpecialMesh",aspear33,"Wedge","nil",vt(0,0,0),vt(1.1,2.5,9))
  2935. aspearmsh34=mesh("SpecialMesh",aspear34,"FileMesh","9756362",vt(0,0,0),vt(.5,.5,.5))
  2936. aspearwld11=weld(aspear11,aspear11,RootPart,cf(0,-4,0)*euler(0,0,-.1))
  2937. aspearwld12=weld(aspear12,aspear12,aspear11,euler(0,0,0)*cf(0,0,1))
  2938. aspearwld13=weld(aspear13,aspear13,aspear12,euler(0,0,0)*cf(0,-.05,-.1))
  2939. aspearwld14=weld(aspear14,aspear14,aspear11,euler(0,0,0)*cf(0,0,.2))
  2940. aspearwld21=weld(aspear21,aspear21,RootPart,cf(0,-4,0)*euler(0,0,-.1+(2.093*1)))
  2941. aspearwld22=weld(aspear22,aspear22,aspear21,euler(0,0,0)*cf(0,0,1))
  2942. aspearwld23=weld(aspear23,aspear23,aspear22,euler(0,0,0)*cf(0,-.05,-.1))
  2943. aspearwld24=weld(aspear24,aspear24,aspear21,euler(0,0,0)*cf(0,0,.2))
  2944. aspearwld31=weld(aspear31,aspear31,RootPart,cf(0,-4,0)*euler(0,0,-.1+(2.093*2)))
  2945. aspearwld32=weld(aspear32,aspear32,aspear31,euler(0,0,0)*cf(0,0,1))
  2946. aspearwld33=weld(aspear33,aspear33,aspear32,euler(0,0,0)*cf(0,-.05,-.1))
  2947. aspearwld34=weld(aspear34,aspear34,aspear31,euler(0,0,0)*cf(0,0,.2))
  2948. Clone()
  2949. mana.Value=mana.Value-15
  2950. MagicCircle(BrickColor.new("Bright blue"),aspear12.CFrame,3,3,8,1,1,1,.05)
  2951. MagicCircle(BrickColor.new("Bright blue"),aspear22.CFrame,3,3,8,1,1,1,.05)
  2952. MagicCircle(BrickColor.new("Bright blue"),aspear32.CFrame,3,3,8,1,1,1,.05)
  2953. so("299440437",RootPart,1,1)
  2954. for i=0,1,0.1 do
  2955. swait()
  2956. ElecEffect(aspear12.CFrame,2,2,2)
  2957. ElecEffect(aspear22.CFrame,2,2,2)
  2958. ElecEffect(aspear32.CFrame,2,2,2)
  2959. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1)*euler(0,0,0),.3)
  2960. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,1),.3)
  2961. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.4,0,-1)*euler(0,1.3,0),.3)
  2962. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.5)*euler(0,0,0),.3)
  2963. RH.C0=clerp(RH.C0,cf(.9,-.9,0)*euler(0,1.57,0)*euler(0,-1,-.1),.3)
  2964. LH.C0=clerp(LH.C0,cf(-1,-.8,.4)*euler(0,-1.57,0)*euler(-.3,.5,.2),.3)
  2965. if Stagger.Value==true or Stun.Value>=StunT.Value then
  2966. break
  2967. end
  2968. end
  2969. Clone()
  2970. so("299439036",aspear12,1,1)
  2971. so("299439036",aspear22,1,1)
  2972. so("299439036",aspear32,1,1)
  2973. for i=0,1,0.1 do
  2974. swait()
  2975. ElecEffect2(aspear12.CFrame,2,2,2)
  2976. ElecEffect2(aspear22.CFrame,2,2,2)
  2977. ElecEffect2(aspear32.CFrame,2,2,2)
  2978. MagniDamage(aspear12,4,6,8,math.random(30,40),"Normal",false,"Movement",.4,100,math.random(2,5),RootPart,.3,2)
  2979. MagniDamage(aspear22,4,6,8,math.random(30,40),"Normal",false,"Movement",.4,100,math.random(2,5),RootPart,.3,2)
  2980. MagniDamage(aspear32,4,6,8,math.random(30,40),"Normal",false,"Movement",.4,100,math.random(2,5),RootPart,.3,2)
  2981. --MagicCircle(BrickColor.new("Bright blue"),cf(aspear12.Position),1,1,1,1,1,1,.1)
  2982. --[[aspearwld11=weld(aspear11,aspear11,RootPart,cf(0,-4,0)*euler(0,0,-.1))
  2983. aspearwld21=weld(aspear21,aspear21,RootPart,cf(0,-4,0)*euler(0,0,-.1+(2.093*1)))
  2984. aspearwld31=weld(aspear31,aspear31,RootPart,cf(0,-4,0)*euler(0,0,-.1+(2.093*2)))]]
  2985. aspearwld11.C0=clerp(aspearwld11.C0,euler(.4,0,0)*cf(0,-1.5,15)*euler(0,0,1.2),.35)
  2986. aspearwld21.C0=clerp(aspearwld21.C0,euler(.4,0,0)*cf(0,-1.5,15)*euler(0,0,1.2+(2.093*1)),.35)
  2987. aspearwld31.C0=clerp(aspearwld31.C0,euler(.4,0,0)*cf(0,-1.5,15)*euler(0,0,1.2+(2.093*2)),.35)
  2988. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1)*euler(0,0,0),.3)
  2989. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,1),.3)
  2990. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,0,1)*euler(0,1.3,0),.3)
  2991. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.7)*euler(0,0,0),.3)
  2992. RH.C0=clerp(RH.C0,cf(.9,-.9,0)*euler(0,1.57,0)*euler(0,-1,-.1),.3)
  2993. LH.C0=clerp(LH.C0,cf(-1,-.8,.4)*euler(0,-1.57,0)*euler(-.3,.5,.2),.3)
  2994. if Stagger.Value==true or Stun.Value>=StunT.Value then
  2995. break
  2996. end
  2997. end
  2998. MagicCircle(BrickColor.new("Bright blue"),aspear12.CFrame,3,3,8,1,1,1,.05)
  2999. MagicCircle(BrickColor.new("Bright blue"),aspear22.CFrame,3,3,8,1,1,1,.05)
  3000. MagicCircle(BrickColor.new("Bright blue"),aspear32.CFrame,3,3,8,1,1,1,.05)
  3001. aspear11.Parent=nil
  3002. aspear12.Parent=nil
  3003. aspear13.Parent=nil
  3004. aspear14.Parent=nil
  3005. aspear21.Parent=nil
  3006. aspear22.Parent=nil
  3007. aspear23.Parent=nil
  3008. aspear24.Parent=nil
  3009. aspear31.Parent=nil
  3010. aspear32.Parent=nil
  3011. aspear33.Parent=nil
  3012. aspear34.Parent=nil
  3013. else
  3014. mana.Value=mana.Value-10
  3015. for i=0,1,0.1 do
  3016. swait()
  3017. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.2)*euler(.3,0,0),.3)
  3018. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.6),.3)
  3019. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(.8,0,-.5)*euler(0,.5,0),.3)
  3020. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(.8,0,.5)*euler(0,-.5,0),.3)
  3021. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.1)*euler(0,1.57,0)*euler(0,-.6,.1),.3)
  3022. LH.C0=clerp(LH.C0,cf(-1,-.8,.4)*euler(0,-1.57,0)*euler(-.1,.4,.2),.3)
  3023. end
  3024. local refat=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  3025. refat.Anchored=true
  3026. refat.CFrame=LeftArm.CFrame*cf(0,-1.5,0)
  3027. game:GetService("Debris"):AddItem(refat,5)
  3028. for i=1,3 do
  3029. local Col="Bright blue"
  3030. MagicCircle(BrickColor.new(Col),refat.CFrame,1,1,1,1*i,1*i,1*i,.08)
  3031. end
  3032. tehcf=cf(refat.Position,MMouse.Hit.p)
  3033. so("301031757",refat,1,1)
  3034. RecentEnemy.Value=nil
  3035. local dosound=false
  3036. for i=0,1,0.1 do
  3037. swait()
  3038. if RecentEnemy.Value~=nil then
  3039. cooldowns[1]=80
  3040. mana.Value=mana.Value+math.random(1,2)
  3041. if dosound==false then
  3042. dosound=true
  3043. so("301033949",refat,1,1)
  3044. end
  3045. end
  3046. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.6)*euler(0,0,0),.3)
  3047. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.6),.3)
  3048. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,0,-.5)*euler(0,0,0),.3)
  3049. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-.6)*euler(0,0,0),.3)
  3050. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.1)*euler(0,1.57,0)*euler(0,-.1,-.2),.3)
  3051. LH.C0=clerp(LH.C0,cf(-1.2,-.8,.1)*euler(0,-1.57,0)*euler(0,.6,-.1),.3)
  3052. MagniDamage(refat,4,4,5,0,"Normal",true,nil,nil,nil,math.random(4,6),RootPart,.2,2)
  3053. refat.CFrame=tehcf*cf(0,0,-50*i)
  3054. for i=1,3 do
  3055. ElecEffect2(refat.CFrame,4,4,4)
  3056. end
  3057. duhcf=refat.CFrame*cf(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
  3058. for i=1,3 do
  3059. if RecentEnemy.Value==nil then
  3060. MagicCircle(BrickColor.new("Bright blue"),duhcf,1,1,1,.5*i,.5*i,.5*i,.15/i)
  3061. else
  3062. MagicCircle(BrickColor.new("Cyan"),duhcf,1,1,1,.5*i,.5*i,.5*i,.25/i)
  3063. end
  3064. end
  3065. end
  3066. refat.Parent=nil
  3067. end
  3068. attack=false
  3069. --[[laarmvis=false
  3070. raarmvis=false
  3071. lalegvis=false
  3072. ralegvis=false
  3073. tavis=false
  3074. lpdvis=false
  3075. rpdvis=false]]
  3076. end
  3077. end
  3078.  
  3079. function do2()
  3080. if attack==true then return end
  3081. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  3082. if cooldowns[2]>=cooldownmax and mana.Value>=15 then
  3083. --if true then
  3084. if Mode=="Normal" then
  3085. attack=true
  3086. cooldowns[2]=0
  3087. lalegvis=true
  3088. ralegvis=true
  3089. for i=0,1,0.1 do
  3090. swait()
  3091. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,-.2,0),.3)
  3092. pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,-.2,0),.3)
  3093. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.1)*euler(.3,0,0),.3)
  3094. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(.1,0,0),.3)
  3095. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,0,.7)*euler(0,0,0),.3)
  3096. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-.7)*euler(0,0,0),.3)
  3097. RH.C0=clerp(RH.C0,cf(1.05,-.6,-.1)*euler(0,1.57,0)*euler(0,-.2,-.1)*euler(-.1,0,0),.3)
  3098. LH.C0=clerp(LH.C0,cf(-1.05,-.6,-.1)*euler(0,-1.57,0)*euler(0,.2,.1)*euler(-.1,0,0),.3)
  3099. if Stagger.Value==true or Stun.Value>=StunT.Value then
  3100. break
  3101. end
  3102. end
  3103. if Stagger.Value==true or Stun.Value>=StunT.Value then
  3104. else
  3105. mana.Value=mana.Value-15
  3106. so("172146984",RootPart,.6,2)
  3107. so("81116747",RootPart,1,1.4)
  3108. MagniDamage(RootPart,20,6,8,math.random(20,40),"Knockdown2",true,nil,nil,nil,math.random(5,7),RootPart,0,1)
  3109. hitfloor2,posfloor2=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  3110. if posfloor2~=nil then
  3111. MagicWave(BrickColor.new("Bright yellow"),cf(posfloor2),1,1,1,2,1,2,.1)
  3112. end
  3113. MagicBlock(BrickColor.new("Bright yellow"),RightLeg.CFrame*cf(0,-1,0),4,4,4,1,1,1,.05,4)
  3114. MagicBlock(BrickColor.new("Bright yellow"),LeftLeg.CFrame*cf(0,-1,0),4,4,4,1,1,1,.05,4)
  3115. end
  3116. tavis=true
  3117. move2do=true
  3118. for i=0,1,0.1 do
  3119. swait()
  3120. Torso.Velocity=vt(0,0,0)
  3121. MagicBlock(BrickColor.new("Bright yellow"),RightLeg.CFrame*cf(0,-1,0),1,1,1,1,1,1,.1,4)
  3122. MagicBlock(BrickColor.new("Bright yellow"),LeftLeg.CFrame*cf(0,-1,0),1,1,1,1,1,1,.1,4)
  3123. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,-.2,0),.3)
  3124. pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,-.2,0),.3)
  3125. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,0),.3)
  3126. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*euler(-.1,0,0),.3)
  3127. RW.C0=clerp(RW.C0,cf(.8,0.5,-.5)*euler(2,0,-1.2),.3)
  3128. LW.C0=clerp(LW.C0,cf(-.8,0.5,-.5)*euler(1,0,1),.3)
  3129. RH.C0=clerp(RH.C0,cf(1.05,-.7,-.2)*euler(0,1.57,0)*euler(0,-.1,-.4)*euler(-.2,0,0),.3)
  3130. LH.C0=clerp(LH.C0,cf(-1.05,-.7,-.2)*euler(0,-1.57,0)*euler(0,.1,.4)*euler(-.2,0,0),.3)
  3131. if Stagger.Value==true or Stun.Value>=StunT.Value then
  3132. break
  3133. end
  3134. end
  3135. if Stagger.Value==true or Stun.Value>=StunT.Value then
  3136. else
  3137. so("299435152",RootPart,1,.8)
  3138. --so("157487812",RootPart,1,.6)
  3139. end
  3140. local dec=Instance.new("NumberValue",Decrease)
  3141. dec.Name="DecreaseMvmt"
  3142. dec.Value=10
  3143. d=2
  3144. for i=0,3,0.1 do
  3145. swait()
  3146. d=d+1
  3147. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*80 end
  3148. MagicBlock(BrickColor.new("Bright yellow"),RightLeg.CFrame*cf(0,-1,0),1,1,1,1,1,1,.1,4)
  3149. MagicBlock(BrickColor.new("Bright yellow"),LeftLeg.CFrame*cf(0,-1,0),1,1,1,1,1,1,.1,4)
  3150. if d%2==0 then
  3151. MagicBlock(BrickColor.new("Bright yellow"),atprt14.CFrame,1,1,1,3,3,3,.1,4)
  3152. end
  3153. if d%10==0 then
  3154. so("161006182",RootPart,1,1)
  3155. so("81116747",RootPart,1,1.6)
  3156. MagniDamage(atprt14,10,7,9,math.random(20,40),"Knockdown2",true,nil,nil,nil,math.random(5,7),RootPart,0,1)
  3157. MagicBlock(BrickColor.new("Bright yellow"),atprt14.CFrame,4,4,4,3,3,3,.06,4)
  3158. MagicWave(BrickColor.new("Bright yellow"),atprt14.CFrame*euler(3.14,0,0),1,1,1,1,1,1,.08)
  3159. end
  3160. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,-.2,0),.3)
  3161. pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,-.2,0),.3)
  3162. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,0),.3)
  3163. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*euler(.1,0,0),.3)
  3164. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1,0,.4),.3)
  3165. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-1,0,-.4),.3)
  3166. RH.C0=clerp(RH.C0,cf(1.05,-.7,-.4)*euler(0,1.57,0)*euler(0,-.1,-.6)*euler(-.2,0,0),.3)
  3167. LH.C0=clerp(LH.C0,cf(-1.05,-.7,-.4)*euler(0,-1.57,0)*euler(0,.1,.6)*euler(-.2,0,0),.3)
  3168. if Stagger.Value==true or Stun.Value>=StunT.Value then
  3169. break
  3170. end
  3171. end
  3172. dec.Parent=nil
  3173. move2do=false
  3174. attack=false
  3175. laarmvis=false
  3176. raarmvis=false
  3177. lalegvis=false
  3178. ralegvis=false
  3179. tavis=false
  3180. lpdvis=false
  3181. rpdvis=false
  3182. else
  3183. end
  3184. end
  3185. end
  3186.  
  3187. function do3()
  3188. if attack==true then return end
  3189. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  3190. if cooldowns[3]>=cooldownmax and mana.Value>=20 then
  3191. --if true then
  3192. if Mode=="Normal" then
  3193. attack=true
  3194. cooldowns[3]=0
  3195. laarmvis=true
  3196. lpdvis=true
  3197. raarmvis=true
  3198. rpdvis=true
  3199. local dec=Instance.new("NumberValue",Decrease)
  3200. dec.Name="DecreaseMvmt"
  3201. dec.Value=10
  3202. for i=0,1,0.1 do
  3203. swait()
  3204. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,-.2,0),.4)
  3205. pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,-.2,0),.4)
  3206. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,0)*euler(0,0,-.5),.3)
  3207. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(.2,0,0)*euler(0,0,.5),.3)
  3208. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,0,.2)*euler(0,0,0),.3)
  3209. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.5)*euler(1.7,0,-.2)*euler(0,-1,0),.3)
  3210. RH.C0=clerp(RH.C0,cf(1.4,-.8,-.7)*euler(0,1.57,0)*euler(0,-.5,-1),.3)
  3211. LH.C0=clerp(LH.C0,cf(-1.1,0,-.5)*euler(0,-1.57,0)*euler(0,0,-.3),.3)
  3212. if Stagger.Value==true or Stun.Value>=StunT.Value then
  3213. break
  3214. end
  3215. end
  3216. so("203691885",pdprt9,.5,1.5)
  3217. so("81116747",pdprt9,1,1)
  3218. --pdprt4
  3219. MagicBlock(BrickColor.new("Bright red"),pdprt7.CFrame,1,1,1,3,3,3,.2,3,pdprt7)
  3220. MagicBlock(BrickColor.new("Bright yellow"),pdprt7.CFrame,1,1,1,2.5,2.5,2.5,.1,3,pdprt7)
  3221. MagicBoom2(BrickColor.new("Bright red"),pdprt7.CFrame,.5,.5,.5,.2,.5,.2,.1,pdprt7)
  3222. num=0
  3223. for i=0,1,0.2 do
  3224. swait()
  3225. num=num+1
  3226. if num==5 then
  3227. Bullet(pdprt4)
  3228. end
  3229. if num<=5 then
  3230. MagicBlock(BrickColor.new("Bright red"),pdprt7.CFrame,1,1,1,4,4,4,.25,1)
  3231. end
  3232. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,.8,0),.5)
  3233. Neck.C0=clerp(Neck.C0,necko*euler(.6,0,0)*euler(0,0,.5),.4)
  3234. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0,0,-.5),.4)
  3235. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.4)*euler(0,0,0),.4)
  3236. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.5)*euler(.5,0,-.3)*euler(0,-1.4,0),.4)
  3237. RH.C0=clerp(RH.C0,cf(1.1,-.7,-.7)*euler(0,1.57,0)*euler(0,0,-1.2),.4)
  3238. LH.C0=clerp(LH.C0,cf(-1,0,-.5)*euler(0,-1.57,0)*euler(-.1,.2,.4),.4)
  3239. if Stagger.Value==true or Stun.Value>=StunT.Value then
  3240. break
  3241. end
  3242. end
  3243. if Stagger.Value==true or Stun.Value>=StunT.Value then
  3244. else
  3245. hitfloor2,posfloor2=rayCast(pdprt9.Position,(CFrame.new(pdprt9.Position,pdprt9.Position - Vector3.new(0,1,0))).lookVector,6,Character)
  3246. if hitfloor2~=nil then
  3247. CeEf=RootPart.CFrame*cf(0,0,-10)
  3248. mana.Value=mana.Value-20
  3249. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  3250. ref.Anchored=true
  3251. ref.CFrame=cf(posfloor2)
  3252. game:GetService("Debris"):AddItem(ref,10)
  3253. so("172146984",ref,1,.7) --huge explosion
  3254. so("163573436",ref,1,.4)
  3255. MagicWave(BrickColor.new("Bright red"),cf(posfloor2),1,1,1,1,.5,1,.07)
  3256. MagicCircle(BrickColor.new("Bright yellow"),cf(posfloor2),5,5,5,6,4,6,.05)
  3257. MagniDamage(ref,15,10,10,math.random(30,40),"Knockdown2",true,"Damage",.1,200,15,ref,.4,1)
  3258. for i=1,4 do
  3259. swait(4)
  3260. ref.CFrame=CeEf
  3261. hitfloorr,posfloorr=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,50,Character)
  3262. if hitfloorr~=nil then
  3263. ref.CFrame=cf(posfloorr)
  3264. so("172146984",ref,1,.7) --huge explosion
  3265. so("163573436",ref,1,.4)
  3266. MagicWave(BrickColor.new("Bright red"),cf(ref.Position),1,1,1,1,.5,1,.07)
  3267. MagicCircle(BrickColor.new("Bright yellow"),cf(ref.Position),5,5,5,6,4,6,.05)
  3268. MagniDamage(ref,15,6,8,math.random(30,40),"Knockdown2",true,"Damage",.05,200,15,ref,.4,1)
  3269. end
  3270. CeEf=CeEf*cf(0,0,-10)
  3271. if Stagger.Value==true or Stun.Value>=StunT.Value then
  3272. break
  3273. end
  3274. end
  3275. swait(10)
  3276. ref.Parent=nil
  3277. else
  3278. swait(10)
  3279. end
  3280. end
  3281. dec.Parent=nil
  3282. attack=false
  3283. laarmvis=false
  3284. raarmvis=false
  3285. lalegvis=false
  3286. ralegvis=false
  3287. tavis=false
  3288. lpdvis=false
  3289. rpdvis=false
  3290. else
  3291. end
  3292. end
  3293. end
  3294.  
  3295. function do4()
  3296. if attack==true then return end
  3297. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  3298. --if cooldowns[4]>=cooldownmax and mana.Value>=50 then
  3299. if true then
  3300. --mana.Value=mana.Value-50
  3301. cooldowns[4]=0
  3302. if Mode=="Normal" then
  3303. attack=true
  3304. local dec=Instance.new("NumberValue",Decrease)
  3305. dec.Name="DecreaseMvmt"
  3306. dec.Value=10
  3307. Clone()
  3308. Mode="AilaBot"
  3309. AilaTarget="Nah"
  3310. AilaMode="Passive"
  3311. laarmvis=false
  3312. raarmvis=false
  3313. lalegvis=false
  3314. ralegvis=false
  3315. tavis=false
  3316. lpdvis=false
  3317. rpdvis=false
  3318. for i=0,1,0.1 do
  3319. swait()
  3320. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,-.2,0),.3)
  3321. pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,-.2,0),.3)
  3322. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.3,0,0),.3)
  3323. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.1)*euler(0,0,0),.3)
  3324. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(.6,0,-.6)*euler(0,1.3,0),.3)
  3325. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(.4,0,.5)*euler(0,-1,0),.3)
  3326. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.1)*euler(0,1.57,0)*euler(0,0,.1),.3)
  3327. LH.C0=clerp(LH.C0,cf(-.9,-.9,.2)*euler(0,-1.57,0)*euler(-.2,.1,.3),.3)
  3328. end
  3329. Clone()
  3330. refa=part(3,workspace,0,0,BrickColor.new("Black"),"Reference",vt())
  3331. refa.Anchored=true
  3332. refa.CFrame=RootPart.CFrame*cf(0,5,-8)
  3333. newp=parti:Clone()
  3334. newp.Parent=refa
  3335. newp.Enabled=true
  3336. newp.Size=ns({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,4)})
  3337. for i=0,1,0.1 do
  3338. swait()
  3339. ElecEffect(refa.CFrame,6,6,6)
  3340. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,-.2,0),.3)
  3341. pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,-.2,0),.3)
  3342. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.3,0,0),.3)
  3343. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.1)*euler(0,0,0),.3)
  3344. RW.C0=clerp(RW.C0,cf(1.3,0.5,-.2)*euler(2.2,0,-.1)*euler(0,1.3,0),.3)
  3345. LW.C0=clerp(LW.C0,cf(-1.3,0.5,-.2)*euler(1.8,0,.3)*euler(0,-1,0),.3)
  3346. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.2)*euler(0,1.57,0)*euler(0,0,-.1),.3)
  3347. LH.C0=clerp(LH.C0,cf(-.9,-.9,0)*euler(0,-1.57,0)*euler(0,.1,.2),.3)
  3348. end
  3349. for i=1,10 do
  3350. swait()
  3351. ElecEffect(refa.CFrame,6,6,6)
  3352. end
  3353. so("300915867",refa,1,1)
  3354. AilaTarget="Dasd"
  3355. abrawld8.C0=euler(3.14,0,0)*cf(0,.9,0)*euler(0,0,-.2)
  3356. abrawld10.C0=euler(0,0,0)*cf(0,0,0)
  3357. ablawld8.C0=euler(3.14,0,0)*cf(0,.9,0)*euler(0,0,-.2)
  3358. ablawld10.C0=euler(0,0,0)*cf(0,0,0)
  3359. ailabot.Parent=Character
  3360. abpos.position=refa.Position
  3361. abgy.cframe=RootPart.CFrame*euler(0,0,3.14)
  3362. abtprt1.CFrame=cf(refa.Position)
  3363. for i=1,#ABWelds do
  3364. ABWelds[i].Parent=abtprt1
  3365. end
  3366. for i=1,#AilaBot do
  3367. AilaBot[i].Transparency=1
  3368. end
  3369. for d=1,0,-.02 do
  3370. swait()
  3371. ElecEffect(refa.CFrame,6,6,6)
  3372. for i=1,#AilaBot do
  3373. AilaBot[i].Transparency=d
  3374. abhprt12v.Transparency=1
  3375. abhprt13v.Transparency=1
  3376. if d>=.5 then
  3377. newp.Enabled=false
  3378. end
  3379. end
  3380. end
  3381. for i=1,#AilaBot do
  3382. AilaBot[i].Transparency=0
  3383. abhprt12v.Transparency=1
  3384. abhprt13v.Transparency=1
  3385. end
  3386. refa.Parent=nil
  3387. dec.Parent=nil
  3388. attack=false
  3389. for i=1,0,-0.04 do
  3390. swait()
  3391. AilaTarget="Nah"
  3392. AilaMode="Passive"
  3393. AilaTarget2=nil
  3394. acloserightfist()
  3395. abhprt12v.Transparency=i
  3396. abhprt13v.Transparency=i
  3397. hwld1.C0=clerp(hwld1.C0,euler(.1,0,3.14)*cf(0,2.5,.1),.1)
  3398. abrawld2.C0=clerp(abrawld2.C0,euler(0,0,-.3)*cf(0,0,0),.1)
  3399. abrawld8.C0=clerp(abrawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(0,0,-.4),.1)
  3400. abrawld10.C0=clerp(abrawld10.C0,euler(0,.8,0)*cf(0,0,0),.1)
  3401. ablawld2.C0=clerp(ablawld2.C0,euler(0,0,-.3)*cf(0,0,0),.1)
  3402. ablawld8.C0=clerp(ablawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(0,0,-.4),.1)
  3403. ablawld10.C0=clerp(ablawld10.C0,euler(0,.8,0)*cf(0,0,0),.1)
  3404. abw1wld3.C0=clerp(abw1wld3.C0,euler(0,0,0)*cf(0,-.2,0)*euler(0,0,0),.1)
  3405. abw2wld1.C0=clerp(abw2wld1.C0,euler(0,0,0)*cf(0,-.2,-.4),.2)
  3406. end
  3407. abhprt12v.Transparency=0
  3408. abhprt13v.Transparency=0
  3409. AilaMode="Ranged"
  3410. AilaTarget="Nearest"
  3411. else
  3412. attack=true
  3413. Mode="Normal"
  3414. AilaTarget="Dasd"
  3415. AilaMode="Passive"
  3416. while ailaattack==true do
  3417. swait()
  3418. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.3)*euler(.2,0,0),.3)
  3419. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.6),.3)
  3420. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.4,0,.5)*euler(0,-1,0),.3)
  3421. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(2.8,0,.5)*euler(0,.5,0),.3)
  3422. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.1)*euler(0,1.57,0)*euler(0,-.1,-.2),.3)
  3423. LH.C0=clerp(LH.C0,cf(-1.2,-.8,.1)*euler(0,-1.57,0)*euler(0,.6,-.1),.3)
  3424. end
  3425. ailaattack=true
  3426. for i=0,10 do
  3427. swait()
  3428. if i%4==0 then
  3429. ElecEffect(LeftArm.CFrame*cf(0,1,0),1,1,1)
  3430. ElecEffect(RightArm.CFrame*cf(0,-1,0),1,1,1)
  3431. end
  3432. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.6)*euler(.05,0,0),.3)
  3433. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.6),.3)
  3434. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57)*euler(0,1.57,0),.3)
  3435. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(0,-1.57,0),.3)
  3436. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.1)*euler(0,1.57,0)*euler(0,-.1,-.2),.3)
  3437. LH.C0=clerp(LH.C0,cf(-1.2,-.8,.1)*euler(0,-1.57,0)*euler(0,.6,-.1),.3)
  3438. end
  3439. refa=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  3440. refa.Anchored=true
  3441. refa.CFrame=abtprt1.CFrame
  3442. game:GetService("Debris"):AddItem(refa,10)
  3443. newp=parti:Clone()
  3444. newp.Parent=refa
  3445. newp.Enabled=true
  3446. newp.Size=ns({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,4)})
  3447. for i=0,20 do
  3448. swait()
  3449. if i>=10 then
  3450. newp.Enabled=true
  3451. end
  3452. if i%4==0 then
  3453. ElecEffect(LeftArm.CFrame*cf(0,1,0),1,1,1)
  3454. ElecEffect(RightArm.CFrame*cf(0,-1,0),1,1,1)
  3455. end
  3456. abhprt12v.Transparency=i/10
  3457. abhprt13v.Transparency=i/10
  3458. ElecEffect(abtprt1.CFrame,6,6,6)
  3459. aopenleftfist()
  3460. aopenrightfist()
  3461. abtwld1.C1=clerp(abtwld1.C1,euler(0,0,0),.3)
  3462. hwld1.C0=clerp(hwld1.C0,euler(.3,0,3.14)*cf(0,2.5,.3),.3)
  3463. abrawld2.C0=clerp(abrawld2.C0,euler(0,0,0)*cf(0,0,0),.3)
  3464. abrawld8.C0=clerp(abrawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(-.1,0,-.2),.3)
  3465. abrawld10.C0=clerp(abrawld10.C0,euler(0,.2,0)*cf(0,0,0),.3)
  3466. ablawld2.C0=clerp(ablawld2.C0,euler(0,0,0)*cf(0,0,0),.3)
  3467. ablawld8.C0=clerp(ablawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(.1,0,-.2),.3)
  3468. ablawld10.C0=clerp(ablawld10.C0,euler(0,.2,0)*cf(0,0,0),.3)
  3469. abw1wld3.C0=clerp(abw1wld3.C0,euler(0,3.14,0)*cf(0,0,-.5)*euler(-.5,0,0),.3)
  3470. abw2wld1.C0=clerp(abw2wld1.C0,euler(0,0,3.14)*cf(0,-.8,-.4),.3)
  3471. abw2wld5.C0=clerp(abw2wld5.C0,euler(0,0,0)*cf(.1,.6,0),.3)
  3472. abw2wld6.C0=clerp(abw2wld6.C0,euler(0,0,0)*cf(-.1,.6,0),.3)
  3473. end
  3474. for d=0,1,0.1 do
  3475. swait()
  3476. ElecEffect(abtprt1.CFrame,6,6,6)
  3477. for i=1,#AilaBot do
  3478. AilaBot[i].Transparency=d
  3479. abhprt12v.Transparency=1
  3480. abhprt13v.Transparency=1
  3481. end
  3482. end
  3483. ailabot.Parent=nil
  3484. newp.Enabled=false
  3485. ailaattack=false
  3486. attack=false
  3487. end
  3488. end
  3489. end
  3490.  
  3491. function findNearestTorso(pos)
  3492. local list = game.Workspace:children()
  3493. local torso = nil
  3494. local dist = 50
  3495. local temp = nil
  3496. local human = nil
  3497. local temp2 = nil
  3498. for x = 1, #list do
  3499. temp2 = list[x]
  3500. if (temp2.className == "Model") and (temp2.Name~=Character.Name) then
  3501. --temp = temp2:findFirstChild("Torso")
  3502. temp = temp2:findFirstChild("Torso")
  3503. human = temp2:findFirstChild("Humanoid")
  3504. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  3505. if (temp.Position - pos).magnitude < dist then
  3506. local dohit=true
  3507. if Player.Neutral==false and game.Players:GetPlayerFromCharacter(temp.Parent)~=nil then
  3508. if game.Players:GetPlayerFromCharacter(temp.Parent).TeamColor==Player.TeamColor then dohit=false end
  3509. end
  3510. if dohit==true then
  3511. torso = temp
  3512. dist = (temp.Position - pos).magnitude
  3513. end
  3514. end
  3515. end
  3516. end
  3517. end
  3518. return torso,dist
  3519. end
  3520.  
  3521. function DecreaseStat(Model,Stat,Amount,Duration)
  3522. if Model:findFirstChild("Stats")~=nil then
  3523. if Model.Stats[Stat]~=nil then
  3524. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  3525. d=Instance.new("NumberValue",Model.Stats.Decrease)
  3526. dur=Instance.new("NumberValue",d)
  3527. dur.Name="Duration"
  3528. dur.Value=Duration
  3529. game:GetService("Debris"):AddItem(d,20)
  3530. if Stat=="Damage" then
  3531. d.Name="DecreaseAtk"
  3532. elseif Stat=="Defense" then
  3533. d.Name="DecreaseDef"
  3534. elseif Stat=="Movement" then
  3535. d.Name="DecreaseMvmt"
  3536. end
  3537. if Model:findFirstChild("Torso")~=nil then
  3538. display=""
  3539. if Stat=="Damage" then
  3540. if Amount>0 then
  3541. display="-Damage"
  3542. else
  3543. display="+Damage"
  3544. end
  3545. elseif Stat=="Defense" then
  3546. if Amount>0 then
  3547. display="-Defense"
  3548. else
  3549. display="+Defense"
  3550. end
  3551. elseif Stat=="Movement" then
  3552. if Amount>0 then
  3553. display="-Movement"
  3554. else
  3555. display="+Movement"
  3556. end
  3557. end
  3558. showDamage(Model,display,"Debuff")
  3559. end
  3560. d.Value=Amount
  3561. --table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
  3562. end
  3563. end
  3564. end
  3565.  
  3566. function GetDist(Part1,Part2,magni)
  3567. local targ=Part1.Position-Part2.Position
  3568. local mag=targ.magnitude
  3569. if mag<=magni then
  3570. return true
  3571. else
  3572. return false
  3573. end
  3574. end
  3575.  
  3576. function MagniDamage(Part,magni,mindam,maxdam,knock,Type,Ranged,Dec,DecAm,Dur,stun,KnockP,Deb,KnockType)
  3577. for _,c in pairs(workspace:children()) do
  3578. local hum=c:findFirstChild("Humanoid")
  3579. if hum~=nil then
  3580. local head=c:findFirstChild("Torso")
  3581. if head==nil then head=c:findFirstChild("Hitbox") end
  3582. if head==nil then head=c:findFirstChild("Head") end
  3583. if head==nil then head=c:findFirstChild("HumanoidRootPart") end
  3584. if head==nil then head=c:findFirstChild("HitPart") end
  3585. if head~=nil then
  3586. local targ=head.Position-Part.Position
  3587. local mag=targ.magnitude
  3588. if mag<=magni and c.Name~=Player.Name then
  3589. if stun==nil then
  3590. stun=math.random(5,10)
  3591. end
  3592. Damagefunc(head,mindam,maxdam,knock,Type,KnockP,Deb,KnockType,stun,nil,nil,Ranged,Dec,DecAm,Dur)
  3593. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  3594. end
  3595. end
  3596. end
  3597. end
  3598. end
  3599.  
  3600. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  3601. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  3602. end
  3603.  
  3604. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  3605. LastPoint=Point
  3606. function effect(Color,Ref,LP,P1,returnn)
  3607. if LP==nil or P1==nil then return end
  3608. local effectsmsh=Instance.new("CylinderMesh")
  3609. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  3610. effectsmsh.Name="Mesh"
  3611. local effectsg=Instance.new("Part")
  3612. NoOutline(effectsg)
  3613. effectsg.formFactor=3
  3614. effectsg.CanCollide=false
  3615. effectsg.Name="Eff"
  3616. effectsg.Locked=true
  3617. effectsg.Anchored=true
  3618. effectsg.Size=Vector3.new(0.5,1,0.5)
  3619. effectsg.Parent=workspace
  3620. effectsmsh.Parent=effectsg
  3621. effectsg.BrickColor=BrickColor.new(Color)
  3622. effectsg.Reflectance=Ref
  3623. local point1=P1
  3624. local mg=(LP.p - point1.p).magnitude
  3625. effectsg.Size=Vector3.new(0.5,mg,0.5)
  3626. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  3627. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  3628. game:GetService("Debris"):AddItem(effectsg,2)
  3629. if returnn then return effectsg end
  3630. if not returnn then
  3631. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  3632. end
  3633. end
  3634.  
  3635. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,Part)
  3636. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  3637. prt.Anchored=true
  3638. prt.CFrame=cframe
  3639. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3640. game:GetService("Debris"):AddItem(prt,10)
  3641. if Type==1 or Type==nil then
  3642. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  3643. elseif Type==2 then
  3644. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  3645. elseif Type==3 then
  3646. table.insert(Effects,{prt,"Block3",delay,x3,y3,z3,msh,Part})
  3647. elseif Type==4 then
  3648. table.insert(Effects,{prt,"Block2Fire",delay,x3,y3,z3,msh})
  3649. end
  3650. end
  3651.  
  3652. function MagicSnowflake(brickcolor,cframe,eul,x1,y1,z1,delay)
  3653. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  3654. prt.Anchored=true
  3655. prt.CFrame=cframe*eul
  3656. ID=""
  3657. rand=math.random(1,3)
  3658. if rand==1 then
  3659. ID="187687161"
  3660. elseif rand==2 then
  3661. ID="187687175"
  3662. else
  3663. ID="187687193"
  3664. end
  3665. msh=mesh("SpecialMesh",prt,"FileMesh",ID,vt(0,0,0),vt(x1,y1,z1))
  3666. game:GetService("Debris"):AddItem(prt,10)
  3667. table.insert(Effects,{prt,"Snowflake",delay,cframe,msh})
  3668. end
  3669.  
  3670. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,parent)
  3671. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  3672. prt.Anchored=true
  3673. prt.CFrame=cframe
  3674. if parent==nil then
  3675. prt.Parent=workspace
  3676. else
  3677. prt.Parent=parent
  3678. end
  3679. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  3680. game:GetService("Debris"):AddItem(prt,10)
  3681. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3682. end
  3683.  
  3684. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3685. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  3686. prt.Anchored=true
  3687. prt.CFrame=cframe
  3688. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  3689. game:GetService("Debris"):AddItem(prt,10)
  3690. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3,msh})
  3691. end
  3692.  
  3693. function MagicBoom2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Part)
  3694. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  3695. prt.Anchored=true
  3696. prt.CFrame=cframe
  3697. local msh=mesh("SpecialMesh",prt,"FileMesh","1323306",vt(0,0,0),vt(x1,y1,z1))
  3698. game:GetService("Debris"):AddItem(prt,10)
  3699. table.insert(Effects,{prt,"Block4",delay,x3,y3,z3,msh,Part})
  3700. end
  3701.  
  3702. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3703. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  3704. prt.Anchored=true
  3705. prt.CFrame=cframe
  3706. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3707. game:GetService("Debris"):AddItem(prt,10)
  3708. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3709. end
  3710.  
  3711. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3712. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  3713. prt.Anchored=true
  3714. prt.CFrame=cframe
  3715. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  3716. game:GetService("Debris"):AddItem(prt,10)
  3717. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3718. end
  3719.  
  3720. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  3721. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt())
  3722. prt.Anchored=true
  3723. prt.CFrame=cframe
  3724. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  3725. game:GetService("Debris"):AddItem(prt,10)
  3726. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  3727. end
  3728.  
  3729. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3730. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  3731. prt.Anchored=true
  3732. prt.CFrame=cframe
  3733. local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
  3734. game:GetService("Debris"):AddItem(prt,10)
  3735. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3736. end
  3737.  
  3738. function MagicIcicle(brickcolor,cframe,x1,y1,z1,delay)
  3739. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  3740. prt.Anchored=true
  3741. prt.CFrame=cframe
  3742. msh=mesh("SpecialMesh",prt,"FileMesh","1778999",vt(0,0,0),vt(x1,y1,z1))
  3743. game:GetService("Debris"):AddItem(prt,10)
  3744. for i=1,5 do
  3745. BreakEffect(BrickColor.new("Cyan"),prt.CFrame*cf(0,4,0),math.random(20,80)/100,math.random(2,10),math.random(20,80)/100)
  3746. end
  3747. for i=1,15 do
  3748. local freezepart=part(3,workspace,0.5,0.5,BrickColor.new("Bright blue"),"Ice Part",vt(math.random(1,2)+math.random(),math.random(1,2)+math.random(),math.random(1,2)+math.random()))
  3749. freezepart.Anchored=true
  3750. freezepart.CanCollide=true
  3751. freezepart.CFrame=cframe*cf(math.random(-300,300)/100,4,math.random(-300,300)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3752. game:GetService("Debris"):AddItem(freezepart,10)
  3753. end
  3754. table.insert(Effects,{prt,"Ice",delay,msh,1,.2})
  3755. end
  3756.  
  3757. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  3758. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3759. prt.Anchored=true
  3760. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3761. game:GetService("Debris"):AddItem(prt,10)
  3762. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  3763. local num=math.random(10,50)/1000
  3764. table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(50,100)/100})
  3765. end
  3766.  
  3767. function Bullet(Part)
  3768. bullet=part(3,workspace,0,0,BrickColor.new("Bright yellow"),"Bullet",vt())
  3769. bmsh=mesh("CylinderMesh",bullet,"","",vt(0,0,0),vt(2,4,2))
  3770. bullet.CanCollide=true
  3771. bullet.CFrame=Part.CFrame*euler(0,0,1.57)
  3772. bullet.Velocity=((Part.CFrame*euler(1.57,0,0)).lookVector*40)
  3773. game:GetService("Debris"):AddItem(bullet,5)
  3774. end
  3775.  
  3776. function ElecEffect(cff,x,y,z)
  3777. local prt=part(3,workspace,0,0,BrickColor.new("Medium blue"),"Part",vt(1,1,1))
  3778. prt.Anchored=true
  3779. prt.CFrame=cff*cf(math.random(-x*100,x*100)/100,math.random(-y*100,y*100)/100,math.random(-z*100,z*100)/100)
  3780. prt.CFrame=cf(prt.Position)
  3781. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  3782. game:GetService("Debris"):AddItem(prt,10)
  3783. xval=math.random()/9
  3784. yval=math.random()/9
  3785. zval=math.random()/9
  3786. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  3787. eul1=math.random(-50,50)
  3788. eul2=math.random(-50,50)
  3789. eul3=math.random(-50,50)
  3790. euld=euler(eul1,eul2,eul3)
  3791. euld2=euler(-eul1,-eul2,-eul3)
  3792. Effects[#Effects+1]={prt,"Elec",.05,x,y,z,xval,yval,zval,msh,euld,euld2} --part, type, delay
  3793. end
  3794.  
  3795. function ElecEffect2(cff,x,y,z)
  3796. local prt=part(3,workspace,0,0,BrickColor.new("Medium blue"),"Part",vt(1,1,1))
  3797. prt.Anchored=true
  3798. prt.CFrame=cff*cf(math.random(-x*100,x*100)/100,math.random(-y*100,y*100)/100,math.random(-z*100,z*100)/100)
  3799. prt.CFrame=cf(prt.Position)
  3800. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  3801. game:GetService("Debris"):AddItem(prt,10)
  3802. xval=math.random()/7
  3803. yval=math.random()/7
  3804. zval=math.random()/7
  3805. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  3806. eul1=math.random(-50,50)
  3807. eul2=math.random(-50,50)
  3808. eul3=math.random(-50,50)
  3809. euld=euler(eul1,eul2,eul3)
  3810. euld2=euler(-eul1,-eul2,-eul3)
  3811. Effects[#Effects+1]={prt,"Elec",.1,x,y,z,xval,yval,zval,msh,euld,euld2} --part, type, delay
  3812. end
  3813.  
  3814. function Clone()
  3815. for _,v in pairs(Torso.Parent:children()) do
  3816. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  3817. local c=part(3,workspace,0,.5,BrickColor.new("Bright blue"),"Effect",v.Size)
  3818. c.Anchored=true
  3819. c.CFrame=v.CFrame
  3820. game:GetService("Debris"):AddItem(c,5)
  3821. local cmsh=nil
  3822. if v.Name=="Head" then
  3823. cmsh=mesh("SpecialMesh",c,"Head","nil",vt(0,0,0),v.Mesh.Scale)
  3824. else
  3825. cmsh=mesh("BlockMesh",c,"nil","nil",vt(0,0,0),vt(1,1,1))
  3826. end
  3827. --table.insert(Effects,{c,"Disappear",.05})
  3828. table.insert(Effects,{c,"Cylinder",0.05,0.1,0.1,0.1,cmsh})
  3829. end
  3830. end
  3831. end
  3832.  
  3833. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound)
  3834. if hit.Parent==nil then
  3835. return
  3836. end
  3837. if hit.Name=="Hitbox" and hit.Parent~=modelzorz and ranged~=true then
  3838. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  3839. ref.Anchored=true
  3840. ref.CFrame=cf(hit.Position)
  3841. game:GetService("Debris"):AddItem(ref,1)
  3842. hitnum=math.random(1,5)
  3843. if hitnum==1 then so("199148971",ref,1,1)
  3844. elseif hitnum==2 then so("199149025",ref,1,1)
  3845. elseif hitnum==3 then so("199149072",ref,1,1)
  3846. elseif hitnum==4 then so("199149109",ref,1,1)
  3847. elseif hitnum==5 then so("199149119",ref,1,1)
  3848. end
  3849. StaggerHit.Value=true
  3850. end
  3851. h=hit.Parent:FindFirstChild("Humanoid")
  3852. for _,v in pairs(hit.Parent:children()) do
  3853. if v:IsA("Humanoid") then
  3854. h=v
  3855. end
  3856. end
  3857. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  3858. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  3859. end
  3860. if hit.Parent.className=="Hat" then
  3861. hit=hit.Parent.Parent:findFirstChild("Head")
  3862. end
  3863. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  3864. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  3865. if Player.Neutral==false and game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  3866. if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==Player.TeamColor then return end
  3867. end
  3868. c=Instance.new("ObjectValue")
  3869. c.Name="creator"
  3870. c.Value=game:service("Players").LocalPlayer
  3871. c.Parent=h
  3872. RecentEnemy.Value=hit.Parent
  3873. game:GetService("Debris"):AddItem(c,.5)
  3874. minim=minim*Atk.Value
  3875. maxim=maxim*Atk.Value
  3876. Damage=0
  3877. if minim==maxim then
  3878. Damage=maxim
  3879. else
  3880. Damage=math.random(minim,maxim)
  3881. end
  3882. blocked=false
  3883. enblock=nil
  3884. Stats=hit.Parent:findFirstChild("Stats")
  3885. if Stats~=nil then
  3886. invis=Stats:findFirstChild("Invisibility")
  3887. isinvis=Stats:findFirstChild("IsInvisible")
  3888. if (ranged==false or ranged==nil) and invis~=nil and isinvis.Value==true then
  3889. invis.Value=0
  3890. end
  3891. enblock=Stats:findFirstChild("Block")
  3892. if enblock~=nil then
  3893. if enblock.Value==true then
  3894. blocked=true
  3895. end
  3896. end
  3897. if Stats:findFirstChild("Defense")~=nil then
  3898. Damage=Damage/(Stats.Defense.Value)
  3899. if Damage<=3 and (ranged==false or ranged==nil) and blocked~=true then
  3900. hitnum=math.random(1,5)
  3901. if hitnum==1 then so("199149321",hit,1,1)
  3902. elseif hitnum==2 then so("199149338",hit,1,1)
  3903. elseif hitnum==3 then so("199149367",hit,1,1)
  3904. elseif hitnum==4 then so("199149409",hit,1,1)
  3905. elseif hitnum==5 then so("199149452",hit,1,1)
  3906. end
  3907. elseif ranged==false or ranged==nil and blocked~=true then
  3908. hitnum=math.random(1,6)
  3909. if hitnum==1 then so("199149137",hit,1,1)
  3910. elseif hitnum==2 then so("199149186",hit,1,1)
  3911. elseif hitnum==3 then so("199149221",hit,1,1)
  3912. elseif hitnum==4 then so("199149235",hit,1,1)
  3913. elseif hitnum==5 then so("199149269",hit,1,1)
  3914. elseif hitnum==6 then so("199149297",hit,1,1)
  3915. end
  3916. end
  3917. if Damage<=3 and staghit==true then
  3918. StaggerHit.Value=true
  3919. end
  3920. end
  3921. if Stats:findFirstChild("Stun")~=nil then
  3922. if blocked==true then
  3923. incstun=incstun/2
  3924. end
  3925. if Stats.Stun.Value<Stats.StunThreshold.Value then
  3926. Stats.Stun.Value=Stats.Stun.Value+incstun
  3927. end
  3928. end
  3929. if Stats:findFirstChild("Stagger")~=nil then
  3930. if stagger==true then
  3931. Stats.Stagger.Value=true
  3932. end
  3933. end
  3934. end
  3935. if blocked==true then
  3936. showDamage(hit.Parent,"Block","Damage")
  3937. if ranged~=true then
  3938. enblock.Value=false
  3939. Stagger.Value=true
  3940. hitnum=math.random(1,2)
  3941. if hitnum==1 then so("199148933",hit,1,1)
  3942. elseif hitnum==2 then so("199148947",hit,1,1)
  3943. end
  3944. end
  3945. else
  3946. brigatk=false
  3947. Damage=math.floor(Damage)
  3948. coroutine.resume(coroutine.create(function(Hum,Dam)
  3949.  
  3950. end),h,Damage)
  3951. showDamage(hit.Parent,Damage,"Damage")
  3952. if DecreaseState~=nil then
  3953. if DecreaseState=="Shatter" then
  3954. DecreaseStat(hit.Parent,"Movement",DecreaseAmount,Duration)
  3955. DecreaseStat(hit.Parent,"Damage",DecreaseAmount,Duration)
  3956. else
  3957. DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
  3958. end
  3959. end
  3960. if Type=="Knockdown" then
  3961. hum=hit.Parent.Humanoid
  3962. hum.PlatformStand=true
  3963. coroutine.resume(coroutine.create(function(HHumanoid)
  3964. swait(1)
  3965. HHumanoid.PlatformStand=false
  3966. end),hum)
  3967. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  3968. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  3969. local bodvol=Instance.new("BodyVelocity")
  3970. bodvol.velocity=angle*knockback
  3971. bodvol.P=5000
  3972. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  3973. bodvol.Parent=hit
  3974. rl=Instance.new("BodyAngularVelocity")
  3975. rl.P=3000
  3976. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  3977. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  3978. rl.Parent=hit
  3979. game:GetService("Debris"):AddItem(bodvol,.5)
  3980. game:GetService("Debris"):AddItem(rl,.5)
  3981. elseif Type=="Shatter" then
  3982. for i=1,10 do
  3983. BreakEffect(BrickColor.new("Cyan"),hit.CFrame,math.random(20,80)/100,math.random(2,10),math.random(20,80)/100)
  3984. end
  3985. elseif Type=="Knockdown2" then
  3986. hum=hit.Parent.Humanoid
  3987. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  3988. local bodvol=Instance.new("BodyVelocity")
  3989. bodvol.velocity=angle*knockback
  3990. bodvol.P=5000
  3991. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  3992. bodvol.Parent=hit
  3993. game:GetService("Debris"):AddItem(bodvol,.5)
  3994. elseif Type=="Normal" then
  3995. vp=Instance.new("BodyVelocity")
  3996. vp.P=500
  3997. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  3998. if KnockbackType==1 then
  3999. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  4000. elseif KnockbackType==2 then
  4001. vp.velocity=Property.CFrame.lookVector*knockback
  4002. end
  4003. game:GetService("Debris"):AddItem(vp,.5)
  4004. if knockback>0 then
  4005. vp.Parent=hit.Parent.Torso
  4006. end
  4007. end
  4008. end
  4009. debounce=Instance.new("BoolValue")
  4010. debounce.Name="DebounceHit"
  4011. debounce.Parent=hit.Parent
  4012. if Delay==0 then
  4013. debounce.Parent=nil
  4014. end
  4015. debounce.Value=true
  4016. game:GetService("Debris"):AddItem(debounce,Delay)
  4017. c=Instance.new("ObjectValue")
  4018. c.Name="creator"
  4019. c.Value=Player
  4020. c.Parent=h
  4021. game:GetService("Debris"):AddItem(c,.5)
  4022. CRIT=false
  4023. end
  4024. end
  4025.  
  4026. showDamage=function(Char,Dealt,Type)
  4027. m=Instance.new("Model")
  4028. m.Name="Effect"
  4029. c=Instance.new("Part")
  4030. c.Transparency=1
  4031. c.Name="Head"
  4032. c.TopSurface=0
  4033. c.BottomSurface=0
  4034. c.formFactor="Plate"
  4035. c.Size=Vector3.new(1,.4,1)
  4036. b=Instance.new("BillboardGui",c)
  4037. b.Size=UDim2.new(5,0,5,0)
  4038. b.AlwaysOnTop=true
  4039. damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  4040. if Type=="Damage" then
  4041. damgui.Font="SourceSans"
  4042. if Dealt=="Block" then
  4043. damgui.TextColor3=BrickColor.new("Bright blue").Color
  4044. elseif Dealt<3 then
  4045. damgui.TextColor3=BrickColor.new("White").Color
  4046. elseif Dealt>=3 and Dealt<20 then
  4047. damgui.TextColor3=BrickColor.new("Bright yellow").Color
  4048. else
  4049. damgui.TextColor3=BrickColor.new("Really red").Color
  4050. damgui.Font="SourceSansBold"
  4051. end
  4052. elseif Type=="Debuff" then
  4053. damgui.TextColor3=BrickColor.new("White").Color
  4054. elseif Type=="Interrupt" then
  4055. damgui.TextColor3=BrickColor.new("New Yeller").Color
  4056. end
  4057. --damgui.FontSize="Size48"
  4058. damgui.TextScaled=true
  4059. ms=Instance.new("CylinderMesh")
  4060. ms.Scale=Vector3.new(.8,.8,.8)
  4061. ms.Parent=c
  4062. c.Reflectance=0
  4063. Instance.new("BodyGyro").Parent=c
  4064. c.Parent=m
  4065. if Char:findFirstChild("Head")~=nil then
  4066. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  4067. elseif Char.Parent:findFirstChild("Head")~=nil then
  4068. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  4069. end
  4070. f=Instance.new("BodyPosition")
  4071. f.P=2000
  4072. f.D=100
  4073. f.maxForce=Vector3.new(545000,545000,545000)
  4074. if Type=="Damage" then
  4075. f.position=c.Position+Vector3.new(0,3,0)
  4076. elseif Type=="Debuff" or Type=="Interrupt" then
  4077. f.position=c.Position+Vector3.new(0,5,0)
  4078. end
  4079. f.Parent=c
  4080. game:GetService("Debris"):AddItem(m,5)
  4081. table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
  4082. c.CanCollide=false
  4083. m.Parent=workspace
  4084. c.CanCollide=false
  4085. end
  4086.  
  4087. combo=0
  4088. function ob1d(mouse)
  4089. if attack==true or equipped==false then return end
  4090. hold=true
  4091. removeControl()
  4092. if combo==0 then
  4093. combo=1
  4094. attackone()
  4095. elseif combo==1 then
  4096. combo=2
  4097. attacktwo()
  4098. elseif combo==2 then
  4099. combo=3
  4100. if Mode~="Normal" then
  4101. combo=0
  4102. end
  4103. attackthree()
  4104. elseif combo==3 then
  4105. combo=0
  4106. attackfour()
  4107. end
  4108. resumeControl()
  4109. coroutine.resume(coroutine.create(function()
  4110. for i=1,50 do
  4111. if attack==false then
  4112. swait()
  4113. end
  4114. end
  4115. if attack==false then
  4116. combo=0
  4117. laarmvis=false
  4118. raarmvis=false
  4119. lalegvis=false
  4120. ralegvis=false
  4121. tavis=false
  4122. lpdvis=false
  4123. rpdvis=false
  4124. end
  4125. end))
  4126. end
  4127.  
  4128. function ob1u(mouse)
  4129. hold = false
  4130. end
  4131.  
  4132. buttonhold = false
  4133.  
  4134. fenbarmove1.MouseButton1Click:connect(do1)
  4135. fenbarmove2.MouseButton1Click:connect(do2)
  4136. fenbarmove3.MouseButton1Click:connect(do3)
  4137. fenbarmove4.MouseButton1Click:connect(do4)
  4138. eul=0
  4139. equipped=false
  4140. visormouth=true
  4141. visoreye=true
  4142. function key(key)
  4143. if key=="q" then
  4144. --[[so("172146984",RootPart,.6,2)
  4145. so("81116747",RootPart,1,1.4)]]
  4146.  
  4147. end
  4148. if attack==true then return end
  4149. if key=="f" then
  4150. pressedf=true
  4151. fnumb=0
  4152. attack=true
  4153. if equipped==false then
  4154. equipped=true
  4155. RSH=ch.Torso["Right Shoulder"]
  4156. LSH=ch.Torso["Left Shoulder"]
  4157. --
  4158. RSH.Parent=nil
  4159. LSH.Parent=nil
  4160. --
  4161. RW.Name="Right Shoulder"
  4162. RW.Part0=ch.Torso
  4163. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  4164. RW.C1=cf(0, 0.5, 0)
  4165. RW.Part1=ch["Right Arm"]
  4166. RW.Parent=ch.Torso
  4167. --
  4168. LW.Name="Left Shoulder"
  4169. LW.Part0=ch.Torso
  4170. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  4171. LW.C1=cf(0, 0.5, 0)
  4172. LW.Part1=ch["Left Arm"]
  4173. LW.Parent=ch.Torso
  4174. --
  4175. Animate.Parent=nil
  4176. equipanim()
  4177. else
  4178. equipped=false
  4179. hideanim()
  4180. LH.C1=LHC1
  4181. RH.C1=RHC1
  4182. Animate.Parent=Humanoid
  4183. swait(0)
  4184. RW.Parent=nil
  4185. LW.Parent=nil
  4186. RSH.Parent=player.Character.Torso
  4187. LSH.Parent=player.Character.Torso
  4188. end
  4189. attack=false
  4190. end
  4191. if equipped==false then return end
  4192. if key=="q" and Mode=="AilaBot" then
  4193. --LaserShot()
  4194. --SatelliteShot()
  4195. --QuadBarrage()
  4196. --QuadBurst()
  4197. end
  4198. --[[if key=="q" then
  4199. attack=true
  4200. ailaattack=true
  4201. for i=1,100 do
  4202. swait()
  4203. acloseleftfist()
  4204. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.1)*euler(.2,0,0),.3)
  4205. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.1),.3)
  4206. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57)*euler(0,1.57,0),.3)
  4207. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(0,-1.57,0),.3)
  4208. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.1)*euler(0,1.57,0)*euler(0,-.1,.1),.3)
  4209. LH.C0=clerp(LH.C0,cf(-1,-.8,.4)*euler(0,-1.57,0)*euler(-.2,.4,.2),.3)
  4210. abtwld1.C1=clerp(abtwld1.C1,euler(0,0,0),.3)
  4211. abw1wld3.C0=clerp(abw1wld3.C0,euler(0,0,0)*cf(0,-.6,0)*euler(-1.6,0,0),.2)
  4212. abw2wld1.C0=clerp(abw2wld1.C0,euler(0,0,0)*cf(0,-.2,-.4),.2)
  4213. abw2wld5.C0=clerp(abw2wld5.C0,euler(0,0,0)*cf(.2,-.2,0),.2)
  4214. abw2wld6.C0=clerp(abw2wld6.C0,euler(0,0,0)*cf(-.2,-.2,0),.2)
  4215. hwld1.C0=clerp(hwld1.C0,euler(.3,0,3.14)*cf(0,2.5,.3),.3)
  4216. abrawld2.C0=clerp(abrawld2.C0,euler(0,0,0)*cf(0,0,0),.2)
  4217. abrawld8.C0=clerp(abrawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(-.1,0,.2),.2)
  4218. abrawld10.C0=clerp(abrawld10.C0,euler(0,1,0)*cf(0,0,0),.2)
  4219. ablawld2.C0=clerp(ablawld2.C0,euler(0,0,0)*cf(0,0,0),.2)
  4220. ablawld8.C0=clerp(ablawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(.3,0,-.5),.2)
  4221. ablawld10.C0=clerp(ablawld10.C0,euler(0,1,0)*cf(0,0,0),.2)
  4222. end
  4223. ailaattack=false
  4224. attack=false
  4225. end]]
  4226. if key=="e" then
  4227. if Mode=="AilaBot" then
  4228. ChangeTarget()
  4229. end
  4230. end
  4231. if key=="z" then
  4232. do1()
  4233. end
  4234. if key=="x" then
  4235. do2()
  4236. end
  4237. if key=="c" then
  4238. do3()
  4239. end
  4240. if key=="v" then
  4241. do4()
  4242. end
  4243. if attack==false then
  4244. RecentEnemy.Value=nil
  4245. end
  4246. end
  4247.  
  4248. function key2(key)
  4249.  
  4250.  
  4251. end
  4252.  
  4253. function s(mouse)
  4254. mouse.Button1Down:connect(function() ob1d(mouse) end)
  4255. mouse.Button1Up:connect(function() ob1u(mouse) end)
  4256. mouse.KeyDown:connect(key)
  4257. mouse.KeyUp:connect(key2)
  4258.  
  4259. player=Player
  4260. ch=Character
  4261. MMouse=mouse
  4262. end
  4263.  
  4264. function ds(mouse)
  4265. end
  4266.  
  4267. Bin.Selected:connect(s)
  4268. Bin.Deselected:connect(ds)
  4269. print("Fen loaded.")
  4270.  
  4271. local mananum=0
  4272. local donum=0
  4273. local stunnum=0
  4274. local staggeranim=false
  4275. local stunanim=false
  4276. local Point=nil
  4277. local LastPoint=nil
  4278. local walk=0
  4279. local walkforw=true
  4280. local breakp=false
  4281. while true do
  4282. swait()
  4283. if Mode=="Normal" then
  4284. cooldownsadd[1]=.35
  4285. cooldownsadd[2]=.23
  4286. cooldownsadd[3]=.28
  4287. fenbarmove1.Text="(Z)\
  4288. Aila Stingers"
  4289. fenbarmove2.Text="(X)\
  4290. Booster Blaze"
  4291. fenbarmove3.Text="(C)\
  4292. Ground Bunker"
  4293. else
  4294. cooldownsadd[1]=.8
  4295. cooldownsadd[2]=.18
  4296. cooldownsadd[3]=.28
  4297. fenbarmove1.Text="(Z)\
  4298. Energy Drain"
  4299. fenbarmove2.Text="(X)\
  4300. Particle Cannon"
  4301. fenbarmove3.Text="(C)\
  4302. "
  4303. end
  4304. if Mode=="AilaBot" and AilaMode=="Ranged" and AilaTarget2~=nil and ailaattack==false and mana.Value>=5 then
  4305. if math.random(1,30)==1 then
  4306. mana.Value=mana.Value-5
  4307. coroutine.resume(coroutine.create(function()
  4308. d=math.random(1,4)
  4309. if d==1 then
  4310. LaserShot()
  4311. elseif d==2 then
  4312. SatelliteShot()
  4313. elseif d==3 then
  4314. QuadBarrage()
  4315. elseif d==4 then
  4316. QuadBurst()
  4317. end
  4318. end))
  4319. end
  4320. end
  4321. abtwld8.C0=abtwld8.C0*euler(0,.05,0)
  4322. abtwld9.C0=abtwld9.C0*euler(0,-.08,0)
  4323. abtwld10.C0=abtwld10.C0*euler(0,.11,0)
  4324. if ailaattack==false then
  4325. if AilaTarget=="None" then
  4326. AilaTarget2=nil
  4327. --abgy.cframe=cf(abtprt4.Position,RootPart.Position)*euler(0,0,3.14)
  4328. elseif AilaTarget=="Target" then
  4329. abgy.cframe=cf(abtprt4.Position,AilaTarget2.Position)*euler(0,0,3.14)
  4330. if AilaTarget2.Parent:findFirstChild("Humanoid")~=nil then
  4331. if AilaTarget2.Parent.Humanoid.Health<=0 then
  4332. AilaTarget="None"
  4333. AilaTarget2=nil
  4334. end
  4335. end
  4336. elseif AilaTarget=="Nearest" then
  4337. target,distance=findNearestTorso(RootPart.Position)
  4338. if target~=nil then
  4339. AilaTarget2=target
  4340. abgy.cframe=cf(abtprt4.Position,target.Position)*euler(0,0,3.14)
  4341. else
  4342. AilaTarget2=nil
  4343. end
  4344. end
  4345. end
  4346. if AilaMode=="Ranged" then
  4347. abtwld1.C0=clerp(abtwld1.C0,cf(0,donum,0),.3)
  4348. if AilaTarget2==nil then
  4349. pos4=vt(RootPart.Position.X,abtprt4.Position.Y,RootPart.Position.Z)
  4350. abgy.cframe=cf(abtprt4.Position,pos4)*euler(0,0,3.14)
  4351. if ailaattack==false then
  4352. abtwld1.C1=clerp(abtwld1.C1,euler(0,0,0),.3)
  4353. abw1wld3.C0=clerp(abw1wld3.C0,cf(0,-.6,0)*euler(0,0,0),.2)
  4354. abw2wld1.C0=clerp(abw2wld1.C0,euler(0,0,3.14)*cf(0,-.8,-.4),.2)
  4355. abw2wld5.C0=clerp(abw2wld5.C0,euler(0,0,0)*cf(.1,.6,0),.2)
  4356. abw2wld6.C0=clerp(abw2wld6.C0,euler(0,0,0)*cf(-.1,.6,0),.2)
  4357. hwld1.C0=clerp(hwld1.C0,euler(.3,0,3.14)*cf(0,2.5,.3),.3)
  4358. abrawld2.C0=clerp(abrawld2.C0,euler(0,0,0)*cf(0,0,0),.2)
  4359. abrawld8.C0=clerp(abrawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(-.1,0,-.2),.2)
  4360. abrawld10.C0=clerp(abrawld10.C0,euler(0,.2,0)*cf(0,0,0),.2)
  4361. ablawld2.C0=clerp(ablawld2.C0,euler(0,0,0)*cf(0,0,0),.2)
  4362. ablawld8.C0=clerp(ablawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(.1,0,-.2),.2)
  4363. ablawld10.C0=clerp(ablawld10.C0,euler(0,.2,0)*cf(0,0,0),.2)
  4364. end
  4365. else
  4366. if ailaattack==false then
  4367. abtwld1.C1=clerp(abtwld1.C1,euler(0,0,0),.3)
  4368. abw1wld3.C0=clerp(abw1wld3.C0,euler(0,0,0)*cf(0,-.6,0)*euler(-1.6,0,0),.2)
  4369. abw2wld1.C0=clerp(abw2wld1.C0,euler(0,0,0)*cf(0,-.2,-.4),.2)
  4370. abw2wld5.C0=clerp(abw2wld5.C0,euler(0,0,0)*cf(.2,-.2,0),.2)
  4371. abw2wld6.C0=clerp(abw2wld6.C0,euler(0,0,0)*cf(-.2,-.2,0),.2)
  4372. hwld1.C0=clerp(hwld1.C0,euler(.3,0,3.14)*cf(0,2.5,.3),.3)
  4373. abrawld2.C0=clerp(abrawld2.C0,euler(0,0,0)*cf(0,0,0),.2)
  4374. abrawld8.C0=clerp(abrawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(-.1,0,0),.2)
  4375. abrawld10.C0=clerp(abrawld10.C0,euler(0,.6,0)*cf(0,0,0),.2)
  4376. ablawld2.C0=clerp(ablawld2.C0,euler(0,0,0)*cf(0,0,0),.2)
  4377. ablawld8.C0=clerp(ablawld8.C0,euler(3.14,0,0)*cf(0,.9,0)*euler(.1,0,-.2),.2)
  4378. ablawld10.C0=clerp(ablawld10.C0,euler(0,.2,0)*cf(0,0,0),.2)
  4379. end
  4380. end
  4381. end
  4382. if Humanoid.Health<=0 then
  4383. attack=true
  4384. if explode==false then
  4385. explode=true
  4386. RootPart.Anchored=true
  4387. --[[b=Instance.new("Explosion")
  4388. b.BlastPressure=0
  4389. b.Position=Torso.Position
  4390. b.Parent=workspace]]
  4391. end
  4392. resumeControl()
  4393. modelzorz.Parent=workspace
  4394. game:GetService("Debris"):AddItem(modelzorz,30)
  4395. pdriver.Parent=workspace
  4396. game:GetService("Debris"):AddItem(pdriver,30)
  4397. armor.Parent=workspace
  4398. game:GetService("Debris"):AddItem(armor,30)
  4399. for i=1,#Weapon do
  4400. Weapon[i].Parent=modelzorz
  4401. Weapon[i].CanCollide=true
  4402. end
  4403. for i=1,#PDriver do
  4404. PDriver[i].Parent=pdriver
  4405. PDriver[i].CanCollide=true
  4406. end
  4407. for i=1,#Armor do
  4408. if Armor[i].Name=="Armor Head Part12v" or Armor[i].Name=="Armor Head Part13v" then
  4409. Armor[i].Parent=nil
  4410. end
  4411. --[[if math.random(1,5)==1 then
  4412. Armor[i]:BreakJoints()
  4413. end]]
  4414. Armor[i].Parent=armor
  4415. Armor[i].CanCollide=true
  4416. end
  4417. if breakp==false then
  4418. breakp=true
  4419. for _,c in pairs(Character:children()) do
  4420. if c.className=="Part" then
  4421. c.CanCollide=false
  4422. end
  4423. end
  4424. for i=1,#Welds do
  4425. if math.random(1,5)==1 then
  4426. Welds[i].Parent=nil
  4427. else
  4428. Welds[i].Parent=lprt1
  4429. end
  4430. if Welds[i].Part0.Parent==Character or Welds[i].Part1.Parent==Character then
  4431. Welds[i].Parent=nil
  4432. end
  4433. end
  4434. for i=1,#AWelds do
  4435. if math.random(1,5)==1 then
  4436. AWelds[i].Parent=nil
  4437. else
  4438. AWelds[i].Parent=atprt1
  4439. end
  4440. if AWelds[i].Part0.Parent==Character or AWelds[i].Part1.Parent==Character then
  4441. AWelds[i].Parent=nil
  4442. end
  4443. end
  4444. for i=1,#PDWelds do
  4445. if math.random(1,5)==1 then
  4446. PDWelds[i].Parent=nil
  4447. else
  4448. PDWelds[i].Parent=pdprt1
  4449. end
  4450. if PDWelds[i].Part0.Parent==Character or PDWelds[i].Part1.Parent==Character then
  4451. PDWelds[i].Parent=nil
  4452. end
  4453. end
  4454. end
  4455. end
  4456. if fnumb<21 then
  4457. fnumb=fnumb+1
  4458. if pressedf==false then
  4459. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency-.025
  4460. tellbar.TextTransparency=tellbar.TextTransparency-.05
  4461. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency-.05
  4462. else
  4463. if fnumb==20 then
  4464. fenframe5.Parent=nil
  4465. print("daigui")
  4466. end
  4467. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency+.025
  4468. tellbar.TextTransparency=tellbar.TextTransparency+.05
  4469. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency+.05
  4470. end
  4471. end
  4472. passive1.Value=.1
  4473. passive2.Value=0
  4474. if tavis==true then
  4475. passive1.Value=passive1.Value-.2
  4476. passive2.Value=passive2.Value+.05
  4477. end
  4478. if laarmvis==true then
  4479. passive1.Value=passive1.Value-.1
  4480. passive2.Value=passive2.Value+.05
  4481. end
  4482. if raarmvis==true then
  4483. passive1.Value=passive1.Value-.1
  4484. passive2.Value=passive2.Value+.05
  4485. end
  4486. if lalegvis==true then
  4487. passive1.Value=passive1.Value-.1
  4488. passive2.Value=passive2.Value+.05
  4489. end
  4490. if ralegvis==true then
  4491. passive1.Value=passive1.Value-.1
  4492. passive2.Value=passive2.Value+.05
  4493. end
  4494. for i=1,#PDriver do
  4495. if i>=0 and i<=10 then
  4496. if lpdvis==true then
  4497. if PDriver[i].Transparency>0 then
  4498. PDriver[i].Transparency=PDriver[i].Transparency-.08
  4499. end
  4500. elseif lpdvis==false then
  4501. if PDriver[i].Transparency<1 then
  4502. PDriver[i].Transparency=PDriver[i].Transparency+.05
  4503. end
  4504. end
  4505. elseif i>=11 and i<=20 then
  4506. if rpdvis==true then
  4507. if PDriver[i].Transparency>0 then
  4508. PDriver[i].Transparency=PDriver[i].Transparency-.08
  4509. end
  4510. elseif rpdvis==false then
  4511. if PDriver[i].Transparency<1 then
  4512. PDriver[i].Transparency=PDriver[i].Transparency+.05
  4513. end
  4514. end
  4515. end
  4516. end
  4517. for i=1,#Armor do
  4518. if string.sub(Armor[i].Name,7,13)=="LeftArm" then
  4519. if laarmvis==true then
  4520. if Armor[i].Transparency>0 then
  4521. Armor[i].Transparency=Armor[i].Transparency-.08
  4522. end
  4523. elseif laarmvis==false then
  4524. if Armor[i].Transparency<1 then
  4525. Armor[i].Transparency=Armor[i].Transparency+.05
  4526. end
  4527. end
  4528. end
  4529. if string.sub(Armor[i].Name,7,14)=="RightArm" then
  4530. if raarmvis==true then
  4531. if Armor[i].Transparency>0 then
  4532. Armor[i].Transparency=Armor[i].Transparency-.08
  4533. end
  4534. elseif raarmvis==false then
  4535. if Armor[i].Transparency<1 then
  4536. Armor[i].Transparency=Armor[i].Transparency+.05
  4537. end
  4538. end
  4539. end
  4540. if string.sub(Armor[i].Name,7,13)=="LeftLeg" then
  4541. if lalegvis==true then
  4542. if Armor[i].Transparency>0 then
  4543. Armor[i].Transparency=Armor[i].Transparency-.08
  4544. end
  4545. elseif lalegvis==false then
  4546. if Armor[i].Transparency<1 then
  4547. Armor[i].Transparency=Armor[i].Transparency+.05
  4548. end
  4549. end
  4550. end
  4551. if string.sub(Armor[i].Name,7,14)=="RightLeg" then
  4552. if ralegvis==true then
  4553. if Armor[i].Transparency>0 then
  4554. Armor[i].Transparency=Armor[i].Transparency-.08
  4555. end
  4556. elseif ralegvis==false then
  4557. if Armor[i].Transparency<1 then
  4558. Armor[i].Transparency=Armor[i].Transparency+.05
  4559. end
  4560. end
  4561. end
  4562. if string.sub(Armor[i].Name,7,11)=="Torso" then
  4563. if tavis==true then
  4564. if Armor[i].Transparency>0 then
  4565. Armor[i].Transparency=Armor[i].Transparency-.08
  4566. end
  4567. elseif tavis==false then
  4568. if Armor[i].Transparency<1 then
  4569. Armor[i].Transparency=Armor[i].Transparency+.05
  4570. end
  4571. end
  4572. end
  4573. end
  4574. hitbox2.Parent=hitbox.Parent
  4575. hitbox2.Size=hitbox.Size
  4576. hitbox2.CFrame=hitboxCF
  4577. hboxpos.position=hitbox2.Position+vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  4578. if Stagger.Value==true and staggeranim==false then
  4579. coroutine.resume(coroutine.create(function()
  4580. staggeranim=true
  4581. while attack==true do
  4582. swait()
  4583. end
  4584. StaggerAnim()
  4585. StaggerHit.Value=false
  4586. Stagger.Value=false
  4587. staggeranim=false
  4588. end))
  4589. end
  4590. if StaggerHit.Value==true and staggeranim==false then
  4591. coroutine.resume(coroutine.create(function()
  4592. staggeranim=true
  4593. while attack==true do
  4594. swait()
  4595. end
  4596. StaggerHitt()
  4597. StaggerHit.Value=false
  4598. Stagger.Value=false
  4599. staggeranim=false
  4600. end))
  4601. end
  4602. if Mvmt.Value<0 or Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true or Rooted.Value==true then
  4603. Humanoid.WalkSpeed=0
  4604. else
  4605. Humanoid.WalkSpeed=16*Mvmt.Value
  4606. end
  4607. if Stun.Value>=StunT.Value and stunanim==false then
  4608. coroutine.resume(coroutine.create(function()
  4609. stunanim=true
  4610. while attack==true do
  4611. swait()
  4612. end
  4613. StunAnim()
  4614. Stun.Value=0
  4615. stunanim=false
  4616. end))
  4617. end
  4618. local stunnum2=45
  4619. if stunnum>=stunnum2 then
  4620. if Stun.Value>0 then
  4621. Stun.Value=Stun.Value-1
  4622. end
  4623. stunnum=0
  4624. end
  4625. stunnum=stunnum+1
  4626. if donum>=.5 then
  4627. handidle=true
  4628. elseif donum<=0 then
  4629. handidle=false
  4630. end
  4631. if handidle==false then
  4632. donum=donum+0.003
  4633. else
  4634. donum=donum-0.003
  4635. end
  4636. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  4637. local velderp=RootPart.Velocity.y
  4638. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  4639. if equipped==true then
  4640. if attack==false then
  4641. idle=idle+1
  4642. else
  4643. idle=0
  4644. end
  4645. if idle>=500 then
  4646. if attack==false then
  4647. --Sheath()
  4648. end
  4649. end
  4650. if (Anim=="Walk" or Anim=="Run") and move2do==false then
  4651. if walkforw==true then
  4652. RH.C1=clerp(RH.C1,RHC1*cf(.2,-.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  4653. LH.C1=clerp(LH.C1,LHC1*cf(.1,.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  4654. if attack==false then
  4655. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(-1,0,0),(Mvmt.Value*10)/50)
  4656. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(1,0,0),(Mvmt.Value*10)/50)
  4657. else
  4658. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4659. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4660. end
  4661. else
  4662. RH.C1=clerp(RH.C1,RHC1*cf(-.1,.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  4663. LH.C1=clerp(LH.C1,LHC1*cf(-.2,-.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  4664. if attack==false then
  4665. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(1,0,0),(Mvmt.Value*10)/50)
  4666. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(-1,0,0),(Mvmt.Value*10)/50)
  4667. else
  4668. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4669. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4670. end
  4671. end
  4672. else
  4673. RH.C1=clerp(RH.C1,RHC1,.2)
  4674. LH.C1=clerp(LH.C1,LHC1,.2)
  4675. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4676. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  4677. end
  4678. if RootPart.Velocity.y > 1 and hitfloor==nil then
  4679. Anim="Jump"
  4680. if attack==false then
  4681. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,-.2,0),.1)
  4682. pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,-.2,0),.1)
  4683. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.2)
  4684. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  4685. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,1),.2)
  4686. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.5,0,-1),.2)
  4687. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  4688. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  4689. end
  4690. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  4691. Anim="Fall"
  4692. if attack==false then
  4693. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,-.2,0),.1)
  4694. pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,-.2,0),.1)
  4695. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.2)
  4696. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  4697. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.5),.2)
  4698. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.5),.2)
  4699. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  4700. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  4701. end
  4702. elseif torvel<1 and hitfloor~=nil then
  4703. Anim="Idle"
  4704. if attack==false then
  4705. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,-.2,0),.1)
  4706. pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,-.2,0),.1)
  4707. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.1)*euler(.1,0,0),.3)
  4708. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,.1),.3)
  4709. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.4-(donum/5),0,.5-(donum/5))*euler(0,-1,0),.3)
  4710. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.4-(donum/5),0,-.5-(donum/5))*euler(0,.5,0),.3)
  4711. RH.C0=clerp(RH.C0,cf(1.05,-.9,-.1)*euler(0,1.57,0)*euler(0,-.1,.1),.2)
  4712. LH.C0=clerp(LH.C0,cf(-1,-.8,.4)*euler(0,-1.57,0)*euler(-.2,.4,.2),.2)
  4713. end
  4714. elseif torvel>2 and torvel<30 and hitfloor~=nil then
  4715. Anim="Walk"
  4716. --print(walk)
  4717. walk=walk+1
  4718. if walk>=15-(5*Mvmt.Value) then
  4719. walk=0
  4720. if walkforw==true then
  4721. walkforw=false
  4722. elseif walkforw==false then
  4723. walkforw=true
  4724. end
  4725. end
  4726. if attack==false then
  4727. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,-.2,0),.1)
  4728. pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,-.2,0),.1)
  4729. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0),.2)
  4730. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  4731. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.1,0,.1),.2)
  4732. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.1,0,-.1),.2)
  4733. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.2)
  4734. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.2)
  4735. end
  4736. elseif torvel>=30 and hitfloor~=nil then
  4737. Anim="Run"
  4738. if attack==false then
  4739. pdwld9.C0=clerp(pdwld9.C0,euler(0,0,0)*cf(0,-.2,0),.1)
  4740. pdwld19.C0=clerp(pdwld19.C0,euler(0,0,0)*cf(0,-.2,0),.1)
  4741. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0),.2)
  4742. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  4743. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.1,0,.1),.2)
  4744. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.1,0,-.1),.2)
  4745. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.2)
  4746. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.2)
  4747. end
  4748. end
  4749. end
  4750. if #Effects>0 then
  4751. --table.insert(Effects,{prt,"Block1",delay})
  4752. for e=1,#Effects do
  4753. if Effects[e]~=nil then
  4754. --for j=1,#Effects[e] do
  4755. local Thing=Effects[e]
  4756. if Thing~=nil then
  4757. local Part=Thing[1]
  4758. local Mode=Thing[2]
  4759. local Delay=Thing[3]
  4760. local IncX=Thing[4]
  4761. local IncY=Thing[5]
  4762. local IncZ=Thing[6]
  4763. --[[if Thing[2]=="DecreaseStat" then
  4764. Thing[5]=Thing[5]-1
  4765. if Thing[5]<=0 then
  4766. if Thing[1]:findFirstChild("Stats")~=nil then
  4767. if Thing[1].Stats:findFirstChild("Decrease")~=nil then
  4768. end
  4769. end
  4770. Thing[6].Parent=nil
  4771. table.remove(Effects,e)
  4772. end
  4773. end]]
  4774. if Thing[2]=="CylinderClang" then
  4775. if Thing[3]<=1 then
  4776. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  4777. Thing[7]=Thing[1].CFrame
  4778. effect("New Yeller",0,Thing[8],Thing[7])
  4779. Thing[8]=Thing[7]
  4780. Thing[3]=Thing[3]+Thing[4]
  4781. else
  4782. Part.Parent=nil
  4783. table.remove(Effects,e)
  4784. end
  4785. --[[Mesh=Thing[7]
  4786. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4787. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  4788. end
  4789. if Thing[2]=="showDamage" then
  4790. if Thing[6]<Thing[5] then
  4791. Thing[6]=Thing[6]+1
  4792. elseif Thing[6]<Thing[7] then
  4793. Thing[4].position=Thing[4].position+vt(0,-.2,0)
  4794. Thing[6]=Thing[6]+1
  4795. elseif Thing[6]<Thing[8] then
  4796. Thing[6]=Thing[6]+1
  4797. elseif Thing[6]<Thing[9] then
  4798. Thing[6]=Thing[6]+1
  4799. Thing[4].position=Thing[4].position+vt(0,.2,0)
  4800. Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
  4801. Thing[3].TextTransparency=Thing[3].TextTransparency+.1
  4802. else
  4803. Thing[1].Parent=nil
  4804. table.remove(Effects,e)
  4805. end
  4806. end
  4807. if Thing[2]=="SatelliteStrike" then
  4808. if Thing[5]<80 then
  4809. Thing[5]=Thing[5]+1.5
  4810. Thing[4].Scale=vt(Thing[5],5,Thing[5])
  4811. else
  4812. refda=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  4813. refda.Anchored=true
  4814. refda.CFrame=cf(Thing[1].Position)
  4815. game:GetService("Debris"):AddItem(refda,1)
  4816. so("300916057",refda,1,1)
  4817. MagniDamage(refda,8,4,8,0,"Normal",true,"Movement",.04,300,math.random(3,4),refda,0,1)
  4818. MagicHead(BrickColor.new("Medium blue"),cf(refda.Position),3,9999,3,1,1,1,.1)
  4819.  
  4820. for i=1,3 do
  4821. MagicCircle(BrickColor.new("Medium blue"),cf(refda.Position),10,10,10,4*i,4*i,4*i,.08)
  4822. end
  4823. Thing[1].Parent=nil
  4824. --MagicIcicle(BrickColor.new("Bright green"),cf(Thing[1].Position)*cf(0,-4,0)*euler(math.random(-50,50)/100,0,math.random(-50,50)/100),5,15,5,.05)
  4825. table.remove(Effects,e)
  4826. end
  4827. end
  4828. if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" then
  4829. if Thing[1].Transparency<=1 then
  4830. if Thing[2]=="Block1" then
  4831. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4832. Mesh=Thing[7]
  4833. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4834. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4835. elseif Thing[2]=="Ice" then
  4836. --prt,"Ice",delay,msh,1,.2
  4837. if Thing[6]<=Thing[5] then
  4838. Thing[6]=Thing[6]+.05
  4839. Thing[1].CFrame=Thing[1].CFrame*cf(0,.4,0)
  4840. else
  4841. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4842. end
  4843. elseif Thing[2]=="Shatter" then
  4844. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4845. Thing[4]=Thing[4]*cf(0,Thing[7],0)
  4846. Thing[1].CFrame=Thing[4]*euler(Thing[6],0,0)
  4847. --Thing[1].CFrame=Thing[1].CFrame
  4848. Thing[6]=Thing[6]+Thing[5]
  4849. elseif Thing[2]=="Block2" then
  4850. Thing[1].CFrame=Thing[1].CFrame
  4851. Mesh=Thing[7]
  4852. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4853. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4854. elseif Thing[2]=="Block3" then
  4855. Thing[1].CFrame=Thing[8].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4856. Mesh=Thing[7]
  4857. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4858. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4859. elseif Thing[2]=="Block4" then
  4860. Thing[1].CFrame=Thing[8].CFrame*cf(0,-Thing[7].Scale.Y,0)*euler(3.14,0,0)
  4861. Mesh=Thing[7]
  4862. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4863. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4864. elseif Thing[2]=="Block2Fire" then
  4865. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  4866. Mesh=Thing[7]
  4867. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4868. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4869. if Thing[1].Transparency>=.3 then
  4870. Thing[1].BrickColor=BrickColor.new("Bright red")
  4871. else
  4872. Thing[1].BrickColor=BrickColor.new("Bright yellow")
  4873. end
  4874. elseif Thing[2]=="Cylinder" then
  4875. Mesh=Thing[7]
  4876. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4877. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4878. elseif Thing[2]=="Blood" then
  4879. Mesh=Thing[7]
  4880. Thing[1].CFrame=Thing[1].CFrame*cf(0,-.5,0)
  4881. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  4882. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4883. elseif Thing[2]=="Elec" then
  4884. Mesh=Thing[10]
  4885. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  4886. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4887. Thing[1].CFrame=Thing[1].CFrame*Thing[11]*cf(0,0,.2)
  4888. Thing[1].Rotation=vt(0,0,0)
  4889. elseif Thing[2]=="Disappear" then
  4890. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  4891. end
  4892. else
  4893. Part.Parent=nil
  4894. table.remove(Effects,e)
  4895. end
  4896. end
  4897. end
  4898. --end
  4899. end
  4900. end
  4901. end
  4902. fenbarmana2:TweenSize(UDim2.new(.4,0,-4*mana.Value/100,0),nil,1,0.4,true)
  4903. fenbarmana4.Text="Mana("..mana.Value..")"
  4904. fenbarhp2.BackgroundColor3=Color3.new(Humanoid.Health/Humanoid.MaxHealth,0,0)
  4905. fenbarhp2:TweenSize(UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0),nil,1,0.4,true)
  4906. fenbarhp3.Text="("..math.floor(Humanoid.Health)..")"
  4907. fenbarmove1b:TweenSize(UDim2.new(1*cooldowns[1]/cooldownmax,0,1,0),nil,1,0.4,true)
  4908. fenbarmove2b:TweenSize(UDim2.new(1*cooldowns[2]/cooldownmax,0,1,0),nil,1,0.4,true)
  4909. fenbarmove3b:TweenSize(UDim2.new(1*cooldowns[3]/cooldownmax,0,1,0),nil,1,0.4,true)
  4910. fenbarmove4b:TweenSize(UDim2.new(1*cooldowns[4]/cooldownmax,0,1,0),nil,1,0.4,true)
  4911. for _,c in pairs(Decrease:children()) do
  4912. if c:findFirstChild("Duration")~=nil then
  4913. c.Duration.Value=c.Duration.Value-1
  4914. if c.Duration.Value<=0 then
  4915. c.Parent=nil
  4916. end
  4917. end
  4918. if c.Name=="DecreaseAtk" then
  4919. decreaseatk=decreaseatk+c.Value
  4920. elseif c.Name=="DecreaseDef" then
  4921. decreasedef=decreasedef+c.Value
  4922. elseif c.Name=="DecreaseMvmt" then
  4923. decreasemvmt=decreasemvmt+c.Value
  4924. end
  4925. end
  4926. Atk.Value=1-decreaseatk
  4927. if Atk.Value<=0 then
  4928. Atk.Value=0
  4929. end
  4930. Def.Value=1-decreasedef
  4931. if Def.Value<=0 then
  4932. Def.Value=0.01
  4933. end
  4934. Mvmt.Value=1-decreasemvmt
  4935. if Mvmt.Value<=0 then
  4936. Mvmt.Value=0
  4937. end
  4938. decreaseatk=0
  4939. decreasedef=0
  4940. decreasemvmt=0
  4941. AtkVal=Atk.Value*100
  4942. AtkVal=math.floor(AtkVal)
  4943. AtkVal=AtkVal/100
  4944. fenbardamage.Text="Damage\
  4945. ("..(AtkVal)..")"
  4946. DefVal=Def.Value*100
  4947. DefVal=math.floor(DefVal)
  4948. DefVal=DefVal/100
  4949. fenbardef.Text="Defense\
  4950. ("..(DefVal)..")"
  4951. MvmtVal=Mvmt.Value*100
  4952. MvmtVal=math.floor(MvmtVal)
  4953. MvmtVal=MvmtVal/100
  4954. fenbarmove.Text="Walkspeed\
  4955. ("..(MvmtVal)..")"
  4956. if Stun.Value>=StunT.Value then
  4957. fenbarstun2:TweenSize(UDim2.new(.4,0,-4,0),nil,1,0.4,true)
  4958. else
  4959. fenbarstun2:TweenSize(UDim2.new(.4,0,-4*Stun.Value/100,0),nil,1,0.4,true)
  4960. end
  4961. fenbarstun3.Text="Stun("..Stun.Value..")"
  4962. if mana.Value>=100 then
  4963. mana.Value=100
  4964. else
  4965. local managain=13
  4966. if Mode~="Normal" then
  4967. managain=20
  4968. end
  4969. if mananum<=managain then
  4970. mananum=mananum+1
  4971. else
  4972. mananum=0
  4973. mana.Value=mana.Value+1
  4974. end
  4975. end
  4976. --[[if cooldown1>=cooldownmax then
  4977. cooldown1=cooldownmax
  4978. else
  4979. cooldown1=cooldown1+cooldownadd1
  4980. end]]
  4981. for i=1,#cooldowns do
  4982. if cooldowns[i]>=cooldownmax then
  4983. cooldowns[i]=cooldownmax
  4984. else
  4985. cooldowns[i]=cooldowns[i]+cooldownsadd[i]
  4986. end
  4987. end
  4988. end
  4989.  
  4990. --[[
  4991. Copyrighted (C) Fenrier 2015
  4992. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement