AgentVK

Untitled

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