Advertisement
Dark_EccentricYT

Untitled

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