Advertisement
AndrewTheMaster

Ichor

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