memberhero

Untitled

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