Advertisement
Dark_EccentricYT

Untitled

May 9th, 2017
1,455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 164.03 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 = Player:GetMouse()
  35. combo = 0
  36. local hitfloor, posfloor = nil, nil
  37. local idle = 0
  38. local Anim = "Idle"
  39. local Effects = {}
  40. local Weapon = {}
  41. local Welds = {}
  42. local decreaseatk = 0
  43. local decreasedef = 0
  44. local decreasemvmt = 0
  45. local TopStaff = {}
  46. local TSCF = cf(0, 0, 0)
  47. local BotStaff = {}
  48. local BSCF = cf(0, 0, 0)
  49. local Orbs = {}
  50. local OOrbs = {}
  51. local Protected = {}
  52. local O1 = false
  53. local O2 = false
  54. local O3 = false
  55. local O4 = false
  56. local eCharge = false
  57. local energ = 0
  58. local smite = false
  59. local smtarget = nil
  60. local move1 = "(Z)\nOverload"
  61. local move2 = "(X)\nDischarge"
  62. local move3 = "(C)\nSmite"
  63. local move4 = "(V)\nUnleashed Diety"
  64. local cooldowns = {}
  65. local cooldown1 = 0
  66. table.insert(cooldowns, cooldown1)
  67. local cooldown2 = 0
  68. table.insert(cooldowns, cooldown2)
  69. local cooldown3 = 0
  70. table.insert(cooldowns, cooldown3)
  71. local cooldown4 = 0
  72. table.insert(cooldowns, cooldown4)
  73. local cooldownsadd = {}
  74. local cooldownadd1 = 0.35
  75. table.insert(cooldownsadd, cooldownadd1)
  76. local cooldownadd2 = 0.16
  77. table.insert(cooldownsadd, cooldownadd2)
  78. local cooldownadd3 = 0.1
  79. table.insert(cooldownsadd, cooldownadd3)
  80. local cooldownadd4 = 0.08
  81. table.insert(cooldownsadd, cooldownadd4)
  82. local cooldownmax = 100
  83. player = nil
  84. RSH = nil
  85. RW = Instance.new("Motor")
  86. LW = Instance.new("Motor")
  87. RW.Name = "Right Shoulder"
  88. LW.Name = "Left Shoulder"
  89. LH = Torso["Left Hip"]
  90. RH = Torso["Right Hip"]
  91. TorsoColor = Torso.BrickColor
  92. TorsoRed = TorsoColor.Color.r
  93. TorsoGreen = TorsoColor.Color.g
  94. TorsoBlue = TorsoColor.Color.b
  95. NewCol = BrickColor.new("White").Color
  96. NewCol2 = BrickColor.new("Lapis").Color
  97. NewCol3 = BrickColor.new("Navy blue").Color
  98. NewCol4 = BrickColor.new("Bright blue").Color
  99. if Player:findFirstChild("Color1") ~= nil then
  100. NewCol = Player.Color1.Value
  101. end
  102. if Player:findFirstChild("Color2") ~= nil then
  103. NewCol2 = Player.Color2.Value
  104. end
  105. print(BrickColor.new(NewCol))
  106. local mdec = Instance.new("NumberValue", Decrease)
  107. mdec.Name = "DecreaseDef"
  108. mdec.Value = 0.4
  109. local mdec2 = Instance.new("NumberValue", Decrease)
  110. mdec2.Name = "DecreaseMvmt"
  111. mdec2.Value = 0.1
  112. if Character:findFirstChild("Effects", true) ~= nil then
  113. Character:findFirstChild("Effects", true).Parent = nil
  114. end
  115. local effects = it("Model", Character)
  116. effects.Name = "Effects"
  117. local Animate = Humanoid.Animator
  118. local canjump = true
  119. removeControl = function()
  120. canjump = false
  121. end
  122. resumeControl = function()
  123. canjump = true
  124. end
  125. Player.Character.Humanoid.Changed:connect(function()
  126. if canjump == false then
  127. Player.Character.Humanoid.Jump = false
  128. end
  129. end)
  130. ArtificialHB = Instance.new("BindableEvent", script)
  131. ArtificialHB.Name = "Heartbeat"
  132.  
  133. script:WaitForChild("Heartbeat")
  134.  
  135. frame = 1 / 60
  136. tf = 0
  137. allowframeloss = true
  138. tossremainder = false
  139. lastframe = tick()
  140. script.Heartbeat:Fire()
  141.  
  142. game:GetService("RunService").Heartbeat:connect(function(s, p)
  143. tf = tf + s
  144. if tf >= frame then
  145. if allowframeloss then
  146. script.Heartbeat:Fire()
  147. lastframe = tick()
  148. else
  149. for i = 1, math.floor(tf / frame) do
  150. script.Heartbeat:Fire()
  151. end
  152. lastframe = tick()
  153. end
  154. if tossremainder then
  155. tf = 0
  156. else
  157. tf = tf - frame * math.floor(tf / frame)
  158. end
  159. end
  160. end)
  161.  
  162. function swait(num)
  163. if num == 0 or num == nil then
  164. ArtificialHB.Event:wait()
  165. else
  166. for i = 0, num do
  167. ArtificialHB.Event:wait()
  168. end
  169. end
  170. end
  171. if Character:findFirstChild("Ezelle", true) ~= nil then
  172. Character:findFirstChild("Ezelle", true).Parent = nil
  173. end
  174. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  175. Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  176. end
  177. if Character:findFirstChild("Stats", true) ~= nil then
  178. Character:findFirstChild("Stats", true).Parent = nil
  179. end
  180. local Stats = Instance.new("BoolValue")
  181. Stats.Name = "Stats"
  182. Stats.Parent = Character
  183. local Atk = Instance.new("NumberValue")
  184. Atk.Name = "Damage"
  185. Atk.Parent = Stats
  186. Atk.Value = 1
  187. local Def = Instance.new("NumberValue")
  188. Def.Name = "Defense"
  189. Def.Parent = Stats
  190. Def.Value = 1
  191. local Mvmt = Instance.new("NumberValue")
  192. Mvmt.Name = "Movement"
  193. Mvmt.Parent = Stats
  194. Mvmt.Value = 1
  195. local Block = Instance.new("BoolValue")
  196. Block.Name = "Block"
  197. Block.Parent = Stats
  198. Block.Value = false
  199. local Stun = Instance.new("NumberValue")
  200. Stun.Name = "Stun"
  201. Stun.Parent = Stats
  202. Stun.Value = 0
  203. local StunT = Instance.new("NumberValue")
  204. StunT.Name = "StunThreshold"
  205. StunT.Parent = Stats
  206. StunT.Value = 100
  207. local Rooted = Instance.new("BoolValue")
  208. Rooted.Name = "Rooted"
  209. Rooted.Parent = Stats
  210. Rooted.Value = false
  211. local Stunned = Instance.new("BoolValue")
  212. Stunned.Name = "Stunned"
  213. Stunned.Parent = Stats
  214. Stunned.Value = false
  215. local Stagger = Instance.new("BoolValue")
  216. Stagger.Name = "Stagger"
  217. Stagger.Parent = Stats
  218. Stagger.Value = false
  219. local StaggerHit = Instance.new("BoolValue")
  220. StaggerHit.Name = "StaggerHit"
  221. StaggerHit.Parent = Stats
  222. StaggerHit.Value = false
  223. local RecentEnemy = Instance.new("ObjectValue")
  224. RecentEnemy.Name = "RecentEnemy"
  225. RecentEnemy.Parent = Stats
  226. RecentEnemy.Value = nil
  227. local Decrease = Instance.new("BoolValue")
  228. Decrease.Name = "Decrease"
  229. Decrease.Parent = Stats
  230. Decrease.Value = false
  231. local mana = Instance.new("NumberValue")
  232. mana.Name = "Mana"
  233. mana.Parent = Stats
  234. mana.Value = 100
  235. NoOutline = function(Part)
  236. Part.TopSurface = 10
  237. end
  238. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  239. local fp = it("Part")
  240. fp.formFactor = formfactor
  241. fp.Parent = parent
  242. fp.Reflectance = reflectance
  243. fp.Transparency = transparency
  244. fp.CanCollide = false
  245. fp.Locked = true
  246. fp.BrickColor = brickcolor
  247. fp.Name = name
  248. fp.Size = size
  249. fp.Position = Torso.Position
  250. NoOutline(fp)
  251. fp.Material = "SmoothPlastic"
  252. fp:BreakJoints()
  253. return fp
  254. end
  255. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  256. local mesh = it(Mesh)
  257. mesh.Parent = part
  258. if Mesh == "SpecialMesh" then
  259. mesh.MeshType = meshtype
  260. if meshid ~= "nil" then
  261. if meshid == "rbxasset://fonts/leftarm.mesh" then
  262. mesh.MeshId = meshid
  263. else
  264. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  265. end
  266. end
  267. end
  268. mesh.Offset = offset
  269. mesh.Scale = scale
  270. return mesh
  271. end
  272. weld = function(parent, part0, part1, c0)
  273. local weld = it("Motor")
  274. weld.Parent = parent
  275. weld.Part0 = part0
  276. weld.Part1 = part1
  277. weld.C0 = c0
  278. return weld
  279. end
  280. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  281. local gui = it(GuiType)
  282. gui.Parent = parent
  283. gui.Text = text
  284. gui.BackgroundTransparency = backtrans
  285. gui.BackgroundColor3 = backcol
  286. gui.SizeConstraint = "RelativeXY"
  287. gui.TextXAlignment = "Center"
  288. gui.TextYAlignment = "Center"
  289. gui.Position = pos
  290. gui.Size = size
  291. gui.Font = "SourceSans"
  292. gui.FontSize = "Size14"
  293. gui.TextWrapped = false
  294. gui.TextStrokeTransparency = 0
  295. gui.TextColor = BrickColor.new("White")
  296. return gui
  297. end
  298. local handle = nil
  299. AesthPart = function(model, wldpar, reflec, trans, col, name, neon, meshh, mshtype, mshtxt, x1, y1, z1, ceef)
  300. prt = part(3, model, reflec, trans, BrickColor.new(col), name, vt())
  301. prt.Material = neon
  302. msh = mesh(meshh, prt, mshtype, mshtxt, vt(0, 0, 0), vt(x1, y1, z1))
  303. wld = weld(handle, prt, wldpar, ceef)
  304. v = it("NumberValue", prt)
  305. v.Value = trans
  306. v.Name = "MainTransparency"
  307. return prt, msh, wld
  308. end
  309. local Color1 = Torso.BrickColor
  310. local fengui = it("GuiMain")
  311. fengui.Parent = Player.PlayerGui
  312. fengui.Name = "WeaponGUI"
  313. local fenframe = it("Frame")
  314. fenframe.Parent = fengui
  315. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  316. fenframe.BackgroundTransparency = 1
  317. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  318. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  319. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  320. local fenframe2 = it("Frame")
  321. fenframe2.Parent = fengui
  322. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  323. fenframe2.BackgroundTransparency = 1
  324. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  325. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  326. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  327. local fenframe3 = it("Frame")
  328. fenframe3.Parent = fengui
  329. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  330. fenframe3.BackgroundTransparency = 1
  331. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  332. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  333. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  334. local fenframe4 = it("Frame")
  335. fenframe4.Parent = fengui
  336. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  337. fenframe4.BackgroundTransparency = 1
  338. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  339. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  340. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  341. local pressedf = false
  342. local fenframe5 = it("Frame")
  343. fenframe5.Parent = fengui
  344. fenframe5.Parent = nil
  345. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  346. fenframe5.BackgroundTransparency = 1
  347. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  348. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  349. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  350. fenframe5.ZIndex = 2
  351. 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))
  352. tellbar.Font = "Arial"
  353. tellbar.TextScaled = true
  354. tellbar.TextTransparency = 1
  355. tellbar.TextStrokeTransparency = 1
  356. tellbar.ZIndex = 2
  357. local fnumb = 0
  358. local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  359. local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  360. 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))
  361. 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))
  362. 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))
  363. 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))
  364. 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))
  365. local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  366. local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  367. 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))
  368. 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))
  369. 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))
  370. 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))
  371. fenbarmove1.ZIndex = 2
  372. local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  373. 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))
  374. fenbarmove2.ZIndex = 2
  375. local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  376. 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))
  377. fenbarmove3.ZIndex = 2
  378. local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  379. 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))
  380. fenbarmove4.ZIndex = 2
  381. local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  382. local fenbarammo1 = gui("TextButton", fenframe2, "Orbs", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(1.26, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  383. local modelzorz = Instance.new("Model")
  384. modelzorz.Parent = Character
  385. modelzorz.Name = "Ezelle"
  386. handle = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Handle", vt())
  387. local prt1 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part01", vt())
  388. msh1h = mesh("BlockMesh", handle, "", "", vt(0, 0, 0), vt(2, 2, 2))
  389. msh1 = mesh("CylinderMesh", prt1, "", "", vt(0, 0, 0), vt(1.8, 7, 1.8))
  390. local handlewld = weld(handle, handle, Torso, euler(0, 0, -0.8) * cf(0, 0, -0.7))
  391. local wld1 = weld(handle, prt1, handle, euler(0, 0, 0) * cf(0, 0, 0))
  392. prt2 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part02", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2.8, 1, 2.8, euler(0, 0, 0) * cf(0, 0.8, 0))
  393. prt3 = AesthPart(modelzorz, prt1, 0, 0, NewCol3, "Part03", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2, 1, 2, euler(0, 0, 0) * cf(0, 1, 0))
  394. prt4 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part04", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2.1, 3, 2.1, euler(0, 0, 0) * cf(0, 1.4, 0))
  395. prt5 = AesthPart(modelzorz, prt1, 0, 0, NewCol2, "Part05", "Neon", "CylinderMesh", "nil", "nil", 2.1, 0.9, 2.1, euler(0, 0, 0) * cf(0, 1, 0))
  396. prt6 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part06", "SmoothPlastic", "BlockMesh", "nil", "nil", 2.3, 1, 2.3, euler(0, 0, 0) * cf(0, 1.8, 0))
  397. prt7 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part07", "SmoothPlastic", "BlockMesh", "nil", "nil", 1, 3, 2, euler(0, 0, 0) * cf(0, 2.2, 0))
  398. prt10 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part10", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2.4, 2.1, 2.4, euler(1.57, 0, 0) * cf(0, 2.7, 0))
  399. prt11 = AesthPart(modelzorz, prt1, 0, 0, NewCol3, "Part11", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2.2, 2.15, 2.2, euler(1.57, 0, 0) * cf(0, 2.7, 0))
  400. prt12 = AesthPart(modelzorz, prt1, 0, 0, NewCol2, "Part12", "Neon", "CylinderMesh", "nil", "nil", 2, 2.2, 2, euler(1.57, 0, 0) * cf(0, 2.7, 0))
  401. prt13 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part13", "SmoothPlastic", "CylinderMesh", "nil", "nil", 3, 1.5, 3, euler(1.57, 0, 0) * cf(0, 2.7, 0))
  402. prt14 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part14", "SmoothPlastic", "SpecialMesh", "Sphere", "nil", 1.5, 2.5, 2, euler(0, 0, 0) * cf(0, 2.9, 0))
  403. prt15 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part15", "SmoothPlastic", "CylinderMesh", "nil", "nil", 1.4, 0.7, 1.4, euler(0, 0, 0) * cf(0, 3.1, 0))
  404. prt16 = AesthPart(modelzorz, prt1, 0, 0, NewCol3, "Part16", "SmoothPlastic", "CylinderMesh", "nil", "nil", 1.3, 0.9, 1.3, euler(0, 0, 0) * cf(0, 3.26, 0))
  405. prt17 = AesthPart(modelzorz, prt1, 0, 0, NewCol2, "Part17", "Neon", "CylinderMesh", "nil", "nil", 1.35, 0.5, 1.35, euler(0, 0, 0) * cf(0, 3.26, 0))
  406. prt18 = AesthPart(modelzorz, prt1, 0, 0, NewCol2, "Part18", "Neon", "CylinderMesh", "nil", "nil", 1.4, 0.3, 1.4, euler(0, 0, 0) * cf(0, 3.38, 0))
  407. prt23,msh23, wld23 = AesthPart(modelzorz, prt10, 0, 1, NewCol3, "Part23", "SmoothPlastic", "BlockMesh", "nil", "nil", 2, 2, 2, euler(0, math.rad(0), 0) * cf(-0.045, 0, 0))
  408. prt24 = AesthPart(modelzorz, prt23, 0, 0, NewCol, "Part24", "SmoothPlastic", "BlockMesh", "nil", "nil", 0.5, 2, 4, euler(0, 0, 0) * cf(0, 0, 0.5))
  409. prt25 = AesthPart(modelzorz, prt24, 0, 0, NewCol, "Part25", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 2, 1, 1.5, euler(3.14, 0, -1.57) * cf(-0.15, 0, -0.25))
  410. prt26 = AesthPart(modelzorz, prt24, 0, 0, NewCol, "Part26", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 2, 1, 2.5, euler(3.14, 0, -1.57) * euler(3.14, 0, 0) * cf(-0.15, 0, 0.15))
  411. prt27,msh27, wld27 = AesthPart(modelzorz, prt10, 0, 1, NewCol3, "Part27", "SmoothPlastic", "BlockMesh", "nil", "nil", 2, 2, 2, euler(0, math.rad(0), 3.14) * cf(0.045, 0, 0))
  412. prt28 = AesthPart(modelzorz, prt27, 0, 0, NewCol, "Part28", "SmoothPlastic", "BlockMesh", "nil", "nil", 0.5, 2, 4, euler(0, 0, 0) * cf(0, 0, 0.5))
  413. prt29 = AesthPart(modelzorz, prt28, 0, 0, NewCol, "Part29", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 2, 1, 1.5, euler(3.14, 0, -1.57) * cf(-0.15, 0, -0.25))
  414. prt30 = AesthPart(modelzorz, prt28, 0, 0, NewCol, "Part30", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 2, 1, 2.5, euler(3.14, 0, -1.57) * euler(3.14, 0, 0) * cf(-0.15, 0, 0.15))
  415. prt31 = AesthPart(modelzorz, prt1, 0, 0, NewCol3, "Part31", "SmoothPlastic", "BlockMesh", "nil", "nil", 0.8, 2, 2.35, euler(0, 0, 0) * cf(0, 2, 0))
  416. prt32 = AesthPart(modelzorz, prt1, 0, 0, NewCol2, "Part32", "Neon", "BlockMesh", "nil", "nil", 0.6, 1.8, 2.4, euler(0, 0, 0) * cf(0, 2, 0))
  417. prt33 = AesthPart(modelzorz, prt1, 0, 0, NewCol3, "Part33", "SmoothPlastic", "CylinderMesh", "nil", "nil", 1.7, 2, 1.7, euler(0, 0, 0) * cf(0, -0.9, 0))
  418. prt34 = AesthPart(modelzorz, prt1, 0, 0, NewCol2, "Part34", "Neon", "CylinderMesh", "nil", "nil", 1.75, 1.5, 1.75, euler(0, 0, 0) * cf(0, -0.9, 0))
  419. prt35 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part35", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2.2, 2.4, 2.2, euler(0, 0, 0) * cf(0, -1.34, 0))
  420. prt36 = AesthPart(modelzorz, prt1, 0, 0, NewCol3, "Part36", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2.2, 1, 2.2, euler(0, 0, 0) * cf(0, -1.68, 0))
  421. prt37 = AesthPart(modelzorz, prt1, 0, 0, NewCol2, "Part37", "Neon", "CylinderMesh", "nil", "nil", 2.25, 0.8, 2.25, euler(0, 0, 0) * cf(0, -1.68, 0))
  422. prt38 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part38", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2.3, 0.5, 2.3, euler(0, 0, 0) * cf(0, -1.83, 0))
  423. prt39 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part39", "SmoothPlastic", "SpecialMesh", "FileMesh", "1778999", 0.47, 0.5, 0.47, euler(3.14, 0, 0) * cf(0, -1.7, 0))
  424. prt40 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part40", "SmoothPlastic", "CylinderMesh", "nil", "nil", 3.2, 0.5, 3.2, euler(0, 0, 0) * cf(0, -2.15, 0))
  425. prt41 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part41", "SmoothPlastic", "CylinderMesh", "nil", "nil", 1.8, 3, 1.8, euler(0, 0, 0) * cf(0, -2.5, 0))
  426. prt42 = AesthPart(modelzorz, prt1, 0, 0, NewCol3, "Part42", "SmoothPlastic", "CylinderMesh", "nil", "nil", 4, 0.5, 4, euler(0, 0, 0) * cf(0, -2.8, 0))
  427. prt54 = AesthPart(modelzorz, prt1, 0, 0.5, "Really blue", "Part54", "Neon", "SpecialMesh", "FileMesh", "1185246", -1.8, -1.8, -1.8, cf(0, -3.5, 0))
  428. prt55 = AesthPart(modelzorz, prt1, 0, 0.3, NewCol2, "Part55", "Neon", "SpecialMesh", "Sphere", "nil", 4.5, 4.5, 4.5, cf(0, -3.5, 0))
  429. prt56 = AesthPart(modelzorz, prt1, 0, 0, "Institutional white", "Part56", "Neon", "SpecialMesh", "Sphere", "nil", 3, 3, 3, cf(0, -3.5, 0))
  430. prt54.Transparency = 1
  431. prt55.Transparency = 1
  432. prt56.Transparency = 1
  433. for i = -1, 1, 2 do
  434. prt8 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part08", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 2, 3.5, 1, euler(0, -1.57 * i, 0) * cf(0.2 * i, 1.9, 0))
  435. prt9 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part09", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 2, 1.5, 1, euler(3.14, 1.57 * i, 0) * cf(0.2 * i, 2.4, 0))
  436. end
  437. for i = -1, 1, 2 do
  438. prt19 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part19", "SmoothPlastic", "BlockMesh", "nil", "nil", 0.3, 2, 1.6, euler(0, 0, 0) * cf(-0.12 * i, 3.11, 0))
  439. prt20 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part20", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 1.6, 1, 0.5, euler(0, 1.57 * i, 0) * cf(-0.2 * i, 2.99, 0))
  440. prt21 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part21", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 1.6, 1.1, 0.5, euler(3.14, -1.57 * i, 0) * cf(-0.2 * i, 3.2, 0))
  441. end
  442. for i = 1.57, 6.28 do
  443. prt42 = AesthPart(modelzorz, prt1, 0, 0, NewCol3, "Part42", "SmoothPlastic", "CylinderMesh", "nil", "nil", 3, 1, 3, euler(1.57, 0, 0) * cf(0.35, -2.5, 0) * euler(0, i, 0))
  444. prt43 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part43", "SmoothPlastic", "CylinderMesh", "nil", "nil", 1.5, 1.1, 1.5, euler(1.57, 0, 0) * cf(0.35, -2.5, 0) * euler(0, i, 0))
  445. prt44 = AesthPart(modelzorz, prt1, 0, 0, NewCol2, "Part44", "Neon", "SpecialMesh", "Sphere", "nil", 1.8, 1.5, 1.8, euler(1.57, 0, 0) * cf(0.35, -2.5, 0) * euler(0, i, 0))
  446. prt45 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part45", "SmoothPlastic", "BlockMesh", "nil", "nil", 2, 1.1, 1, euler(1.57, 0, 0) * cf(0.5, -2.5, 0) * euler(0, i, 0))
  447. prt46 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part46", "SmoothPlastic", "SpecialMesh", "Torso", "nil", 2.5, 1, 1.1, euler(0, 0, -1.57) * cf(0.3, 0, 0) * euler(0, 0, -0.8) * cf(0.35, -2.5, 0) * euler(0, i, 0))
  448. prt47 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part47", "SmoothPlastic", "SpecialMesh", "Torso", "nil", 2.5, 1.5, 1.1, euler(0, 0, -1.57) * cf(0.35, 0, 0) * euler(0, 0, 0.8) * cf(0.35, -2.5, 0) * euler(0, i, 0))
  449. prt48 = AesthPart(modelzorz, prt1, 0, 1, NewCol3, "Part48", "SmoothPlastic", "BlockMesh", "nil", "nil", 1, 1, 1, euler(0, 0, -1.57) * cf(0.7, -2.8, 0) * euler(0, i, 0))
  450. prt49 = AesthPart(modelzorz, prt48, 0, 0, NewCol2, "Part49", "Neon", "BlockMesh", "nil", "nil", 2.5, 0.4, 0.4, euler(0, 0, 0) * cf(-0.25, 0, 0) * euler(0, 0, -0.2))
  451. prt50 = AesthPart(modelzorz, prt49, 0, 0, NewCol3, "Part50", "SmoothPlastic", "SpecialMesh", "FileMesh", "rbxasset://fonts/leftarm.mesh", -0.2, -0.25, -0.2, euler(0, 0, 1.57) * cf(0, 0, 0))
  452. prt51 = AesthPart(modelzorz, prt49, 0, 0, NewCol, "Part51", "SmoothPlastic", "BlockMesh", "nil", "nil", 2, 0.6, 0.8, euler(0, 0, 0) * cf(-0.35, 0, 0) * euler(0, 0, 0.2))
  453. prt52 = AesthPart(modelzorz, prt51, 0, 0, NewCol, "Part52", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 0.8, 0.6, 0.6, euler(0, -1.57, 0) * cf(0.14, -0.12, 0))
  454. prt53 = AesthPart(modelzorz, prt51, 0, 0, NewCol, "Part53", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 0.8, 0.6, 1.4, euler(0, 1.57, 0) * cf(-0.06, -0.12, 0))
  455. table.insert(TopStaff, wld49)
  456. end
  457. TSCF = cf(0.2, 0.05, 0) * euler(0, 0, -1.2)
  458. for _,c in pairs(modelzorz:children()) do
  459. table.insert(Weapon, c)
  460. end
  461. for _,c in pairs(handle:children()) do
  462. if c.className == "Motor" then
  463. table.insert(Welds, c)
  464. end
  465. end
  466. local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Hitbox2", vt())
  467. hitbox.Anchored = false
  468. local hitboxCF = cf(0, 0, 0)
  469. hboxpos = Instance.new("BodyPosition", nil)
  470. hboxpos.P = 2000
  471. hboxpos.D = 100
  472. hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
  473. local shieldref = part(3, nil, 0, 1, BrickColor.new("Bright blue"), "Shield1", vt(40, 40, 40))
  474. shieldref.Anchored = true
  475. shieldref.CFrame = cf(Torso.Position)
  476. shieldref.Shape = "Ball"
  477. local shieldref2 = part(3, nil, 0, 0.5, BrickColor.new("Bright blue"), "Shield2", vt())
  478. shieldref2.Anchored = true
  479. srefmsh = mesh("SpecialMesh", shieldref2, "FileMesh", "90782182", vt(0, 0, 0), vt(4, 5, 4))
  480. srefmsh.TextureId = "http://www.roblox.com/asset/?id=90782359"
  481. srefmsh.VertexColor = vt(0.2, 0.2, 1)
  482. hitboxweld = function()
  483. hbwld.Parent = modelzorz
  484. hbwld.Part0 = hitbox
  485. hbwld.Part1 = prt12
  486. end
  487. if script.Parent.className ~= "HopperBin" then
  488. Tool = Instance.new("HopperBin")
  489. Tool.Parent = Backpack
  490. Tool.Name = "Zellar"
  491. script.Parent = Tool
  492. end
  493. Bin = script.Parent
  494. if Bin.Name == "Virtue" then
  495. Bin.Name = "Zellar"
  496. end
  497. local bodvel = Instance.new("BodyVelocity")
  498. local bg = Instance.new("BodyGyro")
  499. so = function(id, par, vol, pit)
  500. local sou = Instance.new("Sound", par or workspace)
  501. sou.Volume = vol
  502. sou.Pitch = pit or 1
  503. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  504. coroutine.resume(coroutine.create(function(Sound)
  505. swait()
  506. Sound:play()
  507. end), sou)
  508. game:GetService("Debris"):AddItem(sou, 6)
  509. end
  510. function clerp(a,b,t)
  511. local qa = {QuaternionFromCFrame(a)}
  512. local qb = {QuaternionFromCFrame(b)}
  513. local ax, ay, az = a.x, a.y, a.z
  514. local bx, by, bz = b.x, b.y, b.z
  515. local _t = 1-t
  516. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  517. end
  518.  
  519. function QuaternionFromCFrame(cf)
  520. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  521. local trace = m00 + m11 + m22
  522. if trace > 0 then
  523. local s = math.sqrt(1 + trace)
  524. local recip = 0.5/s
  525. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  526. else
  527. local i = 0
  528. if m11 > m00 then
  529. i = 1
  530. end
  531. if m22 > (i == 0 and m00 or m11) then
  532. i = 2
  533. end
  534. if i == 0 then
  535. local s = math.sqrt(m00-m11-m22+1)
  536. local recip = 0.5/s
  537. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  538. elseif i == 1 then
  539. local s = math.sqrt(m11-m22-m00+1)
  540. local recip = 0.5/s
  541. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  542. elseif i == 2 then
  543. local s = math.sqrt(m22-m00-m11+1)
  544. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  545. end
  546. end
  547. end
  548.  
  549. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  550. local xs, ys, zs = x + x, y + y, z + z
  551. local wx, wy, wz = w*xs, w*ys, w*zs
  552. local xx = x*xs
  553. local xy = x*ys
  554. local xz = x*zs
  555. local yy = y*ys
  556. local yz = y*zs
  557. local zz = z*zs
  558. 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))
  559. end
  560.  
  561. function QuaternionSlerp(a, b, t)
  562. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  563. local startInterp, finishInterp;
  564. if cosTheta >= 0.0001 then
  565. if (1 - cosTheta) > 0.0001 then
  566. local theta = math.acos(cosTheta)
  567. local invSinTheta = 1/math.sin(theta)
  568. startInterp = math.sin((1-t)*theta)*invSinTheta
  569. finishInterp = math.sin(t*theta)*invSinTheta
  570. else
  571. startInterp = 1-t
  572. finishInterp = t
  573. end
  574. else
  575. if (1+cosTheta) > 0.0001 then
  576. local theta = math.acos(-cosTheta)
  577. local invSinTheta = 1/math.sin(theta)
  578. startInterp = math.sin((t-1)*theta)*invSinTheta
  579. finishInterp = math.sin(t*theta)*invSinTheta
  580. else
  581. startInterp = t-1
  582. finishInterp = t
  583. end
  584. end
  585. 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
  586. end
  587. hideanim = function()
  588. equipped = false
  589. TSCF = cf(0.2, 0.05, 0) * euler(0, 0, -1.2)
  590. for i = 0, 1, 0.05 do
  591. swait()
  592. prt54.Transparency = prt54.MainTransparency.Value + (1 - prt54.MainTransparency.Value) * i
  593. prt55.Transparency = prt55.MainTransparency.Value + (1 - prt55.MainTransparency.Value) * i
  594. prt56.Transparency = prt56.MainTransparency.Value + (1 - prt56.MainTransparency.Value) * i
  595. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  596. wld1.C0 = clerp(wld1.C0, euler(1, 0, 0) * cf(0, 0, 0), 0.3)
  597. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(0.2, 0, 0), 0.3)
  598. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  599. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.3)
  600. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  601. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.7, 0, -0.2), 0.3)
  602. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  603. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.4)
  604. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.4)
  605. end
  606. prt54.Transparency = 1
  607. prt55.Transparency = 1
  608. prt56.Transparency = 1
  609. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2, 0, -0.4), 0.3)
  610. for i = 0, 1, 0.1 do
  611. swait()
  612. handlewld.C0 = clerp(handlewld.C0, euler(3.14, 0, 0) * euler(0, 0, 0.4) * euler(0.2, 0, 0) * cf(-1, -1.2, 0.5), 0.3)
  613. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  614. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0.6), 0.3)
  615. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  616. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.3)
  617. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  618. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3.5, 0, -0.4), 0.3)
  619. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  620. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
  621. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
  622. end
  623. handlewld.Part1 = Torso
  624. handlewld.C0 = euler(0, 0, -0.8) * cf(0, 0, -0.7)
  625. wld1.C0 = euler(0, 0, 0) * cf(0, 0, 0)
  626. for i = 0, 1, 0.1 do
  627. swait()
  628. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  629. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  630. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.3)
  631. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  632. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.3)
  633. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  634. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
  635. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
  636. end
  637. mdec2.Parent = nil
  638. mdec.Parent = Decrease
  639. end
  640. mdec.Parent = Decrease
  641. equipanim = function()
  642. equipped = true
  643. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2, 0, -0.4), 0.3)
  644. for i = 0, 1, 0.1 do
  645. swait()
  646. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0.6), 0.3)
  647. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  648. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.4), 0.3)
  649. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  650. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3.5, 0, -0.4), 0.3)
  651. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  652. end
  653. handlewld.Part1 = LeftArm
  654. handlewld.C0 = euler(3.14, 0, 0) * euler(0, 0, 0.4) * euler(0.2, 0, 0) * cf(-1, -1.2, 0.5)
  655. wld1.C0 = euler(0, 0, 0) * cf(0, 0, 0)
  656. d = 2
  657. for i = 0, 1, 0.08 do
  658. swait()
  659. d = d + 1
  660. if d >= 4 then
  661. d = 0
  662. so("199145146", handle, 1, 1.4)
  663. end
  664. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  665. handlewld.C1 = handlewld.C1 * euler(0, -0.6, 0)
  666. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.4), 0.3)
  667. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  668. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -0.8), 0.3)
  669. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  670. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.3) * euler(1.5, 0, 0.8), 0.3)
  671. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  672. end
  673. TSCF = euler(0, 0, 0) * cf(-0.25, 0, 0) * euler(0, 0, -0.2)
  674. for i = 0, 1, 0.05 do
  675. swait()
  676. prt54.Transparency = 1 - (1 - prt54.MainTransparency.Value) * i
  677. prt55.Transparency = 1 - (1 - prt55.MainTransparency.Value) * i
  678. prt56.Transparency = 1 - (1 - prt56.MainTransparency.Value) * i
  679. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.4)
  680. handlewld.C1 = clerp(handlewld.C1, cf(0, 0, 0), 0.4)
  681. wld1.C0 = clerp(wld1.C0, euler(1, 0, 0) * cf(0, 0, 0), 0.4)
  682. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  683. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  684. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -0.8), 0.3)
  685. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  686. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.4), 0.3)
  687. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  688. end
  689. prt54.Transparency = prt54.MainTransparency.Value
  690. prt55.Transparency = prt55.MainTransparency.Value
  691. prt56.Transparency = prt56.MainTransparency.Value
  692. mdec.Parent = nil
  693. mdec2.Parent = Decrease
  694. handlewld.C1 = cf(0, 0, 0)
  695. end
  696. StaggerAnim = function()
  697. attack = true
  698. removeControl()
  699. for i = 1, math.random(2, 4) do
  700. 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)
  701. end
  702. for i = 0, 1, 0.35 do
  703. swait()
  704. if Rooted.Value == false then
  705. Torso.Velocity = RootPart.CFrame.lookVector * -40
  706. end
  707. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
  708. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
  709. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
  710. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  711. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  712. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  713. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
  714. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  715. end
  716. for i = 0, 1, 0.2 do
  717. swait()
  718. if Rooted.Value == false then
  719. Torso.Velocity = RootPart.CFrame.lookVector * -40
  720. end
  721. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
  722. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
  723. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
  724. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  725. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
  726. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  727. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
  728. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
  729. end
  730. for i = 0, 1, 0.1 do
  731. swait()
  732. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
  733. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
  734. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.4) * euler(0, -0.4, 0), 0.3)
  735. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  736. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2) * euler(0, 0.4, 0), 0.3)
  737. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  738. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
  739. LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  740. end
  741. for i = 1, 40 do
  742. swait()
  743. if StunT.Value <= Stun.Value then
  744. break
  745. end
  746. end
  747. do
  748. resumeControl()
  749. combo = 0
  750. attack = false
  751. end
  752. end
  753. StaggerHitt = function()
  754. attack = true
  755. for i = 1, math.random(2, 4) do
  756. 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)
  757. end
  758. for i = 0, 1, 0.1 do
  759. swait()
  760. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(0.1, 0, 0), 0.3)
  761. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.6), 0.3)
  762. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9) * euler(0, -0.7, 0), 0.3)
  763. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  764. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  765. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  766. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3)
  767. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  768. end
  769. attack = false
  770. end
  771. StunAnim = function()
  772. attack = true
  773. removeControl()
  774. Stunned.Value = true
  775. showDamage(Character, "Stunned", "Interrupt")
  776. local dec = Instance.new("NumberValue", Decrease)
  777. dec.Name = "DecreaseMvmt"
  778. dec.Value = 10
  779. for i = 0, 1, 0.3 do
  780. swait()
  781. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  782. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  783. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  784. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  785. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  786. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  787. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  788. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  789. end
  790. for i = 0, 1, 0.3 do
  791. swait()
  792. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  793. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  794. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  795. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  796. 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)
  797. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  798. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  799. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  800. end
  801. for i = 0, 1, 0.3 do
  802. swait()
  803. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  804. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  805. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  806. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  807. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  808. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  809. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  810. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  811. end
  812. local gairost = Instance.new("BodyGyro")
  813. gairost.Parent = RootPart
  814. gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
  815. gairost.P = 20000
  816. gairost.cframe = cf(0, 0, 0)
  817. for i = 0, 1, 0.1 do
  818. swait()
  819. if hitfloor ~= nil then
  820. Torso.Velocity = vt(0, 0, 0)
  821. end
  822. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  823. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  824. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
  825. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  826. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  827. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  828. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  829. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  830. end
  831. for i = 1, 70 do
  832. swait()
  833. gairost.cframe = RootPart.CFrame
  834. if hitfloor ~= nil then
  835. Torso.Velocity = vt(0, 0, 0)
  836. end
  837. end
  838. for i = 0, 1, 0.2 do
  839. swait()
  840. Stun.Value = 0
  841. gairost.cframe = RootPart.CFrame
  842. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  843. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  844. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  845. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  846. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  847. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  848. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  849. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  850. end
  851. resumeControl()
  852. gairost.Parent = nil
  853. dec.Parent = nil
  854. Stun.Value = 0
  855. combo = 0
  856. Stunned.Value = false
  857. attack = false
  858. for i = 1, 10 do
  859. swait()
  860. Stun.Value = 0
  861. end
  862. end
  863. attackone = function()
  864. attack = true
  865. for i = 0, 1, 0.1 do
  866. swait()
  867. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  868. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, -0.5, 0) * euler(-0.5, 0, 0), 0.3)
  869. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.3) * euler(0.1, 0, 0), 0.3)
  870. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.3), 0.3)
  871. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.3)
  872. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.5) * euler(1.7, 0, 1) * euler(0, -1, 0), 0.3)
  873. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.2) * euler(0, 1.57, 0) * euler(-0.1, 0.2, -0.05), 0.3)
  874. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.05), 0.3)
  875. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  876. do
  877. if StaggerHit.Value == true then
  878. break
  879. end
  880. -- DECOMPILER ERROR at PC201: LeaveBlock: unexpected jumping out IF_THEN_STMT
  881.  
  882. -- DECOMPILER ERROR at PC201: LeaveBlock: unexpected jumping out IF_STMT
  883.  
  884. end
  885. end
  886. end
  887. so("199145095", prt56, 1, 1.1)
  888. hitbox.Parent = modelzorz
  889. hitbox.CFrame = prt1.CFrame * cf(0, 3, 0)
  890. for i = 0, 1, 0.1 do
  891. swait()
  892. hitbox.CFrame = prt1.CFrame * cf(0, 3, 0)
  893. MagniDamage(hitbox, 3, 5, 6, math.random(20, 25), "Normal", RootPart, 0.3, 2, (math.random(3, 5)), nil, true)
  894. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.4)
  895. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, -0.5, 0) * euler(0.5, 0, 0), 0.4)
  896. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.2) * euler(0, 0, 0), 0.4)
  897. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.2), 0.4)
  898. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.4)
  899. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.3) * euler(1.4, 0, 1) * euler(0, -1.5, 0) * euler(-2.5, 0, 0), 0.4)
  900. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.3) * euler(0, 1.57, 0) * euler(-0.1, -0.2, -0.05), 0.4)
  901. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.2, 0.05), 0.4)
  902. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  903. do
  904. if StaggerHit.Value == true then
  905. break
  906. end
  907. -- DECOMPILER ERROR at PC458: LeaveBlock: unexpected jumping out IF_THEN_STMT
  908.  
  909. -- DECOMPILER ERROR at PC458: LeaveBlock: unexpected jumping out IF_STMT
  910.  
  911. end
  912. end
  913. end
  914. hitbox.Parent = nil
  915. attack = false
  916. end
  917. attacktwo = function()
  918. attack = true
  919. local d = 2
  920. for i = 0, 1, 0.1 do
  921. swait()
  922. d = d + 1
  923. if d >= 4 then
  924. d = 0
  925. so("199145146", handle, 1, 1.55)
  926. end
  927. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.3)
  928. handlewld.C1 = handlewld.C1 * euler(0, 0.67, 0)
  929. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  930. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.2) * euler(0.2, 0, 0), 0.3)
  931. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.4), 0.3)
  932. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.3)
  933. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.3) * euler(1.4, 0, 1) * euler(0, -1.5, 0) * euler(-2.5, 0, 0) * euler(0, 2, 0), 0.3)
  934. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.3) * euler(0, 1.57, 0) * euler(-0.1, -0.4, -0.05), 0.3)
  935. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.4, 0.05), 0.3)
  936. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  937. do
  938. if StaggerHit.Value == true then
  939. break
  940. end
  941. -- DECOMPILER ERROR at PC228: LeaveBlock: unexpected jumping out IF_THEN_STMT
  942.  
  943. -- DECOMPILER ERROR at PC228: LeaveBlock: unexpected jumping out IF_STMT
  944.  
  945. end
  946. end
  947. end
  948. local lnum = 0
  949. ref2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
  950. ref2.Anchored = true
  951. for i = 0, 1, 0.2 do
  952. swait()
  953. lnum = lnum + 1
  954. ref2.CFrame = cf(prt18.Position) * cf(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100)
  955. hitfloor2, posfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 50, Character)
  956. if hitfloor2 ~= nil and (lnum) % 2 == 0 then
  957. Lightning(prt18.Position, posfloor2, 5, 1, NewCol2, 0.05, 0.4, 0.1)
  958. end
  959. MagicCircle(BrickColor.new(NewCol2), cf(prt18.Position), 6, 6, 6, -1, -1, -1, 0.05, 1, nil, nil, 0.5)
  960. MagicBlock(BrickColor.new(NewCol2), cf(prt18.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, -0.5, -0.5, -0.5, 0.1, 2)
  961. wld23.C0 = clerp(wld23.C0, euler(0, math.rad(60), 0) * cf(-0.045, 0, 0), 0.45)
  962. wld27.C0 = clerp(wld27.C0, euler(0, math.rad(60), 3.14) * cf(0.045, 0, 0), 0.45)
  963. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.45)
  964. handlewld.C1 = clerp(handlewld.C1, cf(0, 0, 0), 0.45)
  965. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * euler(0, 0, -3) * cf(0, 0, 0), 0.45)
  966. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.2) * euler(0.2, 0, 0), 0.45)
  967. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.4), 0.45)
  968. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.45)
  969. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.3) * euler(1.4, 0, 1) * euler(0, -1.5, 0) * euler(-2.5, 0, 0) * euler(0, 0.4, 0), 0.45)
  970. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.3) * euler(0, 1.57, 0) * euler(-0.1, -0.4, -0.05), 0.45)
  971. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.4, 0.05), 0.45)
  972. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  973. do
  974. if StaggerHit.Value == true then
  975. break
  976. end
  977. -- DECOMPILER ERROR at PC651: LeaveBlock: unexpected jumping out IF_THEN_STMT
  978.  
  979. -- DECOMPILER ERROR at PC651: LeaveBlock: unexpected jumping out IF_STMT
  980.  
  981. end
  982. end
  983. end
  984. so("199145204", prt18, 0.8, 1.3)
  985. so("315743331", prt18, 1, 2)
  986. hitbox.Parent = modelzorz
  987. hitbox.CFrame = prt1.CFrame * cf(0, -3, 0)
  988. for i = 0, 1, 0.1 do
  989. swait()
  990. lnum = lnum + 1
  991. ref2.CFrame = cf(prt18.Position) * cf(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100)
  992. hitfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 50, Character)
  993. if hitfloor2 ~= nil and (lnum) % 2 == 0 then
  994. Lightning(prt18.Position, posfloor2, 5, 1, NewCol2, 0.05, 0.4, 0.1)
  995. end
  996. hitbox.CFrame = prt1.CFrame * cf(0, -3, 0)
  997. MagniDamage(hitbox, 3, 5, 6, math.random(5, 10), "Normal", RootPart, 0.3, 2, (math.random(3, 5)), nil, true)
  998. MagicCircle(BrickColor.new(NewCol2), cf(prt18.Position), 6, 6, 6, -1, -1, -1, 0.05, 1, nil, nil, 0.5)
  999. MagicBlock(BrickColor.new(NewCol2), cf(prt18.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, -0.5, -0.5, -0.5, 0.1, 2)
  1000. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.45)
  1001. handlewld.C1 = clerp(handlewld.C1, cf(0, 0, 0), 0.45)
  1002. wld1.C0 = clerp(wld1.C0, cf(0, 0.4, 0) * euler(-1, 0, 0) * euler(0, 0, -3), 0.45)
  1003. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.05, 0, 0), 0.45)
  1004. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.4), 0.45)
  1005. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.8, 0, -1) * euler(0, -0.4, 0), 0.45)
  1006. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0.2) * euler(1.4, 0, -0.8) * euler(0, -1.3, 0), 0.45)
  1007. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.1, 0.2, -0.2), 0.45)
  1008. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.2) * euler(0, -1.57, 0) * euler(0, 0.2, 0.05), 0.45)
  1009. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1010. do
  1011. if StaggerHit.Value == true then
  1012. break
  1013. end
  1014. -- DECOMPILER ERROR at PC1060: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1015.  
  1016. -- DECOMPILER ERROR at PC1060: LeaveBlock: unexpected jumping out IF_STMT
  1017.  
  1018. end
  1019. end
  1020. end
  1021. handlewld.C1 = cf(0, 0, 0)
  1022. hitbox.Parent = nil
  1023. attack = false
  1024. for i = 0, 1, 0.1 do
  1025. swait()
  1026. wld23.C0 = clerp(wld23.C0, euler(0, math.rad(0), 0) * cf(-0.045, 0, 0), 0.45)
  1027. wld27.C0 = clerp(wld27.C0, euler(0, math.rad(0), 3.14) * cf(0.045, 0, 0), 0.45)
  1028. end
  1029. wld23.C0 = clerp(wld23.C0, euler(0, math.rad(0), 0) * cf(-0.045, 0, 0), 1)
  1030. wld27.C0 = clerp(wld27.C0, euler(0, math.rad(0), 3.14) * cf(0.045, 0, 0), 1)
  1031. end
  1032. attackthree = function()
  1033. attack = true
  1034. for i = 0, 1, 0.1 do
  1035. swait()
  1036. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * euler(0, 0, 1.57) * cf(0, 1, 0), 0.3)
  1037. wld1.C0 = clerp(wld1.C0, cf(0, -0.5, 0) * euler(0, 0, -1), 0.3)
  1038. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.1) * euler(-0.1, 0, 0), 0.3)
  1039. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.2), 0.3)
  1040. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.3)
  1041. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3, 0, -0.6) * euler(0, -0.4, 0), 0.3)
  1042. RH.C0 = clerp(RH.C0, cf(1, -0.9, 0.4) * euler(0, 1.57, 0) * euler(-0.1, -0.8, -0.05), 0.3)
  1043. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.2, 0.05), 0.3)
  1044. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1045. do
  1046. if StaggerHit.Value == true then
  1047. break
  1048. end
  1049. -- DECOMPILER ERROR at PC201: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1050.  
  1051. -- DECOMPILER ERROR at PC201: LeaveBlock: unexpected jumping out IF_STMT
  1052.  
  1053. end
  1054. end
  1055. end
  1056. so("199145095", prt56, 1, 0.9)
  1057. hitbox.Parent = modelzorz
  1058. hitbox.CFrame = prt1.CFrame * cf(0, 3, 0)
  1059. for i = 0, 1, 0.1 do
  1060. swait()
  1061. hitbox.CFrame = prt1.CFrame * cf(0, 3, 0)
  1062. MagniDamage(hitbox, 3, 5, 6, math.random(10, 15), "Normal", RootPart, 0.3, 2, (math.random(3, 5)), nil, true)
  1063. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * euler(0, 0, 1.57) * cf(0, 1, 0), 0.45)
  1064. wld1.C0 = clerp(wld1.C0, cf(0, -0.5, 0) * euler(0, 0, 0.8), 0.45)
  1065. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(-0.1, 0, 0), 0.45)
  1066. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -0.4) * euler(0.2, 0, 0) * euler(0, 0, -0.4), 0.45)
  1067. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.8, 0, -1) * euler(0, -0.4, 0), 0.45)
  1068. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, -0.2) * euler(0.6, 0, -0.2) * euler(0, 0.3, 0), 0.45)
  1069. RH.C0 = clerp(RH.C0, cf(1, -0.9, 0.4) * euler(0, 1.57, 0) * euler(-0.1, -0.4, -0.2), 0.45)
  1070. LH.C0 = clerp(LH.C0, cf(-1, -0.5, -0.5) * euler(0, -1.57, 0) * euler(0, 0.4, -0.25), 0.45)
  1071. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1072. do
  1073. if StaggerHit.Value == true then
  1074. break
  1075. end
  1076. -- DECOMPILER ERROR at PC458: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1077.  
  1078. -- DECOMPILER ERROR at PC458: LeaveBlock: unexpected jumping out IF_STMT
  1079.  
  1080. end
  1081. end
  1082. end
  1083. hitbox.Parent = nil
  1084. attack = false
  1085. end
  1086. attackfour = function()
  1087. attack = true
  1088. for i = 0, 1, 0.1 do
  1089. swait()
  1090. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.3)
  1091. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, -1, 0) * euler(0.5, 0, 0), 0.3)
  1092. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.2) * euler(0, 0, 0), 0.3)
  1093. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.2), 0.3)
  1094. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.3)
  1095. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.3) * euler(1.4, 0, 1) * euler(0, 1.5, 0) * euler(2, 0, 0), 0.3)
  1096. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.3) * euler(0, 1.57, 0) * euler(-0.1, -0.2, -0.05), 0.3)
  1097. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.2, 0.05), 0.3)
  1098. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1099. do
  1100. if StaggerHit.Value == true then
  1101. break
  1102. end
  1103. -- DECOMPILER ERROR at PC207: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1104.  
  1105. -- DECOMPILER ERROR at PC207: LeaveBlock: unexpected jumping out IF_STMT
  1106.  
  1107. end
  1108. end
  1109. end
  1110. so("199145204", prt56, 1, 0.9)
  1111. for i = 0, 1, 0.1 do
  1112. swait()
  1113. if i < 0.5 then
  1114. refd = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1115. refd.Anchored = true
  1116. refd.CFrame = prt56.CFrame
  1117. game:GetService("Debris"):AddItem(refd, 1)
  1118. so("315748999", refd, 0.4, 0.6)
  1119. MagicCircle(BrickColor.new(NewCol2), prt56.CFrame, 6, 6, 6, 1, 1, 1, 0.1, 1, nil, nil, 0)
  1120. table.insert(Effects, {prt56.CFrame, "Orb", math.random(40, 70)})
  1121. end
  1122. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.3)
  1123. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, -1, 0) * euler(0.8, 0, 0), 0.4)
  1124. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.1) * euler(0.1, 0, 0), 0.3)
  1125. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.3)
  1126. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.3)
  1127. LW.C0 = clerp(LW.C0, cf(0, 0.5, -0.5) * euler(1.3, 0, 1) * euler(0, 1.5, 0) * euler(-0.5, 0, 0), 0.3)
  1128. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0.2, -0.1), 0.3)
  1129. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, 0.1) * euler(0, -1.57, 0) * euler(0, 0.6, 0.05), 0.3)
  1130. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1131. do
  1132. if StaggerHit.Value == true then
  1133. break
  1134. end
  1135. -- DECOMPILER ERROR at PC487: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1136.  
  1137. -- DECOMPILER ERROR at PC487: LeaveBlock: unexpected jumping out IF_STMT
  1138.  
  1139. end
  1140. end
  1141. end
  1142. attack = false
  1143. end
  1144. EnergyCharge = function()
  1145. attack = true
  1146. eCharge = true
  1147. energ = 0
  1148. local deca = Instance.new("NumberValue", Decrease)
  1149. deca.Name = "DecreaseDef"
  1150. deca.Value = 0.1
  1151. local summonorb = false
  1152. while eCharge == true do
  1153. swait()
  1154. energ = energ + 1
  1155. if energ >= 100 then
  1156. eCharge = false
  1157. summonorb = true
  1158. end
  1159. MagicCircle2(BrickColor.new(NewCol2), cf(prt56.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cf(0, 2, 0), 1, 4, 1, -0.01, 1, -0.01, 0.1, -0.4)
  1160. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.4)
  1161. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, 0, 0) * euler(0, 0, 0), 0.4)
  1162. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.4) * euler(0.1, 0, 0), 0.4)
  1163. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.4), 0.4)
  1164. RW.C0 = clerp(RW.C0, cf(0.9, 0.4, 0.4) * euler(-0.5, 0, -1) * euler(0, -0.4, 0), 0.4)
  1165. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -0.6) * euler(0, 1.2, 0), 0.4)
  1166. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, -0.4, -0.05), 0.4)
  1167. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0.15), 0.4)
  1168. end
  1169. if summonorb == true then
  1170. MagicCircle(BrickColor.new(NewCol2), prt56.CFrame, 10, 10, 10, 1, 1, 1, 0.05, 1, nil, nil, 0)
  1171. omain, omsh, owld = AesthPart(modelzorz, prt56, 0, 1, NewCol2, "OrbRef", "SmoothPlastic", "SpecialMesh", "Sphere", "nil", 1, 1, 1, cf(0, 0, 0))
  1172. oprt1, omsh1, owld1 = AesthPart(omain, omain, 0, 0.5, NewCol3, "Orb1", "Neon", "SpecialMesh", "FileMesh", "rbxasset://fonts/leftarm.mesh", -0.8, -0.4, -0.8, cf(0, 0, 0))
  1173. oprt2, omsh2, owld2 = AesthPart(oprt1, oprt1, 0, 0.3, NewCol2, "Orb2", "Neon", "SpecialMesh", "Sphere", "nil", 3, 3, 3, cf(0, 0, 0))
  1174. oprt3, omsh3, owld3 = AesthPart(oprt1, oprt1, 0, 0, NewCol, "Orb3", "Neon", "SpecialMesh", "Sphere", "nil", 2, 2, 2, cf(0, 0, 0))
  1175. owld1.Parent = nil
  1176. oprt1.CFrame = omain.CFrame
  1177. prop = Instance.new("RocketPropulsion")
  1178. prop.Parent = oprt1
  1179. prop.Target = omain
  1180. prop.TargetRadius = 3
  1181. prop.MaxSpeed = 500
  1182. prop.CartoonFactor = 1
  1183. prop.MaxThrust = 10
  1184. prop.ThrustD = 30
  1185. prop.ThrustP = 500
  1186. prop.MaxTorque = vt(5, 5, 5)
  1187. prop.TurnD = 5
  1188. prop.TurnP = 500
  1189. prop:Fire()
  1190. table.insert(Orbs, {omain, owld, oprt1, prop})
  1191. end
  1192. deca.Parent = nil
  1193. attack = false
  1194. end
  1195. ShootOrb = function()
  1196. attack = true
  1197. for i = 1, #Orbs do
  1198. Orbs[i][2].Parent = nil
  1199. Orbs[i][1].Anchored = true
  1200. Orbs[i][1].CFrame = cf(RootPart.Position) * cf(0, 5, 0)
  1201. Orbs[i][4].MaxSpeed = 200
  1202. Orbs[i][4].ThrustD = 100
  1203. Orbs[i][4].ThrustP = 800
  1204. Orbs[i][4].MaxTorque = vt(50, 50, 50)
  1205. Orbs[i][4].TurnD = 40
  1206. end
  1207. if #Orbs % 2 == 0 then
  1208. for i = 0, 1, 0.1 do
  1209. swait()
  1210. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.3)
  1211. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, 0, 0) * euler(0.5, 0, 0), 0.3)
  1212. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.2) * euler(0, 0, 0), 0.3)
  1213. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.2), 0.3)
  1214. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.3)
  1215. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, 0.2) * euler(1.8, 0, -1) * euler(0, 0.7, 0) * euler(0, 0, 0), 0.3)
  1216. RH.C0 = clerp(RH.C0, cf(1, -0.9, 0.3) * euler(0, 1.57, 0) * euler(-0.1, -0.2, -0.05), 0.3)
  1217. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.2, 0.05), 0.3)
  1218. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1219. do
  1220. if StaggerHit.Value == true then
  1221. break
  1222. end
  1223. -- DECOMPILER ERROR at PC265: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1224.  
  1225. -- DECOMPILER ERROR at PC265: LeaveBlock: unexpected jumping out IF_STMT
  1226.  
  1227. end
  1228. end
  1229. end
  1230. so("377357731", Orbs[#Orbs][3], 1, 1)
  1231. Orbs[#Orbs][4].Parent = nil
  1232. Orbs[#Orbs][3].Anchored = true
  1233. local MouseLook = cf((Orbs[#Orbs][3].Position + MMouse.Hit.p) / 2, MMouse.Hit.p)
  1234. table.insert(Effects, {MouseLook.lookVector, "Shoot", 30, Orbs[#Orbs][3].Position, 7, 9, Orbs[#Orbs][3], Orbs[#Orbs][1]})
  1235. table.remove(Orbs, #Orbs)
  1236. for i = 0, 1, 0.4 do
  1237. swait()
  1238. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.5)
  1239. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, 0, 0) * euler(0.5, 0, 0), 0.5)
  1240. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.3) * euler(0.1, 0, 0), 0.5)
  1241. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.6), 0.5)
  1242. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.5)
  1243. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(0.4, 0, -0.4) * euler(0, -0.5, 0) * euler(0, 0, 0), 0.5)
  1244. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.5)
  1245. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.4) * euler(0, -1.57, 0) * euler(0, 0.6, 0.1), 0.5)
  1246. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1247. do
  1248. if StaggerHit.Value == true then
  1249. break
  1250. end
  1251. -- DECOMPILER ERROR at PC542: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1252.  
  1253. -- DECOMPILER ERROR at PC542: LeaveBlock: unexpected jumping out IF_STMT
  1254.  
  1255. end
  1256. end
  1257. end
  1258. for i = 0, 1, 0.15 do
  1259. swait()
  1260. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.45)
  1261. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, 0, 0) * euler(0.5, 0, 0), 0.45)
  1262. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.3) * euler(0.1, 0, 0), 0.45)
  1263. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.6), 0.45)
  1264. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.45)
  1265. LW.C0 = clerp(LW.C0, cf(-0.6, 0.5, -0.5) * euler(0.8, 0, 0.4) * euler(0, -0.5, 0) * euler(0, 0, 0), 0.45)
  1266. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.45)
  1267. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.4) * euler(0, -1.57, 0) * euler(0, 0.6, 0.1), 0.45)
  1268. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1269. do
  1270. if StaggerHit.Value == true then
  1271. break
  1272. end
  1273. -- DECOMPILER ERROR at PC748: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1274.  
  1275. -- DECOMPILER ERROR at PC748: LeaveBlock: unexpected jumping out IF_STMT
  1276.  
  1277. end
  1278. end
  1279. end
  1280. attack=false
  1281. else
  1282. do
  1283. for i = 0, 1, 0.1 do
  1284. swait()
  1285. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  1286. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, -0.5, 0) * euler(-0.2, 0, 0), 0.3)
  1287. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.3) * euler(0.1, 0, 0), 0.3)
  1288. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.3), 0.3)
  1289. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.3)
  1290. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.5) * euler(1.7, 0, 1) * euler(0, -1, 0), 0.3)
  1291. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.2) * euler(0, 1.57, 0) * euler(-0.1, 0.2, -0.05), 0.3)
  1292. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.05), 0.3)
  1293. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1294. do
  1295. if StaggerHit.Value == true then
  1296. break
  1297. end
  1298. -- DECOMPILER ERROR at PC949: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1299.  
  1300. -- DECOMPILER ERROR at PC949: LeaveBlock: unexpected jumping out IF_STMT
  1301.  
  1302. end
  1303. end
  1304. end
  1305. so("377357731", Orbs[#Orbs][3], 1, 1)
  1306. Orbs[#Orbs][4].Parent = nil
  1307. Orbs[#Orbs][3].Anchored = true
  1308. do
  1309. local MouseLook = cf((Orbs[#Orbs][3].Position + MMouse.Hit.p) / 2, MMouse.Hit.p)
  1310. table.insert(Effects, {MouseLook.lookVector, "Shoot", 30, Orbs[#Orbs][3].Position, 7, 9, Orbs[#Orbs][3], Orbs[#Orbs][1]})
  1311. table.remove(Orbs, #Orbs)
  1312. for i = 0, 1, 0.1 do
  1313. swait()
  1314. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.4)
  1315. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, -0.5, 0) * euler(0.8, 0, 0), 0.4)
  1316. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.2) * euler(0, 0, 0), 0.4)
  1317. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.2), 0.4)
  1318. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.4)
  1319. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.2) * euler(1.7, 0, 1) * euler(0, -1, 0) * euler(-2.4, 0, -0.5), 0.4)
  1320. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.3) * euler(0, 1.57, 0) * euler(-0.1, -0.2, -0.05), 0.4)
  1321. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.2, 0.05), 0.4)
  1322. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1323. do
  1324. if StaggerHit.Value == true then
  1325. break
  1326. end
  1327. -- DECOMPILER ERROR at PC1226: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1328.  
  1329. -- DECOMPILER ERROR at PC1226: LeaveBlock: unexpected jumping out IF_STMT
  1330.  
  1331. end
  1332. end
  1333. end
  1334. for i = 1, #Orbs do
  1335. Orbs[i][1].Anchored = false
  1336. Orbs[i][2].Parent = Orbs[i][1]
  1337. Orbs[i][4].MaxSpeed = 500
  1338. Orbs[i][4].ThrustD = 30
  1339. Orbs[i][4].ThrustP = 500
  1340. Orbs[i][4].MaxTorque = vt(5, 5, 5)
  1341. Orbs[i][4].TurnD = 5
  1342. end
  1343. attack = false
  1344. end
  1345. end
  1346. end
  1347. end
  1348. do1 = function()
  1349. if attack == true then
  1350. return
  1351. end
  1352. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1353. return
  1354. end
  1355. mnum = #Orbs * 5
  1356. if cooldownmax <= cooldowns[1] and mnum <= mana.Value then
  1357. attack = true
  1358. if mnum > 0 then
  1359. cooldowns[1] = 0
  1360. end
  1361. mana.Value = mana.Value - mnum
  1362. print(#Orbs)
  1363. so("2101137", prt56, 1, 1)
  1364. for i = 0, 1, 0.05 do
  1365. swait()
  1366. MagicCircle2(BrickColor.new(NewCol2), cf(prt56.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 4, 1, -0.01, 1, -0.01, 0.1, 0.6)
  1367. for i = 1, #Orbs do
  1368. MagicBlock(BrickColor.new(NewCol4), cf(Orbs[i][3].Position) * cf(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1.5, 1.5, 1.5, -0.2, -0.2, -0.2, 0.2, 1)
  1369. end
  1370. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  1371. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * euler(1, 0, 0) * cf(0, 0, 0), 0.3)
  1372. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.1, 0, 0), 0.3)
  1373. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.3)
  1374. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.3)
  1375. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.2) * euler(1.57, 0, -1) * euler(0.2, 0, 0), 0.3)
  1376. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.6) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.3)
  1377. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.6) * euler(0, -1.57, 0) * euler(0, 1, 0.05), 0.3)
  1378. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1379. do
  1380. if StaggerHit.Value == true then
  1381. break
  1382. end
  1383. -- DECOMPILER ERROR at PC356: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1384.  
  1385. -- DECOMPILER ERROR at PC356: LeaveBlock: unexpected jumping out IF_STMT
  1386.  
  1387. end
  1388. end
  1389. end
  1390. if #Orbs == 1 and O1 == false then
  1391. O1 = true
  1392. for i = 0, 1, 0.1 do
  1393. swait()
  1394. MagicCircle2(BrickColor.new(NewCol2), cf(prt56.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 4, 1, -0.01, 1, -0.01, 0.1, 0.6)
  1395. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  1396. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * euler(0.6, 0, 0) * cf(0, 0, 0), 0.3)
  1397. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(-0.6, 0, 0), 0.3)
  1398. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.3)
  1399. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.3)
  1400. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.2) * euler(1.57, 0, -1) * euler(1, 0, 0), 0.3)
  1401. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.6) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.3)
  1402. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.6) * euler(0, -1.57, 0) * euler(0, 1, 0.05), 0.3)
  1403. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1404. do
  1405. if StaggerHit.Value == true then
  1406. break
  1407. end
  1408. -- DECOMPILER ERROR at PC601: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1409.  
  1410. -- DECOMPILER ERROR at PC601: LeaveBlock: unexpected jumping out IF_STMT
  1411.  
  1412. end
  1413. end
  1414. end
  1415. MagicCircle(BrickColor.new(NewCol2), prt56.CFrame, 10, 10, 10, 1, 1, 1, 0.05, 1, nil, nil, 0)
  1416. dar = #OOrbs
  1417. table.insert(OOrbs, Orbs[1])
  1418. for i = 1, #Orbs do
  1419. table.remove(Orbs, 1)
  1420. end
  1421. for i = dar + 1, dar + 1 do
  1422. OOrbs[i][2].Parent = nil
  1423. OOrbs[i][1].Anchored = true
  1424. OOrbs[i][4].MaxSpeed = 100
  1425. OOrbs[i][1].CFrame = RootPart.CFrame * cf(0, 5, 0)
  1426. table.insert(Effects, {OOrbs[i][1], "Sentry", OOrbs[i][3], 0, 50})
  1427. end
  1428. for i = 0, 1, 0.1 do
  1429. swait()
  1430. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.4)
  1431. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * euler(0.2, 0, 0) * cf(0, 0, 0), 0.4)
  1432. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
  1433. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.4)
  1434. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.4)
  1435. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.2) * euler(-0.8, 0, -0.6) * euler(0, 1.8, 0) * euler(0, 0, 0), 0.4)
  1436. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.6) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.4)
  1437. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.6) * euler(0, -1.57, 0) * euler(0, 1, 0.05), 0.4)
  1438. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1439. do
  1440. if StaggerHit.Value == true then
  1441. break
  1442. end
  1443. -- DECOMPILER ERROR at PC891: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1444.  
  1445. -- DECOMPILER ERROR at PC891: LeaveBlock: unexpected jumping out IF_STMT
  1446.  
  1447. end
  1448. end
  1449. end
  1450. else
  1451. if #Orbs == 2 and O2 == false then
  1452. O2 = true
  1453. for i = 0, 1, 0.1 do
  1454. swait()
  1455. MagicCircle2(BrickColor.new(NewCol2), cf(prt56.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 4, 1, -0.01, 1, -0.01, 0.1, 0.6)
  1456. for i = 1, #Orbs do
  1457. MagicBlock(BrickColor.new(NewCol4), cf(Orbs[i][3].Position) * cf(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1.5, 1.5, 1.5, -0.2, -0.2, -0.2, 0.2, 1)
  1458. end
  1459. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  1460. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0, 1.57, 0) * euler(0.6, 0, 0), 0.3)
  1461. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.4) * euler(0.1, 0, 0), 0.3)
  1462. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.3)
  1463. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.3)
  1464. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(2, 0, -1.5) * euler(0.2, 0, 0) * euler(0, -0.2, 0), 0.3)
  1465. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.6) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.3)
  1466. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.6) * euler(0, -1.57, 0) * euler(0, 1, 0.05), 0.3)
  1467. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1468. do
  1469. if StaggerHit.Value == true then
  1470. break
  1471. end
  1472. -- DECOMPILER ERROR at PC1208: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1473.  
  1474. -- DECOMPILER ERROR at PC1208: LeaveBlock: unexpected jumping out IF_STMT
  1475.  
  1476. end
  1477. end
  1478. end
  1479. MagicCircle(BrickColor.new(NewCol2), prt56.CFrame, 10, 10, 10, 1, 1, 1, 0.05, 1, nil, nil, 0)
  1480. dar = #OOrbs
  1481. table.insert(OOrbs, Orbs[1])
  1482. table.insert(OOrbs, Orbs[2])
  1483. for i = 1, #Orbs do
  1484. table.remove(Orbs, 1)
  1485. end
  1486. for i = dar + 1, dar + 2 do
  1487. OOrbs[i][4].MaxSpeed = 500
  1488. tar1 = findNearestAlly2(RootPart.Position)
  1489. if tar1 == nil then
  1490. tar1 = Torso
  1491. for i = 1, #Protected do
  1492. if Protected[i] == tar1 then
  1493. tar1 = nil
  1494. end
  1495. end
  1496. end
  1497. do
  1498. do
  1499. if tar1 ~= nil then
  1500. table.insert(Protected, tar1)
  1501. OOrbs[i][2].Part1 = tar1
  1502. OOrbs[i][2].C0 = cf(0, 0, 0)
  1503. table.insert(Effects, {OOrbs[i][1], "Protect", OOrbs[i][3], 0, 50, tar1, tar1.Parent})
  1504. else
  1505. MagicCircle(BrickColor.new(NewCol2), cf(OOrbs[i][3].Position), 5, 5, 5, -0.5, -0.5, -0.5, 0.05, 1, nil, nil, 0)
  1506. OOrbs[i][1].Parent = nil
  1507. OOrbs[i][3].Parent = nil
  1508. table.remove(OOrbs, i)
  1509. end
  1510. -- DECOMPILER ERROR at PC1363: LeaveBlock: unexpected jumping out DO_STMT
  1511.  
  1512. end
  1513. end
  1514. end
  1515. for i = 0, 1, 0.13 do
  1516. swait()
  1517. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.45)
  1518. wld1.C0 = clerp(wld1.C0, cf(0, 0.5, 0) * euler(0, 1.57, 0) * euler(0.8, 0, 0), 0.45)
  1519. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.2, 0, 0), 0.45)
  1520. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.45)
  1521. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.45)
  1522. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(0.9, 0, -0.8) * euler(0.2, 0, 0) * euler(0, -1, 0), 0.45)
  1523. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.6) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.45)
  1524. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.6) * euler(0, -1.57, 0) * euler(0, 1, 0.05), 0.45)
  1525. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1526. do
  1527. if StaggerHit.Value == true then
  1528. break
  1529. end
  1530. -- DECOMPILER ERROR at PC1569: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1531.  
  1532. -- DECOMPILER ERROR at PC1569: LeaveBlock: unexpected jumping out IF_STMT
  1533.  
  1534. end
  1535. end
  1536. end
  1537. else
  1538. if #Orbs == 3 and O3 == false then
  1539. O3 = true
  1540. for i = 0, 1, 0.1 do
  1541. swait()
  1542. MagicCircle2(BrickColor.new(NewCol2), cf(prt56.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 4, 1, -0.01, 1, -0.01, 0.1, 0.6)
  1543. for i = 1, #Orbs do
  1544. MagicBlock(BrickColor.new(NewCol4), cf(Orbs[i][3].Position) * cf(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1.5, 1.5, 1.5, -0.2, -0.2, -0.2, 0.2, 1)
  1545. end
  1546. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  1547. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * euler(0.4, 0, 0) * cf(0, 0, 0), 0.3)
  1548. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.1, 0, 0), 0.3)
  1549. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.3)
  1550. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.3)
  1551. LW.C0 = clerp(LW.C0, cf(-1.1, 0.5, -0.5) * euler(1.57, 0, 0.6) * euler(0.2, 0, 0) * euler(0, -1.4, 0), 0.3)
  1552. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.6) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.3)
  1553. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.6) * euler(0, -1.57, 0) * euler(0, 1, 0.05), 0.3)
  1554. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1555. do
  1556. if StaggerHit.Value == true then
  1557. break
  1558. end
  1559. -- DECOMPILER ERROR at PC1886: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1560.  
  1561. -- DECOMPILER ERROR at PC1886: LeaveBlock: unexpected jumping out IF_STMT
  1562.  
  1563. end
  1564. end
  1565. end
  1566. dar = #OOrbs
  1567. table.insert(OOrbs, Orbs[1])
  1568. table.insert(OOrbs, Orbs[2])
  1569. table.insert(OOrbs, Orbs[3])
  1570. for i = 1, #Orbs do
  1571. table.remove(Orbs, 1)
  1572. end
  1573. for i = dar + 1, dar + 3 do
  1574. OOrbs[i][1].Anchored = true
  1575. OOrbs[i][2].Parent = nil
  1576. OOrbs[i][3].Anchored = true
  1577. OOrbs[i][4].MaxSpeed = 500
  1578. OOrbs[i][4].Parent = nil
  1579. bleh = MMouse.Hit.p + vt(math.random(-500, 500) / 100, math.random(-500, 500) / 100, math.random(-500, 500) / 100)
  1580. local MouseLook = cf((OOrbs[i][3].Position + bleh) / 2, bleh)
  1581. local targ = OOrbs[i][3].Position - bleh
  1582. local mag = targ.magnitude / 5 * math.random(80, 120) / 100
  1583. if mag > 50 then
  1584. mag = 50
  1585. end
  1586. so("377357731", OOrbs[i][1], 1, 1.4)
  1587. table.insert(Effects, {MouseLook.lookVector, "ShootSeek", mag, OOrbs[i][1], OOrbs[i][2], OOrbs[i][3], OOrbs[i][4], OOrbs[i][3].Position, 4, 6})
  1588. end
  1589. for i = 0, 1, 0.05 do
  1590. swait()
  1591. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.4)
  1592. wld1.C0 = clerp(wld1.C0, cf(0, -0.5, 0) * euler(0, 1.57, 0) * euler(1, 0, 0), 0.4)
  1593. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.2) * euler(0.05, 0, 0), 0.4)
  1594. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.2), 0.4)
  1595. if i < 0.4 then
  1596. RootJoint.C1 = clerp(RootJoint.C1, RootCF * euler(0, 0, -15 * i), 0.4)
  1597. else
  1598. RootJoint.C1 = clerp(RootJoint.C1, RootCF, 0.4)
  1599. end
  1600. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.4)
  1601. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.3) * euler(-0.2, 0, 0) * euler(0, -1.4, 0), 0.4)
  1602. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, -0.2, 0.1), 0.4)
  1603. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.2) * euler(0, -1.57, 0) * euler(-0.1, -0.2, 0.1), 0.4)
  1604. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1605. do
  1606. if StaggerHit.Value == true then
  1607. break
  1608. end
  1609. -- DECOMPILER ERROR at PC2264: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1610.  
  1611. -- DECOMPILER ERROR at PC2264: LeaveBlock: unexpected jumping out IF_STMT
  1612.  
  1613. end
  1614. end
  1615. end
  1616. else
  1617. if #Orbs == 4 and O4 == false then
  1618. O4 = true
  1619. for i = 0, 1, 0.1 do
  1620. swait()
  1621. MagicCircle2(BrickColor.new(NewCol2), cf(prt56.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 4, 1, -0.01, 1, -0.01, 0.1, 0.6)
  1622. for i = 1, #Orbs do
  1623. MagicBlock(BrickColor.new(NewCol4), cf(Orbs[i][3].Position) * cf(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1.5, 1.5, 1.5, -0.2, -0.2, -0.2, 0.2, 1)
  1624. end
  1625. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  1626. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * euler(-0.2, 0, 0) * cf(0, 0, 0), 0.3)
  1627. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.1, 0, 0), 0.3)
  1628. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.3)
  1629. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.3)
  1630. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.2) * euler(1.57, 0, -1) * euler(1, 0, 0), 0.3)
  1631. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.6) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.3)
  1632. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.6) * euler(0, -1.57, 0) * euler(0, 1, 0.05), 0.3)
  1633. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1634. do
  1635. if StaggerHit.Value == true then
  1636. break
  1637. end
  1638. -- DECOMPILER ERROR at PC2575: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1639.  
  1640. -- DECOMPILER ERROR at PC2575: LeaveBlock: unexpected jumping out IF_STMT
  1641.  
  1642. end
  1643. end
  1644. end
  1645. for i = 0, 1, 0.13 do
  1646. swait()
  1647. MagicCircle2(BrickColor.new(NewCol2), cf(prt56.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 4, 1, -0.01, 1, -0.01, 0.1, 0.6)
  1648. for i = 1, #Orbs do
  1649. MagicBlock(BrickColor.new(NewCol4), cf(Orbs[i][3].Position) * cf(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1.5, 1.5, 1.5, -0.2, -0.2, -0.2, 0.2, 1)
  1650. end
  1651. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.5)
  1652. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * euler(-0.1, 0, 0) * cf(0, 0, 0), 0.5)
  1653. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.2, 0, 0), 0.5)
  1654. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.5)
  1655. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.5)
  1656. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.2) * euler(1.57, 0, -1) * euler(-0.1, 0, 0), 0.5)
  1657. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.6) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.5)
  1658. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.6) * euler(0, -1.57, 0) * euler(0, 1, 0.05), 0.5)
  1659. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1660. do
  1661. if StaggerHit.Value == true then
  1662. break
  1663. end
  1664. -- DECOMPILER ERROR at PC2876: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1665.  
  1666. -- DECOMPILER ERROR at PC2876: LeaveBlock: unexpected jumping out IF_STMT
  1667.  
  1668. end
  1669. end
  1670. end
  1671. MagicCircle(BrickColor.new(NewCol2), prt56.CFrame, 10, 10, 10, 1, 1, 1, 0.05, 1, nil, nil, 0)
  1672. shieldref.Parent = workspace
  1673. shieldref.Transparency = 1
  1674. shieldref.CFrame = cf(RootPart.Position) * cf(0, -1, 0)
  1675. shieldref2.Parent = workspace
  1676. shieldref2.Transparency = 1
  1677. shieldref2.CFrame = cf(shieldref.Position) * cf(0, 2.5, 0)
  1678. table.insert(Effects, {shieldref2, "ShieldEf"})
  1679. srefmsh.Scale = vt(4, 5, 4)
  1680. dar = #OOrbs
  1681. table.insert(OOrbs, Orbs[1])
  1682. table.insert(OOrbs, Orbs[2])
  1683. table.insert(OOrbs, Orbs[3])
  1684. table.insert(OOrbs, Orbs[4])
  1685. for i = 1, #Orbs do
  1686. table.remove(Orbs, 1)
  1687. end
  1688. teh = 0
  1689. for i = dar + 1, dar + 4 do
  1690. OOrbs[i][1].Anchored = true
  1691. OOrbs[i][2].Parent = nil
  1692. OOrbs[i][4].MaxSpeed = 100
  1693. OOrbs[i][1].CFrame = shieldref.CFrame * euler(0, teh, 0) * cf(0, 0, 20)
  1694. teh = teh + 1.57
  1695. end
  1696. table.insert(Effects, {shieldref, "Shield", 50, shieldref2})
  1697. end
  1698. end
  1699. end
  1700. end
  1701. attack = false
  1702. end
  1703. end
  1704. do2 = function()
  1705. if attack == true then
  1706. return
  1707. end
  1708. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1709. return
  1710. end
  1711. if cooldownmax <= cooldowns[2] and mana.Value >= 20 then
  1712. attack = true
  1713. cooldowns[2] = 0
  1714. mana.Value = mana.Value - 20
  1715. local dec = Instance.new("NumberValue", Decrease)
  1716. dec.Name = "DecreaseMvmt"
  1717. dec.Value = 10
  1718. ref2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1719. ref2.Anchored = true
  1720. for i = 0, 1, 0.1 do
  1721. swait()
  1722. ref2.CFrame = cf(prt18.Position) * cf(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100)
  1723. hitfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 50, Character)
  1724. if hitfloor2 ~= nil then
  1725. Lightning(prt18.Position, posfloor2, 5, 1, NewCol2, 0.1, 0.4, 0.1)
  1726. end
  1727. MagicCircle(BrickColor.new(NewCol2), cf(prt18.Position), 6, 6, 6, -1, -1, -1, 0.05, 1, nil, nil, 0.5)
  1728. MagicBlock(BrickColor.new(NewCol2), cf(prt18.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, -0.5, -0.5, -0.5, 0.1, 2)
  1729. wld23.C0 = clerp(wld23.C0, euler(0, math.rad(60), 0) * cf(-0.045, 0, 0), 0.45)
  1730. wld27.C0 = clerp(wld27.C0, euler(0, math.rad(60), 3.14) * cf(0.045, 0, 0), 0.45)
  1731. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  1732. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * euler(0.6, 0, 0) * cf(0, 0, 0), 0.3)
  1733. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(0.2, 0, 0), 0.3)
  1734. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.2), 0.3)
  1735. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.4)
  1736. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.5, 0, -0.2), 0.3)
  1737. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.2) * euler(0, 1.57, 0) * euler(-0.1, -0.4, -0.05), 0.3)
  1738. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.05), 0.3)
  1739. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1740. do
  1741. if StaggerHit.Value == true then
  1742. break
  1743. end
  1744. -- DECOMPILER ERROR at PC431: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1745.  
  1746. -- DECOMPILER ERROR at PC431: LeaveBlock: unexpected jumping out IF_STMT
  1747.  
  1748. end
  1749. end
  1750. end
  1751. so("315743331", prt18, 1, 2)
  1752. for i = 0, 1, 0.2 do
  1753. swait()
  1754. ref2.CFrame = cf(prt18.Position) * cf(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100)
  1755. hitfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 50, Character)
  1756. if hitfloor2 ~= nil then
  1757. Lightning(prt18.Position, posfloor2, 5, 1, NewCol2, 0.1, 0.4, 0.1)
  1758. end
  1759. MagicCircle(BrickColor.new(NewCol2), cf(prt18.Position), 6, 6, 6, -1, -1, -1, 0.05, 1, nil, nil, 0.5)
  1760. MagicBlock(BrickColor.new(NewCol2), cf(prt18.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, -0.5, -0.5, -0.5, 0.1, 2)
  1761. wld23.C0 = clerp(wld23.C0, euler(0, math.rad(60), 0) * cf(-0.045, 0, 0), 0.45)
  1762. wld27.C0 = clerp(wld27.C0, euler(0, math.rad(60), 3.14) * cf(0.045, 0, 0), 0.45)
  1763. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.45)
  1764. wld1.C0 = clerp(wld1.C0, cf(0, -0.7, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.45)
  1765. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(0.3, 0, 0), 0.45)
  1766. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * euler(0, 0, -0.2), 0.45)
  1767. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.4)
  1768. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -0.2), 0.45)
  1769. RH.C0 = clerp(RH.C0, cf(1.1, -0.2, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.4, -0.3), 0.45)
  1770. LH.C0 = clerp(LH.C0, cf(-1, -0.1, -0.2) * euler(0, -1.57, 0) * euler(0, 0.2, 0.1), 0.45)
  1771. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1772. do
  1773. if StaggerHit.Value == true then
  1774. break
  1775. end
  1776. -- DECOMPILER ERROR at PC809: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1777.  
  1778. -- DECOMPILER ERROR at PC809: LeaveBlock: unexpected jumping out IF_STMT
  1779.  
  1780. end
  1781. end
  1782. end
  1783. shieldref.Parent = nil
  1784. table.insert(Effects, {shieldref2, "Cylinder", 0.05, 0.1, 0.1, 0.1, srefmsh})
  1785. O1 = false
  1786. O2 = false
  1787. O3 = false
  1788. O4 = false
  1789. for i = 1, #OOrbs do
  1790. ref = part(3, workspace, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  1791. ref.Anchored = true
  1792. ref.CFrame = cf(OOrbs[1][3].Position)
  1793. so("161006093", ref, 1, 1.8)
  1794. game:GetService("Debris"):AddItem(ref, 0.2)
  1795. MagicCircle(BrickColor.new(NewCol2), cf(OOrbs[1][3].Position), 10, 10, 10, 5, 5, 5, 0.07)
  1796. dra = math.random(-50, 50)
  1797. for i = 0.785, 6.28, 0.785 do
  1798. MagicCircle2(BrickColor.new(NewCol2), cf(OOrbs[1][3].Position) * euler(dra, 0, i), 4, 5, 4, -0.02, 2, -0.02, 0.05, 0.8)
  1799. end
  1800. MagniDamage(ref, 15, 10, 12, 0, "Normal", ref, 0, 1, (math.random(3, 5)), nil, nil, true)
  1801. MagniHeal(ref, 10, 4, 6)
  1802. OOrbs[1][1].Parent = nil
  1803. OOrbs[1][3].Parent = nil
  1804. table.remove(OOrbs, 1)
  1805. end
  1806. for i = 1, #Protected do
  1807. table.remove(Protected, 1)
  1808. end
  1809. for i = 0, 1, 0.15 do
  1810. swait()
  1811. ref2.CFrame = cf(prt18.Position) * cf(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100)
  1812. hitfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 50, Character)
  1813. if hitfloor2 ~= nil then
  1814. Lightning(prt18.Position, posfloor2, 5, 1, NewCol2, 0.1, 0.4, 0.1)
  1815. end
  1816. MagicCircle(BrickColor.new(NewCol2), cf(prt18.Position), 6, 6, 6, -1, -1, -1, 0.05, 1, nil, nil, 0.5)
  1817. MagicBlock(BrickColor.new(NewCol2), cf(prt18.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, -0.5, -0.5, -0.5, 0.1, 2)
  1818. wld23.C0 = clerp(wld23.C0, euler(0, math.rad(60), 0) * cf(-0.045, 0, 0), 0.45)
  1819. wld27.C0 = clerp(wld27.C0, euler(0, math.rad(60), 3.14) * cf(0.045, 0, 0), 0.45)
  1820. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.45)
  1821. wld1.C0 = clerp(wld1.C0, cf(0, -0.7, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.45)
  1822. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(0.3, 0, 0), 0.45)
  1823. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * euler(0, 0, -0.2), 0.45)
  1824. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.4)
  1825. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -0.2), 0.45)
  1826. RH.C0 = clerp(RH.C0, cf(1.1, -0.2, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.4, -0.3), 0.45)
  1827. LH.C0 = clerp(LH.C0, cf(-1, -0.1, -0.2) * euler(0, -1.57, 0) * euler(0, 0.2, 0.1), 0.45)
  1828. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1829. do
  1830. if StaggerHit.Value == true then
  1831. break
  1832. end
  1833. -- DECOMPILER ERROR at PC1352: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1834.  
  1835. -- DECOMPILER ERROR at PC1352: LeaveBlock: unexpected jumping out IF_STMT
  1836.  
  1837. end
  1838. end
  1839. end
  1840. dec.Parent = nil
  1841. attack = false
  1842. for i = 0, 1, 0.1 do
  1843. swait()
  1844. wld23.C0 = clerp(wld23.C0, euler(0, math.rad(0), 0) * cf(-0.045, 0, 0), 0.45)
  1845. wld27.C0 = clerp(wld27.C0, euler(0, math.rad(0), 3.14) * cf(0.045, 0, 0), 0.45)
  1846. end
  1847. wld23.C0 = clerp(wld23.C0, euler(0, math.rad(0), 0) * cf(-0.045, 0, 0), 1)
  1848. wld27.C0 = clerp(wld27.C0, euler(0, math.rad(0), 3.14) * cf(0.045, 0, 0), 1)
  1849. end
  1850. end
  1851. do3 = function()
  1852. if attack == true then
  1853. return
  1854. end
  1855. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1856. return
  1857. end
  1858. if cooldownmax <= cooldowns[3] and mana.Value >= 20 then
  1859. attack = true
  1860. cooldowns[3] = 0
  1861. mana.Value = mana.Value - 20
  1862. for i = 0, 1, 0.1 do
  1863. swait()
  1864. MagicBlock(BrickColor.new(NewCol2), RightArm.CFrame * cf(0, -1, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cf(0, -2, 0), 2, 2, 2, -0.5, -0.5, -0.5, 0.1, 3)
  1865. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  1866. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  1867. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.2, 0, 0), 0.3)
  1868. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.8), 0.3)
  1869. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.2) * euler(1.2, 0, -0.6) * euler(0, 0, 0), 0.3)
  1870. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.3, 0, -0.8) * euler(0, 0.4, 0), 0.3)
  1871. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0.2, -0.05), 0.3)
  1872. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, 0.4) * euler(0, -1.57, 0) * euler(0, 0.8, 0.05), 0.3)
  1873. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1874. do
  1875. if StaggerHit.Value == true then
  1876. break
  1877. end
  1878. -- DECOMPILER ERROR at PC276: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1879.  
  1880. -- DECOMPILER ERROR at PC276: LeaveBlock: unexpected jumping out IF_STMT
  1881.  
  1882. end
  1883. end
  1884. end
  1885. so("315743331", RightArm, 1, 1.6)
  1886. so("315743350", RightArm, 1, 1.6)
  1887. for i = 1, 0, -0.05 do
  1888. swait()
  1889. hitbox.CFrame = RightArm.CFrame * cf(0, -1, 0)
  1890. smite = true
  1891. MagniDamage(hitbox, 3, 7, 9, 0, "Normal", RootPart, 1, 2, (math.random(3, 5)), nil, true)
  1892. smite = false
  1893. if Rooted.Value == false then
  1894. Torso.Velocity = RootPart.CFrame.lookVector * 80 * i
  1895. end
  1896. MagicCircle(BrickColor.new(NewCol2), RightArm.CFrame * cf(0, -1, 0), 15, 15, 15, -2, -2, -2, 0.05, 1, nil, nil, 0.5)
  1897. MagicBlock(BrickColor.new(NewCol2), RightArm.CFrame * cf(0, -1, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cf(0, -2, 0), 2, 2, 2, -0.5, -0.5, -0.5, 0.1, 3)
  1898. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.5)
  1899. wld1.C0 = clerp(wld1.C0, euler(-0.4, 0, 0) * cf(0, 0, 0), 0.5)
  1900. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.8) * euler(0, 0, 0), 0.5)
  1901. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.8), 0.5)
  1902. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.2) * euler(1.5, 0, 0.8) * euler(0, 0, 0), 0.5)
  1903. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.8) * euler(0, 0.2, 0), 0.5)
  1904. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.4) * euler(0, 1.57, 0) * euler(-0.1, -1, 0.1), 0.5)
  1905. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.8, 0.1), 0.5)
  1906. if Stagger.Value ~= true and StunT.Value > Stun.Value and StaggerHit.Value ~= true then
  1907. do
  1908. if smtarget ~= nil then
  1909. break
  1910. end
  1911. -- DECOMPILER ERROR at PC598: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1912.  
  1913. -- DECOMPILER ERROR at PC598: LeaveBlock: unexpected jumping out IF_STMT
  1914.  
  1915. end
  1916. end
  1917. end
  1918. if smtarget ~= nil then
  1919. if Rooted.Value == false then
  1920. Torso.Velocity = RootPart.CFrame.lookVector * -80
  1921. end
  1922. for i = 0, 1, 0.1 do
  1923. swait()
  1924. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  1925. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  1926. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.2, 0, 0), 0.3)
  1927. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.8), 0.3)
  1928. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.2) * euler(1, 0, 1) * euler(0, 0, 0), 0.3)
  1929. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.3, 0, -0.8) * euler(0, 0.4, 0), 0.3)
  1930. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0.2, -0.05), 0.3)
  1931. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, 0.4) * euler(0, -1.57, 0) * euler(0, 0.8, 0.05), 0.3)
  1932. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1933. do
  1934. if StaggerHit.Value == true then
  1935. break
  1936. end
  1937. -- DECOMPILER ERROR at PC805: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1938.  
  1939. -- DECOMPILER ERROR at PC805: LeaveBlock: unexpected jumping out IF_STMT
  1940.  
  1941. end
  1942. end
  1943. end
  1944. end
  1945. smite = false
  1946. smtarget = nil
  1947. attack = false
  1948. end
  1949. end
  1950. do4 = function()
  1951. if attack == true then
  1952. return
  1953. end
  1954. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1955. return
  1956. end
  1957. attack = true
  1958. cooldowns[4] = 0
  1959. attack = false
  1960. end
  1961. DecreaseStat = function(Model, Stat, Amount, Duration)
  1962. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  1963. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  1964. d = Instance.new("NumberValue", Model.Stats.Decrease)
  1965. dur = Instance.new("NumberValue", d)
  1966. dur.Name = "Duration"
  1967. dur.Value = Duration
  1968. game:GetService("Debris"):AddItem(d, 20)
  1969. if Stat == "Damage" then
  1970. d.Name = "DecreaseAtk"
  1971. else
  1972. if Stat == "Defense" then
  1973. d.Name = "DecreaseDef"
  1974. else
  1975. if Stat == "Movement" then
  1976. d.Name = "DecreaseMvmt"
  1977. end
  1978. end
  1979. end
  1980. if Model:findFirstChild("Torso") ~= nil then
  1981. display = ""
  1982. if Stat == "Damage" then
  1983. if Amount > 0 then
  1984. display = "-Damage"
  1985. else
  1986. display = "+Damage"
  1987. end
  1988. else
  1989. if Stat == "Defense" then
  1990. if Amount > 0 then
  1991. display = "-Defense"
  1992. else
  1993. display = "+Defense"
  1994. end
  1995. else
  1996. if Stat == "Movement" then
  1997. if Amount > 0 then
  1998. display = "-Movement"
  1999. else
  2000. display = "+Movement"
  2001. end
  2002. end
  2003. end
  2004. end
  2005. showDamage(Model, display, "Debuff")
  2006. end
  2007. d.Value = Amount
  2008. end
  2009. end
  2010. GetDist = function(Part1, Part2, magni)
  2011. local targ = Part1.Position - Part2.Position
  2012. local mag = targ.magnitude
  2013. if mag <= magni then
  2014. return true
  2015. else
  2016. return false
  2017. end
  2018. end
  2019. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2020. for _,c in pairs(workspace:children()) do
  2021. local hum = c:findFirstChild("Humanoid")
  2022. if hum ~= nil then
  2023. local head = nil
  2024. for _,d in pairs(c:children()) do
  2025. if d.className == "Model" and ranged ~= true then
  2026. head = d:findFirstChild("Hitbox")
  2027. if d.Parent == Character then
  2028. break
  2029. end
  2030. if head ~= nil then
  2031. local targ = head.Position - Part.Position
  2032. local mag = targ.magnitude
  2033. if mag <= magni and c.Name ~= Player.Name then
  2034. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2035. ref.Anchored = true
  2036. ref.CFrame = cf(head.Position)
  2037. game:GetService("Debris"):AddItem(ref, 1)
  2038. hitnum = math.random(1, 5)
  2039. if hitnum == 1 then
  2040. so("199148971", ref, 1, 1)
  2041. else
  2042. if hitnum == 2 then
  2043. so("199149025", ref, 1, 1)
  2044. else
  2045. if hitnum == 3 then
  2046. so("199149072", ref, 1, 1)
  2047. else
  2048. if hitnum == 4 then
  2049. so("199149109", ref, 1, 1)
  2050. else
  2051. if hitnum == 5 then
  2052. so("199149119", ref, 1, 1)
  2053. end
  2054. end
  2055. end
  2056. end
  2057. end
  2058. StaggerHit.Value = true
  2059. end
  2060. end
  2061. end
  2062. do
  2063. if d.className == "Part" then
  2064. head = d
  2065. if head ~= nil then
  2066. local targ = head.Position - Part.Position
  2067. local mag = targ.magnitude
  2068. if mag <= magni and c.Name ~= Player.Name then
  2069. if stun == nil then
  2070. stun = math.random(5, 10)
  2071. end
  2072. local Rang = nil
  2073. if Ranged == false then
  2074. Rang = true
  2075. end
  2076. local stag = nil
  2077. if shbash == true then
  2078. stag = true
  2079. end
  2080. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2081. end
  2082. end
  2083. end
  2084. do
  2085. -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT
  2086.  
  2087. end
  2088. end
  2089. end
  2090. end
  2091. end
  2092. end
  2093. MagniBuff = function(Part, magni, Dec, DecAm, Dur)
  2094. if Player.Neutral == true then
  2095. DecreaseStat(Character, Dec, DecAm, Dur)
  2096. end
  2097. for _,c in pairs(workspace:children()) do
  2098. local hum = c:findFirstChild("Humanoid")
  2099. if hum ~= nil then
  2100. local head = c:findFirstChild("Torso")
  2101. if head ~= nil then
  2102. local targ = head.Position - Part.Position
  2103. local mag = targ.magnitude
  2104. cando = true
  2105. if mag <= magni then
  2106. if Player.Neutral == false then
  2107. if game.Players:GetPlayerFromCharacter(head.Parent) ~= nil then
  2108. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  2109. cando = true
  2110. else
  2111. cando = false
  2112. end
  2113. else
  2114. cando = false
  2115. end
  2116. if head.Parent:findFirstChild("Alignment") ~= nil and head.Parent.Alignment.Value == Player.TeamColor.Color then
  2117. cando = true
  2118. end
  2119. else
  2120. cando = false
  2121. end
  2122. if cando == true then
  2123. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  2124. end
  2125. end
  2126. end
  2127. end
  2128. end
  2129. end
  2130. MagniDebuff = function(Part, magni, Dec, DecAm, Dur)
  2131. for _,c in pairs(workspace:children()) do
  2132. local hum = c:findFirstChild("Humanoid")
  2133. if hum ~= nil then
  2134. local head = c:findFirstChild("Torso")
  2135. if head ~= nil then
  2136. local targ = head.Position - Part.Position
  2137. local mag = targ.magnitude
  2138. -- DECOMPILER ERROR at PC53: Unhandled construct in 'MakeBoolean' P1
  2139.  
  2140. -- DECOMPILER ERROR at PC53: Unhandled construct in 'MakeBoolean' P1
  2141.  
  2142. if mag <= magni and c.Name ~= Player.Name and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and (game.Players:GetPlayerFromCharacter(head.Parent).TeamColor ~= Player.TeamColor or Player.Neutral == true) then
  2143. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  2144. end
  2145. end
  2146. end
  2147. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  2148. end
  2149. end
  2150. MagniHeal = function(Part, magni, mindam, maxdam)
  2151. for _,c in pairs(workspace:children()) do
  2152. local hum = c:findFirstChild("Humanoid")
  2153. if hum ~= nil then
  2154. local head = c:findFirstChild("Torso")
  2155. if head ~= nil then
  2156. local targ = head.Position - Part.Position
  2157. local mag = targ.magnitude
  2158. local cando = true
  2159. if mag <= magni then
  2160. if game.Players:GetPlayerFromCharacter(head.Parent) ~= nil then
  2161. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  2162. cando = true
  2163. else
  2164. cando = false
  2165. end
  2166. else
  2167. cando = false
  2168. end
  2169. if head.Parent:findFirstChild("Alignment") ~= nil and head.Parent.Alignment.Value == Player.TeamColor.Color then
  2170. cando = true
  2171. end
  2172. if cando == true then
  2173. Heal = math.random(mindam, maxdam)
  2174. if c.Parent == Character then
  2175. Heal = math.floor(math.random(mindam / 2, maxdam / 2))
  2176. end
  2177. hum.Health = hum.Health + Heal
  2178. showDamage(c, Heal, "Heal")
  2179. end
  2180. end
  2181. end
  2182. end
  2183. end
  2184. end
  2185. rayCast = function(Pos, Dir, Max, Ignore)
  2186. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2187. end
  2188. findNearestTorso = function(pos)
  2189. local list = (game.Workspace:children())
  2190. local torso = nil
  2191. local dist = 1000
  2192. local temp, human, temp2 = nil, nil, nil
  2193. for x = 1, #list do
  2194. temp2 = list[x]
  2195. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  2196. temp = temp2:findFirstChild("Torso")
  2197. human = temp2:findFirstChild("Humanoid")
  2198. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  2199. local dohit = true
  2200. if temp2:findFirstChild("Alive") == nil then
  2201. dohit = false
  2202. end
  2203. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(temp.Parent) ~= nil and game.Players:GetPlayerFromCharacter(temp.Parent).TeamColor == Player.TeamColor then
  2204. dohit = false
  2205. end
  2206. if Player.Neutral == false and temp2:findFirstChild("Alignment") ~= nil and temp2.Alignment.Value == Player.TeamColor.Color then
  2207. dohit = false
  2208. end
  2209. if dohit == true then
  2210. torso = temp
  2211. dist = (temp.Position - pos).magnitude
  2212. end
  2213. end
  2214. end
  2215. end
  2216. return torso, dist
  2217. end
  2218. findNearestAlly = function(pos)
  2219. local list = (game.Workspace:children())
  2220. local torso = nil
  2221. local dist = 1000
  2222. local temp, human, temp2 = nil, nil, nil
  2223. for x = 1, #list do
  2224. temp2 = list[x]
  2225. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  2226. temp = temp2:findFirstChild("Torso")
  2227. human = temp2:findFirstChild("Humanoid")
  2228. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  2229. local dohit = false
  2230. if temp2:findFirstChild("Alive") == nil then
  2231. dohit = false
  2232. end
  2233. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(temp.Parent) ~= nil and game.Players:GetPlayerFromCharacter(temp.Parent).TeamColor == Player.TeamColor then
  2234. dohit = true
  2235. end
  2236. if Player.Neutral == false and temp2:findFirstChild("Alignment") ~= nil and temp2.Alignment.Value == Player.TeamColor.Color then
  2237. dohit = true
  2238. end
  2239. if dohit == true then
  2240. torso = temp
  2241. dist = (temp.Position - pos).magnitude
  2242. end
  2243. end
  2244. end
  2245. end
  2246. return torso, dist
  2247. end
  2248. findNearestAlly2 = function(pos)
  2249. local list = (game.Workspace:children())
  2250. local torso = nil
  2251. local dist = 1000
  2252. local temp, human, temp2 = nil, nil, nil
  2253. for x = 1, #list do
  2254. temp2 = list[x]
  2255. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  2256. temp = temp2:findFirstChild("Torso")
  2257. human = temp2:findFirstChild("Humanoid")
  2258. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  2259. local dohit = false
  2260. if temp2:findFirstChild("Alive") == nil then
  2261. dohit = false
  2262. end
  2263. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(temp.Parent) ~= nil and game.Players:GetPlayerFromCharacter(temp.Parent).TeamColor == Player.TeamColor then
  2264. dohit = true
  2265. end
  2266. if Player.Neutral == false and temp2:findFirstChild("Alignment") ~= nil and temp2.Alignment.Value == Player.TeamColor.Color then
  2267. dohit = true
  2268. end
  2269. for i = 1, #Protected do
  2270. if Protected[i] == temp then
  2271. dohit = false
  2272. end
  2273. end
  2274. if dohit == true then
  2275. torso = temp
  2276. dist = (temp.Position - pos).magnitude
  2277. end
  2278. end
  2279. end
  2280. end
  2281. return torso, dist
  2282. end
  2283. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  2284. LastPoint = Point
  2285. effect = function(Color, Ref, LP, P1, returnn, size, thing1)
  2286. if LP == nil or P1 == nil then
  2287. return
  2288. end
  2289. local effectsmsh = Instance.new("SpecialMesh")
  2290. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2291. effectsmsh.MeshType = "Head"
  2292. effectsmsh.Name = "Mesh"
  2293. local effectsg = Instance.new("Part")
  2294. NoOutline(effectsg)
  2295. effectsg.formFactor = 3
  2296. effectsg.CanCollide = false
  2297. effectsg.Name = "Eff"
  2298. effectsg.Locked = true
  2299. effectsg.Anchored = true
  2300. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2301. effectsg.Parent = effects
  2302. effectsmsh.Parent = effectsg
  2303. effectsg.BrickColor = BrickColor.new(Color)
  2304. effectsg.Reflectance = Ref
  2305. local point1 = P1
  2306. local mg = LP.p - (point1.p).magnitude
  2307. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2308. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2309. effectsmsh.Scale = Vector3.new(size, 1, size)
  2310. game:GetService("Debris"):AddItem(effectsg, 2)
  2311. if returnn then
  2312. return effectsg
  2313. end
  2314. if not returnn then
  2315. if thing1 == 1 then
  2316. table.insert(Effects, {effectsg, "Cylinder", 0.05, 0.2, 0, 0.2, effectsmsh})
  2317. else
  2318. table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  2319. end
  2320. end
  2321. end
  2322. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  2323. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2324. prt.Anchored = true
  2325. prt.CFrame = cframe
  2326. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2327. game:GetService("Debris"):AddItem(prt, 10)
  2328. if Type == 1 or Type == nil then
  2329. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  2330. else
  2331. if Type == 2 then
  2332. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  2333. else
  2334. if Type == 3 then
  2335. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame, math.random(10, 50) / 100})
  2336. end
  2337. end
  2338. end
  2339. end
  2340. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, prt2, par, trans)
  2341. local prt = (part(3, effects, 0, trans, brickcolor, "Effect", vt()))
  2342. local wld = nil
  2343. prt.Anchored = true
  2344. prt.CFrame = cframe
  2345. if par ~= nil then
  2346. prt.Parent = par
  2347. end
  2348. if Type ~= 3 then
  2349. prt.Anchored = true
  2350. else
  2351. prt.Anchored = false
  2352. wld = weld(prt, prt, prt2, cframe)
  2353. end
  2354. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2355. game:GetService("Debris"):AddItem(prt, 10)
  2356. if Type ~= 3 then
  2357. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2358. else
  2359. table.insert(Effects, {prt, "Block4", delay, x3, y3, z3, msh, wld, cframe})
  2360. end
  2361. end
  2362. MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
  2363. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2364. prt.Anchored = true
  2365. prt.CFrame = cframe
  2366. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2367. game:GetService("Debris"):AddItem(prt, 10)
  2368. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
  2369. end
  2370. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2371. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2372. prt.Anchored = true
  2373. prt.CFrame = cframe
  2374. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2375. game:GetService("Debris"):AddItem(prt, 10)
  2376. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2377. end
  2378. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2379. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2380. prt.Anchored = true
  2381. prt.CFrame = cframe
  2382. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2383. game:GetService("Debris"):AddItem(prt, 10)
  2384. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2385. end
  2386. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  2387. local prt = part(3, effects, 0, 1, brickcolor, "Effect", vt())
  2388. prt.Anchored = true
  2389. prt.CFrame = cframe
  2390. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  2391. game:GetService("Debris"):AddItem(prt, 10)
  2392. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  2393. end
  2394. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2395. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2396. prt.Anchored = true
  2397. prt.CFrame = cframe
  2398. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2399. game:GetService("Debris"):AddItem(prt, 10)
  2400. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2401. end
  2402. MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, par)
  2403. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2404. prt.Anchored = true
  2405. if par ~= nil then
  2406. prt.Parent = par
  2407. end
  2408. prt.CFrame = cframe * cf(x2, y2, z2)
  2409. local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
  2410. game:GetService("Debris"):AddItem(prt, 10)
  2411. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2412. end
  2413. MagicSpecial = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2414. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2415. prt.Anchored = true
  2416. prt.CFrame = cframe
  2417. local msh = mesh("SpecialMesh", prt, "FileMesh", "24388358", vt(0, 0, 0), vt(x1, y1, z1))
  2418. game:GetService("Debris"):AddItem(prt, 10)
  2419. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2420. end
  2421. Lightning = function(p0, p1, tym, ofs, col, th, tra, last)
  2422. local magz = (p0 - p1).magnitude
  2423. local curpos = p0
  2424. local trz = {-ofs, ofs}
  2425. for i = 1, tym do
  2426. local li = Instance.new("Part", effects)
  2427. li.TopSurface = 0
  2428. li.BottomSurface = 0
  2429. li.Anchored = true
  2430. li.Transparency = tra or 0.4
  2431. li.BrickColor = BrickColor.new(col)
  2432. li.formFactor = "Custom"
  2433. li.CanCollide = false
  2434. li.Size = Vector3.new(th, th, magz / tym)
  2435. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  2436. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  2437. li.Material = "Neon"
  2438. if tym == i then
  2439. local magz2 = (curpos - p1).magnitude
  2440. li.Size = Vector3.new(th, th, magz2)
  2441. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  2442. table.insert(Effects, {li, "Disappear", last})
  2443. else
  2444. do
  2445. do
  2446. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  2447. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  2448. game.Debris:AddItem(li, 10)
  2449. table.insert(Effects, {li, "Disappear", last})
  2450. end
  2451. end
  2452. end
  2453. end
  2454. end
  2455. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2456. if hit.Parent == nil then
  2457. return
  2458. end
  2459. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  2460. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2461. ref.Anchored = true
  2462. ref.CFrame = cf(hit.Position)
  2463. game:GetService("Debris"):AddItem(ref, 1)
  2464. hitnum = math.random(1, 5)
  2465. if hitnum == 1 then
  2466. so("199148971", ref, 1, 1)
  2467. else
  2468. if hitnum == 2 then
  2469. so("199149025", ref, 1, 1)
  2470. else
  2471. if hitnum == 3 then
  2472. so("199149072", ref, 1, 1)
  2473. else
  2474. if hitnum == 4 then
  2475. so("199149109", ref, 1, 1)
  2476. else
  2477. if hitnum == 5 then
  2478. so("199149119", ref, 1, 1)
  2479. end
  2480. end
  2481. end
  2482. end
  2483. end
  2484. StaggerHit.Value = true
  2485. end
  2486. h = hit.Parent:FindFirstChild("Humanoid")
  2487. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  2488. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  2489. return
  2490. end
  2491. if Player.Neutral == false then
  2492. if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
  2493. return
  2494. end
  2495. if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  2496. return
  2497. end
  2498. end
  2499. c = Instance.new("ObjectValue")
  2500. c.Name = "creator"
  2501. c.Value = game:service("Players").LocalPlayer
  2502. c.Parent = h
  2503. RecentEnemy.Value = hit.Parent
  2504. game:GetService("Debris"):AddItem(c, 0.5)
  2505. minim = minim * Atk.Value
  2506. maxim = maxim * Atk.Value
  2507. Damage = 0
  2508. if minim == maxim then
  2509. Damage = maxim
  2510. else
  2511. Damage = math.random(minim, maxim)
  2512. end
  2513. blocked = false
  2514. enblock = nil
  2515. Stats = hit.Parent:findFirstChild("Stats")
  2516. if Stats ~= nil then
  2517. invis = Stats:findFirstChild("Invisibility")
  2518. isinvis = Stats:findFirstChild("IsInvisible")
  2519. if (ranged == false or ranged == nil) and invis ~= nil and isinvis.Value == true then
  2520. invis.Value = 0
  2521. end
  2522. enblock = Stats:findFirstChild("Block")
  2523. if enblock ~= nil and enblock.Value == true then
  2524. blocked = true
  2525. end
  2526. if Stats:findFirstChild("Defense") ~= nil then
  2527. Damage = Damage / Stats.Defense.Value
  2528. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  2529. hitnum = math.random(1, 5)
  2530. if hitnum == 1 then
  2531. so("199149321", hit, 1, 1)
  2532. else
  2533. if hitnum == 2 then
  2534. so("199149338", hit, 1, 1)
  2535. else
  2536. if hitnum == 3 then
  2537. so("199149367", hit, 1, 1)
  2538. else
  2539. if hitnum == 4 then
  2540. so("199149409", hit, 1, 1)
  2541. else
  2542. if hitnum == 5 then
  2543. so("199149452", hit, 1, 1)
  2544. end
  2545. end
  2546. end
  2547. end
  2548. end
  2549. else
  2550. if ranged == false or ranged == nil and blocked ~= true then
  2551. hitnum = math.random(1, 6)
  2552. if hitnum == 1 then
  2553. so("199149137", hit, 1, 1)
  2554. else
  2555. if hitnum == 2 then
  2556. so("199149186", hit, 1, 1)
  2557. else
  2558. if hitnum == 3 then
  2559. so("199149221", hit, 1, 1)
  2560. else
  2561. if hitnum == 4 then
  2562. so("199149235", hit, 1, 1)
  2563. else
  2564. if hitnum == 5 then
  2565. so("199149269", hit, 1, 1)
  2566. else
  2567. if hitnum == 6 then
  2568. so("199149297", hit, 1, 1)
  2569. end
  2570. end
  2571. end
  2572. end
  2573. end
  2574. end
  2575. end
  2576. end
  2577. if Damage <= 3 and staghit == true and ranged ~= true then
  2578. StaggerHit.Value = true
  2579. end
  2580. end
  2581. if Stats:findFirstChild("Stun") ~= nil then
  2582. if blocked == true then
  2583. incstun = incstun / 2
  2584. end
  2585. if Stats.Stun.Value < Stats.StunThreshold.Value then
  2586. Stats.Stun.Value = Stats.Stun.Value + incstun
  2587. end
  2588. end
  2589. if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
  2590. Stats.Stagger.Value = true
  2591. end
  2592. end
  2593. if blocked == true then
  2594. showDamage(hit.Parent, "Block", "Damage")
  2595. if ranged ~= true then
  2596. enblock.Value = false
  2597. Stagger.Value = true
  2598. hitnum = math.random(1, 2)
  2599. if hitnum == 1 then
  2600. so("199148933", hit, 1, 1)
  2601. else
  2602. if hitnum == 2 then
  2603. so("199148947", hit, 1, 1)
  2604. end
  2605. end
  2606. end
  2607. else
  2608. Damage = math.floor(Damage)
  2609. coroutine.resume(coroutine.create(function(Hum, Dam)
  2610. CurrentHealth = Hum.Health
  2611. h:TakeDamage(Damage)
  2612. end), h, Damage)
  2613. showDamage(hit.Parent, Damage, "Damage")
  2614. if DecreaseState ~= nil then
  2615. if DecreaseState == "Temporal" then
  2616. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  2617. DecreaseStat(hit.Parent, "Defense", DecreaseAmount, Duration)
  2618. else
  2619. if DecreaseState == "Temporal2" then
  2620. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  2621. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, Duration)
  2622. else
  2623. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  2624. end
  2625. end
  2626. end
  2627. if smite == true then
  2628. so("178452217", hit, 1, 1)
  2629. smtarget = hit.Parent
  2630. if smtarget:findFirstChild("Stats") ~= nil then
  2631. d1 = Instance.new("NumberValue", smtarget.Stats.Decrease)
  2632. d1.Name = "DecreaseAtk"
  2633. d1.Value = 10
  2634. dur1 = Instance.new("NumberValue", d1)
  2635. dur1.Name = "Duration"
  2636. dur1.Value = 9999
  2637. d2 = Instance.new("NumberValue", smtarget.Stats.Decrease)
  2638. d2.Name = "DecreaseDef"
  2639. d2.Value = -9
  2640. dur2 = Instance.new("NumberValue", d2)
  2641. dur2.Name = "Duration"
  2642. dur2.Value = 9999
  2643. d3 = Instance.new("NumberValue", smtarget.Stats.Decrease)
  2644. d3.Name = "DecreaseMvmt"
  2645. d3.Value = 10
  2646. dur3 = Instance.new("NumberValue", d3)
  2647. dur3.Name = "Duration"
  2648. dur3.Value = 9999
  2649. ref2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2650. ref2.Anchored = true
  2651. table.insert(Effects, {smtarget, "Smite", 500, d1, d2, d3, dur1, dur2, dur3, smtarget.Stats.Decrease, smtarget.Torso, ref2})
  2652. end
  2653. end
  2654. if Type == "Knockdown" then
  2655. hum = hit.Parent.Humanoid
  2656. hum.PlatformStand = true
  2657. coroutine.resume(coroutine.create(function(HHumanoid)
  2658. swait(1)
  2659. HHumanoid.PlatformStand = false
  2660. end), hum)
  2661. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2662. local bodvol = Instance.new("BodyVelocity")
  2663. bodvol.velocity = angle * knockback
  2664. bodvol.P = 5000
  2665. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  2666. bodvol.Parent = hit
  2667. rl = Instance.new("BodyAngularVelocity")
  2668. rl.P = 3000
  2669. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  2670. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  2671. rl.Parent = hit
  2672. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2673. game:GetService("Debris"):AddItem(rl, 0.5)
  2674. else
  2675. do
  2676. if Type == "Knockdown2" then
  2677. hum = hit.Parent.Humanoid
  2678. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2679. local bodvol = Instance.new("BodyVelocity")
  2680. bodvol.velocity = angle * knockback
  2681. bodvol.P = 5000
  2682. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  2683. bodvol.Parent = hit
  2684. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2685. else
  2686. do
  2687. if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  2688. vp = Instance.new("BodyVelocity")
  2689. vp.P = 500
  2690. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  2691. if KnockbackType == 1 then
  2692. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2693. else
  2694. if KnockbackType == 2 then
  2695. vp.velocity = Property.CFrame.lookVector * knockback
  2696. end
  2697. end
  2698. game:GetService("Debris"):AddItem(vp, 0.5)
  2699. if knockback > 0 then
  2700. vp.Parent = hit.Parent.Torso
  2701. end
  2702. end
  2703. debounce = Instance.new("BoolValue")
  2704. debounce.Name = "DebounceHit"
  2705. debounce.Parent = hit.Parent
  2706. debounce.Value = true
  2707. game:GetService("Debris"):AddItem(debounce, Delay)
  2708. c = Instance.new("ObjectValue")
  2709. c.Name = "creator"
  2710. c.Value = Player
  2711. c.Parent = h
  2712. game:GetService("Debris"):AddItem(c, 0.5)
  2713. CRIT = false
  2714. end
  2715. end
  2716. end
  2717. end
  2718. end
  2719. end
  2720. end
  2721. showDamage = function(Char, Dealt, Type)
  2722. m = Instance.new("Model")
  2723. m.Name = "Effect"
  2724. c = Instance.new("Part")
  2725. c.Transparency = 1
  2726. c.Name = "Head"
  2727. c.TopSurface = 0
  2728. c.BottomSurface = 0
  2729. c.formFactor = "Plate"
  2730. c.Size = Vector3.new(1, 0.4, 1)
  2731. b = Instance.new("BillboardGui", c)
  2732. b.Size = UDim2.new(5, 0, 5, 0)
  2733. b.AlwaysOnTop = true
  2734. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  2735. if Type == "Damage" then
  2736. damgui.Font = "SourceSans"
  2737. if Dealt == "Block" then
  2738. damgui.TextColor3 = BrickColor.new("Bright blue").Color
  2739. else
  2740. if Dealt < 3 then
  2741. damgui.TextColor3 = BrickColor.new("White").Color
  2742. else
  2743. if Dealt >= 3 and Dealt < 20 then
  2744. damgui.TextColor3 = BrickColor.new("Bright yellow").Color
  2745. else
  2746. damgui.TextColor3 = BrickColor.new("Really red").Color
  2747. damgui.Font = "SourceSansBold"
  2748. end
  2749. end
  2750. end
  2751. else
  2752. if Type == "Debuff" then
  2753. damgui.TextColor3 = BrickColor.new("White").Color
  2754. else
  2755. if Type == "Interrupt" then
  2756. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  2757. else
  2758. if Type == "Heal" then
  2759. damgui.TextColor3 = BrickColor.new("Bright green").Color
  2760. end
  2761. end
  2762. end
  2763. end
  2764. damgui.TextScaled = true
  2765. ms = Instance.new("CylinderMesh")
  2766. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  2767. ms.Parent = c
  2768. c.Reflectance = 0
  2769. Instance.new("BodyGyro").Parent = c
  2770. c.Parent = m
  2771. if Char:findFirstChild("Head") ~= nil then
  2772. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  2773. else
  2774. if Char.Parent:findFirstChild("Head") ~= nil then
  2775. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  2776. end
  2777. end
  2778. f = Instance.new("BodyPosition")
  2779. f.P = 2000
  2780. f.D = 100
  2781. f.maxForce = Vector3.new(545000, 545000, 545000)
  2782. if Type == "Damage" or Type == "Heal" then
  2783. f.position = c.Position + Vector3.new(0, 3, 0)
  2784. else
  2785. if Type == "Debuff" or Type == "Interrupt" then
  2786. f.position = c.Position + Vector3.new(0, 5, 0)
  2787. end
  2788. end
  2789. f.Parent = c
  2790. game:GetService("Debris"):AddItem(m, 5)
  2791. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  2792. c.CanCollide = false
  2793. m.Parent = workspace
  2794. c.CanCollide = false
  2795. end
  2796. combo = 0
  2797. ob1d = function(mouse)
  2798. if eCharge == true and mana.Value >= 10 then
  2799. energ = 100
  2800. mana.Value = mana.Value - 10
  2801. eCharge = false
  2802. return
  2803. end
  2804. if attack == true or equipped == false then
  2805. return
  2806. end
  2807. hold = true
  2808. if #Orbs < 1 then
  2809. if combo == 0 then
  2810. combo = 1
  2811. attackone()
  2812. else
  2813. if combo == 1 then
  2814. combo = 2
  2815. attacktwo()
  2816. else
  2817. if combo == 2 then
  2818. combo = 3
  2819. attackthree()
  2820. else
  2821. if combo == 3 then
  2822. combo = 0
  2823. attackfour()
  2824. end
  2825. end
  2826. end
  2827. end
  2828. else
  2829. ShootOrb()
  2830. end
  2831. coroutine.resume(coroutine.create(function()
  2832. for i = 1, 50 do
  2833. if attack == false then
  2834. swait()
  2835. end
  2836. end
  2837. if attack == false then
  2838. combo = 0
  2839. end
  2840. end))
  2841. end
  2842. ob1u = function(mouse)
  2843. hold = false
  2844. end
  2845. buttonhold = false
  2846. fenbarmove1.MouseButton1Click:connect(do1)
  2847. fenbarmove2.MouseButton1Click:connect(do2)
  2848. fenbarmove3.MouseButton1Click:connect(do3)
  2849. fenbarmove4.MouseButton1Click:connect(do4)
  2850. eul = 0
  2851. equipped = false
  2852. asc = Character.Animate
  2853. key = function(key)
  2854. if key == "e" and eCharge == true then
  2855. eCharge = false
  2856. return
  2857. end
  2858. if attack == true then
  2859. return
  2860. end
  2861. if key == "f" then
  2862. pressedf = true
  2863. fnumb = 0
  2864. attack = true
  2865. if equipped == false then
  2866. equipped = true
  2867. RSH = ch.Torso["Right Shoulder"]
  2868. LSH = ch.Torso["Left Shoulder"]
  2869. RSH.Parent = nil
  2870. LSH.Parent = nil
  2871. RW.Name = "Right Shoulder"
  2872. RW.Part0 = ch.Torso
  2873. RW.C0 = cf(1.5, 0.5, 0)
  2874. RW.C1 = cf(0, 0.5, 0)
  2875. RW.Part1 = ch["Right Arm"]
  2876. RW.Parent = ch.Torso
  2877. LW.Name = "Left Shoulder"
  2878. LW.Part0 = ch.Torso
  2879. LW.C0 = cf(-1.5, 0.5, 0)
  2880. LW.C1 = cf(0, 0.5, 0)
  2881. LW.Part1 = ch["Left Arm"]
  2882. LW.Parent = ch.Torso
  2883. Animate.Parent = nil
  2884. asc.Parent = nil
  2885. equipanim()
  2886. else
  2887. equipped = false
  2888. hideanim()
  2889. LH.C1 = LHC1
  2890. RH.C1 = RHC1
  2891. Animate.Parent = Humanoid
  2892. asc.Parent = Character
  2893. swait(0)
  2894. RW.Parent = nil
  2895. LW.Parent = nil
  2896. RSH.Parent = player.Character.Torso
  2897. LSH.Parent = player.Character.Torso
  2898. end
  2899. attack = false
  2900. end
  2901. if equipped == false then
  2902. return
  2903. end
  2904. if key == "q" then
  2905. table.remove(Orbs, 1)
  2906. print(#Orbs)
  2907. end
  2908. if key == "e" and #Orbs < 4 then
  2909. EnergyCharge()
  2910. end
  2911. if key == "z" then
  2912. do1()
  2913. end
  2914. if key == "x" then
  2915. do2()
  2916. end
  2917. if key == "c" then
  2918. do3()
  2919. end
  2920. if key == "v" then
  2921. do4()
  2922. end
  2923. if attack == false then
  2924. RecentEnemy.Value = nil
  2925. end
  2926. end
  2927. key2 = function(key)
  2928. end
  2929. s = function(mouse)
  2930. mouse.Button1Down:connect(function()
  2931. ob1d(mouse)
  2932. end)
  2933. mouse.Button1Up:connect(function()
  2934. ob1u(mouse)
  2935. end)
  2936. mouse.KeyDown:connect(key)
  2937. mouse.KeyUp:connect(key2)
  2938. player = Player
  2939. ch = Character
  2940. end
  2941. ds = function(mouse)
  2942. end
  2943. Bin.Selected:connect(s)
  2944. Bin.Deselected:connect(ds)
  2945. print("Virtue loaded.")
  2946. local mananum = 0
  2947. local donum = 0
  2948. local stunnum = 0
  2949. local cursnum = 0
  2950. local staggeranim = false
  2951. local stunanim = false
  2952. local walk = 0
  2953. local walkforw = true
  2954. local disabledhealth = false
  2955. while 1 do
  2956. swait()
  2957. swait()
  2958. for i = 1, #TopStaff do
  2959. TopStaff[i].C0 = clerp(TopStaff[i].C0, TSCF, 0.1)
  2960. end
  2961. for i = 1, #OOrbs do
  2962. MagicBlock(BrickColor.new(NewCol4), cf(OOrbs[i][3].Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, -0.5, -0.5, -0.5, 0.2, 2)
  2963. end
  2964. if 100 < Humanoid.Health then
  2965. Humanoid.Health = 100
  2966. end
  2967. if Humanoid.Health <= 0 then
  2968. shieldref.Parent = nil
  2969. shieldref2.Parent = nil
  2970. attack = true
  2971. resumeControl()
  2972. modelzorz.Parent = workspace
  2973. game:GetService("Debris"):AddItem(modelzorz, 30)
  2974. for i = 1, #Weapon do
  2975. Weapon[i].Parent = modelzorz
  2976. Weapon[i].CanCollide = true
  2977. end
  2978. for i = 1, #Welds do
  2979. if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then
  2980. Welds[i].Parent = nil
  2981. else
  2982. Welds[i].Parent = prt1
  2983. end
  2984. end
  2985. end
  2986. do
  2987. if fnumb < 21 then
  2988. fnumb = fnumb + 1
  2989. if pressedf == false then
  2990. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  2991. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  2992. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  2993. else
  2994. if fnumb == 20 then
  2995. fenframe5.Parent = nil
  2996. print("daigui")
  2997. end
  2998. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  2999. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  3000. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  3001. end
  3002. end
  3003. if Stagger.Value == true and staggeranim == false then
  3004. coroutine.resume(coroutine.create(function()
  3005. staggeranim = true
  3006. while attack == true do
  3007. swait()
  3008. end
  3009. StaggerAnim()
  3010. StaggerHit.Value = false
  3011. Stagger.Value = false
  3012. staggeranim = false
  3013. end))
  3014. end
  3015. if StaggerHit.Value == true and staggeranim == false then
  3016. coroutine.resume(coroutine.create(function()
  3017. staggeranim = true
  3018. while attack == true do
  3019. swait()
  3020. end
  3021. StaggerHitt()
  3022. StaggerHit.Value = false
  3023. Stagger.Value = false
  3024. staggeranim = false
  3025. end))
  3026. end
  3027. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  3028. Humanoid.WalkSpeed = 0
  3029. else
  3030. Humanoid.WalkSpeed = 16 * Mvmt.Value
  3031. end
  3032. if StunT.Value <= Stun.Value and stunanim == false then
  3033. coroutine.resume(coroutine.create(function()
  3034. stunanim = true
  3035. while attack == true do
  3036. swait()
  3037. end
  3038. StunAnim()
  3039. Stun.Value = 0
  3040. stunanim = false
  3041. end))
  3042. end
  3043. local stunnum2 = 50
  3044. if stunnum2 <= stunnum then
  3045. if 0 < Stun.Value then
  3046. Stun.Value = Stun.Value - 1
  3047. end
  3048. stunnum = 0
  3049. end
  3050. stunnum = stunnum + 1
  3051. if 0.5 <= donum then
  3052. handidle = true
  3053. else
  3054. if donum <= 0 then
  3055. handidle = false
  3056. end
  3057. end
  3058. if handidle == false then
  3059. donum = donum + 0.003
  3060. else
  3061. donum = donum - 0.003
  3062. end
  3063. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  3064. local velderp = RootPart.Velocity.y
  3065. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  3066. if equipped == true then
  3067. if attack == false then
  3068. idle = idle + 1
  3069. else
  3070. idle = 0
  3071. end
  3072. if (500 <= idle and attack ~= false) or Anim == "Walk" then
  3073. if walkforw == true then
  3074. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3075. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3076. else
  3077. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3078. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3079. end
  3080. else
  3081. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  3082. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  3083. end
  3084. if 1 < RootPart.Velocity.y and hitfloor == nil then
  3085. Anim = "Jump"
  3086. if attack == false then
  3087. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  3088. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3089. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3090. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.8, 0, -1) * euler(0, -0.2, 0), 0.2)
  3091. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3092. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.4, 0, -0.6) * euler(0, 0.5, 0), 0.2)
  3093. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3094. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3095. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3096. end
  3097. else
  3098. if RootPart.Velocity.y < -1 and hitfloor == nil then
  3099. Anim = "Fall"
  3100. if attack == false then
  3101. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  3102. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3103. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3104. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.2)
  3105. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3106. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.1, 0, -1.2) * euler(0, 0.1, 0), 0.2)
  3107. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3108. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  3109. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  3110. end
  3111. else
  3112. if torvel < 1 and hitfloor ~= nil then
  3113. Anim = "Idle"
  3114. if attack == false then
  3115. if #Orbs < 1 then
  3116. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.15)
  3117. wld1.C0 = clerp(wld1.C0, euler(-((donum) / 3), 0, 0) * cf(0, 0, 0), 0.15)
  3118. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(0.1, 0, 0), 0.15)
  3119. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.2), 0.15)
  3120. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.15)
  3121. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  3122. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57 - (donum) / 3, (donum) / 2, -0.2 - (donum) / 2), 0.15)
  3123. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  3124. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.2) * euler(0, 1.57, 0) * euler(-0.1, -0.4, -0.05), 0.2)
  3125. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.05), 0.2)
  3126. else
  3127. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.15)
  3128. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, 0.4, 0) * euler(0.8, 0, 0), 0.15)
  3129. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.4) * euler(0.1, 0, 0), 0.15)
  3130. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.4), 0.15)
  3131. RW.C0 = clerp(RW.C0, cf(0.9, 0.4, 0.4) * euler(-0.5, 0, -1) * euler(0, -0.4, 0), 0.15)
  3132. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  3133. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5 - (donum) / 3, 0, -0.4 - (donum) / 2) * euler(0, 0.2, 0), 0.15)
  3134. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  3135. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, -0.4, -0.05), 0.2)
  3136. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0.15), 0.2)
  3137. end
  3138. end
  3139. else
  3140. if 2 < torvel and torvel < 30 and hitfloor ~= nil then
  3141. Anim = "Walk"
  3142. walk = walk + 1
  3143. if 15 - 5 * Mvmt.Value <= walk then
  3144. walk = 0
  3145. if walkforw == true then
  3146. walkforw = false
  3147. else
  3148. if walkforw == false then
  3149. walkforw = true
  3150. end
  3151. end
  3152. end
  3153. if attack == false then
  3154. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  3155. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.2)
  3156. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0), 0.2)
  3157. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.1, 0, 0), 0.2)
  3158. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.8, 0, -1) * euler(0, -0.2, 0), 0.2)
  3159. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3160. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.4, 0, -0.2) * euler(0, 0.5, 0), 0.2)
  3161. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3162. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.2)
  3163. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
  3164. end
  3165. else
  3166. if 30 <= torvel and hitfloor ~= nil then
  3167. Anim = "Run"
  3168. if attack == false then
  3169. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  3170. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.2)
  3171. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0), 0.2)
  3172. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.1, 0, 0), 0.2)
  3173. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.8, 0, -1) * euler(0, -0.2, 0), 0.2)
  3174. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3175. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.4, 0, -0.2) * euler(0, 0.5, 0), 0.2)
  3176. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3177. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.2)
  3178. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
  3179. end
  3180. end
  3181. end
  3182. end
  3183. end
  3184. end
  3185. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  3186. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  3187. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  3188. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  3189. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  3190. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3191. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3192. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3193. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3194. for _,c in pairs(Decrease:children()) do
  3195. if (c:findFirstChild("Duration")) ~= nil then
  3196. c.Duration.Value = c.Duration.Value - 1
  3197. if c.Duration.Value <= 0 then
  3198. c.Parent = nil
  3199. end
  3200. end
  3201. if c.Name == "DecreaseAtk" then
  3202. decreaseatk = decreaseatk + c.Value
  3203. else
  3204. if c.Name == "DecreaseDef" then
  3205. decreasedef = decreasedef + c.Value
  3206. else
  3207. if c.Name == "DecreaseMvmt" then
  3208. decreasemvmt = decreasemvmt + c.Value
  3209. end
  3210. end
  3211. end
  3212. end
  3213. Atk.Value = 1 - (decreaseatk)
  3214. if Atk.Value <= 0 then
  3215. Atk.Value = 0
  3216. end
  3217. Def.Value = 1 - (decreasedef)
  3218. if Def.Value <= 0 then
  3219. Def.Value = 0.01
  3220. end
  3221. Mvmt.Value = 1 - (decreasemvmt)
  3222. if Mvmt.Value <= 0 then
  3223. Mvmt.Value = 0
  3224. end
  3225. decreaseatk = 0
  3226. decreasedef = 0
  3227. decreasemvmt = 0
  3228. AtkVal = Atk.Value * 100
  3229. AtkVal = math.floor(AtkVal)
  3230. AtkVal = AtkVal / 100
  3231. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  3232. DefVal = Def.Value * 100
  3233. DefVal = math.floor(DefVal)
  3234. DefVal = DefVal / 100
  3235. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  3236. MvmtVal = Mvmt.Value * 100
  3237. MvmtVal = math.floor(MvmtVal)
  3238. MvmtVal = MvmtVal / 100
  3239. if Rooted.Value == true then
  3240. MvmtVal = 0
  3241. end
  3242. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  3243. fenbarammo1.Text = "Orbs\n" .. #Orbs .. "/" .. #OOrbs .. ""
  3244. if StunT.Value <= Stun.Value then
  3245. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  3246. else
  3247. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  3248. end
  3249. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  3250. if 100 <= mana.Value then
  3251. mana.Value = 100
  3252. else
  3253. if mananum <= 15 then
  3254. mananum = mananum + 1
  3255. else
  3256. mananum = 0
  3257. mana.Value = mana.Value + 1
  3258. end
  3259. end
  3260. for i = 1, #cooldowns do
  3261. if cooldownmax <= cooldowns[i] then
  3262. cooldowns[i] = cooldownmax
  3263. else
  3264. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  3265. end
  3266. end
  3267. -- DECOMPILER ERROR at PC8831: LeaveBlock: unexpected jumping out DO_STMT
  3268.  
  3269. end
  3270.  
  3271. if #Effects>0 then
  3272. for e=1,#Effects do
  3273. if Effects[e]~=nil then
  3274. local Thing=Effects[e]
  3275. if Thing ~= nil then
  3276. local Part = Thing[1]
  3277. local Mode = Thing[2]
  3278. local Delay = Thing[3]
  3279. local IncX = Thing[4]
  3280. local IncY = Thing[5]
  3281. local IncZ = Thing[6]
  3282. if Thing[2] == "CylinderClang" then
  3283. if Thing[3] <= 1 then
  3284. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  3285. Thing[7] = Thing[1].CFrame
  3286. effect("New Yeller", 0, Thing[8], Thing[7], nil, 0.1, 2)
  3287. Thing[8] = Thing[7]
  3288. Thing[3] = Thing[3] + Thing[4]
  3289. else
  3290. Part.Parent = nil
  3291. table.remove(Effects, e)
  3292. end
  3293. end
  3294. if Thing[2] == "showDamage" then
  3295. if Thing[6] < Thing[5] then
  3296. Thing[6] = Thing[6] + 1
  3297. else
  3298. if Thing[6] < Thing[7] then
  3299. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  3300. Thing[6] = Thing[6] + 1
  3301. else
  3302. if Thing[6] < Thing[8] then
  3303. Thing[6] = Thing[6] + 1
  3304. else
  3305. if Thing[6] < Thing[9] then
  3306. Thing[6] = Thing[6] + 1
  3307. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  3308. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  3309. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  3310. else
  3311. Thing[1].Parent = nil
  3312. table.remove(Effects, e)
  3313. end
  3314. end
  3315. end
  3316. end
  3317. end
  3318. if Thing[2] == "CloneEf" then
  3319. if Thing[3] <= 500 then
  3320. Thing[3] = Thing[3] + 1
  3321. if 10 <= Thing[4] then
  3322. Thing[4] = 0
  3323. end
  3324. Thing[4] = Thing[4] + 1
  3325. else
  3326. table.remove(Effects, e)
  3327. end
  3328. end
  3329. if Thing[2] == "SatelliteStrike" then
  3330. if Thing[5] < 100 then
  3331. Thing[5] = Thing[5] + 2
  3332. Thing[6] = Thing[6] + 1
  3333. if 2 < Thing[6] then
  3334. Thing[6] = 0
  3335. if Thing[3].BrickColor == BrickColor.new("New Yeller") then
  3336. Thing[3].Transparency = 0.8
  3337. Thing[3].BrickColor = BrickColor.new("Really red")
  3338. else
  3339. Thing[3].Transparency = 0.8
  3340. Thing[3].BrickColor = BrickColor.new("New Yeller")
  3341. end
  3342. end
  3343. else
  3344. refda = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  3345. refda.Anchored = true
  3346. refda.CFrame = cf(Thing[1].Position) * cf(0, 500, 0)
  3347. game:GetService("Debris"):AddItem(refda, 1)
  3348. local mag = (refda.Position - Thing[1].Position).magnitude
  3349. MagicCylinder(BrickColor.new("White"), CFrame.new((refda.Position + Thing[1].Position) / 2, Thing[1].Position) * angles(1.57, 0, 0), 40, mag * 5, 40, 0, 0, 0, 0.3)
  3350. Lightning(refda.Position, Thing[1].Position, 15, 5, "Bright yellow", 3.5, 0.2, 0.05)
  3351. MagicBlock2(BrickColor.new("Bright yellow"), cf(Thing[1].Position), 40, 40, 40, -1, -1, -1, 0.08, 1)
  3352. refda.CFrame = cf(Thing[1].Position)
  3353. MagniDamage(refda, 3, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  3354. refda.CFrame = cf(Thing[1].Position) * cf(0, 3, 0)
  3355. MagniDamage(refda, 3, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  3356. refda.CFrame = cf(Thing[1].Position)
  3357. so("341336446", refda, 1, math.random(100, 120) / 100)
  3358. so("341336459", refda, 1, math.random(100, 120) / 100)
  3359. Thing[1].Parent = nil
  3360. table.remove(Effects, e)
  3361. end
  3362. end
  3363. do
  3364. if Thing[2] == "SatelliteStrike2" then
  3365. if Thing[5] < 100 then
  3366. Thing[5] = Thing[5] + 2
  3367. Thing[6] = Thing[6] + 1
  3368. if 2 < Thing[6] then
  3369. Thing[6] = 0
  3370. if Thing[3].BrickColor == BrickColor.new("New Yeller") then
  3371. Thing[3].Transparency = 0.8
  3372. Thing[3].BrickColor = BrickColor.new("Really red")
  3373. else
  3374. Thing[3].Transparency = 0.8
  3375. Thing[3].BrickColor = BrickColor.new("New Yeller")
  3376. end
  3377. end
  3378. else
  3379. refda = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  3380. refda.Anchored = true
  3381. refda.CFrame = cf(Thing[1].Position) * cf(0, 500, 0)
  3382. game:GetService("Debris"):AddItem(refda, 1)
  3383. local mag = (refda.Position - Thing[1].Position).magnitude
  3384. MagicCylinder(BrickColor.new("White"), CFrame.new((refda.Position + Thing[1].Position) / 2, Thing[1].Position) * angles(1.57, 0, 0), 60, mag * 5, 60, 0, 0, 0, 0.1)
  3385. Lightning(refda.Position, Thing[1].Position, 25, 5, "Bright yellow", 5, 0.2, 0.03)
  3386. MagicBlock2(BrickColor.new("Bright yellow"), cf(Thing[1].Position), 80, 80, 80, -1, -1, -1, 0.06, 1)
  3387. refda.CFrame = cf(Thing[1].Position)
  3388. MagniDamage(refda, 6, 8, 12, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  3389. refda.CFrame = cf(Thing[1].Position) * cf(0, 3, 0)
  3390. MagniDamage(refda, 6, 8, 12, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  3391. refda.CFrame = cf(Thing[1].Position)
  3392. so("341336446", refda, 1, math.random(70, 90) / 100)
  3393. so("341336459", refda, 1, math.random(50, 80) / 100)
  3394. Thing[1].Parent = nil
  3395. table.remove(Effects, e)
  3396. end
  3397. end
  3398. do
  3399. if Thing[2] == "Shoot" then
  3400. local Look = Thing[1]
  3401. local hit, pos = rayCast(Thing[4], Look, 5, Character)
  3402. local mag = (Thing[4] - pos).magnitude
  3403. Thing[7].CFrame = CFrame.new((Thing[4] + pos) / 2, pos) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3404. MagicHead(BrickColor.new(NewCol2), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  3405. Thing[4] = Thing[4] + Look * 5
  3406. Thing[3] = Thing[3] - 1
  3407. if hit ~= nil then
  3408. Thing[3] = 0
  3409. end
  3410. if Thing[3] <= 0 then
  3411. ref = part(3, workspace, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  3412. ref.Anchored = true
  3413. ref.CFrame = cf(pos)
  3414. so("161006093", ref, 1, 2)
  3415. so("377357774", ref, 1, 1.5)
  3416. game:GetService("Debris"):AddItem(ref, 0.2)
  3417. MagicCircle(BrickColor.new(NewCol2), cf(pos), 10, 10, 10, 5, 5, 5, 0.07)
  3418. dra = math.random(-50, 50)
  3419. for i = 0.785, 6.28, 0.785 do
  3420. MagicCircle2(BrickColor.new(NewCol2), cf(pos) * euler(dra, 0, i), 4, 5, 4, -0.05, 2, -0.05, 0.07, 0.8)
  3421. end
  3422. MagniDamage(ref, 10, Thing[5], Thing[6], 0, "Normal", ref, 0, 1, (math.random(3, 8)), nil, nil, true)
  3423. MagniHeal(ref, 10, 3, 5)
  3424. Thing[7].Parent = nil
  3425. Thing[8].Parent = nil
  3426. table.remove(Effects, e)
  3427. end
  3428. end
  3429. do
  3430. if Thing[2] == "ShootSeek" then
  3431. local Look = Thing[1]
  3432. local hit, pos = rayCast(Thing[8], Look, 5, Character)
  3433. local mag = (Thing[8] - pos).magnitude
  3434. Thing[6].CFrame = CFrame.new((Thing[8] + pos) / 2, pos) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3435. MagicHead(BrickColor.new(NewCol2), CFrame.new((Thing[8] + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  3436. Thing[8] = Thing[8] + Look * 5
  3437. Thing[3] = Thing[3] - 1
  3438. if hit ~= nil then
  3439. Thing[3] = 0
  3440. end
  3441. if Thing[4].Parent == nil then
  3442. Thing[3] = 0
  3443. end
  3444. if Thing[3] <= 0 and Thing[4].Parent ~= nil then
  3445. ref = part(3, workspace, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  3446. ref.Anchored = true
  3447. ref.CFrame = cf(pos)
  3448. so("161006093", ref, 1, 2)
  3449. so("315748970", ref, 1, 1.5)
  3450. game:GetService("Debris"):AddItem(ref, 0.2)
  3451. MagicCircle(BrickColor.new(NewCol2), cf(pos), 10, 10, 10, 5, 5, 5, 0.07)
  3452. dra = math.random(-50, 50)
  3453. for i = 0.785, 6.28, 0.785 do
  3454. MagicCircle2(BrickColor.new(NewCol2), cf(pos) * euler(dra, 0, i), 4, 5, 4, -0.05, 2, -0.05, 0.07, 0.8)
  3455. end
  3456. MagniDamage(ref, 10, Thing[9], Thing[10], math.random(-10, -5), "Knockdown2", ref, 0, 1, (math.random(3, 8)), nil, nil, true, "Damage", 0.1, 100)
  3457. Thing[4].Anchored = true
  3458. Thing[4].CFrame = ref.CFrame
  3459. table.insert(Effects, {10, "DoSeek", math.random(200, 400), Thing[4], Thing[5], Thing[6], Thing[7]})
  3460. table.remove(Effects, e)
  3461. end
  3462. end
  3463. do
  3464. if Thing[2] == "Shoot2" then
  3465. local Look = Thing[1]
  3466. local hit, pos = rayCast(Thing[4], Look, 5, Character)
  3467. local mag = (Thing[4] - pos).magnitude
  3468. MagicHead(BrickColor.new(NewCol2), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  3469. Thing[4] = Thing[4] + Look * 5
  3470. Thing[3] = Thing[3] - 1
  3471. if hit ~= nil then
  3472. Thing[3] = 0
  3473. end
  3474. if Thing[3] <= 0 then
  3475. ref = part(3, workspace, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  3476. ref.Anchored = true
  3477. ref.CFrame = cf(pos)
  3478. so("161006093", ref, 0.5, 2.5)
  3479. game:GetService("Debris"):AddItem(ref, 0.2)
  3480. MagicCircle(BrickColor.new(NewCol2), cf(pos), 10, 10, 10, 3, 3, 3, 0.07)
  3481. dra = math.random(-50, 50)
  3482. for i = 0.785, 6.28, 0.785 do
  3483. MagicCircle2(BrickColor.new(NewCol2), cf(pos) * euler(dra, 0, i), 2, 2.5, 2, -0.025, 1, -0.025, 0.08, 0.7)
  3484. end
  3485. MagniDamage(ref, 7, Thing[5], Thing[6], 0, "Normal", ref, 0, 1, (math.random(3, 8)), nil, nil, true)
  3486. table.remove(Effects, e)
  3487. end
  3488. end
  3489. do
  3490.  
  3491. if Thing[2] == "Smite" then
  3492. if 0 <= Thing[3] then
  3493. MagicCircle(BrickColor.new(NewCol2), cf(Thing[11].Position), 50, 50, 50, -10, -10, -10, 0.2, 1, nil, nil, 0.5)
  3494. MagicBlock(BrickColor.new(NewCol2), cf(Thing[11].Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cf(0, -10, 0), 2, 2, 2, -0.5, -0.5, -0.5, 0.1, 3)
  3495. if Thing[3] % 3 == 0 then
  3496. Thing[12].CFrame = cf(Thing[11].Position) * cf(math.random(-1000, 1000) / 100, 0, math.random(-1000, 1000) / 100)
  3497. hitfloor2a, posfloor2a = rayCast(Thing[12].Position, CFrame.new(Thing[12].Position, Thing[12].Position - Vector3.new(0, 1, 0)).lookVector, 50, Thing[1])
  3498. if hitfloor2a ~= nil then
  3499. Lightning(Thing[11].Position, posfloor2a, 5, 0.5, NewCol2, 0.5, 0.4, 0.1)
  3500. end
  3501. end
  3502. Thing[3] = Thing[3] - 1
  3503. Thing[4].Parent = Thing[10]
  3504. Thing[5].Parent = Thing[10]
  3505. Thing[6].Parent = Thing[10]
  3506. Thing[7].Value = 9999
  3507. Thing[8].Value = 9999
  3508. Thing[9].Value = 9999
  3509. else
  3510. Thing[4].Parent = nil
  3511. Thing[5].Parent = nil
  3512. Thing[6].Parent = nil
  3513. table.remove(Effects, e)
  3514. end
  3515. end
  3516. do
  3517. do
  3518. if Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Orb" and Thing[2] ~= "Shoot" and Thing[2] ~= "Sentry" and Thing[2] ~= "Shoot2" and Thing[2] ~= "ShootBuff" and Thing[2] ~= "BuffEff" and Thing[2] ~= "Protect" and Thing[2] ~= "BuffEff2" and Thing[2] ~= "BuffEff3" and Thing[2] ~= "ShootSeek" and Thing[2] ~= "DoSeek" and Thing[2] ~= "Shield" and Thing[2] ~= "ShieldEf" and Thing[2] ~= "Smite" then
  3519. if Thing[1].Transparency <= 1 then
  3520. if Thing[2] == "Block1" then
  3521. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3522. Mesh = Thing[7]
  3523. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3524. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3525. else
  3526. if Thing[2] == "Block2" then
  3527. Thing[1].CFrame = Thing[1].CFrame
  3528. Mesh = Thing[7]
  3529. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3530. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3531. else
  3532. if Thing[2] == "Block3" then
  3533. Thing[8] = Thing[8] * cf(0, 1, 0)
  3534. Thing[1].CFrame = Thing[8] * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3535. Mesh = Thing[7]
  3536. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3537. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3538. else
  3539. if Thing[2] == "Block4" then
  3540. if #Neons - 1 < Thing[8] then
  3541. Thing[8] = 1
  3542. else
  3543. Thing[8] = Thing[8] + 1
  3544. end
  3545. Thing[1].BrickColor = Neons[Thing[8]]
  3546. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3547. Mesh = Thing[7]
  3548. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3549. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3550. else
  3551. if Thing[2] == "Cylinder" then
  3552. Mesh = Thing[7]
  3553. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3554. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3555. else
  3556. if Thing[2] == "Shatter" then
  3557. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3558. Thing[4] = Thing[4] * cf(0, Thing[7], 0)
  3559. Thing[1].CFrame = Thing[4] * euler(Thing[6], 0, 0)
  3560. Thing[6] = Thing[6] + Thing[5]
  3561. else
  3562. if Thing[2] == "Blood" then
  3563. Mesh = Thing[7]
  3564. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
  3565. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3566. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3567. else
  3568. if Thing[2] == "Elec" then
  3569. Mesh = Thing[7]
  3570. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  3571. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3572. else
  3573. if Thing[2] == "Disappear" then
  3574. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3575. end
  3576. end
  3577. end
  3578. end
  3579. end
  3580. end
  3581. end
  3582. end
  3583. end
  3584. else
  3585. Part.Parent = nil
  3586. table.remove(Effects, e)
  3587. end
  3588. end
  3589. end
  3590. end
  3591. end
  3592. end
  3593. end
  3594. end
  3595. end
  3596. end
  3597. end
  3598. end
  3599. end
  3600. end
  3601. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement