memberhero

Grand Test 3

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