memberhero

Fendam test

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