Advertisement
Pewca

Untitled

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