Nico1702

Void Katana Script

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