Advertisement
Pewca

Untitled

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