Advertisement
Pewca

Untitled

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