Advertisement
astronaut32

virtue

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