Legendofawesomeness3

abysss

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