Dark_EccentricYT

Untitled

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