Advertisement
Nico1702

Chakra Gauntlets Script

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