derekiscool423

ankh staff

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