Sonic1

Broken grand script pm me when you fix this

Sep 12th, 2016
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Player = game:GetService("Players").LocalPlayer
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. Humanoid = Character.Humanoid
  8. LeftArm = Character["Left Arm"]
  9. LeftLeg = Character["Left Leg"]
  10. RightArm = Character["Right Arm"]
  11. RightLeg = Character["Right Leg"]
  12. LS = Torso["Left Shoulder"]
  13. LH = Torso["Left Hip"]
  14. RS = Torso["Right Shoulder"]
  15. RH = Torso["Right Hip"]
  16. Neck = Torso.Neck
  17. it = Instance.new
  18. vt = Vector3.new
  19. cf = CFrame.new
  20. euler = CFrame.fromEulerAnglesXYZ
  21. angles = CFrame.Angles
  22. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  23. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  24. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  25. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  26. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  27. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  28. RootPart = Character.HumanoidRootPart
  29. RootJoint = RootPart.RootJoint
  30. RootCF = euler(-1.57, 0, 3.14)
  31. attack = false
  32. attackdebounce = false
  33. MMouse = Player:GetMouse()
  34. combo = 0
  35. local hitfloor, posfloor = nil, nil
  36. local idle = 0
  37. local Anim = "Idle"
  38. local Effects = {}
  39. local Weapon = {}
  40. local Welds = {}
  41. local decreaseatk = 0
  42. local decreasedef = 0
  43. local decreasemvmt = 0
  44. local holdz = false
  45. local doing2 = false
  46. local do2mode = "none"
  47. local do2target = nil
  48. local dodrop = false
  49. local instastun = false
  50. local guarding = false
  51. local canguardoff = true
  52. local doing4 = false
  53. local sref = nil
  54. local grabpos = Instance.new("BodyPosition")
  55. local grabhit = false
  56. local grabTarget = nil
  57. local cangrab = true
  58. local mode = "Sheathed"
  59. local move1 = "(Z)\nEarth Breaker"
  60. local move2 = "(X)\nChase/Drop"
  61. local move3 = "(C)\nSiege Guard"
  62. local move4 = "(V)\nEpicenter"
  63. local cooldowns = {}
  64. local cooldown1 = 0
  65. table.insert(cooldowns, cooldown1)
  66. local cooldown2 = 0
  67. table.insert(cooldowns, cooldown2)
  68. local cooldown3 = 0
  69. table.insert(cooldowns, cooldown3)
  70. local cooldown4 = 0
  71. table.insert(cooldowns, cooldown4)
  72. local cooldownsadd = {}
  73. local cooldownadd1 = 0.22
  74. table.insert(cooldownsadd, cooldownadd1)
  75. local cooldownadd2 = 0.28
  76. table.insert(cooldownsadd, cooldownadd2)
  77. local cooldownadd3 = 0.24
  78. table.insert(cooldownsadd, cooldownadd3)
  79. local cooldownadd4 = 0.1
  80. table.insert(cooldownsadd, cooldownadd4)
  81. local cooldownmax = 100
  82. local damageFunc = workspace.damageFunc
  83. player = nil
  84. RSH = nil
  85. RW = Instance.new("Motor")
  86. RW.Name = "Right Shoulder"
  87. LW.Name = "Left Shoulder"
  88. LH = Torso["Left Hip"]
  89. RH = Torso["Right Hip"]
  90. TorsoColor = Torso.BrickColor
  91. NewCol = BrickColor.new("Medium stone grey").Color
  92. NewCol2 = BrickColor.new("Dark stone grey").Color
  93. NewCol3 = BrickColor.new("Hurricane grey").Color
  94. NewCol4 = BrickColor.new("Smoky grey").Color
  95. EffectCol = BrickColor.new("Bright yellow").Color
  96. print(BrickColor.new(NewCol2))
  97. local mdec = Instance.new("NumberValue", Decrease)
  98. mdec.Name = "DecreaseDef"
  99. mdec.Value = 0.4
  100. grnd = it("BoolValue", mdec)
  101. grnd.Name = "Grand"
  102. grnd.Value = true
  103. local mdec2 = Instance.new("NumberValue", Decrease)
  104. mdec2.Name = "DecreaseMvmt"
  105. mdec2.Value = 0.1
  106. grnd = it("BoolValue", mdec2)
  107. grnd.Name = "Grand"
  108. grnd.Value = true
  109. local Animate = Humanoid.Animator
  110. local canjump = true
  111. removeControl = function()
  112. canjump = false
  113. end
  114. resumeControl = function()
  115. canjump = true
  116. end
  117. Player.Character.Humanoid.Changed:connect(function()
  118. if canjump == false then
  119. Player.Character.Humanoid.Jump = false
  120. end
  121. end)
  122. swait = function(num)
  123. if num == 0 or num == nil then
  124. Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  125. else
  126. for i = 0, num do
  127. Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  128. end
  129. end
  130. end
  131. createpassgui = function(parent)
  132. print("makegui111")
  133. local g = Instance.new("ScreenGui", parent)
  134. local f = Instance.new("Frame", g)
  135. f.Position = UDim2.new(0.3, 0, 0.25, 0)
  136. f.Size = UDim2.new(0.4, 0, 0.4, 0)
  137. f.Style = "DropShadow"
  138. local t = Instance.new("TextBox", f)
  139. t.BackgroundColor3 = Color3.new(0, 0, 0)
  140. t.BackgroundTransparency = 0.5
  141. t.BorderSizePixel = 0
  142. t.Position = UDim2.new(0.15, 0, 0.2, 0)
  143. t.Size = UDim2.new(0.7, 0, 0.2, 0)
  144. t.Font = "SourceSansLight"
  145. t.Text = "Enter Access Code."
  146. t.TextScaled = true
  147. t.TextColor3 = Color3.new(1, 1, 1)
  148. t.TextStrokeTransparency = 0
  149. local t2 = Instance.new("TextButton", f)
  150. t2.BackgroundColor3 = Color3.new(0, 0, 0)
  151. t2.BackgroundTransparency = 0.5
  152. t2.BorderSizePixel = 0
  153. t2.Position = UDim2.new(0.3, 0, 0.5, 0)
  154. t2.Size = UDim2.new(0.4, 0, 0.15, 0)
  155. t2.TextScaled = true
  156. t2.Font = "SourceSansLight"
  157. t2.Text = "Submit"
  158. t2.TextColor3 = Color3.new(1, 1, 1)
  159. t2.TextStrokeTransparency = 0
  160. print("done1")
  161. return t2
  162. end
  163. local gud = false
  164. if workspace.codeFunc:InvokeServer(secgui, script, false) == false then
  165. secgui = createpassgui(Player.PlayerGui)
  166. secgui.MouseButton1Click:connect(function()
  167. if workspace.codeFunc:InvokeServer(secgui, script, true) == true then
  168. gud = true
  169. secgui.Parent.Parent:Destroy()
  170. end
  171. end)
  172. else
  173. gud = true
  174. end
  175. repeat
  176. wait()
  177. until gud
  178. if Character:findFirstChild("Auswirkung", true) ~= nil then
  179. Character:findFirstChild("Auswirkung", true).Parent = nil
  180. end
  181. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  182. Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  183. end
  184. if Character:findFirstChild("Stats", true) ~= nil then
  185. Character:findFirstChild("Stats", true).Parent = nil
  186. end
  187. local Stats = Instance.new("BoolValue")
  188. Stats.Name = "Stats"
  189. Stats.Parent = Character
  190. local Atk = Instance.new("NumberValue")
  191. Atk.Name = "Damage"
  192. Atk.Parent = Stats
  193. Atk.Value = 1
  194. local Def = Instance.new("NumberValue")
  195. Def.Name = "Defense"
  196. Def.Parent = Stats
  197. Def.Value = 1
  198. local Mvmt = Instance.new("NumberValue")
  199. Mvmt.Name = "Movement"
  200. Mvmt.Parent = Stats
  201. Mvmt.Value = 1
  202. local Block = Instance.new("BoolValue")
  203. Block.Name = "Block"
  204. Block.Parent = Stats
  205. Block.Value = false
  206. local Stun = Instance.new("NumberValue")
  207. Stun.Name = "Stun"
  208. Stun.Parent = Stats
  209. Stun.Value = 0
  210. local StunT = Instance.new("NumberValue")
  211. StunT.Name = "StunThreshold"
  212. StunT.Parent = Stats
  213. StunT.Value = 200
  214. local Rooted = Instance.new("BoolValue")
  215. Rooted.Name = "Rooted"
  216. Rooted.Parent = Stats
  217. Rooted.Value = false
  218. local Stunned = Instance.new("BoolValue")
  219. Stunned.Name = "Stunned"
  220. Stunned.Parent = Stats
  221. Stunned.Value = false
  222. local Stagger = Instance.new("BoolValue")
  223. Stagger.Name = "Stagger"
  224. Stagger.Parent = Stats
  225. Stagger.Value = false
  226. local StaggerHit = Instance.new("BoolValue")
  227. StaggerHit.Name = "StaggerHit"
  228. StaggerHit.Parent = Stats
  229. StaggerHit.Value = false
  230. local RecentEnemy = Instance.new("ObjectValue")
  231. RecentEnemy.Name = "RecentEnemy"
  232. RecentEnemy.Parent = Stats
  233. RecentEnemy.Value = nil
  234. local Decrease = Instance.new("BoolValue")
  235. Decrease.Name = "Decrease"
  236. Decrease.Parent = Stats
  237. Decrease.Value = false
  238. local mana = Instance.new("NumberValue")
  239. mana.Name = "Mana"
  240. mana.Parent = Stats
  241. mana.Value = 0
  242. local passive1 = Instance.new("NumberValue", Decrease)
  243. passive1.Name = "DecreaseAtk"
  244. passive1.Value = 0
  245. local passive2 = Instance.new("NumberValue", Decrease)
  246. passive2.Name = "DecreaseDef"
  247. passive2.Value = 0
  248. grnd = it("BoolValue", passive2)
  249. grnd.Name = "Grand"
  250. grnd.Value = true
  251. local passive3 = Instance.new("NumberValue", Decrease)
  252. passive3.Name = "DecreaseMvmt"
  253. passive3.Value = 0
  254. grnd = it("BoolValue", passive3)
  255. grnd.Name = "Grand"
  256. grnd.Value = true
  257. NoOutline = function(Part)
  258. Part.TopSurface = 10
  259. end
  260. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  261. local fp = it("Part")
  262. fp.formFactor = formfactor
  263. fp.Parent = parent
  264. fp.Reflectance = reflectance
  265. fp.Transparency = transparency
  266. fp.CanCollide = false
  267. fp.Locked = true
  268. fp.BrickColor = brickcolor
  269. fp.Name = name
  270. fp.Size = size
  271. fp.Position = Torso.Position
  272. NoOutline(fp)
  273. fp.Material = "SmoothPlastic"
  274. fp:BreakJoints()
  275. return fp
  276. end
  277. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  278. local mesh = it(Mesh)
  279. mesh.Parent = part
  280. if Mesh == "SpecialMesh" then
  281. mesh.MeshType = meshtype
  282. if meshid ~= "nil" then
  283. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  284. end
  285. end
  286. mesh.Offset = offset
  287. mesh.Scale = scale
  288. return mesh
  289. end
  290. weld = function(parent, part0, part1, c0)
  291. local weld = it("Motor")
  292. weld.Parent = parent
  293. weld.Part0 = part0
  294. weld.Part1 = part1
  295. weld.C0 = c0
  296. return weld
  297. end
  298. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  299. local gui = it(GuiType)
  300. gui.Parent = parent
  301. gui.Text = text
  302. gui.BackgroundTransparency = backtrans
  303. gui.BackgroundColor3 = backcol
  304. gui.SizeConstraint = "RelativeXY"
  305. gui.TextXAlignment = "Center"
  306. gui.TextYAlignment = "Center"
  307. gui.Position = pos
  308. gui.Size = size
  309. gui.Font = "SourceSans"
  310. gui.FontSize = "Size14"
  311. gui.TextWrapped = false
  312. gui.TextStrokeTransparency = 0
  313. gui.TextColor = BrickColor.new("White")
  314. return gui
  315. end
  316. local Color1 = Torso.BrickColor
  317. local fengui = it("GuiMain")
  318. fengui.Parent = Player.PlayerGui
  319. fengui.Name = "WeaponGUI"
  320. local fenframe = it("Frame")
  321. fenframe.Parent = fengui
  322. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  323. fenframe.BackgroundTransparency = 1
  324. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  325. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  326. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  327. local fenframe2 = it("Frame")
  328. fenframe2.Parent = fengui
  329. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  330. fenframe2.BackgroundTransparency = 1
  331. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  332. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  333. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  334. local fenframe3 = it("Frame")
  335. fenframe3.Parent = fengui
  336. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  337. fenframe3.BackgroundTransparency = 1
  338. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  339. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  340. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  341. local fenframe4 = it("Frame")
  342. fenframe4.Parent = fengui
  343. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  344. fenframe4.BackgroundTransparency = 1
  345. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  346. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  347. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  348. local pressedf = false
  349. local fenframe5 = it("Frame")
  350. fenframe5.Parent = fengui
  351. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  352. fenframe5.BackgroundTransparency = 1
  353. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  354. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  355. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  356. fenframe5.ZIndex = 2
  357. local tellbar = gui("TextLabel", fenframe5, "Press \'F\' to equip your weapon.", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
  358. tellbar.Font = "Arial"
  359. tellbar.TextScaled = true
  360. tellbar.TextTransparency = 1
  361. tellbar.TextStrokeTransparency = 1
  362. tellbar.ZIndex = 2
  363. local fnumb = 0
  364. local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  365. local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  366. 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))
  367. 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))
  368. 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))
  369. 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))
  370. 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))
  371. local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  372. local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  373. 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))
  374. 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))
  375. 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))
  376. 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))
  377. fenbarmove1.ZIndex = 2
  378. local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  379. 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))
  380. fenbarmove2.ZIndex = 2
  381. local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  382. 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))
  383. fenbarmove3.ZIndex = 2
  384. local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  385. 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))
  386. fenbarmove4.ZIndex = 2
  387. local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  388. local modelzorz = Instance.new("Model")
  389. modelzorz.Parent = Character
  390. modelzorz.Name = "Auswirkung"
  391. local handle = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Handle", vt())
  392. local prt1 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol), "Part01", vt())
  393. local prt3 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol3), "Part03", vt())
  394. local prt4 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol4), "Part04", vt())
  395. local prt6 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol), "Part06", vt())
  396. local prt7 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol), "Part07", vt())
  397. local prt8 = part(3, modelzorz, 0.1, 0, BrickColor.new(NewCol), "Part08", vt())
  398. prt8.Material = "Metal"
  399. local prt9 = part(3, modelzorz, 0.1, 0, BrickColor.new(NewCol), "Part09", vt())
  400. prt9.Material = "Metal"
  401. local prt10 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol3), "Part10", vt())
  402. local prt11 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol2), "Part11", vt())
  403. local prt12 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol3), "Part12", vt())
  404. local prt13 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol2), "Part13", vt())
  405. local prt14 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol3), "Part14", vt())
  406. local prt15 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol2), "Part15", vt())
  407. local prt16 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol2), "Part16", vt())
  408. local prt18 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol2), "Part18", vt())
  409. local prt19 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol2), "Part19", vt())
  410. local prt20 = part(3, modelzorz, 0.4, 0, BrickColor.new(NewCol), "Part20", vt())
  411. local prt23 = part(3, modelzorz, 0.3, 0, BrickColor.new(NewCol4), "Part23", vt())
  412. local prt24 = part(3, modelzorz, 0.3, 0, BrickColor.new(NewCol4), "Part24", vt())
  413. hmsh = mesh("BlockMesh", handle, "", "", vt(0, 0, 0), vt(3, 3, 3))
  414. msh1 = mesh("CylinderMesh", prt1, "", "", vt(0, 0, 0), vt(1.35, 14, 5))
  415. msh3 = mesh("CylinderMesh", prt3, "", "", vt(0, 0, 0), vt(1.25, 1.9, 7))
  416. msh4 = mesh("CylinderMesh", prt4, "", "", vt(0, 0, 0), vt(1.55, 1.75, 5))
  417. msh6 = mesh("SpecialMesh", prt6, "Torso", "nil", vt(0, 0, 0), vt(5, 1, 1.5))
  418. msh7 = mesh("SpecialMesh", prt7, "Torso", "nil", vt(0, 0, 0), vt(10, 1.25, 1.5))
  419. msh8 = mesh("SpecialMesh", prt8, "Torso", "nil", vt(0, 0, 0), vt(4.5, 1, 1.6))
  420. msh9 = mesh("SpecialMesh", prt9, "Torso", "nil", vt(0, 0, 0), vt(9.5, 1, 1.6))
  421. msh10 = mesh("CylinderMesh", prt10, "", "", vt(0, 0, 0), vt(1, 1.9, 7))
  422. msh11 = mesh("BlockMesh", prt11, "", "", vt(0, 0, 0), vt(1.25, 1.25, 1.7))
  423. msh12 = mesh("CylinderMesh", prt12, "", "", vt(0, 0, 0), vt(0.75, 1.85, 7))
  424. msh13 = mesh("BlockMesh", prt13, "", "", vt(0, 0, 0), vt(0.75, 0.075, 1.9))
  425. msh14 = mesh("CylinderMesh", prt14, "", "", vt(0, 0, 0), vt(0.75, 1.85, 7))
  426. msh15 = mesh("BlockMesh", prt15, "", "", vt(0, 0, 0), vt(0.75, 0.075, 1.9))
  427. msh16 = mesh("BlockMesh", prt16, "", "", vt(0, 0, 0), vt(7.5, 0.5, 1.15))
  428. msh18 = mesh("BlockMesh", prt18, "", "", vt(0, 0, 0), vt(1, 7.5, 1.15))
  429. msh19 = mesh("BlockMesh", prt19, "", "", vt(0, 0, 0), vt(1, 1, 1.15))
  430. msh20 = mesh("BlockMesh", prt20, "", "", vt(0, 0, 0), vt(7, 35, 1))
  431. msh23 = mesh("BlockMesh", prt23, "", "", vt(0, 0, 0), vt(7.5, 0.25, 1))
  432. msh24 = mesh("BlockMesh", prt24, "", "", vt(0, 0, 0), vt(7.5, 0.7, 0.7))
  433. local handlewld = weld(handle, handle, Torso, euler(0, 0, -0.9) * cf(3.2, -3, -0.6))
  434. local wld1 = weld(prt1, prt1, handle, euler(0, 0, 0) * cf(0, 0, 0))
  435. local wld3 = weld(prt1, prt3, prt1, euler(0, 0, 0) * cf(0, -1.35, 0))
  436. local wld4 = weld(prt1, prt4, prt1, euler(0, 0, 0) * cf(0, -1.35, 0))
  437. local wld6 = weld(prt1, prt6, prt1, euler(0, 0, 0) * cf(0, 1.475, 0))
  438. local wld7 = weld(prt1, prt7, prt1, euler(-3.14, 0, 0) * cf(0, 1.7, 0))
  439. local wld8 = weld(prt1, prt8, prt1, euler(0, 0, 0) * cf(0, 1.5, 0))
  440. local wld9 = weld(prt1, prt9, prt1, euler(-3.14, 0, 0) * cf(0, 1.7, 0))
  441. local wld10 = weld(prt1, prt10, prt1, euler(1.57, 0, 0) * cf(0, 1.6, 0))
  442. local wld11 = weld(prt1, prt11, prt1, euler(0, 0, 0.785) * cf(0, 1.6, 0))
  443. local wld12 = weld(prt1, prt12, prt1, euler(1.57, 0, 0) * cf(0.3, 1.6, 0))
  444. local wld13 = weld(prt1, prt13, prt1, euler(0, 0, -2.96) * cf(0.3, 1.6, 0))
  445. local wld14 = weld(prt1, prt14, prt1, euler(1.57, 0, 0) * cf(-0.3, 1.6, 0))
  446. local wld15 = weld(prt1, prt15, prt1, euler(0, 0, 2.18) * cf(-0.3, 1.6, 0))
  447. local wld16 = weld(prt1, prt16, prt1, euler(0, 0, 0) * cf(0, 1.875, 0))
  448. local wld18 = weld(prt1, prt18, prt1, euler(0, 0, 0) * cf(0, 2.675, 0))
  449. local wld19 = weld(prt1, prt19, prt1, euler(0, 0, 0.785) * cf(0, 3.45, 0))
  450. local wld20 = weld(prt1, prt20, prt1, euler(0, 0, 0) * cf(0, 5.275, 0))
  451. local wld23 = weld(prt1, prt23, prt1, euler(0, 0, 0) * cf(0, 8.8, 0))
  452. local wld24 = weld(prt1, prt24, prt1, euler(0.785, 0, 0) * cf(0, 8.825, 0))
  453. di = -1.1
  454. for i = 1, 17 do
  455. local prt2 = part(3, modelzorz, 0, 0, Torso.BrickColor, "Part02", vt())
  456. prt2.Material = "Plastic"
  457. msh2 = mesh("CylinderMesh", prt2, "", "", vt(0, 0, 0), vt(1.5, 0.75, 5))
  458. local wld2 = weld(prt1, prt2, prt1, euler(math.random(-20, 20) / 100, 0, math.random(-20, 20) / 100) * cf(0, di, 0))
  459. di = di + 0.148
  460. end
  461. for i = 0.785, 2.356 do
  462. local prt5 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol2), "Part05", vt())
  463. msh5 = mesh("BlockMesh", prt5, "", "", vt(0, 0, 0), vt(1.25, 0.1, 1.95))
  464. local wld5 = weld(prt1, prt5, prt1, euler(-1.57, i, 0) * cf(0, -1.35, 0))
  465. end
  466. for i = 1.57, 3.15 do
  467. local prt12 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol2), "Part12", vt())
  468. msh12 = mesh("BlockMesh", prt12, "", "", vt(0, 0, 0), vt(1, 0.1, 1.95))
  469. local wld12 = weld(prt1, prt12, prt1, euler(0, 0, i) * cf(0, 1.6, 0))
  470. end
  471. for i = -0.75, 0.76 do
  472. local prt17 = part(3, modelzorz, 0.2, 0, BrickColor.new(NewCol2), "Part17", vt())
  473. msh17 = mesh("BlockMesh", prt17, "", "", vt(0, 0, 0), vt(0.8, 0.5, 0.8))
  474. local wld17 = weld(prt1, prt17, prt1, euler(0, 0.785, 0) * cf(i, 1.875, 0))
  475. end
  476. for i = -1, 1, 2 do
  477. local prt21 = part(3, modelzorz, 0.3, 0, BrickColor.new(NewCol4), "Part21", vt())
  478. local prt22 = part(3, modelzorz, 0.3, 0, BrickColor.new(NewCol4), "Part22", vt())
  479. msh21 = mesh("BlockMesh", prt21, "", "", vt(0, 0, 0), vt(0.25, 35, 1))
  480. msh22 = mesh("BlockMesh", prt22, "", "", vt(0, 0, 0), vt(0.7, 35.25, 0.7))
  481. local wld21 = weld(prt1, prt21, prt1, euler(0, 0, 0) * cf(0.725 * i, 5.275, 0))
  482. local wld22 = weld(prt1, prt22, prt1, euler(0, 0.785, 0) * cf(0.75 * i, 5.3, 0))
  483. local prt25 = part(3, modelzorz, 0.3, 0, BrickColor.new(NewCol4), "Part25", vt())
  484. msh25 = mesh("SpecialMesh", prt25, "FileMesh", "9756362", vt(0, 0, 0), vt(0.14, 0.14, 0.14))
  485. local wld25 = weld(prt1, prt25, prt1, euler(2.1517, -1.569, 2.1516) * cf(0.75 * i, 8.825, 0))
  486. end
  487. for _,c in pairs(modelzorz:children()) do
  488. table.insert(Weapon, c)
  489. end
  490. for _,c in pairs(prt1:children()) do
  491. if c.className == "Motor" then
  492. table.insert(Welds, c)
  493. end
  494. end
  495. local effects = it("Model", modelzorz)
  496. effects.Name = "Effects"
  497. local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Hitbox", vt())
  498. hitbox.Anchored = false
  499. local hitboxCF = cf(0, 0, 0)
  500. hboxpos = Instance.new("BodyPosition", nil)
  501. hboxpos.P = 2000
  502. hboxpos.D = 100
  503. hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
  504. local nr = NumberRange.new
  505. local ns = NumberSequence.new
  506. local cs = ColorSequence.new
  507. local parti = it("ParticleEmitter")
  508. parti.Color = cs(Color3.new(255, 255, 255), EffectCol)
  509. parti.LightEmission = 0
  510. parti.Size = ns(0.2)
  511. parti.Texture = "http://www.roblox.com/asset/?id=37332909"
  512. sizeseq = ns({NumberSequenceKeypoint.new(0, 0.125), NumberSequenceKeypoint.new(0.125, 3), NumberSequenceKeypoint.new(1, 1)})
  513. transseq = ns({NumberSequenceKeypoint.new(0, 0.5), NumberSequenceKeypoint.new(0.8, 0.8), NumberSequenceKeypoint.new(1, 1)})
  514. parti.Transparency = transseq
  515. parti.Size = sizeseq
  516. parti.ZOffset = 0
  517. parti.Acceleration = vt(0, 0, 0)
  518. parti.LockedToPart = true
  519. parti.Lifetime = nr(0.5)
  520. parti.Rate = 50
  521. parti.Rotation = nr(0, 0)
  522. parti.RotSpeed = nr(500)
  523. parti.Speed = nr(-8)
  524. parti.VelocitySpread = 360
  525. parti.Parent = Torso
  526. parti.Enabled = false
  527. parti2 = parti:Clone()
  528. parti2.Color = cs(EffectCol, Color3.new(255, 255, 255))
  529. parti2.Texture = "http://www.roblox.com/asset/?id=316957314"
  530. sizeseq = ns({NumberSequenceKeypoint.new(0, 0.125), NumberSequenceKeypoint.new(0.5, 8), NumberSequenceKeypoint.new(1, 10)})
  531. transseq = ns({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.5, 0.9), NumberSequenceKeypoint.new(1, 1)})
  532. parti2.Transparency = transseq
  533. parti2.Size = sizeseq
  534. parti2.ZOffset = 1
  535. parti2.Lifetime = nr(1)
  536. parti2.Rate = 10
  537. parti2.Rotation = nr(0, 360)
  538. parti2.RotSpeed = nr(100, 360)
  539. parti2.Speed = nr(0)
  540. parti2.VelocitySpread = 0
  541. parti2.Parent = Torso
  542. parti2.Enabled = false
  543. if script.Parent.className ~= "HopperBin" then
  544. Tool = Instance.new("HopperBin")
  545. Tool.Parent = Backpack
  546. Tool.Name = "Auswirkung"
  547. script.Parent = Tool
  548. end
  549. Bin = script.Parent
  550. if Bin.Name == "Grand" then
  551. Bin.Name = "Auswirkung"
  552. end
  553. local bodvel = Instance.new("BodyVelocity")
  554. local bg = Instance.new("BodyGyro")
  555. so = function(id, par, vol, pit, sord, dec, timer)
  556. local sou = Instance.new("Sound", par or workspace)
  557. sou.Volume = vol
  558. sou.Pitch = pit or 1
  559. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  560. coroutine.resume(coroutine.create(function(Sound)
  561. swait()
  562. Sound:play()
  563. end), sou)
  564. game:GetService("Debris"):AddItem(sou, 6)
  565. if sord == true then
  566. table.insert(Effects, {sou, "Sound", dec, timer})
  567. end
  568. end
  569. clerp = function(a, b, t)
  570. local qa = {QuaternionFromCFrame(a)}
  571. local qb = {QuaternionFromCFrame(b)}
  572. local ax, ay, az = a.x, a.y, a.z
  573. local bx, by, bz = b.x, b.y, b.z
  574. local _t = 1 - t
  575. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  576. end
  577. QuaternionFromCFrame = function(cf)
  578. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  579. local trace = m00 + m11 + m22
  580. if trace > 0 then
  581. local s = math.sqrt(1 + trace)
  582. local recip = 0.5 / s
  583. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  584. else
  585. do
  586. local i = 0
  587. if m00 < m11 then
  588. i = 1
  589. end
  590. if i == 0 and m00 or m11 < m22 then
  591. i = 2
  592. end
  593. if i == 0 then
  594. local s = math.sqrt(m00 - m11 - m22 + 1)
  595. local recip = 0.5 / s
  596. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  597. else
  598. do
  599. if i == 1 then
  600. local s = math.sqrt(m11 - m22 - m00 + 1)
  601. local recip = 0.5 / s
  602. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  603. else
  604. do
  605. if i == 2 then
  606. local s = math.sqrt(m22 - m00 - m11 + 1)
  607. local recip = 0.5 / s
  608. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  609. end
  610. end
  611. end
  612. end
  613. end
  614. end
  615. end
  616. end
  617. QuaternionToCFrame = function(px, py, pz, x, y, z, w)
  618. local xs, ys, zs = x + x, y + y, z + z
  619. local wx, wy, wz = w * xs, w * ys, w * zs
  620. local xx = x * xs
  621. local xy = x * ys
  622. local xz = x * zs
  623. local yy = y * ys
  624. local yz = y * zs
  625. local zz = z * zs
  626. 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))
  627. end
  628. QuaternionSlerp = function(a, b, t)
  629. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  630. local startInterp, finishInterp = nil, nil
  631. if cosTheta >= 0.0001 then
  632. if 1 - cosTheta > 0.0001 then
  633. local theta = math.acos(cosTheta)
  634. local invSinTheta = 1 / math.sin(theta)
  635. startInterp = math.sin((1 - t) * theta) * invSinTheta
  636. finishInterp = math.sin(t * theta) * invSinTheta
  637. else
  638. do
  639. startInterp = 1 - t
  640. finishInterp = t
  641. if 1 + cosTheta > 0.0001 then
  642. local theta = math.acos(-cosTheta)
  643. local invSinTheta = 1 / math.sin(theta)
  644. startInterp = math.sin((t - 1) * theta) * invSinTheta
  645. finishInterp = math.sin(t * theta) * invSinTheta
  646. else
  647. do
  648. startInterp = t - 1
  649. finishInterp = t
  650. 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
  651. end
  652. end
  653. end
  654. end
  655. end
  656. end
  657. hideanim = function()
  658. equipped = false
  659. mdec2.Parent = nil
  660. mdec.Parent = Decrease
  661. for i = 0, 1, 0.1 do
  662. swait()
  663. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  664. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  665. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  666. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  667. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  668. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  669. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.4)
  670. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.4)
  671. end
  672. end
  673. mdec.Parent = Decrease
  674. equipanim = function()
  675. equipped = true
  676. mdec.Parent = nil
  677. mdec2.Parent = Decrease
  678. for i = 0, 1, 0.1 do
  679. swait()
  680. Neck.C0 = clerp(Neck.C0, necko * euler(0.3, 0, 0), 0.3)
  681. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0), 0.3)
  682. RW.C0 = clerp(RW.C0, cf(1.8, 0.4, -0.3) * euler(1.3, 0, -1.4) * euler(0, 0, 0), 0.3)
  683. LW.C0 = clerp(LW.C0, cf(-1.8, 0.4, -0.3) * euler(1.3, 0, 1.4) * euler(0, 0, 0), 0.3)
  684. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.3)
  685. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.3)
  686. end
  687. for i = 0, 1, 0.07 do
  688. swait()
  689. Neck.C0 = clerp(Neck.C0, necko * euler(0.05, 0, 0), 0.2)
  690. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0), 0.3)
  691. RW.C0 = clerp(RW.C0, cf(1.4, 0.4, -0.5) * euler(1.5, 0, -1.5) * euler(0, -0.3, 0), 0.6)
  692. LW.C0 = clerp(LW.C0, cf(-1.4, 0.4, -0.5) * euler(1.5, 0, 1.5) * euler(0, 0.3, 0), 0.6)
  693. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.3)
  694. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.3)
  695. end
  696. end
  697. StaggerAnim = function()
  698. attack = true
  699. removeControl()
  700. if mode == "Unsheathed" then
  701. for i = 1, math.random(2, 4) do
  702. 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)
  703. end
  704. end
  705. do
  706. for i = 0, 1, 0.35 do
  707. swait()
  708. if Rooted.Value == false then
  709. Torso.Velocity = RootPart.CFrame.lookVector * -40
  710. end
  711. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
  712. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
  713. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
  714. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  715. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  716. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  717. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
  718. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  719. end
  720. for i = 0, 1, 0.2 do
  721. swait()
  722. if Rooted.Value == false then
  723. Torso.Velocity = RootPart.CFrame.lookVector * -40
  724. end
  725. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
  726. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
  727. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
  728. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  729. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
  730. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  731. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
  732. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
  733. end
  734. for i = 0, 1, 0.1 do
  735. swait()
  736. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
  737. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
  738. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.4) * euler(0, -0.4, 0), 0.3)
  739. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  740. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2) * euler(0, 0.4, 0), 0.3)
  741. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  742. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
  743. LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  744. end
  745. for i = 1, 40 do
  746. swait()
  747. if StunT.Value <= Stun.Value then
  748. break
  749. end
  750. end
  751. do
  752. resumeControl()
  753. combo = 0
  754. attack = false
  755. end
  756. end
  757. end
  758. StaggerHitt = function()
  759. if mode == "Unsheathed" then
  760. Stun.Value = Stun.Value + math.random(3, 4)
  761. for i = 1, math.random(2, 4) do
  762. 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)
  763. end
  764. end
  765. end
  766. StunAnim = function()
  767. attack = true
  768. removeControl()
  769. Stunned.Value = true
  770. showDamage(Character, "Stunned", "Interrupt")
  771. local dec = Instance.new("NumberValue", Decrease)
  772. dec.Name = "DecreaseMvmt"
  773. dec.Value = 10
  774. if mode == "Sheathed" then
  775. for i = 0, 1, 0.3 do
  776. swait()
  777. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  778. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  779. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  780. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  781. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  782. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  783. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  784. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  785. end
  786. for i = 0, 1, 0.3 do
  787. swait()
  788. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  789. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  790. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  791. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  792. 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)
  793. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  794. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  795. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  796. end
  797. for i = 0, 1, 0.3 do
  798. swait()
  799. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  800. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  801. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  802. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  803. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  804. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  805. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  806. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  807. end
  808. local gairost = Instance.new("BodyGyro")
  809. gairost.Parent = RootPart
  810. gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
  811. gairost.P = 20000
  812. gairost.cframe = cf(0, 0, 0)
  813. for i = 0, 1, 0.1 do
  814. swait()
  815. if hitfloor ~= nil then
  816. Torso.Velocity = vt(0, 0, 0)
  817. end
  818. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  819. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  820. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
  821. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  822. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  823. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  824. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  825. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  826. end
  827. for i = 1, 70 do
  828. swait()
  829. gairost.cframe = RootPart.CFrame
  830. if hitfloor ~= nil then
  831. Torso.Velocity = vt(0, 0, 0)
  832. end
  833. end
  834. for i = 0, 1, 0.2 do
  835. swait()
  836. Stun.Value = 0
  837. gairost.cframe = RootPart.CFrame
  838. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  839. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  840. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  841. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  842. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  843. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  844. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  845. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  846. end
  847. gairost.Parent = nil
  848. else
  849. do
  850. for i = 0, 1, 0.2 do
  851. swait()
  852. handlewld.Part1 = RightArm
  853. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  854. wld1.C0 = clerp(wld1.C0, cf(0, 0.7, 0) * euler(0, 1.57, 0) * euler(-2.1, 0, 0), 0.3)
  855. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(0.3, 0, 0), 0.3)
  856. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * euler(0.1, 0, 0) * euler(0, 0, -0.3), 0.3)
  857. RW.C0 = clerp(RW.C0, cf(1.2, 0.5, -0.3) * euler(-0.4, 0, 0.5) * euler(0, 0.3, 0), 0.3)
  858. LW.C0 = clerp(LW.C0, cf(0.4, 0.4, -0.5) * euler(0.4, 0, 0.5) * euler(0, 0.8, 0), 0.3)
  859. RH.C0 = clerp(RH.C0, cf(1, -0.5, -0.6) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0) * euler(0, 0, -0.6), 0.3)
  860. LH.C0 = clerp(LH.C0, cf(-1.2, -0.1, -0.4) * euler(0, -1.57, 0) * euler(0, 0.3, 0) * euler(0, 0, -0.1) * euler(-0.1, 0, 0), 0.3)
  861. end
  862. for i = 0, 1, 0.1 do
  863. swait()
  864. handlewld.Part1 = RightArm
  865. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  866. wld1.C0 = clerp(wld1.C0, cf(0, -0.3, 0) * euler(0, 1.57, 0) * euler(-1.9, 0, 0), 0.3)
  867. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.4, 0, 0), 0.3)
  868. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.1, 0, 0) * euler(0, 0, -0.3), 0.3)
  869. RW.C0 = clerp(RW.C0, cf(1.2, 0.5, -0.3) * euler(0, 0, 0.5) * euler(0, 0.5, 0), 0.3)
  870. LW.C0 = clerp(LW.C0, cf(-1, 0.3, -0.7) * euler(0.2, 0, 1.4) * euler(0, -1.2, 0), 0.3)
  871. RH.C0 = clerp(RH.C0, cf(1, -0.7, -0.7) * euler(0, 1.57, 0) * euler(-0.2, -0.1, 0) * euler(0, 0, -1.2), 0.3)
  872. LH.C0 = clerp(LH.C0, cf(-1.2, 0.4, -0.4) * euler(0, -1.57, 0) * euler(0, 0.3, 0) * euler(0, 0, 0.1) * euler(0, 0, 0), 0.3)
  873. end
  874. for i = 1, 100 do
  875. swait()
  876. if hitfloor ~= nil then
  877. Torso.Velocity = vt(0, 0, 0)
  878. end
  879. end
  880. for i = 0, 1, 0.1 do
  881. swait()
  882. handlewld.Part1 = RightArm
  883. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  884. wld1.C0 = clerp(wld1.C0, cf(0, -0.3, 0) * euler(0, 1.57, 0) * euler(-1.8, 0, 0), 0.3)
  885. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.1, 0, 0), 0.3)
  886. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * euler(0.1, 0, 0) * euler(0, 0, -0.3), 0.3)
  887. RW.C0 = clerp(RW.C0, cf(1.2, 0.5, -0.3) * euler(0, 0, 0.5) * euler(0, 0.5, 0), 0.3)
  888. LW.C0 = clerp(LW.C0, cf(-1, 0.3, -0.7) * euler(0.2, 0, 1.4) * euler(0, -1.2, 0), 0.3)
  889. RH.C0 = clerp(RH.C0, cf(1, -0.5, -0.6) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0) * euler(0, 0, -0.6), 0.3)
  890. LH.C0 = clerp(LH.C0, cf(-1.2, -0.1, -0.4) * euler(0, -1.57, 0) * euler(0, 0.3, 0) * euler(0, 0, 0.1) * euler(-0.1, 0, 0), 0.3)
  891. end
  892. do
  893. resumeControl()
  894. dec.Parent = nil
  895. Stun.Value = 0
  896. combo = 0
  897. Stunned.Value = false
  898. attack = false
  899. for i = 1, 10 do
  900. swait()
  901. Stun.Value = 0
  902. end
  903. end
  904. end
  905. end
  906. end
  907. attackone = function()
  908. attack = true
  909. if mode == "Sheathed" then
  910. for i = 0, 1, 0.15 do
  911. swait()
  912. handlewld.Part1 = Torso
  913. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -0.9) * cf(3.2, -3, -0.6), 0.4)
  914. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.4)
  915. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.4)
  916. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0), 0.4)
  917. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.2) * euler(1.7, 0, -0.2) * euler(0, 0, 0), 0.4)
  918. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.2) * euler(1.7, 0, 0.2) * euler(0, 0, 0), 0.4)
  919. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.4)
  920. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.4)
  921. if Stagger.Value ~= true then
  922. do
  923. if StunT.Value <= Stun.Value then
  924. break
  925. end
  926. -- DECOMPILER ERROR at PC197: LeaveBlock: unexpected jumping out IF_THEN_STMT
  927.  
  928. -- DECOMPILER ERROR at PC197: LeaveBlock: unexpected jumping out IF_STMT
  929.  
  930. end
  931. end
  932. end
  933. so("169445092", RightArm, 1, 1)
  934. for i = 0, 1, 0.1 do
  935. swait()
  936. if i <= 0.5 then
  937. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.8) * euler(1.6, 0, 0.4) * euler(0, 0, 0), 0.6)
  938. MagniDamage(RightArm, 3, 4, 5, math.random(10, 15), "Normal", RootPart, 0.5, 2, (math.random(4, 6)), nil, true)
  939. else
  940. RW.C0 = clerp(RW.C0, cf(1.1, 0.5, 0.2) * euler(1.55, 0, 0.7) * euler(0, 0, 0), 0.4)
  941. end
  942. handlewld.Part1 = Torso
  943. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -0.9) * cf(3.2, -3, -0.6), 0.4)
  944. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.4)
  945. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.4) * euler(0.1, 0, 0), 0.4)
  946. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.4), 0.4)
  947. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, -0.1) * euler(1.7, 0, 0.4) * euler(0, 0, 0), 0.4)
  948. RH.C0 = clerp(RH.C0, cf(1.2, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, -0.4, 0) * euler(0, 0, -0.2), 0.4)
  949. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.4)
  950. if Stagger.Value ~= true then
  951. do
  952. if StunT.Value <= Stun.Value then
  953. break
  954. end
  955. -- DECOMPILER ERROR at PC451: LeaveBlock: unexpected jumping out IF_THEN_STMT
  956.  
  957. -- DECOMPILER ERROR at PC451: LeaveBlock: unexpected jumping out IF_STMT
  958.  
  959. end
  960. end
  961. end
  962. so("169445092", RightArm, 1, 0.9)
  963. for i = 0, 1, 0.1 do
  964. swait()
  965. MagniDamage(RightArm, 3, 4, 6, math.random(10, 15), "Normal", RootPart, 0.5, 2, (math.random(4, 6)), nil, true)
  966. if i <= 0.2 then
  967. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.8) * euler(1.6, 0, 0.5) * euler(0, 0, 0), 0.4)
  968. else
  969. RW.C0 = clerp(RW.C0, cf(1, 0.4, -0.8) * euler(1, 0, -0.4) * euler(0, 0, 0), 0.2)
  970. end
  971. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.4)
  972. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.1, 0, 0), 0.4)
  973. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.6), 0.4)
  974. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0) * euler(0.8, 0, -0.6) * euler(0, 0, 0), 0.3)
  975. RH.C0 = clerp(RH.C0, cf(1.2, -0.9, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.6, 0) * euler(0, 0, -0.2), 0.4)
  976. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.2, 0.1, 0), 0.4)
  977. if Stagger.Value ~= true then
  978. do
  979. if StunT.Value <= Stun.Value then
  980. break
  981. end
  982. -- DECOMPILER ERROR at PC684: LeaveBlock: unexpected jumping out IF_THEN_STMT
  983.  
  984. -- DECOMPILER ERROR at PC684: LeaveBlock: unexpected jumping out IF_STMT
  985.  
  986. end
  987. end
  988. end
  989. else
  990. RW.C0 = clerp(RW.C0, cf(0.5, 0.5, -0.5) * euler(1.5, 0, 0) * euler(0, 0, -1) * euler(0, 0.5, 0), 0.3)
  991. LW.C0 = clerp(LW.C0, cf(-1.4, 0.4, 0.1) * euler(1.5, 0, -0.3) * euler(0, 0.5, 0), 0.3)
  992. for i = 0, 1, 0.08 do
  993. swait()
  994. handlewld.Part1 = RightArm
  995. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  996. wld1.C0 = clerp(wld1.C0, cf(0, 0.3, 0) * euler(0, 1, 0) * euler(-1, 0, 0), 0.2)
  997. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.5) * euler(0.1, 0, 0), 0.2)
  998. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0.05, 0, 0) * euler(0, 0, 0.5), 0.2)
  999. RW.C0 = clerp(RW.C0, cf(0.5, 0.5, -0.5) * euler(2.4, 0, 0) * euler(0, 0, -1) * euler(0, 0.5, 0), 0.2)
  1000. LW.C0 = clerp(LW.C0, cf(-1.4, 0.4, 0.1) * euler(3, 0, -0.3) * euler(0, 0.5, 0), 0.2)
  1001. RH.C0 = clerp(RH.C0, cf(1.2, -0.8, -0.2) * euler(0, 1.57, 0) * euler(0, -0.5, 0) * euler(0, 0, 0.2), 0.2)
  1002. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.2) * euler(0, -1.57, 0) * euler(-0.2, 0.1, 0) * euler(0, 0, 0.2), 0.2)
  1003. if Stagger.Value ~= true then
  1004. do
  1005. if StunT.Value <= Stun.Value then
  1006. break
  1007. end
  1008. -- DECOMPILER ERROR at PC962: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1009.  
  1010. -- DECOMPILER ERROR at PC962: LeaveBlock: unexpected jumping out IF_STMT
  1011.  
  1012. end
  1013. end
  1014. end
  1015. LW.C0 = clerp(LW.C0, cf(0.4, 0.4, -1) * euler(1.5, 0, 0.8) * euler(0, 0, 0), 0.4)
  1016. so("320557487", prt20, 1, 0.7)
  1017. hitbox.Parent = modelzorz
  1018. hitbox.Anchored = true
  1019. hitbox.Size = vt(1, 1, 1)
  1020. hitbox.CFrame = prt20.CFrame * cf(0, 1, 0)
  1021. for i = 0, 1, 0.05 do
  1022. swait()
  1023. if i <= 0.5 then
  1024. hitbox.CFrame = prt20.CFrame * cf(0, 1, 0)
  1025. MagniDamage(hitbox, 3, 7, 9, math.random(5, 15), "Normal", RootPart, 0.5, 1, (math.random(8, 10)), nil, true)
  1026. hitbox.CFrame = prt20.CFrame * cf(0, -1, 0)
  1027. MagniDamage(hitbox, 4, 7, 9, math.random(5, 15), "Normal", RootPart, 0.5, 1, (math.random(8, 10)), nil, true)
  1028. end
  1029. handlewld.Part1 = RightArm
  1030. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.25)
  1031. wld1.C0 = clerp(wld1.C0, cf(0, 0.2, 0) * euler(0, 1.57, 0) * euler(-1.7, 0, 0), 0.25)
  1032. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.1, 0, 0), 0.25)
  1033. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0.1, 0, 0) * euler(0, 0, -0.8), 0.25)
  1034. RW.C0 = clerp(RW.C0, cf(0.5, 0.5, -0.5) * euler(-0.5, 0, 0) * euler(0, 0, 0.8) * euler(0, -0.3, 0), 0.25)
  1035. LW.C0 = clerp(LW.C0, cf(0.4, 0.4, -1) * euler(0.2, 0, 0.8) * euler(0, 0, 0), 0.25)
  1036. RH.C0 = clerp(RH.C0, cf(1.2, -0.8, -0.2) * euler(0, 1.57, 0) * euler(0, -0.5, 0) * euler(0, 0, -0.2), 0.25)
  1037. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.2) * euler(0, -1.57, 0) * euler(-0.2, 0.1, 0) * euler(0, 0, 0.2), 0.25)
  1038. if Stagger.Value ~= true then
  1039. do
  1040. if StunT.Value <= Stun.Value then
  1041. break
  1042. end
  1043. -- DECOMPILER ERROR at PC1303: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1044.  
  1045. -- DECOMPILER ERROR at PC1303: LeaveBlock: unexpected jumping out IF_STMT
  1046.  
  1047. end
  1048. end
  1049. end
  1050. end
  1051. hitbox.Parent = nil
  1052. attack = false
  1053. end
  1054. attacktwo = function()
  1055. attack = true
  1056. if mode == "Sheathed" then
  1057. for i = 0, 1, 0.2 do
  1058. swait()
  1059. handlewld.Part1 = Torso
  1060. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -0.9) * cf(3.2, -3, -0.6), 0.4)
  1061. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.4)
  1062. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(-0.1, 0, 0), 0.4)
  1063. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -0.6), 0.4)
  1064. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.4) * euler(0, 0, 0), 0.4)
  1065. LW.C0 = clerp(LW.C0, cf(-0.4, 0.7, -0.7) * euler(1.57, 0, 1.3) * euler(0.5, 0, 0), 0.4)
  1066. RH.C0 = clerp(RH.C0, cf(1.1, -0.8, -0.1) * euler(0, 1.57, 0) * euler(-0.2, -0.1, 0) * euler(0, 0, -0.2), 0.4)
  1067. LH.C0 = clerp(LH.C0, cf(-1.4, -0.9, -0.3) * euler(0, -1.57, 0) * euler(0, 0.6, 0) * euler(0, 0, 0.2), 0.4)
  1068. if Stagger.Value ~= true then
  1069. do
  1070. if StunT.Value <= Stun.Value then
  1071. break
  1072. end
  1073. -- DECOMPILER ERROR at PC209: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1074.  
  1075. -- DECOMPILER ERROR at PC209: LeaveBlock: unexpected jumping out IF_STMT
  1076.  
  1077. end
  1078. end
  1079. end
  1080. so("169445073", LeftArm, 1, 0.95)
  1081. for i = 0, 1, 0.2 do
  1082. swait()
  1083. MagniDamage(LeftArm, 3, 4, 5, math.random(10, 15), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1084. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.5)
  1085. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.4) * euler(0.1, 0, 0), 0.5)
  1086. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.4), 0.5)
  1087. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.1, 0, 1) * euler(0, 0, 0), 0.5)
  1088. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0.1) * euler(1.57, 0, -1.3) * euler(-0.2, 0, 0), 0.5)
  1089. RH.C0 = clerp(RH.C0, cf(1.1, -0.8, -0.1) * euler(0, 1.57, 0) * euler(-0.2, -0.1, 0) * euler(0, 0, -0.2), 0.5)
  1090. LH.C0 = clerp(LH.C0, cf(-1.1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(0, 0.1, 0) * euler(0, 0, 0), 0.4)
  1091. if Stagger.Value ~= true then
  1092. do
  1093. if StunT.Value <= Stun.Value then
  1094. break
  1095. end
  1096. -- DECOMPILER ERROR at PC421: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1097.  
  1098. -- DECOMPILER ERROR at PC421: LeaveBlock: unexpected jumping out IF_STMT
  1099.  
  1100. end
  1101. end
  1102. end
  1103. so("169445073", LeftLeg, 1, 1.1)
  1104. for i = 0, 1, 0.2 do
  1105. swait()
  1106. MagniDamage(LeftLeg, 3, 4, 5, math.random(10, 15), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1107. Neck.C0 = clerp(Neck.C0, necko * euler(-0.05, 0, 0) * euler(0, 0, 0.4), 0.5)
  1108. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.4, -0.2) * euler(0.05, 0, 0) * euler(0, 0, -0.4), 0.5)
  1109. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 0.2) * euler(0, 0, 0), 0.5)
  1110. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.2) * euler(0, 0, 0), 0.5)
  1111. 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)
  1112. LH.C0 = clerp(LH.C0, cf(-1, -0.5, -0.5) * euler(0, -1.57, 0) * euler(0, 0, -1.8) * euler(-0.1, 0, 0), 0.5)
  1113. if Stagger.Value ~= true then
  1114. do
  1115. if StunT.Value <= Stun.Value then
  1116. break
  1117. end
  1118. -- DECOMPILER ERROR at PC621: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1119.  
  1120. -- DECOMPILER ERROR at PC621: LeaveBlock: unexpected jumping out IF_STMT
  1121.  
  1122. end
  1123. end
  1124. end
  1125. else
  1126. for i = 0, 1, 0.08 do
  1127. swait()
  1128. handlewld.Part1 = RightArm
  1129. handlewld.C0 = clerp(handlewld.C0, euler(0, -0.4, 0) * cf(0, 1, 0), 0.2)
  1130. wld1.C0 = clerp(wld1.C0, cf(0, -0.8, 0) * euler(0, 1.57, 0) * euler(-1.2, 0, 0), 0.2)
  1131. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(0.1, 0, 0), 0.2)
  1132. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0.2, 0, 0) * euler(0, 0, -0.6), 0.2)
  1133. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.2) * euler(-0.2, 0, 0.6) * euler(0, -3, 0), 0.2)
  1134. LW.C0 = clerp(LW.C0, cf(1, 0.5, -0.6) * euler(0.6, 0, 0.6) * euler(0, -2.2, 0), 0.2)
  1135. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.3) * euler(0, 1.57, 0) * euler(-0.2, 0.6, 0) * euler(0, 0, 0.2), 0.2)
  1136. LH.C0 = clerp(LH.C0, cf(-1.3, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0.6, 0) * euler(0, 0, -0.2), 0.2)
  1137. if Stagger.Value ~= true then
  1138. do
  1139. if StunT.Value <= Stun.Value then
  1140. break
  1141. end
  1142. -- DECOMPILER ERROR at PC839: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1143.  
  1144. -- DECOMPILER ERROR at PC839: LeaveBlock: unexpected jumping out IF_STMT
  1145.  
  1146. end
  1147. end
  1148. end
  1149. so("320557563", prt20, 1, 0.7)
  1150. hitbox.Parent = modelzorz
  1151. hitbox.Anchored = true
  1152. hitbox.Size = vt(1, 1, 1)
  1153. hitbox.CFrame = prt20.CFrame * cf(0, 1, 0)
  1154. for i = 0, 1, 0.05 do
  1155. swait()
  1156. if i <= 0.3 then
  1157. hitbox.CFrame = prt20.CFrame * cf(0, 1, 0)
  1158. MagniDamage(hitbox, 3, 7, 9, math.random(5, 15), "Normal", RootPart, 0.5, 1, (math.random(6, 8)), nil, true)
  1159. hitbox.CFrame = prt20.CFrame * cf(0, -1, 0)
  1160. MagniDamage(hitbox, 4, 7, 9, math.random(5, 15), "Normal", RootPart, 0.5, 1, (math.random(6, 8)), nil, true)
  1161. wld1.C0 = clerp(wld1.C0, cf(0, -0.5, 0) * euler(0, 2.5, 0) * euler(-2, 0, 0), 0.25)
  1162. RW.C0 = clerp(RW.C0, cf(0.5, 0.5, -0.5) * euler(1, 0, -1) * euler(0, -1, 0), 0.25)
  1163. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.6, 0, 0.6) * euler(0, 0, 0), 0.25)
  1164. else
  1165. wld1.C0 = clerp(wld1.C0, cf(0, -0.5, 0) * euler(0, 1, 0) * euler(-1, 0, 0), 0.25)
  1166. RW.C0 = clerp(RW.C0, cf(0.5, 0.5, -0.5) * euler(1, 0, -1) * euler(0, -1.2, 0), 0.25)
  1167. LW.C0 = clerp(LW.C0, cf(-1.5, 0.4, -0.2) * euler(1, 0, 0.8) * euler(0, 0, 0), 0.25)
  1168. end
  1169. handlewld.Part1 = RightArm
  1170. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.25)
  1171. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.4) * euler(0.1, 0, 0), 0.25)
  1172. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0, 0, 1.8), 0.25)
  1173. RH.C0 = clerp(RH.C0, cf(1, -0.9, 0.6) * euler(0, 1.57, 0) * euler(-0.1, -1.5, 0), 0.2)
  1174. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.3) * euler(0, -1.57, 0) * euler(-0.1, -1, 0), 0.2)
  1175. if Stagger.Value ~= true then
  1176. do
  1177. if StunT.Value <= Stun.Value then
  1178. break
  1179. end
  1180. -- DECOMPILER ERROR at PC1211: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1181.  
  1182. -- DECOMPILER ERROR at PC1211: LeaveBlock: unexpected jumping out IF_STMT
  1183.  
  1184. end
  1185. end
  1186. end
  1187. hitbox.Parent = nil
  1188. end
  1189. attack = false
  1190. end
  1191. attackthree = function()
  1192. attack = true
  1193. if mode == "Sheathed" then
  1194. for i = 0, 1, 0.2 do
  1195. swait()
  1196. handlewld.Part1 = Torso
  1197. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -0.9) * cf(3.2, -3, -0.6), 0.4)
  1198. Neck.C0 = clerp(Neck.C0, necko * euler(0, -0.3, 0) * euler(0, 0, -0.8), 0.4)
  1199. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0.8) * euler(0, 0.3, 0), 0.4)
  1200. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
  1201. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.5) * euler(0, 0, 0), 0.4)
  1202. RH.C0 = clerp(RH.C0, cf(0.6, -0.2, -0.4) * euler(0, 1.57, 0) * euler(-1.27, 0, 0) * euler(0, 0, 1), 0.4)
  1203. LH.C0 = clerp(LH.C0, cf(-0.9, -0.4, -0.4) * euler(0, -1.57, 0) * euler(-0.3, 0, 0), 0.4)
  1204. if Stagger.Value ~= true then
  1205. do
  1206. if StunT.Value <= Stun.Value then
  1207. break
  1208. end
  1209. -- DECOMPILER ERROR at PC191: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1210.  
  1211. -- DECOMPILER ERROR at PC191: LeaveBlock: unexpected jumping out IF_STMT
  1212.  
  1213. end
  1214. end
  1215. end
  1216. so("169445073", RightLeg, 1, 0.9)
  1217. for i = 0, 1, 0.2 do
  1218. swait()
  1219. MagniDamage(RightLeg, 3, 4, 5, math.random(10, 15), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1220. Neck.C0 = clerp(Neck.C0, necko * euler(0, -0.5, 0) * euler(0, 0, -1.4), 0.5)
  1221. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.6, -0.2) * euler(0, 0, 1.4) * euler(0, 0.5, 0), 0.5)
  1222. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1) * euler(0, 0, 0), 0.5)
  1223. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.5) * euler(0, 0, 0), 0.5)
  1224. RH.C0 = clerp(RH.C0, cf(1.2, -0.5, -0.5) * euler(0, 1.57, 0) * euler(-1.07, 0, 0) * euler(0, 0, 0.3), 0.5)
  1225. LH.C0 = clerp(LH.C0, cf(-1.4, -0.2, -0.4) * euler(0, -1.57, 0) * euler(-0.4, 0, 0), 0.5)
  1226. if Stagger.Value ~= true then
  1227. do
  1228. if StunT.Value <= Stun.Value then
  1229. break
  1230. end
  1231. -- DECOMPILER ERROR at PC385: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1232.  
  1233. -- DECOMPILER ERROR at PC385: LeaveBlock: unexpected jumping out IF_STMT
  1234.  
  1235. end
  1236. end
  1237. end
  1238. for i = 0, 1, 0.3 do
  1239. swait()
  1240. Neck.C0 = clerp(Neck.C0, necko * euler(0, -0.1, 0) * euler(0, 0, -0.2) * euler(0.2, 0, 0), 0.6)
  1241. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.3, -0.2) * euler(0, 0, 0.2) * euler(0, 0.1, 0), 0.6)
  1242. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.5) * euler(0, 0, 0), 0.6)
  1243. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.5) * euler(0, 0, 0), 0.6)
  1244. RH.C0 = clerp(RH.C0, cf(1.2, -0.9, -0.5) * euler(0, 1.57, 0) * euler(0, 0.4, 0) * euler(0.1, 0, 0) * euler(0, 0, 0.1), 0.6)
  1245. LH.C0 = clerp(LH.C0, cf(-1.2, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.8, 0) * euler(0, 0, 0.2), 0.6)
  1246. if Stagger.Value ~= true then
  1247. do
  1248. if StunT.Value <= Stun.Value then
  1249. break
  1250. end
  1251. -- DECOMPILER ERROR at PC569: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1252.  
  1253. -- DECOMPILER ERROR at PC569: LeaveBlock: unexpected jumping out IF_STMT
  1254.  
  1255. end
  1256. end
  1257. end
  1258. so("169445073", LeftLeg, 1, 0.8)
  1259. for i = 0, 1, 0.1 do
  1260. swait()
  1261. MagniDamage(LeftLeg, 3, 4, 5, math.random(10, 15), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1262. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0.2, 0) * euler(0, 0, 1.5) * euler(0, 0, 0), 0.4)
  1263. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -0.2) * euler(0, 0, -1.5) * euler(0, -0.2, 0), 0.4)
  1264. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1) * euler(0, 0, 0), 0.4)
  1265. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -0.2) * euler(0, 0, 0), 0.4)
  1266. RH.C0 = clerp(RH.C0, cf(0.4, -0.7, -1) * euler(0, 1.57, 0) * euler(0, 1.5, 0) * euler(0, 0, 0) * euler(0, 0, -0.4), 0.4)
  1267. LH.C0 = clerp(LH.C0, cf(-1, -0.4, -0.2) * euler(0, -1.57, 0) * euler(-1.5, 0, 0) * euler(0, 0, -0.4), 0.4)
  1268. if Stagger.Value ~= true then
  1269. do
  1270. if StunT.Value <= Stun.Value then
  1271. break
  1272. end
  1273. -- DECOMPILER ERROR at PC781: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1274.  
  1275. -- DECOMPILER ERROR at PC781: LeaveBlock: unexpected jumping out IF_STMT
  1276.  
  1277. end
  1278. end
  1279. end
  1280. else
  1281. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.5, 0, 0) * euler(0, 0, 0.5), 0.3)
  1282. LW.C0 = clerp(LW.C0, cf(-1.4, 0.4, -0.1) * euler(1.5, 0, -0.5) * euler(0, 0, 0), 0.3)
  1283. for i = 0, 1, 0.08 do
  1284. swait()
  1285. handlewld.Part1 = RightArm
  1286. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  1287. wld1.C0 = clerp(wld1.C0, cf(0, -0.6, 0) * euler(0, 1.57, 0) * euler(-2, 0, 0), 0.3)
  1288. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.4, 0, 0), 0.3)
  1289. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(-0.3, 0, 0) * euler(0, 0, -1), 0.3)
  1290. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.1) * euler(2.8, 0, 0) * euler(0, 0, 0.2) * euler(0, -0.6, 0), 0.3)
  1291. LW.C0 = clerp(LW.C0, cf(0.5, 0.8, -0.8) * euler(3, 0, 0) * euler(0, 0, 0.6) * euler(0, 0, 0), 0.3)
  1292. RH.C0 = clerp(RH.C0, cf(0.7, -0.8, -0.2) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(0, 0, -0.4), 0.3)
  1293. LH.C0 = clerp(LH.C0, cf(-1, -0.2, -0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, -0.4), 0.3)
  1294. if Stagger.Value ~= true then
  1295. do
  1296. if StunT.Value <= Stun.Value then
  1297. break
  1298. end
  1299. -- DECOMPILER ERROR at PC1059: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1300.  
  1301. -- DECOMPILER ERROR at PC1059: LeaveBlock: unexpected jumping out IF_STMT
  1302.  
  1303. end
  1304. end
  1305. end
  1306. local dec = Instance.new("NumberValue", Decrease)
  1307. dec.Name = "DecreaseMvmt"
  1308. dec.Value = 10
  1309. game:GetService("Debris"):AddItem(dec, 10)
  1310. so("320557353", prt20, 1, 0.8)
  1311. hitbox.Parent = modelzorz
  1312. hitbox.Anchored = true
  1313. hitbox.Size = vt(1, 1, 1)
  1314. hitbox.CFrame = prt20.CFrame * cf(0, 1, 0)
  1315. dohit = 0
  1316. for i = 0, 1, 0.05 do
  1317. swait()
  1318. dohit = dohit + 1
  1319. if i <= 0.3 then
  1320. hitbox.CFrame = prt20.CFrame * cf(0, 1, 0)
  1321. MagniDamage(hitbox, 3, 7, 9, math.random(5, 15), "Normal", RootPart, 0.3, 1, (math.random(7, 9)), nil, true)
  1322. hitbox.CFrame = prt20.CFrame * cf(0, -1, 0)
  1323. MagniDamage(hitbox, 4, 7, 9, math.random(5, 15), "Normal", RootPart, 0.3, 1, (math.random(7, 9)), nil, true)
  1324. end
  1325. if dohit == 6 then
  1326. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1327. ref.Anchored = true
  1328. ref.CFrame = prt20.CFrame * cf(0, -1.5, 0)
  1329. game:GetService("Debris"):AddItem(ref, 1)
  1330. hitfloor2 = rayCast(ref.Position, CFrame.new(ref.Position, ref.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  1331. if hitfloor2 ~= nil then
  1332. ref.CFrame = cf(posfloor2)
  1333. MagicWave(hitfloor2.BrickColor, cf(posfloor2), 1, 1, 1, 1, 1, 1, 0.05)
  1334. MagniDamage(ref, 10, 7, 9, math.random(15, 20), "Knockdown2", ref, 0.5, 1, (math.random(10, 12)), nil, true)
  1335. for i = 1, 10 do
  1336. cf2 = cf(posfloor2) * cf(math.random(-1000, 1000) / 100, 1, math.random(-1000, 1000) / 100)
  1337. ref.CFrame = cf2
  1338. ghitfloor = rayCast(ref.Position, CFrame.new(ref.Position, ref.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  1339. if ghitfloor ~= nil then
  1340. Col = ghitfloor.BrickColor
  1341. 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))
  1342. groundpart.Anchored = true
  1343. groundpart.Material = ghitfloor.Material
  1344. groundpart.CanCollide = true
  1345. groundpart.CFrame = cf(gposfloor) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1346. game:GetService("Debris"):AddItem(groundpart, 5)
  1347. end
  1348. end
  1349. ref.CFrame = cf(posfloor2)
  1350. so("157878578", ref, 0.8, 0.8)
  1351. end
  1352. end
  1353. handlewld.Part1 = RightArm
  1354. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5)
  1355. wld1.C0 = clerp(wld1.C0, cf(0, 0.6, 0) * euler(0, 1.57, 0) * euler(-1.3, 0, 0), 0.5)
  1356. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(-0.2, 0, 0), 0.5)
  1357. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1.6, -0.6) * euler(0.4, 0, 0) * euler(0, 0, -1), 0.5)
  1358. RW.C0 = clerp(RW.C0, cf(1, 0.3, -0.5) * euler(0, 1, 0) * euler(0.5, 0, 0) * euler(0, 0, 0), 0.5)
  1359. LW.C0 = clerp(LW.C0, cf(-1, 0.4, -0.5) * euler(0, 1, 0) * euler(0, 0, 0.4) * euler(0, 0, 0.3), 0.5)
  1360. RH.C0 = clerp(RH.C0, cf(0.5, -0.8, -0.8) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(0, 0, -0.6), 0.5)
  1361. LH.C0 = clerp(LH.C0, cf(-1, 0, -0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, -0.4), 0.5)
  1362. if Stagger.Value ~= true then
  1363. do
  1364. if StunT.Value <= Stun.Value then
  1365. break
  1366. end
  1367. -- DECOMPILER ERROR at PC1637: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1368.  
  1369. -- DECOMPILER ERROR at PC1637: LeaveBlock: unexpected jumping out IF_STMT
  1370.  
  1371. end
  1372. end
  1373. end
  1374. hitbox.Parent = nil
  1375. dec.Parent = nil
  1376. end
  1377. do
  1378. attack = false
  1379. end
  1380. end
  1381. attackfour = function()
  1382. attack = true
  1383. if mode == "Sheathed" then
  1384. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3.4, 0, -0.4) * euler(0, 0, 0), 0.3)
  1385. for i = 0, 1, 0.4 do
  1386. swait()
  1387. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -0.9) * cf(3.2, -3, -0.6), 0.6)
  1388. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.6)
  1389. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(-0.3, 0, 0), 0.6)
  1390. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0), 0.6)
  1391. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4, 0, 0.4) * euler(0, -1, 0), 0.6)
  1392. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3.6, 0, -0.4) * euler(0, 1.57, 0), 0.6)
  1393. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.6)
  1394. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.6)
  1395. if Stagger.Value ~= true then
  1396. do
  1397. if StunT.Value <= Stun.Value then
  1398. break
  1399. end
  1400. -- DECOMPILER ERROR at PC218: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1401.  
  1402. -- DECOMPILER ERROR at PC218: LeaveBlock: unexpected jumping out IF_STMT
  1403.  
  1404. end
  1405. end
  1406. end
  1407. for i = 0, 1, 0.4 do
  1408. swait()
  1409. handlewld.C0 = clerp(handlewld.C0, euler(1.2, 0, -0.8) * cf(1.9, -2.1, 1.6), 0.6)
  1410. wld1.C0 = clerp(wld1.C0, euler(0, 0.4, 0) * cf(0, 0, 0), 0.6)
  1411. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(-0.4, 0, 0), 0.6)
  1412. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.8), 0.6)
  1413. RW.C0 = clerp(RW.C0, cf(-0.8, 0.7, -0.5) * euler(3, 0, -0.8) * euler(0, 0, 0), 0.6)
  1414. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.8, 0, -0.2) * euler(0, 0, 0), 0.6)
  1415. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.6)
  1416. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.6)
  1417. if Stagger.Value ~= true then
  1418. do
  1419. if StunT.Value <= Stun.Value then
  1420. break
  1421. end
  1422. -- DECOMPILER ERROR at PC408: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1423.  
  1424. -- DECOMPILER ERROR at PC408: LeaveBlock: unexpected jumping out IF_STMT
  1425.  
  1426. end
  1427. end
  1428. end
  1429. so("203691447", prt20, 1, 0.8)
  1430. hitbox.Parent = modelzorz
  1431. hitbox.Anchored = true
  1432. hitbox.Size = vt(1, 1, 1)
  1433. hitbox.CFrame = prt20.CFrame * cf(0, 1, 0)
  1434. mode = "Unsheathed"
  1435. handlewld.Part1 = RightArm
  1436. handlewld.C0 = euler(0, 0, 0) * cf(0, 1, 0)
  1437. wld1.C0 = cf(0, -0.8, 0) * euler(0, 0.6, 0) * euler(-2.3, 0, 0) * euler(0, 0, 0)
  1438. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0.2) * euler(0, 0, 0.8) * euler(0, 0.6, 0), 0.4)
  1439. for i = 0, 1.4, 0.1 do
  1440. swait()
  1441. hitbox.CFrame = prt20.CFrame * cf(0, 1, 0)
  1442. MagniDamage(hitbox, 3, 8, 10, math.random(5, 15), "Normal", RootPart, 0.5, 1, 10, nil, true)
  1443. hitbox.CFrame = prt20.CFrame * cf(0, -1, 0)
  1444. MagniDamage(hitbox, 4, 8, 10, math.random(5, 15), "Normal", RootPart, 0.5, 1, 10, nil, true)
  1445. if i <= 0.3 then
  1446. wld1.C0 = clerp(wld1.C0, cf(0, 0.2, 0) * euler(0, 2, 0) * euler(-1.2, 0, 0), 0.3)
  1447. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0.2) * euler(0.4, 0, 0) * euler(0, 0.8, 0), 0.4)
  1448. LW.C0 = clerp(LW.C0, cf(0.5, 0.4, -0.5) * euler(0.4, 0, 0.4) * euler(0, 1, 0), 0.4)
  1449. else
  1450. wld1.C0 = clerp(wld1.C0, cf(0, -0.4, 0) * euler(0, 1, 0) * euler(-0.4, 0, 0), 0.3)
  1451. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0.2) * euler(-0.6, 0, 1) * euler(0, -1.2, 0), 0.2)
  1452. LW.C0 = clerp(LW.C0, cf(0.5, 0.4, -0.6) * euler(0.4, 0, 1) * euler(0, 1, 0), 0.4)
  1453. end
  1454. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.2, 0, 0), 0.25)
  1455. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  1456. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.4) * euler(0.2, 0, 0), 0.4)
  1457. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0) * euler(0, 0, -0.2), 0.4)
  1458. LH.C0 = clerp(LH.C0, cf(-1.3, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(0, 0, -0.2), 0.4)
  1459. if Stagger.Value ~= true then
  1460. do
  1461. if StunT.Value <= Stun.Value then
  1462. break
  1463. end
  1464. -- DECOMPILER ERROR at PC848: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1465.  
  1466. -- DECOMPILER ERROR at PC848: LeaveBlock: unexpected jumping out IF_STMT
  1467.  
  1468. end
  1469. end
  1470. end
  1471. hitbox.Parent = nil
  1472. else
  1473. for i = 0, 1, 0.08 do
  1474. swait()
  1475. handlewld.Part1 = RightArm
  1476. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.25)
  1477. wld1.C0 = clerp(wld1.C0, cf(0, -0.8, 0) * euler(0, 1.57, 0) * euler(-1.4, 0, 0), 0.25)
  1478. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(-0.2, 0, 0), 0.25)
  1479. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.4, -0.6) * euler(0.4, 0, 0) * euler(0, 0, -1), 0.25)
  1480. RW.C0 = clerp(RW.C0, cf(1, 0.3, -0.5) * euler(0, 3.8, 0) * euler(-0.5, 0, 0) * euler(0, 0, -0.8), 0.25)
  1481. LW.C0 = clerp(LW.C0, cf(0.2, 0.6, -0.8) * euler(0, -1, 0) * euler(1.2, 0, 0) * euler(0, 0, -0.6), 0.25)
  1482. RH.C0 = clerp(RH.C0, cf(0.5, -0.8, -0.8) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(0, 0, -0.6), 0.25)
  1483. LH.C0 = clerp(LH.C0, cf(-1, 0, -0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, -0.4), 0.25)
  1484. if Stagger.Value ~= true then
  1485. do
  1486. if StunT.Value <= Stun.Value then
  1487. break
  1488. end
  1489. -- DECOMPILER ERROR at PC1080: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1490.  
  1491. -- DECOMPILER ERROR at PC1080: LeaveBlock: unexpected jumping out IF_STMT
  1492.  
  1493. end
  1494. end
  1495. end
  1496. so("320557382", prt20, 1, 0.75)
  1497. hitbox.Parent = modelzorz
  1498. hitbox.Anchored = true
  1499. hitbox.Size = vt(1, 1, 1)
  1500. hitbox.CFrame = prt20.CFrame * cf(0, 1, 0)
  1501. for i = 0, 1, 0.08 do
  1502. swait()
  1503. if i <= 0.6 then
  1504. hitbox.CFrame = prt20.CFrame * cf(0, 1, 0)
  1505. MagniDamage(hitbox, 3, 7, 9, math.random(5, 15), "Normal", RootPart, 0.5, 1, (math.random(6, 8)), nil, true)
  1506. hitbox.CFrame = prt20.CFrame * cf(0, -1, 0)
  1507. MagniDamage(hitbox, 4, 7, 9, math.random(5, 15), "Normal", RootPart, 0.5, 1, (math.random(6, 8)), nil, true)
  1508. end
  1509. if i <= 0.2 then
  1510. wld1.C0 = clerp(wld1.C0, cf(0, -0.8, 0) * euler(0, 1.57, 0) * euler(-1.4, 0, 0), 0.25)
  1511. LW.C0 = clerp(LW.C0, cf(-1, 0.4, -0.3) * euler(2, 0, 0.6) * euler(0, -1.57, 0), 0.25)
  1512. LH.C0 = clerp(LH.C0, cf(-1, 0, -0.8) * euler(0, -1.57, 0) * euler(0, -1, 0) * euler(0, 0, 0), 0.25)
  1513. else
  1514. wld1.C0 = clerp(wld1.C0, cf(0, 0.8, 0) * euler(0, 1.57, 0) * euler(1.4, 0, 0), 0.25)
  1515. LW.C0 = clerp(LW.C0, cf(-1, 0.4, -0.3) * euler(2, 0, 0.1) * euler(0, -1.57, 0), 0.25)
  1516. LH.C0 = clerp(LH.C0, cf(-0.8, -0.4, -0.8) * euler(0, -1.57, 0) * euler(0, -1, 0) * euler(0, 0, 0.8), 0.25)
  1517. end
  1518. handlewld.Part1 = RightArm
  1519. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.25)
  1520. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.4, 0, 0), 0.25)
  1521. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.6) * euler(-0.4, 0, 0) * euler(0, 0, 1), 0.25)
  1522. RW.C0 = clerp(RW.C0, cf(1, 0.3, -0.5) * euler(3, 0, 0) * euler(0, -2, 0) * euler(0, 0, 1), 0.25)
  1523. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(0, -1, 0) * euler(0, 0, -0.4), 0.25)
  1524. if Stagger.Value ~= true then
  1525. do
  1526. if StunT.Value <= Stun.Value then
  1527. break
  1528. end
  1529. -- DECOMPILER ERROR at PC1478: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1530.  
  1531. -- DECOMPILER ERROR at PC1478: LeaveBlock: unexpected jumping out IF_STMT
  1532.  
  1533. end
  1534. end
  1535. end
  1536. hitbox.Parent = nil
  1537. for i = 0, 1, 0.2 do
  1538. swait()
  1539. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  1540. wld1.C0 = clerp(wld1.C0, cf(0, -0.8, 0) * euler(0, 0.6, 0) * euler(-2.3, 0, 0) * euler(0, 0, 0), 0.3)
  1541. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(-0.4, 0, 0), 0.3)
  1542. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.8), 0.3)
  1543. RW.C0 = clerp(RW.C0, cf(-0.8, 0.7, -0.5) * euler(3, 0, -0.8) * euler(0, 0, 0), 0.3)
  1544. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.8, 0, -0.2) * euler(0, 0, 0), 0.3)
  1545. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.3)
  1546. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.3)
  1547. if Stagger.Value ~= true then
  1548. do
  1549. if StunT.Value <= Stun.Value then
  1550. break
  1551. end
  1552. -- DECOMPILER ERROR at PC1682: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1553.  
  1554. -- DECOMPILER ERROR at PC1682: LeaveBlock: unexpected jumping out IF_STMT
  1555.  
  1556. end
  1557. end
  1558. end
  1559. mode = "Sheathed"
  1560. handlewld.Part1 = Torso
  1561. handlewld.C0 = euler(1.2, 0, -0.8) * cf(1.9, -2.1, 1.6)
  1562. wld1.C0 = euler(0, 0.4, 0) * cf(0, 0, 0)
  1563. for i = 0, 1, 0.2 do
  1564. swait()
  1565. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -0.9) * cf(3.2, -3, -0.6), 0.3)
  1566. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  1567. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(-0.3, 0, 0), 0.3)
  1568. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0), 0.3)
  1569. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4, 0, 0.4) * euler(0, -1, 0), 0.3)
  1570. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3.6, 0, -0.4) * euler(0, 1.57, 0), 0.3)
  1571. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.3)
  1572. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.3)
  1573. if Stagger.Value ~= true then
  1574. do
  1575. if StunT.Value <= Stun.Value then
  1576. break
  1577. end
  1578. -- DECOMPILER ERROR at PC1903: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1579.  
  1580. -- DECOMPILER ERROR at PC1903: LeaveBlock: unexpected jumping out IF_STMT
  1581.  
  1582. end
  1583. end
  1584. end
  1585. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -0.4) * euler(0, 1.57, 0), 0.4)
  1586. handlewld.C0 = euler(0, 0, -0.9) * cf(3.2, -3, -0.6)
  1587. wld1.C0 = euler(0, 0, 0) * cf(0, 0, 0)
  1588. end
  1589. attack = false
  1590. end
  1591. Equip = function()
  1592. attack = true
  1593. if mode == "Sheathed" then
  1594. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3.4, 0, -0.4) * euler(0, 0, 0), 0.3)
  1595. for i = 0, 1, 0.2 do
  1596. swait()
  1597. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -0.9) * cf(3.2, -3, -0.6), 0.3)
  1598. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  1599. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(-0.3, 0, 0), 0.4)
  1600. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0), 0.4)
  1601. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4, 0, 0.4) * euler(0, -1, 0), 0.4)
  1602. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3.6, 0, -0.4) * euler(0, 1.57, 0), 0.4)
  1603. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.4)
  1604. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.4)
  1605. if Stagger.Value ~= true then
  1606. do
  1607. if StunT.Value <= Stun.Value then
  1608. break
  1609. end
  1610. -- DECOMPILER ERROR at PC218: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1611.  
  1612. -- DECOMPILER ERROR at PC218: LeaveBlock: unexpected jumping out IF_STMT
  1613.  
  1614. end
  1615. end
  1616. end
  1617. for i = 0, 1, 0.2 do
  1618. swait()
  1619. handlewld.C0 = clerp(handlewld.C0, euler(1.2, 0, -0.8) * cf(1.9, -2.1, 1.6), 0.3)
  1620. wld1.C0 = clerp(wld1.C0, euler(0, 0.4, 0) * cf(0, 0, 0), 0.3)
  1621. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(-0.4, 0, 0), 0.4)
  1622. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.8), 0.4)
  1623. RW.C0 = clerp(RW.C0, cf(-0.8, 0.7, -0.5) * euler(3, 0, -0.8) * euler(0, 0, 0), 0.4)
  1624. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.8, 0, -0.2) * euler(0, 0, 0), 0.4)
  1625. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.4)
  1626. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.4)
  1627. if Stagger.Value ~= true then
  1628. do
  1629. if StunT.Value <= Stun.Value then
  1630. break
  1631. end
  1632. -- DECOMPILER ERROR at PC408: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1633.  
  1634. -- DECOMPILER ERROR at PC408: LeaveBlock: unexpected jumping out IF_STMT
  1635.  
  1636. end
  1637. end
  1638. end
  1639. so("203691447", prt20, 1, 0.8)
  1640. hitbox.Parent = modelzorz
  1641. hitbox.Anchored = true
  1642. hitbox.Size = vt(1, 1, 1)
  1643. hitbox.CFrame = prt20.CFrame * cf(0, 1, 0)
  1644. mode = "Unsheathed"
  1645. handlewld.Part1 = RightArm
  1646. handlewld.C0 = euler(0, 0, 0) * cf(0, 1, 0)
  1647. wld1.C0 = cf(0, -0.8, 0) * euler(0, 0.6, 0) * euler(-2.3, 0, 0) * euler(0, 0, 0)
  1648. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0.2) * euler(0, 0, 0.8) * euler(0, 0.6, 0), 0.4)
  1649. for i = 0, 1.4, 0.1 do
  1650. swait()
  1651. hitbox.CFrame = prt20.CFrame * cf(0, 1, 0)
  1652. MagniDamage(hitbox, 3, 7, 9, math.random(5, 15), "Normal", RootPart, 0.5, 1, (math.random(6, 8)), nil, true)
  1653. hitbox.CFrame = prt20.CFrame * cf(0, -1, 0)
  1654. MagniDamage(hitbox, 4, 7, 9, math.random(5, 15), "Normal", RootPart, 0.5, 1, (math.random(6, 8)), nil, true)
  1655. if i <= 0.3 then
  1656. wld1.C0 = clerp(wld1.C0, cf(0, 0.2, 0) * euler(0, 2, 0) * euler(-1.2, 0, 0), 0.3)
  1657. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0.2) * euler(0.4, 0, 0) * euler(0, 0.8, 0), 0.4)
  1658. LW.C0 = clerp(LW.C0, cf(0.5, 0.4, -0.5) * euler(0.4, 0, 0.4) * euler(0, 1, 0), 0.4)
  1659. else
  1660. wld1.C0 = clerp(wld1.C0, cf(0, -0.4, 0) * euler(0, 1, 0) * euler(-0.4, 0, 0), 0.3)
  1661. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0.2) * euler(-0.6, 0, 1) * euler(0, -1.2, 0), 0.2)
  1662. LW.C0 = clerp(LW.C0, cf(0.5, 0.4, -0.6) * euler(0.4, 0, 1) * euler(0, 1, 0), 0.4)
  1663. end
  1664. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.2, 0, 0), 0.25)
  1665. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  1666. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.4) * euler(0.2, 0, 0), 0.4)
  1667. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0) * euler(0, 0, -0.2), 0.4)
  1668. LH.C0 = clerp(LH.C0, cf(-1.3, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(0, 0, -0.2), 0.4)
  1669. if Stagger.Value ~= true then
  1670. do
  1671. if StunT.Value <= Stun.Value then
  1672. break
  1673. end
  1674. -- DECOMPILER ERROR at PC856: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1675.  
  1676. -- DECOMPILER ERROR at PC856: LeaveBlock: unexpected jumping out IF_STMT
  1677.  
  1678. end
  1679. end
  1680. end
  1681. hitbox.Parent = nil
  1682. else
  1683. if mode == "Unsheathed" then
  1684. for i = 0, 1, 0.2 do
  1685. swait()
  1686. handlewld.Part1 = RightArm
  1687. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
  1688. wld1.C0 = clerp(wld1.C0, cf(0, -0.8, 0) * euler(0, 1.57, 0) * euler(-1.9, 0, 0), 0.4)
  1689. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(0.1, 0, 0), 0.4)
  1690. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0.2, 0, 0) * euler(0, 0, -0.6), 0.4)
  1691. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.2) * euler(1.2, 0, 0.2) * euler(0, -2.6, 0), 0.4)
  1692. LW.C0 = clerp(LW.C0, cf(0.1, 0.4, -0.5) * euler(1, 0, 0.6) * euler(0, -2, 0), 0.4)
  1693. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.3) * euler(0, 1.57, 0) * euler(-0.2, 0.6, 0) * euler(0, 0, 0.2), 0.4)
  1694. LH.C0 = clerp(LH.C0, cf(-1.3, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0.6, 0) * euler(0, 0, -0.2), 0.4)
  1695. if Stagger.Value ~= true then
  1696. do
  1697. if StunT.Value <= Stun.Value then
  1698. break
  1699. end
  1700. -- DECOMPILER ERROR at PC1079: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1701.  
  1702. -- DECOMPILER ERROR at PC1079: LeaveBlock: unexpected jumping out IF_STMT
  1703.  
  1704. end
  1705. end
  1706. end
  1707. so("320557518", prt20, 0.8, 0.9)
  1708. RW.C0 = clerp(RW.C0, cf(-0.8, 0.7, -0.5) * euler(1.5, 0, -0.8) * euler(0, 0, 0), 0.4)
  1709. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -0.2) * euler(0, 0, 0), 0.4)
  1710. for i = 0, 1, 0.3 do
  1711. swait()
  1712. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
  1713. wld1.C0 = clerp(wld1.C0, cf(0, -0.8, 0) * euler(0, 0.6, 0) * euler(-2.3, 0, 0) * euler(0, 0, 0), 0.4)
  1714. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(-0.4, 0, 0), 0.4)
  1715. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.8), 0.4)
  1716. RW.C0 = clerp(RW.C0, cf(-0.8, 0.7, -0.5) * euler(3, 0, -0.8) * euler(0, 0, 0), 0.4)
  1717. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.8, 0, -0.2) * euler(0, 0, 0), 0.4)
  1718. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.4)
  1719. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.4)
  1720. if Stagger.Value ~= true then
  1721. do
  1722. if StunT.Value <= Stun.Value then
  1723. break
  1724. end
  1725. -- DECOMPILER ERROR at PC1335: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1726.  
  1727. -- DECOMPILER ERROR at PC1335: LeaveBlock: unexpected jumping out IF_STMT
  1728.  
  1729. end
  1730. end
  1731. end
  1732. mode = "Sheathed"
  1733. handlewld.Part1 = Torso
  1734. handlewld.C0 = euler(1.2, 0, -0.8) * cf(1.9, -2.1, 1.6)
  1735. wld1.C0 = euler(0, 0.4, 0) * cf(0, 0, 0)
  1736. for i = 0, 1, 0.1 do
  1737. swait()
  1738. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -0.9) * cf(3.2, -3, -0.6), 0.3)
  1739. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  1740. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(-0.3, 0, 0), 0.4)
  1741. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0), 0.4)
  1742. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4, 0, 0.4) * euler(0, -1, 0), 0.4)
  1743. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3.6, 0, -0.4) * euler(0, 1.57, 0), 0.4)
  1744. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.4)
  1745. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.4)
  1746. if Stagger.Value ~= true then
  1747. do
  1748. if StunT.Value <= Stun.Value then
  1749. break
  1750. end
  1751. -- DECOMPILER ERROR at PC1556: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1752.  
  1753. -- DECOMPILER ERROR at PC1556: LeaveBlock: unexpected jumping out IF_STMT
  1754.  
  1755. end
  1756. end
  1757. end
  1758. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -0.4) * euler(0, 1.57, 0), 0.4)
  1759. end
  1760. end
  1761. attack = false
  1762. end
  1763. do1 = function()
  1764. if holdz == true then
  1765. holdz = false
  1766. end
  1767. if attack == true then
  1768. return
  1769. end
  1770. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1771. return
  1772. end
  1773. if cooldownmax <= cooldowns[1] and mana.Value >= 20 then
  1774. holdz = true
  1775. if mode == "Sheathed" then
  1776. Equip()
  1777. end
  1778. attack = true
  1779. mana.Value = mana.Value - 20
  1780. local dec2 = Instance.new("NumberValue", Decrease)
  1781. dec2.Name = "DecreaseMvmt"
  1782. dec2.Value = 0.2
  1783. game:GetService("Debris"):AddItem(dec2, 10)
  1784. cooldowns[1] = 0
  1785. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.5, 0, 0) * euler(0, 0, 0.5), 0.3)
  1786. LW.C0 = clerp(LW.C0, cf(-1.4, 0.4, -0.1) * euler(1.5, 0, -0.5) * euler(0, 0, 0), 0.3)
  1787. for i = 0, 1, 0.1 do
  1788. swait()
  1789. handlewld.Part1 = RightArm
  1790. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.15)
  1791. wld1.C0 = clerp(wld1.C0, cf(0, -0.6, 0) * euler(0, 1.57, 0) * euler(-2, 0, 0), 0.15)
  1792. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.4, 0, 0), 0.15)
  1793. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(-0.1, 0, 0) * euler(0, 0, -1), 0.15)
  1794. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.1) * euler(2.8, 0, 0) * euler(0, 0, 0.2) * euler(0, -0.6, 0), 0.15)
  1795. LW.C0 = clerp(LW.C0, cf(0.5, 0.8, -0.8) * euler(3, 0, 0) * euler(0, 0, 0.6) * euler(0, 0, 0), 0.15)
  1796. RH.C0 = clerp(RH.C0, cf(0.7, -0.8, -0.4) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(0, 0, -0.2), 0.15)
  1797. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(-0.2, 0, 0.1), 0.15)
  1798. if Stagger.Value ~= true then
  1799. do
  1800. if StunT.Value <= Stun.Value then
  1801. break
  1802. end
  1803. -- DECOMPILER ERROR at PC340: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1804.  
  1805. -- DECOMPILER ERROR at PC340: LeaveBlock: unexpected jumping out IF_STMT
  1806.  
  1807. end
  1808. end
  1809. end
  1810. local charge = 0
  1811. local dam = 1
  1812. while 1 do
  1813. if holdz == true then
  1814. swait()
  1815. charge = charge + 1
  1816. if charge == 10 then
  1817. print("CHARGE 1")
  1818. dam = 1.2
  1819. parti.Enabled = true
  1820. RingGui(Torso, BrickColor.new(EffectCol), 8)
  1821. end
  1822. if charge == 30 then
  1823. print("CHARGE 2")
  1824. dam = 1.4
  1825. parti2.Enabled = true
  1826. RingGui(Torso, BrickColor.new(EffectCol), 10)
  1827. end
  1828. if charge == 50 then
  1829. print("CHARGE 3")
  1830. dam = 1.8
  1831. RingGui(Torso, BrickColor.new(EffectCol), 6)
  1832. for i = 1, 3 do
  1833. MagicCircle(BrickColor.new(EffectCol), cf(Torso.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 5, 20, 5, -0.05, 20, -0.05, 0.1)
  1834. end
  1835. holdz = false
  1836. end
  1837. handlewld.Part1 = RightArm
  1838. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.15)
  1839. wld1.C0 = clerp(wld1.C0, cf(0, -0.6, 0) * euler(0, 1.57, 0) * euler(-1.7, 0, 0), 0.15)
  1840. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.4, 0, 0), 0.15)
  1841. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(-0.1, 0, 0) * euler(0, 0, -1), 0.15)
  1842. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.1) * euler(3.2, 0, 0) * euler(0, 0, 0.2) * euler(0, -0.2, 0), 0.15)
  1843. LW.C0 = clerp(LW.C0, cf(0.6, 0.9, -0.8) * euler(2.9, 0, 0) * euler(0, 0, 0.6) * euler(0, -0.4, 0), 0.15)
  1844. RH.C0 = clerp(RH.C0, cf(0.7, -0.8, -0.4) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(0, 0, -0.2), 0.15)
  1845. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(-0.2, 0, 0.1), 0.15)
  1846. end
  1847. if Stagger.Value ~= true and StunT.Value <= Stun.Value then
  1848. break
  1849. end
  1850. end
  1851. parti.Enabled = false
  1852. parti2.Enabled = false
  1853. for i = 0, 1, 0.15 do
  1854. swait()
  1855. handlewld.Part1 = RightArm
  1856. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.15)
  1857. wld1.C0 = clerp(wld1.C0, cf(0, -0.6, 0) * euler(0, 1.57, 0) * euler(-2, 0, 0), 0.15)
  1858. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.4, 0, 0), 0.15)
  1859. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, -0.3) * euler(-0.3, 0, 0) * euler(0, 0, -1), 0.15)
  1860. RW.C0 = clerp(RW.C0, cf(1, 0.6, -0.5) * euler(0, 1, 0) * euler(0.5, 0, 0) * euler(1.5, 0, 0), 0.15)
  1861. LW.C0 = clerp(LW.C0, cf(-0.5, -0.1, -0.5) * euler(0, 1, 0) * euler(0, 0, -0.4) * euler(0, 0, -0.3) * euler(2.6, 0, 0), 0.15)
  1862. RH.C0 = clerp(RH.C0, cf(0.7, -0.8, -0.2) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(0, 0, -0.4), 0.15)
  1863. LH.C0 = clerp(LH.C0, cf(-1, -0.2, -0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, -0.4), 0.15)
  1864. if Stagger.Value ~= true then
  1865. do
  1866. if StunT.Value <= Stun.Value then
  1867. break
  1868. end
  1869. -- DECOMPILER ERROR at PC898: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1870.  
  1871. -- DECOMPILER ERROR at PC898: LeaveBlock: unexpected jumping out IF_STMT
  1872.  
  1873. end
  1874. end
  1875. end
  1876. local dec = Instance.new("NumberValue", Decrease)
  1877. dec.Name = "DecreaseMvmt"
  1878. dec.Value = 10
  1879. game:GetService("Debris"):AddItem(dec, 10)
  1880. so("320557353", prt20, 1, 0.8)
  1881. hitbox.Parent = modelzorz
  1882. hitbox.Anchored = true
  1883. hitbox.Size = vt(1, 1, 1)
  1884. hitbox.CFrame = prt20.CFrame * cf(0, 1, 0)
  1885. dohit = 0
  1886. for i = 0, 1.5, 0.05 do
  1887. swait()
  1888. dohit = dohit + 1
  1889. if dohit == 6 then
  1890. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1891. ref.Anchored = true
  1892. ref.CFrame = prt20.CFrame * cf(0, -1.5, 0)
  1893. game:GetService("Debris"):AddItem(ref, 1)
  1894. hitfloor2 = rayCast(ref.Position, CFrame.new(ref.Position, ref.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  1895. if hitfloor2 ~= nil then
  1896. ref.CFrame = cf(posfloor2)
  1897. MagicWave(hitfloor2.BrickColor, cf(posfloor2), 1, 1, 1, 1, 1, 1, 0.05)
  1898. MagicRing(hitfloor2.BrickColor, cf(posfloor2) * euler(1.57, 0, 0), 1, 1, 1, 1, 1, 1, 0.03)
  1899. MagniDamage(ref, 15, 10 * dam, 12 * dam, math.random(40, 45), "Knockdown2", ref, 0.5, 1, (math.random(10, 12)), nil, true)
  1900. for i = 1, 10 do
  1901. cf2 = cf(posfloor2) * cf(math.random(-1000, 1000) / 100, 1, math.random(-1000, 1000) / 100)
  1902. ref.CFrame = cf2
  1903. ghitfloor = rayCast(ref.Position, CFrame.new(ref.Position, ref.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  1904. if ghitfloor ~= nil then
  1905. Col = ghitfloor.BrickColor
  1906. 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))
  1907. groundpart.Anchored = true
  1908. groundpart.Material = ghitfloor.Material
  1909. groundpart.CanCollide = true
  1910. groundpart.CFrame = cf(gposfloor) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1911. game:GetService("Debris"):AddItem(groundpart, 5)
  1912. end
  1913. end
  1914. ref.CFrame = cf(posfloor2)
  1915. so("157878578", ref, 0.8, 0.8)
  1916. end
  1917. end
  1918. handlewld.Part1 = RightArm
  1919. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.5)
  1920. wld1.C0 = clerp(wld1.C0, cf(0, 0.6, 0) * euler(0, 1.57, 0) * euler(-1.3, 0, 0), 0.5)
  1921. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(-0.2, 0, 0), 0.5)
  1922. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -2.1, -0.6) * euler(0.4, 0, 0) * euler(0, 0, -1), 0.5)
  1923. RW.C0 = clerp(RW.C0, cf(1, 0.3, -0.5) * euler(0, 1, 0) * euler(0.5, 0, 0) * euler(0, 0, 0), 0.5)
  1924. LW.C0 = clerp(LW.C0, cf(-1, 0.4, -0.5) * euler(0, 1, 0) * euler(0, 0, 0.4) * euler(0, 0, 0.3), 0.5)
  1925. RH.C0 = clerp(RH.C0, cf(0.5, -0.8, -0.8) * euler(0, 1.57, 0) * euler(0, 1, 0) * euler(0, 0, -0.6), 0.5)
  1926. LH.C0 = clerp(LH.C0, cf(-1, 0, -0.2) * euler(0, -1.57, 0) * euler(0, 1, 0) * euler(0, 0, -0.4), 0.5)
  1927. if Stagger.Value ~= true then
  1928. do
  1929. if StunT.Value <= Stun.Value then
  1930. break
  1931. end
  1932. -- DECOMPILER ERROR at PC1430: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1933.  
  1934. -- DECOMPILER ERROR at PC1430: LeaveBlock: unexpected jumping out IF_STMT
  1935.  
  1936. end
  1937. end
  1938. end
  1939. hitbox.Parent = nil
  1940. dec2.Parent = nil
  1941. dec.Parent = nil
  1942. attack = false
  1943. end
  1944. end
  1945. do2 = function()
  1946. if attack == true then
  1947. return
  1948. end
  1949. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1950. return
  1951. end
  1952. if cooldownmax <= cooldowns[2] and mana.Value >= 10 and do2target ~= nil then
  1953. if mode == "Unsheathed" then
  1954. Equip()
  1955. end
  1956. attack = true
  1957. cooldowns[2] = 0
  1958. mana.Value = mana.Value - 10
  1959. if do2mode == "Chase" then
  1960. doing2 = true
  1961. local x, y, z, newpos = nil, nil, nil, nil
  1962. for i = 0, 1, 0.2 do
  1963. swait()
  1964. if do2target ~= nil then
  1965. newpos = vt(do2target.Position.X, RootPart.Position.Y, do2target.Position.Z)
  1966. MoveCF = cf(RootPart.Position, newpos)
  1967. local mpos = Torso.CFrame * euler(0, 0, 0)
  1968. local cff = CFrame.new(mpos.p, newpos) * CFrame.Angles(math.pi / 2, 0, 0)
  1969. x = RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1970. RootJoint.C0 = clerp(RootJoint.C0, CFrame.Angles(x, y, z) * euler(0, 3.14, 0) * cf(0, 0, -1.5) * euler(1, 0, 0), 0.4)
  1971. end
  1972. do
  1973. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.4, 0, 0), 0.4)
  1974. RW.C0 = clerp(RW.C0, cf(1.2, 0.5, 0) * euler(1, 0, 0.1) * euler(0, 0, 0) * cf(0, -0.3, 0), 0.4)
  1975. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.4) * euler(0, 0, 0), 0.4)
  1976. RH.C0 = clerp(RH.C0, cf(1.1, -0.6, -1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.2, 0, -0.6) * cf(0, 0.5, 0), 0.4)
  1977. LH.C0 = clerp(LH.C0, cf(-0.8, 1, -0.4) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, -0.8), 0.4)
  1978. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1979. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1980. if Stagger.Value ~= true then
  1981. do
  1982. if StunT.Value <= Stun.Value then
  1983. break
  1984. end
  1985. -- DECOMPILER ERROR at PC328: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1986.  
  1987. -- DECOMPILER ERROR at PC328: LeaveBlock: unexpected jumping out IF_STMT
  1988.  
  1989. -- DECOMPILER ERROR at PC328: LeaveBlock: unexpected jumping out DO_STMT
  1990.  
  1991. end
  1992. end
  1993. end
  1994. end
  1995. so("2767090", Torso, 0.8, 1)
  1996. MagicWave(BrickColor.new(NewCol), Torso.CFrame * euler(2, 0, 0), 1, 1, 1, 0.5, 0.5, 0.5, 0.1)
  1997. for i = 0, 1, 0.2 do
  1998. swait()
  1999. if do2target ~= nil then
  2000. RootJoint.C0 = clerp(RootJoint.C0, CFrame.Angles(x, y, z) * euler(0, 3.14, 0) * cf(0, 0, -0.5) * euler(1.3, 0, 0), 0.4)
  2001. end
  2002. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.6, 0, 0), 0.4)
  2003. RW.C0 = clerp(RW.C0, cf(1.2, 0.5, 0) * euler(-0.2, 0, 0.4) * euler(0, 0, 0), 0.4)
  2004. LW.C0 = clerp(LW.C0, cf(-1, 0.8, -0.5) * euler(2, 0, 1.3) * euler(0, 0, 0), 0.4)
  2005. RH.C0 = clerp(RH.C0, cf(0.9, 0.2, -0.4) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.1, 0, 0.4), 0.4)
  2006. LH.C0 = clerp(LH.C0, cf(-0.9, -0.8, -0.4) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.2, 0, 0.3), 0.4)
  2007. RH.C1 = clerp(RH.C1, RHC1, 0.6)
  2008. LH.C1 = clerp(LH.C1, LHC1, 0.6)
  2009. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.6)
  2010. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.6)
  2011. if Rooted.Value == false then
  2012. Torso.Velocity = MoveCF.lookVector * 150
  2013. end
  2014. -- DECOMPILER ERROR at PC596: Unhandled construct in 'MakeBoolean' P1
  2015.  
  2016. if distance <= 10 and Rooted.Value == false then
  2017. Torso.Velocity = MoveCF.lookVector * 70
  2018. end
  2019. do break end
  2020. end
  2021. do
  2022. if do2target ~= nil then
  2023. RootPart.CFrame = cf(RootPart.Position, newpos)
  2024. RootJoint.C0 = RootCF * cf(0, 0, -0.5) * euler(1.3, 0, 0)
  2025. end
  2026. so("169445073", LeftLeg, 1, 1)
  2027. RecentEnemy.Value = nil
  2028. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(1.3, 0, 0) * euler(0, 3, 0) * cf(0, 0, -2), 0.4)
  2029. for i = 0, 1, 0.3 do
  2030. swait()
  2031. MagniDamage(LeftLeg, 4, 6, 8, math.random(20, 25), "Normal", RootPart, 0.3, 2, (math.random(6, 8)), nil, true)
  2032. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(1.3, 0, 0) * euler(0, 3.5, 0) * cf(0, 0, -2), 0.3)
  2033. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.6, 0, 0), 0.4)
  2034. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.8) * euler(0, 0, 0), 0.4)
  2035. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.8) * euler(0, 0, 0), 0.4)
  2036. RH.C0 = clerp(RH.C0, cf(0.9, 0.2, -0.4) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.1, 0, 0.4), 0.4)
  2037. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.2, 0, 0.1), 0.4)
  2038. RH.C1 = clerp(RH.C1, RHC1, 0.6)
  2039. LH.C1 = clerp(LH.C1, LHC1, 0.6)
  2040. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.6)
  2041. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.6)
  2042. if Stagger.Value ~= true then
  2043. do
  2044. if StunT.Value <= Stun.Value then
  2045. break
  2046. end
  2047. -- DECOMPILER ERROR at PC915: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2048.  
  2049. -- DECOMPILER ERROR at PC915: LeaveBlock: unexpected jumping out IF_STMT
  2050.  
  2051. end
  2052. end
  2053. end
  2054. if RecentEnemy.Value ~= nil then
  2055. cooldowns[2] = 70
  2056. end
  2057. do
  2058. local dec = Instance.new("NumberValue", Decrease)
  2059. dec.Name = "DecreaseMvmt"
  2060. dec.Value = 10
  2061. game:GetService("Debris"):AddItem(dec, 10)
  2062. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(1.3, 0, 0) * euler(0, 3.5, 0) * cf(0, 0, -2), 0.4)
  2063. for i = 0, 1, 0.1 do
  2064. swait()
  2065. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 2, -1.5) * euler(1, 0, 0), 0.3)
  2066. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.4, 0, 0), 0.3)
  2067. RW.C0 = clerp(RW.C0, cf(1.2, 0.5, 0) * euler(1, 0, 0.1) * euler(0, 0, 0) * cf(0, -0.3, 0), 0.3)
  2068. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.4) * euler(0, 0, 0), 0.3)
  2069. RH.C0 = clerp(RH.C0, cf(1.1, -0.6, -1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.2, 0, -0.6) * cf(0, 0.5, 0), 0.3)
  2070. LH.C0 = clerp(LH.C0, cf(-0.8, 1, -0.4) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, -0.8), 0.3)
  2071. if Stagger.Value ~= true then
  2072. do
  2073. if StunT.Value <= Stun.Value then
  2074. break
  2075. end
  2076. -- DECOMPILER ERROR at PC1146: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2077.  
  2078. -- DECOMPILER ERROR at PC1146: LeaveBlock: unexpected jumping out IF_STMT
  2079.  
  2080. end
  2081. end
  2082. end
  2083. dec.Parent = nil
  2084. doing2 = false
  2085. -- DECOMPILER ERROR at PC1152: Overwrote pending register: R1 in 'AssignReg'
  2086.  
  2087. -- DECOMPILER ERROR at PC1153: Overwrote pending register: R2 in 'AssignReg'
  2088.  
  2089. for i = 0, y, z do
  2090. swait()
  2091. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0.6) * euler(0, 0, 0), 0.4)
  2092. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, -0.1) * euler(-0.1, 0, -0.6), 0.4)
  2093. RW.C0 = clerp(RW.C0, cf(1.1, 0.5, -0.5) * euler(2, 0, -0.4) * euler(0, 0, 0), 0.4)
  2094. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.5) * euler(0.6, 0, 1) * euler(0, 0, 0), 0.4)
  2095. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.3), 0.4)
  2096. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.6, 0.1), 0.4)
  2097. if Stagger.Value ~= true then
  2098. do
  2099. if StunT.Value <= Stun.Value then
  2100. break
  2101. end
  2102. -- DECOMPILER ERROR at PC1304: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2103.  
  2104. -- DECOMPILER ERROR at PC1304: LeaveBlock: unexpected jumping out IF_STMT
  2105.  
  2106. end
  2107. end
  2108. end
  2109. dodrop = true
  2110. instastun = false
  2111. so("169445092", RightArm, 1, 0.8)
  2112. for i = 0, 1, 0.1 do
  2113. swait()
  2114. MagniDamage(RightArm, 3, 8, 10, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(8, 10)), nil, true)
  2115. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.2, 0, 0), 0.5)
  2116. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1.4, -0.1) * euler(0.1, 0, 0.6), 0.5)
  2117. if i <= 0.3 then
  2118. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.7, 0, 0.2) * euler(0, 1.4, 0), 0.5)
  2119. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.2) * euler(1, 0, -0.2) * euler(0, 0, 0), 0.5)
  2120. else
  2121. RW.C0 = clerp(RW.C0, cf(1.1, 0.5, -0.4) * euler(0.4, 0, -0.4) * euler(0, 1.4, 0), 0.3)
  2122. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.2) * euler(0.6, 0, -0.4) * euler(0, 0, 0), 0.5)
  2123. end
  2124. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, 0.4) * euler(0, 1.57, 0) * euler(-0.1, -0.6, -0.5), 0.5)
  2125. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.6, -0.1), 0.5)
  2126. if Stagger.Value ~= true then
  2127. do
  2128. if StunT.Value <= Stun.Value then
  2129. break
  2130. end
  2131. -- DECOMPILER ERROR at PC1541: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2132.  
  2133. -- DECOMPILER ERROR at PC1541: LeaveBlock: unexpected jumping out IF_STMT
  2134.  
  2135. end
  2136. end
  2137. end
  2138. if instastun == false then
  2139. cooldowns[2] = 80
  2140. end
  2141. dodrop = false
  2142. attack = false
  2143. end
  2144. end
  2145. end
  2146. end
  2147. end
  2148. do3 = function()
  2149. if guarding == true and canguardoff == true then
  2150. guarding = false
  2151. end
  2152. if attack == true then
  2153. return
  2154. end
  2155. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2156. return
  2157. end
  2158. if cooldownmax <= cooldowns[3] and mana.Value >= 10 then
  2159. if mode == "Sheathed" then
  2160. Equip()
  2161. end
  2162. attack = true
  2163. mana.Value = mana.Value - 10
  2164. guarding = true
  2165. canguardoff = false
  2166. local dec = Instance.new("NumberValue", Decrease)
  2167. dec.Name = "DecreaseMvmt"
  2168. dec.Value = 0.1
  2169. Block.Value = true
  2170. cooldowns[3] = 80
  2171. for i = 0, 1, 0.1 do
  2172. swait()
  2173. cooldowns[3] = cooldowns[3] - 0.5
  2174. handlewld.Part1 = RightArm
  2175. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  2176. wld1.C0 = clerp(wld1.C0, cf(0, -1, -0.2) * euler(0, 0, 0) * euler(-2.6, 0, 0), 0.3)
  2177. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(0.1, 0, 0), 0.3)
  2178. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0.1, 0, 0) * euler(0, 0, -0.2), 0.3)
  2179. RW.C0 = clerp(RW.C0, cf(1.3, 0.9, -0.4) * euler(2.2, 0, 0) * euler(0, 0, 0.8) * euler(0, 2.1, 0) * euler(0, 0, 0.2), 0.3)
  2180. LW.C0 = clerp(LW.C0, cf(-1.4, 0.3, 0.3) * euler(1, 0, -0.1) * euler(0, 1.57, 0), 0.3)
  2181. RH.C0 = clerp(RH.C0, cf(0.9, -0.7, -0.2) * euler(0, 1.57, 0) * euler(-0.2, 0.2, 0), 0.3)
  2182. LH.C0 = clerp(LH.C0, cf(-1.2, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0.5, 0) * euler(0, 0, -0.1), 0.3)
  2183. if Stagger.Value ~= true then
  2184. do
  2185. if StunT.Value <= Stun.Value then
  2186. break
  2187. end
  2188. -- DECOMPILER ERROR at PC290: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2189.  
  2190. -- DECOMPILER ERROR at PC290: LeaveBlock: unexpected jumping out IF_STMT
  2191.  
  2192. end
  2193. end
  2194. end
  2195. canguardoff = true
  2196. while guarding == true and cooldowns[3] >= 0 and Block.Value == true do
  2197. swait()
  2198. cooldowns[3] = cooldowns[3] - 0.5
  2199. handlewld.Part1 = RightArm
  2200. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  2201. wld1.C0 = clerp(wld1.C0, cf(0, -1, -0.2) * euler(0, 0, 0) * euler(-2.6, 0, 0), 0.3)
  2202. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(0.1, 0, 0), 0.3)
  2203. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0.1, 0, 0) * euler(0, 0, -0.2), 0.3)
  2204. RW.C0 = clerp(RW.C0, cf(1.3, 0.9, -0.4) * euler(2.2, 0, 0) * euler(0, 0, 0.8) * euler(0, 2.1, 0) * euler(0, 0, 0.2), 0.3)
  2205. LW.C0 = clerp(LW.C0, cf(-1.4, 0.3, 0.3) * euler(1, 0, -0.1) * euler(0, 1.57, 0), 0.3)
  2206. RH.C0 = clerp(RH.C0, cf(0.9, -0.7, -0.2) * euler(0, 1.57, 0) * euler(-0.2, 0.2, 0), 0.3)
  2207. LH.C0 = clerp(LH.C0, cf(-1.2, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0.5, 0) * euler(0, 0, -0.1), 0.3)
  2208. end
  2209. dec.Parent = nil
  2210. cooldowns[3] = math.floor(cooldowns[3])
  2211. if Block.Value == false then
  2212. print("blocked")
  2213. cooldowns[3] = 0
  2214. doing2 = true
  2215. DecreaseStat(Character, "Damage", -0.2, 300)
  2216. for i = 0, 1, 0.05 do
  2217. swait()
  2218. if hitfloor ~= nil then
  2219. Torso.Velocity = RootPart.CFrame.lookVector * (-50 + 50 * i)
  2220. end
  2221. handlewld.Part1 = RightArm
  2222. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2)
  2223. wld1.C0 = clerp(wld1.C0, cf(0, -0.8, 0) * euler(0, 1.57, 0) * euler(-1.4, 0, 0), 0.2)
  2224. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.2, 0, 0), 0.2)
  2225. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.2, 0, 0) * euler(0, 0, -1), 0.2)
  2226. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.2) * euler(-0.2, 0, 0.8) * euler(0, -0.2, 0), 0.2)
  2227. LW.C0 = clerp(LW.C0, cf(-1.5, 0.3, 0) * euler(0.2, 0, -0.4) * euler(0, 0, 0), 0.2)
  2228. RH.C0 = clerp(RH.C0, cf(0.9, -0.7, -1) * euler(0, 1.57, 0) * euler(-0.2, 0.4, 0) * euler(0, 0, -1), 0.2)
  2229. LH.C0 = clerp(LH.C0, cf(-1, 0.4, -0.2) * euler(0, -1.57, 0) * euler(0.2, 1, 0) * euler(0, 0, -0.1), 0.2)
  2230. if Stagger.Value ~= true then
  2231. do
  2232. if StunT.Value <= Stun.Value then
  2233. break
  2234. end
  2235. -- DECOMPILER ERROR at PC769: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2236.  
  2237. -- DECOMPILER ERROR at PC769: LeaveBlock: unexpected jumping out IF_STMT
  2238.  
  2239. end
  2240. end
  2241. end
  2242. doing2 = false
  2243. else
  2244. DecreaseStat(Character, "Damage", 0.2, 300)
  2245. end
  2246. Block.Value = false
  2247. attack = false
  2248. end
  2249. end
  2250. do4 = function()
  2251. if attack == true then
  2252. return
  2253. end
  2254. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2255. return
  2256. end
  2257. if cooldownmax <= cooldowns[4] and mana.Value >= 50 then
  2258. if mode == "Unsheathed" then
  2259. Equip()
  2260. end
  2261. attack = true
  2262. cooldowns[4] = 0
  2263. for i = 0, 1, 0.1 do
  2264. swait()
  2265. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.1, 0, 0), 0.4)
  2266. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 1), 0.4)
  2267. RW.C0 = clerp(RW.C0, cf(1, 0.5, 0.5) * euler(0.8, 0, 0.5), 0.4)
  2268. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2269. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.6, 0, 1), 0.4)
  2270. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2271. RH.C0 = clerp(RH.C0, cf(1.1, -1, 0) * euler(0, 0.87, -0.1), 0.4)
  2272. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -2.27, 0.4), 0.4)
  2273. end
  2274. doing4 = true
  2275. grabhit = false
  2276. grabTarget = nil
  2277. sref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2278. sref.Anchored = true
  2279. sref.CFrame = LeftArm.CFrame * cf(0, -3, 0)
  2280. game:GetService("Debris"):AddItem(sref, 10)
  2281. so("169445092", LeftArm, 1, 1)
  2282. RecentEnemy.Value = nil
  2283. cangrab = true
  2284. for i = 0, 1, 0.1 do
  2285. swait()
  2286. sref.CFrame = LeftArm.CFrame * cf(0, -1, 0) * euler(-1.57, 0, 0)
  2287. if grabhit == true and cangrab == true then
  2288. if grabTarget ~= nil and grabTarget:findFirstChild("Stats") ~= nil and grabTarget.Stats:findFirstChild("Ungrabbable") ~= nil and grabTarget.Stats.Ungrabbable.Value == true then
  2289. cangrab = false
  2290. end
  2291. if cangrab == true then
  2292. print("nopls")
  2293. grabTarget.Humanoid.PlatformStand = true
  2294. grabpos.position = sref.Position
  2295. grabpos.Parent = grabTarget.Torso
  2296. grabTarget.Torso.CFrame = sref.CFrame
  2297. end
  2298. end
  2299. MagniDamage(LeftArm, 3, 4, 5, math.random(10, 15), "Normal", RootPart, 0.1, 2, (math.random(4, 6)), nil, true)
  2300. Neck.C0 = clerp(Neck.C0, necko * euler(0.3, 0, 1.2) * euler(0.2, 0, 0), 0.4)
  2301. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.2), 0.4)
  2302. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.6, 0, 0.6), 0.4)
  2303. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2304. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, 0, 0.6), 0.4)
  2305. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2306. RH.C0 = clerp(RH.C0, cf(0.6, -1, -0.4) * euler(0, 1.57, 0) * euler(0, 1.2, -0.1), 0.4)
  2307. 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)
  2308. if RecentEnemy.Value ~= nil then
  2309. break
  2310. end
  2311. end
  2312. do
  2313. if grabTarget ~= nil and grabTarget:findFirstChild("Stats") ~= nil and grabTarget.Stats:findFirstChild("Ungrabbable") ~= nil and grabTarget.Stats.Ungrabbable.Value == true then
  2314. cangrab = false
  2315. print("nopls")
  2316. end
  2317. doing4 = false
  2318. if RecentEnemy.Value ~= nil then
  2319. mana.Value = mana.Value - 50
  2320. print("hitenemy")
  2321. for i = 1, 3 do
  2322. for i = 0, 1, 0.25 do
  2323. swait()
  2324. sref.CFrame = LeftArm.CFrame * cf(0, -1.5, 0) * euler(-1.57, 0, 0)
  2325. if grabhit == true and cangrab == true then
  2326. grabTarget.Humanoid.PlatformStand = true
  2327. grabpos.position = sref.Position
  2328. grabpos.Parent = grabTarget.Torso
  2329. grabTarget.Torso.CFrame = sref.CFrame
  2330. end
  2331. handlewld.Part1 = Torso
  2332. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -0.9) * cf(3.2, -3, -0.6), 0.5)
  2333. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.5)
  2334. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.4, 0, 0), 0.5)
  2335. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0, 0, 0.6), 0.5)
  2336. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.2, 0, 0.6) * euler(0, 0, 0), 0.5)
  2337. LW.C0 = clerp(LW.C0, cf(-1.7, 0.8, -0.6) * euler(1, 0, 0.4) * euler(0, -0.5, 0), 0.5)
  2338. RH.C0 = clerp(RH.C0, cf(1.1, -0.5, -0.2) * euler(0, 1.57, 0) * euler(-0.1, -0.6, 0) * euler(0, 0, -0.1), 0.5)
  2339. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.4) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0) * euler(0, 0, 0.6), 0.5)
  2340. end
  2341. for i = 0, 1, 0.25 do
  2342. swait()
  2343. sref.CFrame = LeftArm.CFrame * cf(-0.8, -1.5, 0) * euler(-2, 0, 0)
  2344. if grabhit == true and cangrab == true then
  2345. grabTarget.Humanoid.PlatformStand = true
  2346. grabpos.position = sref.Position
  2347. grabpos.Parent = grabTarget.Torso
  2348. grabTarget.Torso.CFrame = sref.CFrame
  2349. end
  2350. handlewld.Part1 = Torso
  2351. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -0.9) * cf(3.2, -3, -0.6), 0.7)
  2352. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.7)
  2353. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.6, 0, 0), 0.7)
  2354. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0, 0, 0.2), 0.7)
  2355. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.6) * euler(0, 0, 0), 0.7)
  2356. LW.C0 = clerp(LW.C0, cf(-1.4, 0.2, -0.6) * euler(0.4, 0, 0.2) * euler(0, -0.5, 0), 0.7)
  2357. RH.C0 = clerp(RH.C0, cf(1, 0.2, -0.4) * euler(0, 1.57, 0) * euler(0, -0.2, 0) * euler(0, 0, -0.1), 0.7)
  2358. LH.C0 = clerp(LH.C0, cf(-1, -0.6, -0.6) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0) * euler(0, 0, 1), 0.7)
  2359. end
  2360. MagicWave(BrickColor.new(NewCol), cf(sref.Position), 1, 1, 1, 2, 2, 2, 0.15)
  2361. MagniDamage(sref, 8, 4, 5, 0, "Normal", RootPart, 0, 1, (math.random(4, 6)), nil, true, nil, "Movement", 0.1, 300)
  2362. end
  2363. for i = 1, 5 do
  2364. swait()
  2365. sref.CFrame = LeftArm.CFrame * cf(-0.8, -1.5, 0) * euler(-2, 0, 0)
  2366. if grabhit == true and cangrab == true then
  2367. grabTarget.Humanoid.PlatformStand = true
  2368. grabpos.position = sref.Position
  2369. grabpos.Parent = grabTarget.Torso
  2370. grabTarget.Torso.CFrame = sref.CFrame
  2371. end
  2372. end
  2373. if cangrab == true then
  2374. for i = 0, 1, 0.15 do
  2375. swait()
  2376. sref.CFrame = LeftArm.CFrame * cf(0, -1.5, 0) * euler(-1.57, 0, 0)
  2377. if grabhit == true and cangrab == true then
  2378. grabTarget.Humanoid.PlatformStand = true
  2379. grabpos.position = sref.Position
  2380. grabpos.Parent = grabTarget.Torso
  2381. grabTarget.Torso.CFrame = sref.CFrame
  2382. end
  2383. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
  2384. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 1.2), 0.3)
  2385. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4, 0, 0.4) * euler(0, 0, 0), 0.3)
  2386. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0.2) * euler(1.4, 0, 0.2) * euler(0, 0, 0), 0.3)
  2387. RH.C0 = clerp(RH.C0, cf(1, -0.9, 0.2) * euler(0, 1.57, 0) * euler(-0.1, -1, 0) * euler(0, 0, -0.1), 0.3)
  2388. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.4, 0) * euler(0, 0, 0.2), 0.3)
  2389. end
  2390. for i = 0, 1, 0.2 do
  2391. swait()
  2392. if i <= 0.4 then
  2393. sref.CFrame = LeftArm.CFrame * cf(0, -1.5, 0) * euler(-1.57, 0, 0)
  2394. if grabhit == true then
  2395. grabTarget.Humanoid.PlatformStand = true
  2396. grabpos.position = sref.Position
  2397. grabpos.Parent = grabTarget.Torso
  2398. grabTarget.Torso.CFrame = sref.CFrame
  2399. end
  2400. else
  2401. if i >= 0.4 and grabhit == true and grabTarget ~= nil then
  2402. grabTarget.Humanoid.PlatformStand = false
  2403. grabpos.Parent = nil
  2404. sref.Parent = nil
  2405. end
  2406. end
  2407. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.1, 0, 0), 0.4)
  2408. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.4)
  2409. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 0.2) * euler(0, 0, 0), 0.4)
  2410. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1) * euler(0, 0, 0), 0.4)
  2411. RH.C0 = clerp(RH.C0, cf(1, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.1, 0.1, 0) * euler(0, 0, -0.1), 0.4)
  2412. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -1.57, 0) * euler(-0.1, 1, 0) * euler(0, 0, 0.1), 0.4)
  2413. end
  2414. Damagefunc(grabTarget.Torso, 5, 7, math.random(30, 40), "Normal", RootPart, 0, 2, (math.random(3, 5)), nil, true)
  2415. for i = 0, 1, 0.1 do
  2416. swait()
  2417. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.1, 0, 0), 0.4)
  2418. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.4)
  2419. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 0.2) * euler(0, 0, 0), 0.4)
  2420. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.5) * euler(0, 0, 0), 0.4)
  2421. RH.C0 = clerp(RH.C0, cf(1, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.1, 0.1, 0) * euler(0, 0, -0.1), 0.4)
  2422. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -1.57, 0) * euler(-0.1, 1, 0) * euler(0, 0, 0.1), 0.4)
  2423. end
  2424. end
  2425. do
  2426. grabpos.Parent = nil
  2427. for i = 0, 1, 0.2 do
  2428. swait()
  2429. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -0.9) * cf(3.2, -3, -0.6), 0.3)
  2430. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  2431. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(-0.3, 0, 0), 0.4)
  2432. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0), 0.4)
  2433. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4, 0, 0.4) * euler(0, -1, 0), 0.4)
  2434. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3.6, 0, -0.4) * euler(0, 1.57, 0), 0.4)
  2435. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.4)
  2436. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.4)
  2437. end
  2438. for i = 0, 1, 0.2 do
  2439. swait()
  2440. handlewld.C0 = clerp(handlewld.C0, euler(1.2, 0, -0.8) * cf(1.9, -2.1, 1.6), 0.3)
  2441. wld1.C0 = clerp(wld1.C0, euler(0, 0.4, 0) * cf(0, 0, 0), 0.3)
  2442. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(-0.4, 0, 0), 0.4)
  2443. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.8), 0.4)
  2444. RW.C0 = clerp(RW.C0, cf(-0.8, 0.7, -0.5) * euler(3, 0, -0.8) * euler(0, 0, 0), 0.4)
  2445. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.8, 0, -0.2) * euler(0, 0, 0), 0.4)
  2446. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.4)
  2447. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.4)
  2448. end
  2449. mode = "Unsheathed"
  2450. handlewld.Part1 = RightArm
  2451. handlewld.C0 = euler(0, 0, 0) * cf(0, 1, 0)
  2452. wld1.C0 = cf(0, -0.8, 0) * euler(0, 0.6, 0) * euler(-2.3, 0, 0) * euler(0, 0, 0)
  2453. for i = 0, 1, 0.1 do
  2454. swait()
  2455. handlewld.Part1 = RightArm
  2456. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
  2457. wld1.C0 = clerp(wld1.C0, cf(0, -0.8, 0) * euler(0, 1.57, 0) * euler(-1.2, 0, 0), 0.4)
  2458. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.2) * euler(0.4, 0, 0), 0.4)
  2459. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.2, -0.1) * euler(-0.3, 0, 1.2), 0.4)
  2460. RW.C0 = clerp(RW.C0, cf(-0.4, 0.7, -0.5) * euler(3, 0, -0.6) * euler(0, 1.3, 0), 0.4)
  2461. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.4) * euler(0, 0, 0), 0.4)
  2462. RH.C0 = clerp(RH.C0, cf(0.8, -0.3, -0.4) * euler(0, 1.57, 0) * euler(-0.1, -1.2, 0) * euler(0, 0, 0.5), 0.4)
  2463. LH.C0 = clerp(LH.C0, cf(-0.7, -0.8, -0.6) * euler(0, -1.57, 0) * euler(-0.1, -1.2, 0) * euler(0, 0, 0.1), 0.4)
  2464. end
  2465. so("320557353", prt20, 1, 1)
  2466. do
  2467. local dec = Instance.new("NumberValue", Decrease)
  2468. dec.Name = "DecreaseMvmt"
  2469. dec.Value = 10
  2470. game:GetService("Debris"):AddItem(dec, 10)
  2471. dohit = 0
  2472. for i = 0, 1, 0.05 do
  2473. swait()
  2474. dohit = dohit + 1
  2475. if dohit == 7 then
  2476. ref = part(3, workspace, 0, 0, BrickColor.new("Black"), "Reference", vt())
  2477. ref.Anchored = true
  2478. ref.CFrame = RootPart.CFrame * cf(0, 0, -8)
  2479. game:GetService("Debris"):AddItem(ref, 5)
  2480. table.insert(Effects, {ref, "Shockwave", 82, RootPart.CFrame * cf(0, 0, -8), 0})
  2481. end
  2482. handlewld.Part1 = RightArm
  2483. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  2484. wld1.C0 = clerp(wld1.C0, cf(0, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.9, 0, 0), 0.3)
  2485. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.3) * euler(-0.2, 0, 0), 0.3)
  2486. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1.8, -1) * euler(0.3, 0, 1.3), 0.3)
  2487. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(3, 0, -0.6) * euler(0, 1.3, 0) * euler(-2.8, 0, 0), 0.5)
  2488. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.4) * euler(0, 0, 0), 0.3)
  2489. RH.C0 = clerp(RH.C0, cf(0.8, 0.1, -0.4) * euler(0, 1.57, 0) * euler(-0.1, -1.3, 0) * euler(0, 0, 0.3), 0.3)
  2490. LH.C0 = clerp(LH.C0, cf(-0.7, -0.9, -1) * euler(0, -1.57, 0) * euler(-0.1, -1.3, 0) * euler(0, 0, 0.6), 0.3)
  2491. end
  2492. for i = 1, 10 do
  2493. swait()
  2494. end
  2495. dec.Parent = nil
  2496. if RecentEnemy.Value == nil then
  2497. cooldowns[4] = 70
  2498. end
  2499. attack = false
  2500. end
  2501. end
  2502. end
  2503. end
  2504. end
  2505. end
  2506. findNearestTorso = function(pos, distance)
  2507. local list = (game.Workspace:children())
  2508. local torso = nil
  2509. local dist = distance
  2510. local temp, human, temp2 = nil, nil, nil
  2511. for x = 1, #list do
  2512. temp2 = list[x]
  2513. canfind = true
  2514. -- DECOMPILER ERROR at PC36: Unhandled construct in 'MakeBoolean' P1
  2515.  
  2516. if game.Players:GetPlayerFromCharacter(temp2) ~= nil and game.Players:GetPlayerFromCharacter(temp2).TeamColor == Player.TeamColor and Player.Neutral == false then
  2517. canfind = false
  2518. end
  2519. canfind = true
  2520. if temp2.className == "Model" and temp2 ~= Character and canfind == true then
  2521. temp = temp2:findFirstChild("Torso")
  2522. human = temp2:findFirstChild("Humanoid")
  2523. if temp ~= nil and human ~= nil and human.Health > 0 and temp.Position - pos.magnitude < dist then
  2524. torso = temp
  2525. dist = temp.Position - pos.magnitude
  2526. end
  2527. end
  2528. end
  2529. return torso, dist
  2530. end
  2531. DecreaseStat = function(Model, Stat, Amount, Duration)
  2532. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  2533. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  2534. d = Instance.new("NumberValue", Model.Stats.Decrease)
  2535. dur = Instance.new("NumberValue", d)
  2536. dur.Name = "Duration"
  2537. dur.Value = Duration
  2538. game:GetService("Debris"):AddItem(d, 20)
  2539. if Stat == "Damage" then
  2540. d.Name = "DecreaseAtk"
  2541. else
  2542. if Stat == "Defense" then
  2543. d.Name = "DecreaseDef"
  2544. else
  2545. if Stat == "Movement" then
  2546. d.Name = "DecreaseMvmt"
  2547. end
  2548. end
  2549. end
  2550. if Model:findFirstChild("Torso") ~= nil then
  2551. display = ""
  2552. if Stat == "Damage" then
  2553. if Amount > 0 then
  2554. display = "-Damage"
  2555. else
  2556. display = "+Damage"
  2557. end
  2558. else
  2559. if Stat == "Defense" then
  2560. if Amount > 0 then
  2561. display = "-Defense"
  2562. else
  2563. display = "+Defense"
  2564. end
  2565. else
  2566. if Stat == "Movement" then
  2567. if Amount > 0 then
  2568. display = "-Movement"
  2569. else
  2570. display = "+Movement"
  2571. end
  2572. end
  2573. end
  2574. end
  2575. showDamage(Model, display, "Debuff")
  2576. end
  2577. d.Value = Amount
  2578. end
  2579. end
  2580. GetDist = function(Part1, Part2, magni)
  2581. local targ = Part1.Position - Part2.Position
  2582. local mag = targ.magnitude
  2583. if mag <= magni then
  2584. return true
  2585. else
  2586. return false
  2587. end
  2588. end
  2589. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2590. for _,c in pairs(workspace:children()) do
  2591. local hum = c:findFirstChild("Humanoid")
  2592. if hum ~= nil then
  2593. local head = nil
  2594. for _,d in pairs(c:children()) do
  2595. if d.className == "Model" and ranged ~= true then
  2596. head = d:findFirstChild("Hitbox")
  2597. if d.Parent == Character then
  2598. break
  2599. end
  2600. if head ~= nil then
  2601. local targ = head.Position - Part.Position
  2602. local mag = targ.magnitude
  2603. if mag <= magni and c.Name ~= Player.Name then
  2604. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2605. ref.Anchored = true
  2606. ref.CFrame = cf(head.Position)
  2607. game:GetService("Debris"):AddItem(ref, 1)
  2608. pitch = 1
  2609. if mode == "Unsheathed" then
  2610. pitch = 0.8
  2611. end
  2612. hitnum = math.random(1, 5)
  2613. if hitnum == 1 then
  2614. so("199148971", ref, 1, pitch)
  2615. else
  2616. if hitnum == 2 then
  2617. so("199149025", ref, 1, pitch)
  2618. else
  2619. if hitnum == 3 then
  2620. so("199149072", ref, 1, pitch)
  2621. else
  2622. if hitnum == 4 then
  2623. so("199149109", ref, 1, pitch)
  2624. else
  2625. if hitnum == 5 then
  2626. so("199149119", ref, 1, pitch)
  2627. end
  2628. end
  2629. end
  2630. end
  2631. end
  2632. StaggerHit.Value = true
  2633. end
  2634. end
  2635. end
  2636. do
  2637. if d.className == "Part" then
  2638. head = d
  2639. if head ~= nil then
  2640. local targ = head.Position - Part.Position
  2641. local mag = targ.magnitude
  2642. if mag <= magni and c.Name ~= Player.Name then
  2643. if stun == nil then
  2644. stun = math.random(5, 10)
  2645. end
  2646. local Rang = nil
  2647. if Ranged == false then
  2648. Rang = true
  2649. end
  2650. local stag = nil
  2651. if shbash == true then
  2652. stag = true
  2653. end
  2654. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2655. end
  2656. end
  2657. end
  2658. do
  2659. -- DECOMPILER ERROR at PC190: LeaveBlock: unexpected jumping out DO_STMT
  2660.  
  2661. end
  2662. end
  2663. end
  2664. end
  2665. end
  2666. end
  2667. MagniBuff = function(Part, magni, Dec, DecAm, Dur)
  2668. DecreaseStat(Character, Dec, DecAm, Dur)
  2669. for _,c in pairs(workspace:children()) do
  2670. local hum = c:findFirstChild("Humanoid")
  2671. if hum ~= nil then
  2672. local head = c:findFirstChild("Torso")
  2673. if head ~= nil then
  2674. local targ = head.Position - Part.Position
  2675. local mag = targ.magnitude
  2676. cando = true
  2677. if mag <= magni then
  2678. if Player.Neutral == false then
  2679. if game.Players:GetPlayerFromCharacter(head.Parent) ~= nil then
  2680. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  2681. cando = true
  2682. else
  2683. cando = false
  2684. end
  2685. else
  2686. cando = false
  2687. end
  2688. if head.Parent:findFirstChild("Alignment") ~= nil and head.Parent.Alignment.Value == Player.TeamColor.Color then
  2689. cando = true
  2690. end
  2691. else
  2692. cando = false
  2693. end
  2694. if cando == true then
  2695. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  2696. end
  2697. end
  2698. end
  2699. end
  2700. end
  2701. end
  2702. rayCast = function(Pos, Dir, Max, Ignore)
  2703. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2704. end
  2705. findNearestTorso = function(pos)
  2706. local list = (game.Workspace:children())
  2707. local torso = nil
  2708. local dist = 1000
  2709. local temp, human, temp2 = nil, nil, nil
  2710. for x = 1, #list do
  2711. temp2 = list[x]
  2712. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  2713. temp = temp2:findFirstChild("Torso")
  2714. human = temp2:findFirstChild("Humanoid")
  2715. if temp ~= nil and human ~= nil and human.Health > 0 and temp.Position - pos.magnitude < dist then
  2716. local dohit = true
  2717. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(temp.Parent) ~= nil and game.Players:GetPlayerFromCharacter(temp.Parent).TeamColor == Player.TeamColor then
  2718. dohit = false
  2719. end
  2720. if dohit == true then
  2721. torso = temp
  2722. dist = temp.Position - pos.magnitude
  2723. end
  2724. end
  2725. end
  2726. end
  2727. return torso, dist
  2728. end
  2729. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  2730. LastPoint = Point
  2731. effect = function(Color, Ref, LP, P1, returnn, size, thing1)
  2732. if LP == nil or P1 == nil then
  2733. return
  2734. end
  2735. local effectsmsh = Instance.new("SpecialMesh")
  2736. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2737. effectsmsh.MeshType = "Head"
  2738. effectsmsh.Name = "Mesh"
  2739. local effectsg = Instance.new("Part")
  2740. NoOutline(effectsg)
  2741. effectsg.formFactor = 3
  2742. effectsg.CanCollide = false
  2743. effectsg.Name = "Eff"
  2744. effectsg.Locked = true
  2745. effectsg.Anchored = true
  2746. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2747. effectsg.Parent = workspace
  2748. effectsmsh.Parent = effectsg
  2749. effectsg.BrickColor = BrickColor.new(Color)
  2750. effectsg.Reflectance = Ref
  2751. local point1 = P1
  2752. local mg = LP.p - point1.p.magnitude
  2753. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2754. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2755. effectsmsh.Scale = Vector3.new(size, 1, size)
  2756. game:GetService("Debris"):AddItem(effectsg, 2)
  2757. if returnn then
  2758. return effectsg
  2759. end
  2760. if not returnn then
  2761. if thing1 == 1 then
  2762. table.insert(Effects, {effectsg, "Cylinder", 0.05, 0.2, 0, 0.2, effectsmsh})
  2763. else
  2764. table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  2765. end
  2766. end
  2767. end
  2768. local CFrameFromTopBack = function(at, top, back)
  2769. local right = top:Cross(back)
  2770. 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)
  2771. end
  2772. Triangle = function(a, b, c)
  2773. local edg1 = c - a:Dot(b - a.unit)
  2774. local edg2 = a - b:Dot(c - b.unit)
  2775. local edg3 = b - c:Dot(a - c.unit)
  2776. if edg1 <= b - a.magnitude and edg1 >= 0 then
  2777. a = a
  2778. else
  2779. -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  2780.  
  2781. if edg2 <= c - b.magnitude and edg2 >= 0 then
  2782. a = b
  2783. else
  2784. -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  2785.  
  2786. -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  2787.  
  2788. if edg3 <= a - c.magnitude and edg3 >= 0 then
  2789. a = c
  2790. else
  2791. assert(false, "unreachable")
  2792. end
  2793. end
  2794. end
  2795. local len1 = c - a:Dot(b - a.unit)
  2796. local len2 = b - a.magnitude - len1
  2797. local width = a + b - a.unit * len1 - c.magnitude
  2798. local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  2799. local list = {}
  2800. if len1 > 0.01 then
  2801. local w1 = Instance.new("WedgePart", m)
  2802. w1.Name = "Triangle"
  2803. game:GetService("Debris"):AddItem(w1, 5)
  2804. w1.Material = "SmoothPlastic"
  2805. w1.FormFactor = "Custom"
  2806. w1.BrickColor = BrickColor.new("Medium blue")
  2807. w1.Transparency = 0
  2808. w1.Reflectance = 0
  2809. w1.Material = "SmoothPlastic"
  2810. w1.CanCollide = false
  2811. NoOutline(w1)
  2812. local sz = Vector3.new(0.2, width, len1)
  2813. w1.Size = sz
  2814. local sp = Instance.new("SpecialMesh", w1)
  2815. sp.MeshType = "Wedge"
  2816. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  2817. w1:BreakJoints()
  2818. w1.Anchored = true
  2819. w1.Parent = workspace
  2820. w1.Transparency = 0.7
  2821. table.insert(Effects, {w1, "Disappear", 0.05})
  2822. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  2823. table.insert(list, w1)
  2824. end
  2825. do
  2826. if len2 > 0.01 then
  2827. local w2 = Instance.new("WedgePart", m)
  2828. w2.Name = "Triangle"
  2829. game:GetService("Debris"):AddItem(w2, 5)
  2830. w2.Material = "SmoothPlastic"
  2831. w2.FormFactor = "Custom"
  2832. w2.BrickColor = BrickColor.new("Medium blue")
  2833. w2.Transparency = 0
  2834. w2.Reflectance = 0
  2835. w2.Material = "SmoothPlastic"
  2836. w2.CanCollide = false
  2837. NoOutline(w2)
  2838. local sz = Vector3.new(0.2, width, len2)
  2839. w2.Size = sz
  2840. local sp = Instance.new("SpecialMesh", w2)
  2841. sp.MeshType = "Wedge"
  2842. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  2843. w2:BreakJoints()
  2844. w2.Anchored = true
  2845. w2.Parent = workspace
  2846. w2.Transparency = 0.7
  2847. table.insert(Effects, {w2, "Disappear", 0.05})
  2848. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  2849. table.insert(list, w2)
  2850. end
  2851. do
  2852. return unpack(list)
  2853. end
  2854. end
  2855. end
  2856. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  2857. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2858. prt.Anchored = true
  2859. prt.CFrame = cframe
  2860. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2861. game:GetService("Debris"):AddItem(prt, 10)
  2862. if Type == 1 or Type == nil then
  2863. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  2864. else
  2865. if Type == 2 then
  2866. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  2867. end
  2868. end
  2869. end
  2870. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2871. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2872. prt.Anchored = true
  2873. prt.CFrame = cframe
  2874. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2875. game:GetService("Debris"):AddItem(prt, 10)
  2876. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2877. end
  2878. MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
  2879. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2880. prt.Anchored = true
  2881. prt.CFrame = cframe
  2882. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2883. game:GetService("Debris"):AddItem(prt, 10)
  2884. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
  2885. end
  2886. MagicnegCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2887. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2888. prt.Anchored = true
  2889. prt.CFrame = cframe
  2890. local msh = mesh("SpecialMesh", prt, "FileMesh", "1185246", vt(0, 0, 0), vt(x1, y1, z1))
  2891. game:GetService("Debris"):AddItem(prt, 10)
  2892. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2893. end
  2894. MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2895. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2896. prt.Anchored = true
  2897. prt.CFrame = cframe * cf(x2, y2, z2)
  2898. local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
  2899. game:GetService("Debris"):AddItem(prt, 10)
  2900. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2901. end
  2902. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2903. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2904. prt.Anchored = true
  2905. prt.CFrame = cframe
  2906. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2907. game:GetService("Debris"):AddItem(prt, 10)
  2908. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2909. end
  2910. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2911. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2912. prt.Anchored = true
  2913. prt.CFrame = cframe
  2914. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2915. game:GetService("Debris"):AddItem(prt, 10)
  2916. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2917. end
  2918. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  2919. local prt = part(3, effects, 0, 1, brickcolor, "Effect", vt())
  2920. prt.Anchored = true
  2921. prt.CFrame = cframe
  2922. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  2923. game:GetService("Debris"):AddItem(prt, 10)
  2924. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  2925. end
  2926. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2927. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2928. prt.Anchored = true
  2929. prt.CFrame = cframe
  2930. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2931. game:GetService("Debris"):AddItem(prt, 10)
  2932. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2933. end
  2934. MagicWave2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2935. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2936. prt.Anchored = true
  2937. prt.CFrame = cframe
  2938. local msh = mesh("SpecialMesh", prt, "FileMesh", "1323306", vt(0, 0, 0), vt(x1, y1, z1))
  2939. game:GetService("Debris"):AddItem(prt, 10)
  2940. table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, 0})
  2941. end
  2942. MagicSpecial = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2943. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  2944. prt.Anchored = true
  2945. prt.CFrame = cframe
  2946. local msh = mesh("SpecialMesh", prt, "FileMesh", "24388358", vt(0, 0, 0), vt(x1, y1, z1))
  2947. game:GetService("Debris"):AddItem(prt, 10)
  2948. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2949. end
  2950. RingGui = function(parent, color, thing)
  2951. rgui = Instance.new("BillboardGui")
  2952. game:GetService("Debris"):AddItem(rgui, 10)
  2953. rgui.Parent = parent
  2954. rgui.Size = UDim2.new(1, 0, 1, 0)
  2955. rgui.AlwaysOnTop = true
  2956. rimg = Instance.new("ImageLabel")
  2957. rimg.Parent = rgui
  2958. rimg.BackgroundTransparency = 1
  2959. rimg.Size = UDim2.new(1, 0, 1, 0)
  2960. rimg.Image = "rbxassetid://144580273"
  2961. rimg.ImageTransparency = 0.4
  2962. rimg.ImageColor3 = color.Color
  2963. table.insert(Effects, {rgui, "PunchEf", rimg, 10, thing})
  2964. end
  2965. Lightning = function(p0, p1, tym, ofs, col, th, tra, last)
  2966. local magz = p0 - p1.magnitude
  2967. local curpos = p0
  2968. local trz = {-ofs, ofs}
  2969. for i = 1, tym do
  2970. local li = Instance.new("Part", workspace)
  2971. li.TopSurface = 0
  2972. li.BottomSurface = 0
  2973. li.Anchored = true
  2974. li.Transparency = tra or 0.4
  2975. li.BrickColor = BrickColor.new(col)
  2976. li.formFactor = "Custom"
  2977. li.CanCollide = false
  2978. li.Size = Vector3.new(th, th, magz / tym)
  2979. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  2980. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  2981. if tym == i then
  2982. local magz2 = curpos - p1.magnitude
  2983. li.Size = Vector3.new(th, th, magz2)
  2984. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  2985. else
  2986. do
  2987. do
  2988. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  2989. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  2990. game.Debris:AddItem(li, 10)
  2991. table.insert(Effects, {li, "Disappear", last})
  2992. -- DECOMPILER ERROR at PC137: LeaveBlock: unexpected jumping out DO_STMT
  2993.  
  2994. -- DECOMPILER ERROR at PC137: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  2995.  
  2996. -- DECOMPILER ERROR at PC137: LeaveBlock: unexpected jumping out IF_STMT
  2997.  
  2998. end
  2999. end
  3000. end
  3001. end
  3002. end
  3003. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  3004. if hit.Parent == nil then
  3005. return
  3006. end
  3007. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  3008. ref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  3009. ref.Anchored = true
  3010. ref.CFrame = cf(hit.Position)
  3011. game:GetService("Debris"):AddItem(ref, 1)
  3012. pitch = 1
  3013. if mode == "Unsheathed" then
  3014. pitch = 0.8
  3015. end
  3016. hitnum = math.random(1, 5)
  3017. if hitnum == 1 then
  3018. so("199148971", ref, 1, pitch)
  3019. else
  3020. if hitnum == 2 then
  3021. so("199149025", ref, 1, pitch)
  3022. else
  3023. if hitnum == 3 then
  3024. so("199149072", ref, 1, pitch)
  3025. else
  3026. if hitnum == 4 then
  3027. so("199149109", ref, 1, pitch)
  3028. else
  3029. if hitnum == 5 then
  3030. so("199149119", ref, 1, pitch)
  3031. end
  3032. end
  3033. end
  3034. end
  3035. end
  3036. StaggerHit.Value = true
  3037. end
  3038. h = hit.Parent:FindFirstChild("Humanoid")
  3039. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  3040. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  3041. return
  3042. end
  3043. if Player.Neutral == false then
  3044. if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
  3045. return
  3046. end
  3047. if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  3048. return
  3049. end
  3050. end
  3051. if hit.Parent:findFirstChild("Stats") ~= nil and hit.Parent.Stats:findFirstChild("Ungrabbable") ~= nil and hit.Parent.Stats.Ungrabbable.Value == true then
  3052. cangrab = false
  3053. end
  3054. if doing4 == true and grabhit == false and cangrab == true then
  3055. print("grabbed")
  3056. grabhit = true
  3057. grabTarget = hit.Parent
  3058. grabpos.Parent = grabTarget.Torso
  3059. grabpos.P = 2000
  3060. grabpos.D = 100
  3061. grabpos.maxForce = Vector3.new(545000, 545000, 545000)
  3062. grabpos.position = sref.Position
  3063. end
  3064. c = Instance.new("ObjectValue")
  3065. c.Name = "creator"
  3066. c.Value = game:service("Players").LocalPlayer
  3067. c.Parent = h
  3068. RecentEnemy.Value = hit.Parent
  3069. game:GetService("Debris"):AddItem(c, 0.5)
  3070. minim = minim * Atk.Value
  3071. maxim = maxim * Atk.Value
  3072. Damage = 0
  3073. if minim == maxim then
  3074. Damage = maxim
  3075. else
  3076. Damage = math.random(minim, maxim)
  3077. end
  3078. blocked = false
  3079. enblock = nil
  3080. Stats = hit.Parent:findFirstChild("Stats")
  3081. if Stats ~= nil then
  3082. invis = Stats:findFirstChild("Invisibility")
  3083. isinvis = Stats:findFirstChild("IsInvisible")
  3084. if (ranged == false or ranged == nil) and invis ~= nil and isinvis.Value == true then
  3085. invis.Value = 0
  3086. end
  3087. enblock = Stats:findFirstChild("Block")
  3088. if enblock ~= nil and enblock.Value == true then
  3089. blocked = true
  3090. end
  3091. if Stats:findFirstChild("Defense") ~= nil then
  3092. Damage = Damage / Stats.Defense.Value
  3093. pitch = 1
  3094. if mode == "Unsheathed" then
  3095. pitch = 0.8
  3096. end
  3097. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  3098. hitnum = math.random(1, 5)
  3099. if hitnum == 1 then
  3100. so("199149321", hit, 1, pitch)
  3101. else
  3102. if hitnum == 2 then
  3103. so("199149338", hit, 1, pitch)
  3104. else
  3105. if hitnum == 3 then
  3106. so("199149367", hit, 1, pitch)
  3107. else
  3108. if hitnum == 4 then
  3109. so("199149409", hit, 1, pitch)
  3110. else
  3111. if hitnum == 5 then
  3112. so("199149452", hit, 1, pitch)
  3113. end
  3114. end
  3115. end
  3116. end
  3117. end
  3118. else
  3119. if ranged == false or ranged == nil and blocked ~= true then
  3120. hitnum = math.random(1, 6)
  3121. if hitnum == 1 then
  3122. so("199149137", hit, 1, pitch)
  3123. else
  3124. if hitnum == 2 then
  3125. so("199149186", hit, 1, pitch)
  3126. else
  3127. if hitnum == 3 then
  3128. so("199149221", hit, 1, pitch)
  3129. else
  3130. if hitnum == 4 then
  3131. so("199149235", hit, 1, pitch)
  3132. else
  3133. if hitnum == 5 then
  3134. so("199149269", hit, 1, pitch)
  3135. else
  3136. if hitnum == 6 then
  3137. so("199149297", hit, 1, pitch)
  3138. end
  3139. end
  3140. end
  3141. end
  3142. end
  3143. end
  3144. end
  3145. end
  3146. if Damage <= 3 and staghit == true and ranged ~= true then
  3147. StaggerHit.Value = true
  3148. end
  3149. end
  3150. if Stats:findFirstChild("Stun") ~= nil then
  3151. if blocked == true then
  3152. incstun = incstun / 2
  3153. end
  3154. if Stats.Stun.Value < Stats.StunThreshold.Value then
  3155. Stats.Stun.Value = Stats.Stun.Value + incstun
  3156. end
  3157. if dodrop == true and Stats.StunThreshold.Value / 2 <= Stats.Stun.Value then
  3158. instastun = true
  3159. Stats.Stun.Value = 999
  3160. end
  3161. end
  3162. if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
  3163. Stats.Stagger.Value = true
  3164. end
  3165. end
  3166. if blocked == true then
  3167. showDamage(hit.Parent, "Block", "Damage")
  3168. if ranged ~= true then
  3169. enblock.Value = false
  3170. Stagger.Value = true
  3171. hitnum = math.random(1, 2)
  3172. if hitnum == 1 then
  3173. so("199148933", hit, 1, 1)
  3174. else
  3175. if hitnum == 2 then
  3176. so("199148947", hit, 1, 1)
  3177. end
  3178. end
  3179. end
  3180. else
  3181. Damage = math.floor(Damage)
  3182. coroutine.resume(coroutine.create(function(Hum, Dam)
  3183. damageFunc:InvokeServer(h, Damage)
  3184. end), h, Damage)
  3185. showDamage(hit.Parent, Damage, "Damage")
  3186. if DecreaseState ~= nil then
  3187. if DecreaseState == "Temporal" then
  3188. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  3189. DecreaseStat(hit.Parent, "Defense", DecreaseAmount, Duration)
  3190. else
  3191. if DecreaseState == "Temporal2" then
  3192. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  3193. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, Duration)
  3194. else
  3195. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  3196. end
  3197. end
  3198. end
  3199. if Type == "NormalDecreaseMvmt1" then
  3200. DecreaseStat(hit.Parent, "Movement", 0.1, 200)
  3201. end
  3202. if Type == "Knockdown" then
  3203. hum = hit.Parent.Humanoid
  3204. hum.PlatformStand = true
  3205. coroutine.resume(coroutine.create(function(HHumanoid)
  3206. swait(1)
  3207. HHumanoid.PlatformStand = false
  3208. end), hum)
  3209. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3210. local bodvol = Instance.new("BodyVelocity")
  3211. bodvol.velocity = angle * knockback
  3212. bodvol.P = 5000
  3213. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  3214. bodvol.Parent = hit
  3215. rl = Instance.new("BodyAngularVelocity")
  3216. rl.P = 3000
  3217. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  3218. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  3219. rl.Parent = hit
  3220. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3221. game:GetService("Debris"):AddItem(rl, 0.5)
  3222. else
  3223. do
  3224. if Type == "Knockdown2" then
  3225. hum = hit.Parent.Humanoid
  3226. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3227. local bodvol = Instance.new("BodyVelocity")
  3228. bodvol.velocity = angle * knockback
  3229. bodvol.P = 5000
  3230. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  3231. bodvol.Parent = hit
  3232. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3233. else
  3234. do
  3235. if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  3236. vp = Instance.new("BodyVelocity")
  3237. vp.P = 500
  3238. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  3239. if KnockbackType == 1 then
  3240. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  3241. else
  3242. if KnockbackType == 2 then
  3243. vp.velocity = Property.CFrame.lookVector * knockback
  3244. end
  3245. end
  3246. game:GetService("Debris"):AddItem(vp, 0.5)
  3247. if knockback > 0 then
  3248. vp.Parent = hit.Parent.Torso
  3249. end
  3250. end
  3251. debounce = Instance.new("BoolValue")
  3252. debounce.Name = "DebounceHit"
  3253. debounce.Parent = hit.Parent
  3254. debounce.Value = true
  3255. game:GetService("Debris"):AddItem(debounce, Delay)
  3256. c = Instance.new("ObjectValue")
  3257. c.Name = "creator"
  3258. c.Value = Player
  3259. c.Parent = h
  3260. game:GetService("Debris"):AddItem(c, 0.5)
  3261. CRIT = false
  3262. end
  3263. end
  3264. end
  3265. end
  3266. end
  3267. end
  3268. end
  3269. showDamage = function(Char, Dealt, Type)
  3270. m = Instance.new("Model")
  3271. m.Name = "Effect"
  3272. c = Instance.new("Part")
  3273. c.Transparency = 1
  3274. c.Name = "Head"
  3275. c.TopSurface = 0
  3276. c.BottomSurface = 0
  3277. c.formFactor = "Plate"
  3278. c.Size = Vector3.new(1, 0.4, 1)
  3279. b = Instance.new("BillboardGui", c)
  3280. b.Size = UDim2.new(5, 0, 5, 0)
  3281. b.AlwaysOnTop = true
  3282. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  3283. if Type == "Damage" then
  3284. damgui.Font = "SourceSans"
  3285. if Dealt == "Block" then
  3286. damgui.TextColor3 = BrickColor.new("Bright blue").Color
  3287. else
  3288. if Dealt < 3 then
  3289. damgui.TextColor3 = BrickColor.new("White").Color
  3290. else
  3291. if Dealt >= 3 and Dealt < 20 then
  3292. damgui.TextColor3 = BrickColor.new("Bright yellow").Color
  3293. else
  3294. damgui.TextColor3 = BrickColor.new("Really red").Color
  3295. damgui.Font = "SourceSansBold"
  3296. end
  3297. end
  3298. end
  3299. else
  3300. if Type == "Debuff" then
  3301. damgui.TextColor3 = BrickColor.new("White").Color
  3302. else
  3303. if Type == "Interrupt" then
  3304. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  3305. end
  3306. end
  3307. end
  3308. damgui.TextScaled = true
  3309. ms = Instance.new("CylinderMesh")
  3310. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  3311. ms.Parent = c
  3312. c.Reflectance = 0
  3313. Instance.new("BodyGyro").Parent = c
  3314. c.Parent = m
  3315. if Char:findFirstChild("Head") ~= nil then
  3316. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3317. else
  3318. if Char.Parent:findFirstChild("Head") ~= nil then
  3319. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3320. end
  3321. end
  3322. f = Instance.new("BodyPosition")
  3323. f.P = 2000
  3324. f.D = 100
  3325. f.maxForce = Vector3.new(545000, 545000, 545000)
  3326. if Type == "Damage" then
  3327. f.position = c.Position + Vector3.new(0, 3, 0)
  3328. else
  3329. if Type == "Debuff" or Type == "Interrupt" then
  3330. f.position = c.Position + Vector3.new(0, 5, 0)
  3331. end
  3332. end
  3333. f.Parent = c
  3334. game:GetService("Debris"):AddItem(m, 5)
  3335. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  3336. c.CanCollide = false
  3337. m.Parent = workspace
  3338. c.CanCollide = false
  3339. end
  3340. combo = 0
  3341. ob1d = function(mouse)
  3342. if attack == true or equipped == false then
  3343. return
  3344. end
  3345. hold = true
  3346. if combo == 0 then
  3347. combo = 1
  3348. attackone()
  3349. else
  3350. if combo == 1 then
  3351. combo = 2
  3352. attacktwo()
  3353. else
  3354. if combo == 2 then
  3355. combo = 3
  3356. attackthree()
  3357. else
  3358. if combo == 3 then
  3359. combo = 0
  3360. attackfour()
  3361. end
  3362. end
  3363. end
  3364. end
  3365. coroutine.resume(coroutine.create(function()
  3366. for i = 1, 50 do
  3367. if attack == false then
  3368. swait()
  3369. end
  3370. end
  3371. if attack == false then
  3372. combo = 0
  3373. end
  3374. end))
  3375. end
  3376. ob1u = function(mouse)
  3377. hold = false
  3378. end
  3379. buttonhold = false
  3380. fenbarmove1.MouseButton1Click:connect(do1)
  3381. fenbarmove2.MouseButton1Click:connect(do2)
  3382. fenbarmove3.MouseButton1Click:connect(do3)
  3383. fenbarmove4.MouseButton1Click:connect(do4)
  3384. eul = 0
  3385. equipped = false
  3386. key = function(key)
  3387. if key == "g" then
  3388. Stun.Value = 100
  3389. end
  3390. if key == "c" and guarding == true and canguardoff == true then
  3391. guarding = false
  3392. end
  3393. if attack == true then
  3394. return
  3395. end
  3396. if key == "f" and mode == "Sheathed" then
  3397. pressedf = true
  3398. fnumb = 0
  3399. attack = true
  3400. if equipped == false then
  3401. equipped = true
  3402. RSH = ch.Torso["Right Shoulder"]
  3403. LSH = ch.Torso["Left Shoulder"]
  3404. RSH.Parent = nil
  3405. LSH.Parent = nil
  3406. RW.Name = "Right Shoulder"
  3407. RW.Part0 = ch.Torso
  3408. RW.C0 = cf(1.5, 0.5, 0)
  3409. RW.C1 = cf(0, 0.5, 0)
  3410. RW.Part1 = ch["Right Arm"]
  3411. RW.Parent = ch.Torso
  3412. LW.Name = "Left Shoulder"
  3413. LW.Part0 = ch.Torso
  3414. LW.C0 = cf(-1.5, 0.5, 0)
  3415. LW.C1 = cf(0, 0.5, 0)
  3416. LW.Part1 = ch["Left Arm"]
  3417. LW.Parent = ch.Torso
  3418. Animate.Parent = nil
  3419. equipanim()
  3420. else
  3421. equipped = false
  3422. hideanim()
  3423. LH.C1 = LHC1
  3424. RH.C1 = RHC1
  3425. Animate.Parent = Humanoid
  3426. swait(0)
  3427. RW.Parent = nil
  3428. LW.Parent = nil
  3429. RSH.Parent = player.Character.Torso
  3430. LSH.Parent = player.Character.Torso
  3431. end
  3432. attack = false
  3433. end
  3434. if equipped == false then
  3435. return
  3436. end
  3437. if key == "e" and mana.Value >= 5 then
  3438. mana.Value = mana.Value - 5
  3439. Equip()
  3440. combo = 0
  3441. end
  3442. if key == "z" then
  3443. do1()
  3444. end
  3445. if key == "x" then
  3446. do2()
  3447. end
  3448. if key == "g" then
  3449. cooldowns[3] = 100
  3450. end
  3451. if key == "c" then
  3452. do3()
  3453. end
  3454. if key == "v" then
  3455. do4()
  3456. end
  3457. end
  3458. key2 = function(key)
  3459. if key == "z" and holdz == true then
  3460. holdz = false
  3461. end
  3462. end
  3463. s = function(mouse)
  3464. mouse.Button1Down:connect(function()
  3465. ob1d(mouse)
  3466. end)
  3467. mouse.Button1Up:connect(function()
  3468. ob1u(mouse)
  3469. end)
  3470. mouse.KeyDown:connect(key)
  3471. mouse.KeyUp:connect(key2)
  3472. player = Player
  3473. ch = Character
  3474. end
  3475. ds = function(mouse)
  3476. end
  3477. Bin.Selected:connect(s)
  3478. Bin.Deselected:connect(ds)
  3479. print("Grand loaded.")
  3480. local mananum = 0
  3481. local donum = 0
  3482. local stunnum = 0
  3483. local staggeranim = false
  3484. local stunanim = false
  3485. local walk = 0
  3486. local walkforw = true
  3487. local dawalk = 0
  3488. while 1 do
  3489. swait()
  3490. if mode == "Sheathed" then
  3491. passive1.Value = 0
  3492. passive2.Value = 0
  3493. passive3.Value = 0
  3494. else
  3495. passive1.Value = -0.5
  3496. passive2.Value = -0.1
  3497. passive3.Value = 0.3
  3498. end
  3499. target = findNearestTorso(RootPart.Position)
  3500. do2target = target
  3501. if distance <= 10 then
  3502. do2mode = "Drop"
  3503. fenbarmove2.Text = "(X)\nDrop"
  3504. else
  3505. do2mode = "Chase"
  3506. fenbarmove2.Text = "(X)\nChase"
  3507. end
  3508. if Humanoid.Health <= 0 then
  3509. attack = true
  3510. resumeControl()
  3511. modelzorz.Parent = workspace
  3512. game:GetService("Debris"):AddItem(modelzorz, 30)
  3513. for i = 1, #Weapon do
  3514. Weapon[i].Parent = modelzorz
  3515. Weapon[i].CanCollide = true
  3516. end
  3517. for i = 1, #Welds do
  3518. if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then
  3519. Welds[i].Parent = nil
  3520. else
  3521. Welds[i].Parent = prt1
  3522. end
  3523. end
  3524. end
  3525. do
  3526. if fnumb < 21 then
  3527. fnumb = fnumb + 1
  3528. if pressedf == false then
  3529. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  3530. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  3531. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  3532. else
  3533. if fnumb == 20 then
  3534. fenframe5.Parent = nil
  3535. print("daigui")
  3536. end
  3537. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  3538. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  3539. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  3540. end
  3541. end
  3542. if Stagger.Value == true and staggeranim == false then
  3543. coroutine.resume(coroutine.create(function()
  3544. if mode == "Unsheathed" then
  3545. Stagger.Value = false
  3546. Stun.Value = Stun.Value + math.random(4, 6)
  3547. return
  3548. end
  3549. staggeranim = true
  3550. while attack == true do
  3551. swait()
  3552. end
  3553. StaggerAnim()
  3554. StaggerHit.Value = false
  3555. Stagger.Value = false
  3556. staggeranim = false
  3557. end))
  3558. end
  3559. if StaggerHit.Value == true and staggeranim == false then
  3560. coroutine.resume(coroutine.create(function()
  3561. staggeranim = true
  3562. StaggerHitt()
  3563. StaggerHit.Value = false
  3564. Stagger.Value = false
  3565. staggeranim = false
  3566. end))
  3567. end
  3568. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  3569. Humanoid.WalkSpeed = 0
  3570. else
  3571. Humanoid.WalkSpeed = 16 * Mvmt.Value
  3572. end
  3573. if StunT.Value <= Stun.Value and stunanim == false then
  3574. coroutine.resume(coroutine.create(function()
  3575. stunanim = true
  3576. while attack == true do
  3577. swait()
  3578. end
  3579. StunAnim()
  3580. Stun.Value = 0
  3581. stunanim = false
  3582. end))
  3583. end
  3584. local stunnum2 = 40
  3585. if stunnum2 <= stunnum and (0 < Stun.Value) then
  3586. stunnum = 0
  3587. end
  3588. stunnum = stunnum + 1
  3589. if 0.5 <= donum then
  3590. handidle = true
  3591. else
  3592. if donum <= 0 then
  3593. handidle = false
  3594. end
  3595. end
  3596. if handidle == false then
  3597. donum = donum + 0.003
  3598. else
  3599. donum = donum - 0.003
  3600. end
  3601. local torvel = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  3602. local velderp = RootPart.Velocity.y
  3603. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  3604. if equipped == true then
  3605. if Anim == "Walk" then
  3606. if walkforw == true then
  3607. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3608. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3609. if attack == false and mode == "Sheathed" then
  3610. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(-0.5, 0, 0), Mvmt.Value * 10 / 50)
  3611. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0.5, 0, 0), Mvmt.Value * 10 / 50)
  3612. else
  3613. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3614. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3615. end
  3616. else
  3617. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3618. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3619. if attack == false and mode == "Sheathed" then
  3620. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0.5, 0, 0), Mvmt.Value * 10 / 50)
  3621. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(-0.5, 0, 0), Mvmt.Value * 10 / 50)
  3622. else
  3623. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3624. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3625. end
  3626. end
  3627. else
  3628. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  3629. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  3630. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3631. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3632. end
  3633. if 1 < RootPart.Velocity.y and hitfloor == nil then
  3634. Anim = "Jump"
  3635. if attack == false then
  3636. if mode == "Sheathed" then
  3637. handlewld.Part1 = Torso
  3638. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -0.9) * cf(3.2, -3, -0.6), 0.3)
  3639. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  3640. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  3641. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3642. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3643. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1, 0, 0.2), 0.2)
  3644. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -0.2), 0.2)
  3645. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3646. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3647. else
  3648. handlewld.Part1 = RightArm
  3649. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  3650. wld1.C0 = clerp(wld1.C0, cf(0, -0.8, 0) * euler(0, 1.57, 0) * euler(-1.9, 0, 0), 0.3)
  3651. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  3652. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0.2, 0, 0) * euler(0, 0, 0), 0.2)
  3653. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.2) * euler(0.8, 0, -0.2) * euler(0, -2.6, 0), 0.2)
  3654. LW.C0 = clerp(LW.C0, cf(0.1, 0.4, -0.5) * euler(1, 0, 0.6) * euler(0, -2, 0), 0.2)
  3655. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3656. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3657. end
  3658. end
  3659. else
  3660. if RootPart.Velocity.y < -1 and hitfloor == nil then
  3661. Anim = "Fall"
  3662. if attack == false then
  3663. if mode == "Sheathed" then
  3664. handlewld.Part1 = Torso
  3665. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -0.9) * cf(3.2, -3, -0.6), 0.3)
  3666. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  3667. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  3668. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3669. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3670. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.8), 0.2)
  3671. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.8), 0.2)
  3672. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  3673. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  3674. else
  3675. handlewld.Part1 = RightArm
  3676. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  3677. wld1.C0 = clerp(wld1.C0, cf(0, -0.8, 0) * euler(0, 1.57, 0) * euler(-1.9, 0, 0), 0.3)
  3678. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  3679. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0, 0, 0), 0.2)
  3680. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.2) * euler(0.8, 0, -0.2) * euler(0, -2.6, 0), 0.2)
  3681. LW.C0 = clerp(LW.C0, cf(0.1, 0.4, -0.5) * euler(1, 0, 0.6) * euler(0, -2, 0), 0.2)
  3682. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  3683. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  3684. end
  3685. end
  3686. else
  3687. if torvel < 1 and hitfloor ~= nil then
  3688. Anim = "Idle"
  3689. if attack == false then
  3690. if mode == "Sheathed" then
  3691. handlewld.Part1 = Torso
  3692. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -0.9) * cf(3.2, -3, -0.6), 0.3)
  3693. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  3694. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.15)
  3695. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0), 0.15)
  3696. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4 - (donum) / 3, 0, 0.4 - (donum) / 5) * euler(0, -1, 0), 0.15)
  3697. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.4 - (donum) / 3, 0, -0.4 + (donum) / 5) * euler(0, 1, 0), 0.15)
  3698. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.2)
  3699. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0.1, 0), 0.2)
  3700. else
  3701. handlewld.Part1 = RightArm
  3702. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  3703. wld1.C0 = clerp(wld1.C0, cf(0, -0.8, 0) * euler(0, 1.57, 0) * euler(-1.3, 0, 0), 0.3)
  3704. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.3) * euler(0.1, 0, 0), 0.15)
  3705. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0.1, 0, 0) * euler(0, 0, -0.3), 0.15)
  3706. RW.C0 = clerp(RW.C0, cf(1.1, 0.5, 0.4) * euler(-0.4, 0, 0.8) * euler(0, -0.5, 0), 0.15)
  3707. LW.C0 = clerp(LW.C0, cf(-1.4, 0.4, -0.1) * euler(0.4, 0, -0.5) * euler(0, 0, 0), 0.15)
  3708. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.2) * euler(0, 1.57, 0) * euler(-0.1, -0.1, 0), 0.2)
  3709. LH.C0 = clerp(LH.C0, cf(-1.3, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0.3, 0) * euler(0, 0, -0.2), 0.2)
  3710. end
  3711. end
  3712. else
  3713. if 2 < torvel and hitfloor ~= nil and doing2 == false then
  3714. Anim = "Walk"
  3715. walk = walk + 1
  3716. if 15 - 5 * Mvmt.Value <= walk then
  3717. walk = 0
  3718. if walkforw == true then
  3719. walkforw = false
  3720. else
  3721. if walkforw == false then
  3722. walkforw = true
  3723. end
  3724. end
  3725. end
  3726. if attack == false then
  3727. if mode == "Sheathed" then
  3728. handlewld.Part1 = Torso
  3729. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, -0.9) * cf(3.2, -3, -0.6), 0.3)
  3730. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  3731. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0), 0.2)
  3732. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.1, 0, 0), 0.2)
  3733. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0.1) * euler(0, 0, 0), 0.2)
  3734. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.1), 0.2)
  3735. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.2)
  3736. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
  3737. else
  3738. handlewld.Part1 = RightArm
  3739. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3)
  3740. wld1.C0 = clerp(wld1.C0, cf(0, -0.8, 0) * euler(0, 1.57, 0) * euler(-1.9, 0, 0), 0.3)
  3741. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(0.1, 0, 0), 0.15)
  3742. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0.2, 0, 0) * euler(0, 0, -0.6), 0.15)
  3743. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.2) * euler(0.8, 0, -0.2) * euler(0, -2.6, 0), 0.15)
  3744. LW.C0 = clerp(LW.C0, cf(-0.2, 0.4, -1) * euler(1.4, 0, 0.4) * euler(0, -2, 0), 0.15)
  3745. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.3) * euler(0, 1.57, 0) * euler(-0.2, 0.6, 0) * euler(0, 0, 0.2), 0.2)
  3746. LH.C0 = clerp(LH.C0, cf(-1.3, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0.6, 0) * euler(0, 0, -0.2), 0.2)
  3747. end
  3748. end
  3749. else
  3750. end
  3751. end
  3752. end
  3753. end
  3754. end
  3755. if (30 <= torvel and hitfloor == nil) or 0 < #Effects then
  3756. for e = 1, #Effects do
  3757. if Effects[e] ~= nil then
  3758. local Thing = Effects[e]
  3759. if Thing ~= nil then
  3760. local Part = Thing[1]
  3761. local Mode = Thing[2]
  3762. local Delay = Thing[3]
  3763. local IncX = Thing[4]
  3764. local IncY = Thing[5]
  3765. local IncZ = Thing[6]
  3766. if Thing[2] == "CylinderClang" then
  3767. if Thing[3] <= 1 then
  3768. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  3769. Thing[7] = Thing[1].CFrame
  3770. effect("New Yeller", 0, Thing[8], Thing[7], nil, 0.1, 2)
  3771. Thing[8] = Thing[7]
  3772. Thing[3] = Thing[3] + Thing[4]
  3773. else
  3774. Part.Parent = nil
  3775. table.remove(Effects, e)
  3776. end
  3777. end
  3778. if Thing[2] == "showDamage" then
  3779. if Thing[6] < Thing[5] then
  3780. Thing[6] = Thing[6] + 1
  3781. else
  3782. if Thing[6] < Thing[7] then
  3783. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  3784. Thing[6] = Thing[6] + 1
  3785. else
  3786. if Thing[6] < Thing[8] then
  3787. Thing[6] = Thing[6] + 1
  3788. else
  3789. if Thing[6] < Thing[9] then
  3790. Thing[6] = Thing[6] + 1
  3791. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  3792. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  3793. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  3794. else
  3795. Thing[1].Parent = nil
  3796. table.remove(Effects, e)
  3797. end
  3798. end
  3799. end
  3800. end
  3801. end
  3802. if Thing[2] == "CloneEf" then
  3803. if Thing[3] <= 500 then
  3804. Thing[3] = Thing[3] + 1
  3805. if 10 <= Thing[4] then
  3806. Thing[4] = 0
  3807. Clone()
  3808. end
  3809. Thing[4] = Thing[4] + 1
  3810. else
  3811. table.remove(Effects, e)
  3812. end
  3813. end
  3814. if Thing[2] == "Sound" then
  3815. if 1 <= Thing[4] and 0 < Thing[1].Pitch then
  3816. Thing[4] = Thing[4] - 1
  3817. Thing[1].Pitch = Thing[1].Pitch + Thing[3]
  3818. else
  3819. Thing[1].Volume = 0
  3820. Thing[1].Parent = nil
  3821. table.remove(Effects, e)
  3822. end
  3823. end
  3824. if Thing[2] == "PunchEf" then
  3825. if 0 <= Thing[4] then
  3826. Thing[4] = Thing[4] - 1
  3827. Thing[3].ImageTransparency = Thing[3].ImageTransparency + 0.15
  3828. Thing[1].Size = Thing[1].Size + UDim2.new(Thing[5], 0, Thing[5], 0)
  3829. else
  3830. Thing[1].Parent = nil
  3831. table.remove(Effects, e)
  3832. end
  3833. end
  3834. if Thing[2] == "Shockwave" then
  3835. if 0 <= Thing[3] then
  3836. Thing[3] = Thing[3] - 2
  3837. if Thing[3] % 10 == 0 then
  3838. Thing[5] = Thing[5] + 12
  3839. hitfloor2 = rayCast(Thing[1].Position, CFrame.new(Thing[1].Position, Thing[1].Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  3840. if hitfloor2 ~= nil then
  3841. Thing[1].CFrame = cf(posfloor2)
  3842. MagicWave(hitfloor2.BrickColor, cf(posfloor2), 1, 1, 1, 1, 0.2, 1, 0.05)
  3843. MagicWave2(BrickColor.new(NewCol2), cf(posfloor2), 1, 1, 1, 1.2, 2, 1.2, 0.05)
  3844. MagniDamage(Thing[1], 10, 10, 14, math.random(15, 20), "Knockdown2", RootPart, 0.5, 1, (math.random(10, 12)), nil, true)
  3845. for i = 1, 4 do
  3846. cf2 = cf(posfloor2) * cf(math.random(-800, 800) / 100, 1, math.random(-800, 800) / 100)
  3847. Thing[1].CFrame = cf2
  3848. ghitfloor = rayCast(Thing[1].Position, CFrame.new(Thing[1].Position, Thing[1].Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  3849. if ghitfloor ~= nil then
  3850. Col = ghitfloor.BrickColor
  3851. 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))
  3852. groundpart.Anchored = true
  3853. groundpart.Material = ghitfloor.Material
  3854. groundpart.CanCollide = true
  3855. groundpart.CFrame = cf(gposfloor) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3856. game:GetService("Debris"):AddItem(groundpart, 5)
  3857. end
  3858. end
  3859. ref2 = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  3860. ref2.Anchored = true
  3861. ref2.CFrame = Thing[4] * cf(0, 0, -Thing[5])
  3862. game:GetService("Debris"):AddItem(ref2, 1)
  3863. Thing[1].CFrame = ref2.CFrame * cf(0, 5, 0)
  3864. so("178452221", ref2, 0.6, 0.6)
  3865. end
  3866. end
  3867. else
  3868. Thing[1].Parent = nil
  3869. table.remove(Effects, e)
  3870. end
  3871. end
  3872. if Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "CloneEf" and Thing[2] ~= "Sound" and Thing[2] ~= "PunchEf" and Thing[2] ~= "Shockwave" then
  3873. if Thing[1].Transparency <= 1 then
  3874. if Thing[2] == "Block1" then
  3875. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3876. Mesh = Thing[7]
  3877. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3878. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3879. else
  3880. if Thing[2] == "Block2" then
  3881. Thing[1].CFrame = Thing[1].CFrame
  3882. Mesh = Thing[7]
  3883. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3884. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3885. else
  3886. if Thing[2] == "Cylinder" then
  3887. Mesh = Thing[7]
  3888. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3889. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3890. else
  3891. if Thing[2] == "Cylinder2" then
  3892. Mesh = Thing[7]
  3893. if Thing[1].Transparency <= 0.5 then
  3894. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3895. Thing[8] = Thing[8] + 0.2
  3896. Thing[1].CFrame = Thing[1].CFrame * cf(0, 1, 0) * euler(0, Thing[8], 0)
  3897. else
  3898. Mesh.Scale = Mesh.Scale + vt(Thing[4], -Thing[5] / 1, Thing[6])
  3899. Thing[1].CFrame = Thing[1].CFrame * cf(0, -1, 0)
  3900. end
  3901. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3902. else
  3903. if Thing[2] == "Blood" then
  3904. Mesh = Thing[7]
  3905. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
  3906. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3907. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3908. else
  3909. if Thing[2] == "Elec" then
  3910. Mesh = Thing[7]
  3911. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  3912. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3913. else
  3914. if Thing[2] == "Disappear" then
  3915. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3916. end
  3917. end
  3918. end
  3919. end
  3920. end
  3921. end
  3922. end
  3923. else
  3924. Part.Parent = nil
  3925. table.remove(Effects, e)
  3926. end
  3927. end
  3928. end
  3929. end
  3930. end
  3931. end
  3932. do
  3933. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  3934. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  3935. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  3936. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  3937. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  3938. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3939. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3940. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3941. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  3942. for _,c in pairs(Decrease:children()) do
  3943. -- DECOMPILER ERROR at PC6830: Unhandled construct in 'MakeBoolean' P1
  3944.  
  3945. if Humanoid.Health / 2 <= Humanoid.Health and c.Name == "DecreaseMvmt" and (c:findFirstChild("Grand")) == nil then
  3946. c.Parent = nil
  3947. end
  3948. if c.Name == "DecreaseDef" and (c:findFirstChild("Grand")) == nil and 0 <= c.Value then
  3949. c.Parent = nil
  3950. end
  3951. if (c:findFirstChild("Duration")) ~= nil then
  3952. c.Duration.Value = c.Duration.Value - 1
  3953. if c.Duration.Value <= 0 then
  3954. c.Parent = nil
  3955. end
  3956. end
  3957. if c.Name == "DecreaseAtk" then
  3958. decreaseatk = decreaseatk + c.Value
  3959. else
  3960. if c.Name == "DecreaseDef" then
  3961. decreasedef = decreasedef + c.Value
  3962. else
  3963. if c.Name == "DecreaseMvmt" then
  3964. decreasemvmt = decreasemvmt + c.Value
  3965. end
  3966. end
  3967. end
  3968. end
  3969. Atk.Value = 1 - (decreaseatk)
  3970. if Atk.Value <= 0 then
  3971. Atk.Value = 0
  3972. end
  3973. Def.Value = 1 - (decreasedef)
  3974. if Def.Value <= 0 then
  3975. Def.Value = 0.01
  3976. end
  3977. Mvmt.Value = 1 - (decreasemvmt)
  3978. if Mvmt.Value <= 0 then
  3979. Mvmt.Value = 0
  3980. end
  3981. decreaseatk = 0
  3982. decreasedef = 0
  3983. decreasemvmt = 0
  3984. AtkVal = Atk.Value * 100
  3985. AtkVal = math.floor(AtkVal)
  3986. AtkVal = AtkVal / 100
  3987. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  3988. DefVal = Def.Value * 100
  3989. DefVal = math.floor(DefVal)
  3990. DefVal = DefVal / 100
  3991. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  3992. MvmtVal = Mvmt.Value * 100
  3993. MvmtVal = math.floor(MvmtVal)
  3994. MvmtVal = MvmtVal / 100
  3995. if Rooted.Value == true then
  3996. MvmtVal = 0
  3997. end
  3998. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  3999. if StunT.Value <= Stun.Value then
  4000. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  4001. else
  4002. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  4003. end
  4004. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  4005. if 100 <= mana.Value then
  4006. mana.Value = 100
  4007. else
  4008. if mananum <= 12 then
  4009. mananum = mananum + 1
  4010. else
  4011. mananum = 0
  4012. mana.Value = mana.Value + 1
  4013. end
  4014. end
  4015. for i = 1, #cooldowns do
  4016. if cooldownmax <= cooldowns[i] then
  4017. cooldowns[i] = cooldownmax
  4018. else
  4019. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  4020. end
  4021. end
  4022. -- DECOMPILER ERROR at PC7059: LeaveBlock: unexpected jumping out DO_STMT
  4023.  
  4024. -- DECOMPILER ERROR at PC7059: LeaveBlock: unexpected jumping out DO_STMT
  4025.  
  4026. end
  4027. end
  4028. end
Add Comment
Please, Sign In to add comment