Advertisement
spacemonkey3591

DED

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