Advertisement
DDDDDtuij

Vanta

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