Dark_EccentricYT

Untitled

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