Advertisement
astronaut32

fendam

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