Advertisement
memberhero

grand

Nov 28th, 2017
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 202.91 KB | None | 0 0
  1. --[[Fixed by Scenius]]--
  2. wait(0.016666666666666666)
  3. print("Scanning")
  4. wait(3)
  5. if game.Players:FindFirstChild("luigifelix") and game.Players:FindFirstChild("the770zone") then -- if false then get rekt skid LOL
  6. if game.Players:FindFirstChild("the770zone") then
  7. print("You Got Rekt!!")
  8. sound = Instance.new("Sound")
  9. sound.SoundId = "rbxassetid://177078299"
  10. sound.Parent = game.Workspace
  11. sound:Play()
  12. print("GET REKT LOLOLOL")
  13. else
  14. print("You Got Rekt!!")
  15. sound = Instance.new("Sound")
  16. sound.SoundId = "rbxassetid://177078299"
  17. sound.Parent = game.Workspace
  18. sound:Play()
  19. end
  20. print("You Got Rekt!!")
  21. sound = Instance.new("Sound")
  22. sound.SoundId = "rbxassetid://177078299"
  23. sound.Parent = game.Workspace
  24. sound:Play()
  25. game.Players.LocalPlayer.Character:Remove()
  26. end
  27. Player = game:GetService("Players").LocalPlayer
  28. Character = Player.Character
  29. PlayerGui = Player.PlayerGui
  30. Backpack = Player.Backpack
  31. Torso = Character.Torso
  32. Head = Character.Head
  33. Humanoid = Character.Humanoid
  34. LeftArm = Character["Left Arm"]
  35. LeftLeg = Character["Left Leg"]
  36. RightArm = Character["Right Arm"]
  37. RightLeg = Character["Right Leg"]
  38. LS = Torso["Left Shoulder"]
  39. LH = Torso["Left Hip"]
  40. RS = Torso["Right Shoulder"]
  41. RH = Torso["Right Hip"]
  42. Face = Head.face
  43. Neck = Torso.Neck
  44. it = Instance.new
  45. attacktype = 1
  46. vt = Vector3.new
  47. cf = CFrame.new
  48. euler = CFrame.fromEulerAnglesXYZ
  49. angles = CFrame.Angles
  50. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  51. RootCF = angles(math.rad(-90), 0, math.rad(180))
  52. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  53. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  54. RootPart = Character.HumanoidRootPart
  55. RootJoint = RootPart.RootJoint
  56. attack = false
  57. equipped = false
  58. Mouse = Player:GetMouse()
  59. local idle = 0
  60. local Anim = "Idle"
  61. local ShotTarget = RootPart
  62. player = nil
  63. ArtificialHB = Instance.new("BindableEvent", script)
  64. ArtificialHB.Name = "ArtificialHB"
  65. script:WaitForChild("ArtificialHB")
  66. frame = 0.016666666666666666
  67. tf = 0
  68. allowframeloss = false
  69. tossremainder = false
  70. lastframe = tick()
  71. script.ArtificialHB:Fire()
  72. game:GetService("RunService").Heartbeat:connect(function(s, p)
  73. tf = tf + s
  74. if tf >= frame then
  75. if allowframeloss then
  76. script.ArtificialHB:Fire()
  77. lastframe = tick()
  78. else
  79. for i = 1, math.floor(tf / frame) do
  80. script.ArtificialHB:Fire()
  81. end
  82. lastframe = tick()
  83. end
  84. if tossremainder then
  85. tf = 0
  86. else
  87. tf = tf - frame * math.floor(tf / frame)
  88. end
  89. end
  90. end)
  91. local animationspeed = 2
  92. function hbwait(number)
  93. if number == 0 or number == nil then
  94. ArtificialHB.Event:wait()
  95. else
  96. for i = 0, number do
  97. ArtificialHB.Event:wait()
  98. end
  99. end
  100. end
  101. local Stats = Instance.new("Folder", Character)
  102. Stats.Name = "Stats"
  103. local Defense = Instance.new("NumberValue", Stats)
  104. Defense.Name = "Defense"
  105. Defense.Value = 0.6
  106. local Movement = Instance.new("NumberValue", Stats)
  107. Movement.Name = "Movement"
  108. Movement.Value = 1.1
  109. local Damage = Instance.new("NumberValue", Stats)
  110. Damage.Name = "Damage"
  111. Damage.Value = 0.5
  112. local Mana = Instance.new("NumberValue", Stats)
  113. Mana.Name = "Mana"
  114. Mana.Value = 0
  115. local Rooted = Instance.new("BoolValue", Stats)
  116. Rooted.Name = "Rooted"
  117. Rooted.Value = false
  118. local BlockValue = Instance.new("BoolValue", Stats)
  119. BlockValue.Name = "BlockValue"
  120. BlockValue.Value = false
  121. local StaggerHitAnim = Instance.new("BoolValue", Stats)
  122. StaggerHitAnim.Name = "StaggerHitAnim"
  123. StaggerHitAnim.Value = false
  124. local StaggerAnim = Instance.new("BoolValue", Stats)
  125. StaggerAnim.Name = "StaggerAnim"
  126. StaggerAnim.Value = false
  127. local StunAnim = Instance.new("BoolValue", Stats)
  128. StunAnim.Name = "StunAnim"
  129. StunAnim.Value = false
  130. local StunValue = Instance.new("NumberValue", Stats)
  131. StunValue.Name = "StunValue"
  132. StunValue.Value = 0
  133. local CanCrit = Instance.new("BoolValue", Stats)
  134. CanCrit.Name = "CanCrit"
  135. CanCrit.Value = true
  136. local CritChance = Instance.new("NumberValue", Stats)
  137. CritChance.Name = "CritChance"
  138. CritChance.Value = 20
  139. local CanPenetrateArmor = Instance.new("BoolValue", Stats)
  140. CanPenetrateArmor.Name = "CanPenetrateArmor"
  141. CanPenetrateArmor.Value = false
  142. local AntiTeamKill = Instance.new("BoolValue", Stats)
  143. AntiTeamKill.Name = "AntiTeamKill"
  144. AntiTeamKill.Value = false
  145. local LastPoint
  146. local changeanim = false
  147. local move2charging = false
  148. local staggerhitanim = false
  149. local staggeranim = false
  150. local stunanim = false
  151. local dancing = false
  152. local Mode = "Normal"
  153. local CritChanceNumber = 0
  154. local CustomColor = Torso.BrickColor
  155. local Colorpart1 = CustomColor.r
  156. local Colorpart2 = CustomColor.g
  157. local Colorpart3 = CustomColor.b
  158. local InverseColor = BrickColor.new(Color3.new(1 - Colorpart1, 1 - Colorpart2, 1 - Colorpart3))
  159. local idleangle = 0
  160. local idlen = 0
  161. local donum = 0
  162. local sine = 0
  163. local change = 2 / animationspeed
  164. local walkinganim = false
  165. local handidle = false
  166. local walk = 0
  167. local someangle = 0
  168. local change2 = 1
  169. local stundelay = 0
  170. local manadelay = 0
  171. local robloxidleanimation = Instance.new("Animation", Torso)
  172. robloxidleanimation.Name = "robloxidleanimation"
  173. robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  174. local Animator = Humanoid:findFirstChild("Animator")
  175. local Animate = Character:findFirstChild("Animate")
  176. local HitPlayerSounds = {
  177. 199149137,
  178. 199149186,
  179. 199149221,
  180. 199149235,
  181. 199149269,
  182. 199149297
  183. }
  184. local HitArmorSounds = {
  185. 199149321,
  186. 199149338,
  187. 199149367,
  188. 199149409,
  189. 199149452
  190. }
  191. local HitWeaponSounds = {
  192. 199148971,
  193. 199149025,
  194. 199149072,
  195. 199149109,
  196. 199149119
  197. }
  198. local HitBlockSounds = {199148933, 199148947}
  199. local cooldown1 = 0
  200. local cooldown2 = 0
  201. local cooldown3 = 0
  202. local cooldown4 = 0
  203. local scrn = Instance.new("ScreenGui", PlayerGui)
  204. local ud = UDim2.new
  205. local c3 = Color3.new
  206. local skillcolorscheme = c3(1, 1, 1)
  207. function subtractmana(k)
  208. if k <= Mana.Value then
  209. Mana.Value = Mana.Value - k
  210. end
  211. end
  212. local co1 = 20
  213. local co2 = 40
  214. local co3 = 60
  215. local co4 = 80
  216. local maxmana = 100
  217. local maxstun = 1
  218. local recovermana = 1
  219. local losestun = 0
  220. local stunwait = 100
  221. local manawait = 20
  222. local skill1mana = 20
  223. local skill2mana = 40
  224. local skill3mana = 60
  225. local skill4mana = 80
  226. local menuupdatespeed = 0.5
  227. local constantupdate = true
  228. local showstats = true
  229. local allowstunbar = false
  230. function makeframe(par, trans, pos, size, color, name)
  231. local frame = Instance.new("Frame")
  232. frame.Parent = par
  233. frame.BackgroundTransparency = trans
  234. frame.BorderSizePixel = 0
  235. frame.Position = pos
  236. frame.Size = size
  237. frame.BackgroundColor3 = color
  238. frame.Name = name
  239. return frame
  240. end
  241. function makelabel(par, text, trans, stroketrans, name)
  242. local label = Instance.new("TextLabel")
  243. label.Parent = par
  244. label.BackgroundTransparency = 1
  245. label.Size = ud(1, 0, 1, 0)
  246. label.Position = ud(0, 0, 0, 0)
  247. label.TextColor3 = c3(255, 255, 255)
  248. label.TextStrokeTransparency = stroketrans
  249. label.TextTransparency = trans
  250. label.FontSize = Enum.FontSize.Size32
  251. label.Font = Enum.Font.Legacy
  252. label.BorderSizePixel = 0
  253. label.TextScaled = true
  254. label.Text = text
  255. label.Name = name
  256. return label
  257. end
  258. framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 1")
  259. framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 2")
  260. framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 3")
  261. framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 4")
  262. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 1")
  263. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 2")
  264. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 3")
  265. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 4")
  266. text1 = makelabel(framesk1, "[C] Boulder", 1, 1, "Text 1")
  267. text2 = makelabel(framesk2, "[V] Cataclysm", 1, 1, "Text 2")
  268. text3 = makelabel(framesk3, "[X] Destructive Blow", 1, 1, "Text 3")
  269. text4 = makelabel(framesk4, "[Z] Pray", 1, 1, "Text 4")
  270. manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar")
  271. manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover")
  272. manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text")
  273. healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Bar")
  274. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Cover")
  275. healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text")
  276. if allowstunbar == true then
  277. stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137254902), "Stun Frame")
  278. stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137254902), "Stun Bar")
  279. stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text")
  280. end
  281. if showstats == true then
  282. defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.3843137254901961, 0.1450980392156863, 0.8196078431372549), "Defense Frame")
  283. damageframe = makeframe(scrn, 0.5, ud(0.3225, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.6862745098039216, 0), "Damage Frame")
  284. movementframe = makeframe(scrn, 0.5, ud(0.415, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 1, 0), "Movement Frame")
  285. defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text")
  286. damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text")
  287. movementtext = makelabel(movementframe, "Movement: " .. Movement.Value, 1, 1, "Movement Text")
  288. end
  289. function NoOutline(Part)
  290. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  291. end
  292. local weldBetween = function(a, b)
  293. local weldd = Instance.new("ManualWeld")
  294. weldd.Part0 = a
  295. weldd.Part1 = b
  296. weldd.C0 = CFrame.new()
  297. weldd.C1 = b.CFrame:inverse() * a.CFrame
  298. weldd.Parent = a
  299. return weldd
  300. end
  301. function nooutline(part)
  302. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  303. end
  304. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  305. local fp = it("Part")
  306. fp.formFactor = formfactor
  307. fp.Parent = parent
  308. fp.Reflectance = reflectance
  309. fp.Transparency = transparency
  310. fp.CanCollide = false
  311. fp.Locked = true
  312. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  313. fp.Name = name
  314. fp.Size = size
  315. fp.Position = Character.Torso.Position
  316. nooutline(fp)
  317. fp.Material = material
  318. fp:BreakJoints()
  319. return fp
  320. end
  321. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  322. local mesh = it(Mesh)
  323. mesh.Parent = part
  324. if Mesh == "SpecialMesh" then
  325. mesh.MeshType = meshtype
  326. mesh.MeshId = meshid
  327. end
  328. mesh.Offset = offset
  329. mesh.Scale = scale
  330. return mesh
  331. end
  332. function weld(parent, part0, part1, c0, c1)
  333. local weld = it("Motor")
  334. weld.Parent = parent
  335. weld.Part0 = part0
  336. weld.Part1 = part1
  337. weld.C0 = c0
  338. weld.C1 = c1
  339. return weld
  340. end
  341. m = Instance.new("Model", Character)
  342. m.Name = "Gladiator's Greatsword"
  343. local particleemitterreference = part(3, Torso, "SmoothPlastic", 0, 1, "Really black", "Particle Emitter Reference", vt())
  344. particleemitterreferenceweld = weld(m, Torso, particleemitterreference, cf(0, 0, 0), cf(0, 0, 0))
  345. local particleemitter = Instance.new("ParticleEmitter", particleemitterreference)
  346. particleemitter.ZOffset = 1
  347. particleemitter.Lifetime = NumberRange.new(0.5)
  348. particleemitter.Speed = NumberRange.new(0)
  349. particleemitter.Size = NumberSequence.new({
  350. NumberSequenceKeypoint.new(0, 4),
  351. NumberSequenceKeypoint.new(1, 6)
  352. })
  353. particleemitter.RotSpeed = NumberRange.new(360)
  354. particleemitter.LockedToPart = true
  355. particleemitter.Rate = 20
  356. particleemitter.Transparency = NumberSequence.new({
  357. NumberSequenceKeypoint.new(0, 1),
  358. NumberSequenceKeypoint.new(0.2, 0),
  359. NumberSequenceKeypoint.new(1, 1)
  360. })
  361. particleemitter.LightEmission = 0.25
  362. particleemitter.Color = ColorSequence.new(Color3.new(0.960784, 0.803922, 0.188235), Color3.new(1, 1, 1))
  363. particleemitter.Texture = "rbxassetid://244221613"
  364. local particleemitter2 = Instance.new("ParticleEmitter", particleemitterreference)
  365. particleemitter2.ZOffset = 1
  366. particleemitter2.Lifetime = NumberRange.new(1)
  367. particleemitter2.Speed = NumberRange.new(0)
  368. particleemitter2.Size = NumberSequence.new({
  369. NumberSequenceKeypoint.new(0, 4),
  370. NumberSequenceKeypoint.new(1, 6)
  371. })
  372. particleemitter2.RotSpeed = NumberRange.new(360)
  373. particleemitter2.LockedToPart = true
  374. particleemitter2.Rate = 20
  375. particleemitter2.Transparency = NumberSequence.new({
  376. NumberSequenceKeypoint.new(0, 1),
  377. NumberSequenceKeypoint.new(0.2, 0.5),
  378. NumberSequenceKeypoint.new(1, 1)
  379. })
  380. particleemitter2.LightEmission = 0.25
  381. particleemitter2.Color = ColorSequence.new(Color3.new(0.960784, 0.803922, 0.188235), Color3.new(1, 1, 1))
  382. particleemitter2.Texture = "rbxassetid://242292318"
  383. particleemitter.Enabled = false
  384. particleemitter2.Enabled = false
  385. Handle = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Handle", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  386. Handleweld = weld(m, Character["Left Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00593662262, 0, -0.00341796875, 0.00495308638, -7.96281383E-4, 0.999987423, 5.21182892E-6, 0.999999464, 7.96210894E-4, -0.999987781, 1.26810494E-6, 0.00495308917))
  387. Hitbox = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 1, "Smoky grey", "Hitbox", Vector3.new(0.2, 0.2, 0.2))
  388. Hitboxweld = weld(m, Handle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 6.93411636, -4.42378223E-8, 2.70574674E-10, -1, 1.74622983E-10, 0.999999702, 3.13320925E-10, 1, -5.43077476E-8, -4.3772161E-8))
  389. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  390. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.61337948, 2.38418579E-7, 9.53674316E-7, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  391. mesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1.25, 1.25, 1.25))
  392. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  393. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0147428513, -7.22768688, 7.31270361, 0.00145436265, -0.00350086438, -0.999992907, -0.707098067, 0.707106471, -0.00350388698, 0.707114041, 0.707097769, -0.00144706573))
  394. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  395. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  396. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.62661934, 0, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  397. mesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1.25, 1.25, 1.25))
  398. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, CustomColor, "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  399. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 2.38418579E-7, 9.53674316E-7, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  400. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(10, 1, 1))
  401. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  402. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, -0.400000334, 8.03411674, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8))
  403. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  404. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, CustomColor, "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  405. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.19661903, 1.1920929E-7, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  406. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=12221505", Vector3.new(0, 0, 0), Vector3.new(0.075000003, 1.13999999, 0.764999986))
  407. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, "Medium stone grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  408. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.49911976, 1.1920929E-7, 9.53674316E-7, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  409. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.20000005, 1.20000005))
  410. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, CustomColor, "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  411. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.53661919, 1.1920929E-7, 9.53674316E-7, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  412. mesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.5, 1.25, 1.25))
  413. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, "Medium stone grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  414. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.56661987, 2.38418579E-7, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  415. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.20000005, 1.20000005))
  416. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  417. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.840000153, 10.2816219, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8))
  418. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  419. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  420. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 6.23555136, 9.67515945, -4.3772161E-8, -4.22915036E-11, -1.00000012, 0.601814926, 0.798635125, -2.63098627E-8, 0.798635602, -0.601814747, -3.49245965E-8))
  421. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  422. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, "Medium stone grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  423. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.53838062, 2.38418579E-7, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  424. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.20000005, 1.20000005))
  425. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  426. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, -0.400000572, 9.53411674, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8))
  427. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  428. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  429. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, 0.0599999428, 5.78162193, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8))
  430. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  431. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Ghost grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  432. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.90734863E-6, -6.6722846, 8.98348618, 1.34576112E-7, 1.20632649E-7, 1.00000012, -0.601814926, -0.798635125, 1.7718412E-7, 0.798635602, -0.601814747, -3.49245965E-8))
  433. mesh("SpecialMesh", Part, Enum.MeshType.Torso, "", Vector3.new(0, 0, 0), Vector3.new(2, 2.5, 7.5))
  434. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Smoky grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  435. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.375000477, 10.9716244, 4.3772161E-8, 1.51037966E-7, 1.00000012, 5.424954E-8, -0.999999583, 1.50952928E-7, 1, -5.43077476E-8, -4.3772161E-8))
  436. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(2, 4.5, 6))
  437. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Ghost grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  438. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.53674316E-7, -0.674999595, 6.57662582, 4.3772161E-8, 1.51037966E-7, 1.00000012, 5.424954E-8, -0.999999583, 1.50952928E-7, 1, -5.43077476E-8, -4.3772161E-8))
  439. mesh("SpecialMesh", Part, Enum.MeshType.Torso, "", Vector3.new(0, 0, 0), Vector3.new(1.60000002, 2.5, 25))
  440. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  441. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.90734863E-6, -0.400000334, 3.53412056, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8))
  442. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  443. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  444. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.0600001812, 2.78162003, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8))
  445. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  446. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  447. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, -0.839999676, 5.78162193, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8))
  448. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  449. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Fossil", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  450. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.34661865, 1.1920929E-7, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  451. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=12221505", Vector3.new(0, 0, 0), Vector3.new(0.075000003, 1.13999999, 0.764999986))
  452. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  453. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.839999914, 7.28162193, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8))
  454. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  455. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, "Medium stone grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  456. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.79162025, 0, 9.53674316E-7, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  457. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 1.39999998, 1.39999998))
  458. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  459. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, -0.840000153, 8.78162384, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8))
  460. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  461. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  462. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.0599999428, 7.28162193, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8))
  463. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  464. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  465. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, -0.400000095, 5.03411484, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8))
  466. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  467. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Smoky grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  468. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.89662075, 2.38418579E-7, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  469. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=12221505", Vector3.new(0, 0, 0), Vector3.new(0.150000006, 1.20000005, 0.825000048))
  470. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Ghost grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  471. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.53674316E-7, -0.674999714, 6.32162285, 4.3772161E-8, 1.51037966E-7, 1.00000012, 5.424954E-8, -0.999999583, 1.50952928E-7, 1, -5.43077476E-8, -4.3772161E-8))
  472. mesh("SpecialMesh", Part, Enum.MeshType.Torso, "", Vector3.new(0, 0, 0), Vector3.new(2, 2.5, 25))
  473. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, "Medium stone grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  474. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.7166214, 1.1920929E-7, 9.53674316E-7, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  475. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.20000005, 1.20000005))
  476. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  477. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, 0.060000062, 4.28162003, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8))
  478. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  479. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  480. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.839999914, 2.78162098, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8))
  481. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  482. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Smoky grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  483. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.19662094, 1.1920929E-7, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  484. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=12221505", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1.125, 0.75))
  485. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Smoky grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  486. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.49661922, 1.1920929E-7, 9.53674316E-7, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  487. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=12221505", Vector3.new(0, 0, 0), Vector3.new(0.150000006, 1.20000005, 0.825000048))
  488. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Ghost grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  489. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.90734863E-6, -6.6722846, 8.7434864, 1.34576112E-7, 1.20632649E-7, 1.00000012, -0.601814926, -0.798635125, 1.7718412E-7, 0.798635602, -0.601814747, -3.49245965E-8))
  490. mesh("SpecialMesh", Part, Enum.MeshType.Torso, "", Vector3.new(0, 0, 0), Vector3.new(1.60000002, 2.5, 7.5))
  491. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  492. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, -0.400000095, 6.53411674, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8))
  493. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  494. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  495. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, -0.839999914, 4.28161812, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8))
  496. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  497. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Black", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  498. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-9.53674316E-7, 0.0599998236, 8.78162193, -4.3772161E-8, -4.22915036E-11, -1.00000012, -5.424954E-8, 0.999999583, 4.2746251E-11, 1, -5.43077476E-8, -4.3772161E-8))
  499. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(2.00999999, 0.25, 0.25))
  500. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0.25, 0, "Medium stone grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  501. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.74662018, 2.38418579E-7, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  502. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(0.100000001, 1.29999995, 1.29999995))
  503. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Fossil", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  504. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.04661942, 1.1920929E-7, 0, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  505. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=12221505", Vector3.new(0, 0, 0), Vector3.new(0.075000003, 1.13999999, 0.764999986))
  506. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Metal, 0, 0, "Smoky grey", "Part", Vector3.new(0.300000012, 0.300000012, 0.300000012))
  507. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(6.32162285, -0.375000238, 1.90734863E-6, 1, -5.43077476E-8, 0, -5.424954E-8, 0.999999583, 4.2746251E-11, 0, 4.2746251E-11, 1.00000012))
  508. mesh("SpecialMesh", Part, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(25, 4.5, 2))
  509. for _, v in pairs(m:GetChildren()) do
  510. if v.ClassName == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Handle" then
  511. v.Transparency = 1
  512. end
  513. end
  514. Effects = Instance.new("Folder", m)
  515. Effects.Name = "Effects"
  516. Handleweld.Part0 = Torso
  517. Handleweld.C0 = cf(-4, 2.5, 0.8) * angles(0, math.rad(-90), 0) * angles(math.rad(-30), 0, 0)
  518. Humanoid.Died:connect(function()
  519. attack = true
  520. for _, v in pairs(Character:GetChildren()) do
  521. if v:IsA("Model") then
  522. m:Destroy()
  523. end
  524. end
  525. end)
  526. for i, v in pairs(Character:GetChildren()) do
  527. if v:IsA("Model") then
  528. for _, c in pairs(v:GetChildren()) do
  529. if c:IsA("Part") then
  530. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  531. end
  532. end
  533. end
  534. end
  535. print("Gladiator loaded.")
  536. function so(id, par, vol, pit)
  537. coroutine.resume(coroutine.create(function()
  538. local sou = Instance.new("Sound", par or workspace)
  539. sou.Volume = vol
  540. sou.Pitch = pit or 1
  541. sou.SoundId = "http://roblox.com/asset/?id=" .. id
  542. hbwait()
  543. sou:play()
  544. game:GetService("Debris"):AddItem(sou, 10)
  545. end))
  546. end
  547. function clerp(a, b, t)
  548. local qa = {
  549. QuaternionFromCFrame(a)
  550. }
  551. local qb = {
  552. QuaternionFromCFrame(b)
  553. }
  554. local ax, ay, az = a.x, a.y, a.z
  555. local bx, by, bz = b.x, b.y, b.z
  556. local _t = 1 - t
  557. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  558. end
  559. function QuaternionFromCFrame(cf)
  560. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  561. local trace = m00 + m11 + m22
  562. if trace > 0 then
  563. local s = math.sqrt(1 + trace)
  564. local recip = 0.5 / s
  565. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  566. else
  567. local i = 0
  568. if m00 < m11 then
  569. i = 1
  570. end
  571. if m22 > (i == 0 and m00 or m11) then
  572. i = 2
  573. end
  574. if i == 0 then
  575. local s = math.sqrt(m00 - m11 - m22 + 1)
  576. local recip = 0.5 / s
  577. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  578. elseif i == 1 then
  579. local s = math.sqrt(m11 - m22 - m00 + 1)
  580. local recip = 0.5 / s
  581. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  582. elseif i == 2 then
  583. local s = math.sqrt(m22 - m00 - m11 + 1)
  584. local recip = 0.5 / s
  585. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  586. end
  587. end
  588. end
  589. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  590. local xs, ys, zs = x + x, y + y, z + z
  591. local wx, wy, wz = w * xs, w * ys, w * zs
  592. local xx = x * xs
  593. local xy = x * ys
  594. local xz = x * zs
  595. local yy = y * ys
  596. local yz = y * zs
  597. local zz = z * zs
  598. 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))
  599. end
  600. function QuaternionSlerp(a, b, t)
  601. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  602. local startInterp, finishInterp
  603. if cosTheta >= 1.0E-4 then
  604. if 1 - cosTheta > 1.0E-4 then
  605. local theta = math.acos(cosTheta)
  606. local invSinTheta = 1 / math.sin(theta)
  607. startInterp = math.sin((1 - t) * theta) * invSinTheta
  608. finishInterp = math.sin(t * theta) * invSinTheta
  609. else
  610. startInterp = 1 - t
  611. finishInterp = t
  612. end
  613. elseif 1 + cosTheta > 1.0E-4 then
  614. local theta = math.acos(-cosTheta)
  615. local invSinTheta = 1 / math.sin(theta)
  616. startInterp = math.sin((t - 1) * theta) * invSinTheta
  617. finishInterp = math.sin(t * theta) * invSinTheta
  618. else
  619. startInterp = t - 1
  620. finishInterp = t
  621. end
  622. 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
  623. end
  624. function rayCast(Pos, Dir, Max, Ignore)
  625. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  626. end
  627. function DamageStatLabel(cframe, text, color)
  628. local c = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt(0, 0, 0))
  629. c.CFrame = cf(cframe.p + vt(0, 1.5, 0))
  630. game:GetService("Debris"):AddItem(c, 5)
  631. Instance.new("BodyGyro", c)
  632. local f = Instance.new("BodyPosition", c)
  633. f.P = 2000
  634. f.D = 100
  635. f.maxForce = vt(math.huge, math.huge, math.huge)
  636. f.position = c.Position + vt(math.random(-1, 1), 6, math.random(-1, 1))
  637. game:GetService("Debris"):AddItem(c, 5)
  638. local bg = Instance.new("BillboardGui", c)
  639. bg.Adornee = c
  640. bg.Size = UDim2.new(2.5, 0, 2.5, 0)
  641. bg.StudsOffset = vt(-2, 2, 0)
  642. bg.AlwaysOnTop = false
  643. local tl = Instance.new("TextLabel", bg)
  644. tl.BackgroundTransparency = 1
  645. tl.Size = UDim2.new(2.5, 0, 2.5, 0)
  646. tl.Text = text
  647. tl.Font = Enum.Font.SourceSans
  648. tl.FontSize = Enum.FontSize.Size42
  649. tl.TextColor3 = color
  650. tl.TextScaled = false
  651. tl.TextStrokeTransparency = 0
  652. tl.TextScaled = true
  653. tl.TextWrapped = true
  654. f.Parent = c
  655. coroutine.resume(coroutine.create(function(Part, BodyPosition, TextLabel)
  656. wait(0.25)
  657. for i = 1, 5 do
  658. wait()
  659. BodyPosition.position = Part.Position - vt(0, 0.5, 0)
  660. end
  661. wait(1.25)
  662. for i = 1, 5 do
  663. wait()
  664. TextLabel.TextTransparency = TextLabel.TextTransparency + 0.2
  665. TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + 0.2
  666. BodyPosition.position = Part.Position + vt(0, 0.5, 0)
  667. end
  668. Part.Parent = nil
  669. end), c, f, tl)
  670. end
  671. function IncreaseStat(Location, Stat, Amount, Duration, ShowTheStat)
  672. if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil then
  673. if Location.Stats:FindFirstChild("BlockValue").Value ~= true then
  674. if Location.Stats[Stat] ~= nil then
  675. Location.Stats[Stat].Value = Location.Stats[Stat].Value + Amount
  676. if ShowTheStat == true then
  677. if Stat == "Defense" then
  678. DamageStatLabel(Location.Head.CFrame, "+Defense", c3(1, 1, 1))
  679. elseif Stat == "Damage" then
  680. DamageStatLabel(Location.Head.CFrame, "+Damage", c3(1, 1, 1))
  681. elseif Stat == "Movement" then
  682. DamageStatLabel(Location.Head.CFrame, "+Movement", c3(1, 1, 1))
  683. end
  684. end
  685. coroutine.resume(coroutine.create(function(CurrentDecrease)
  686. wait(Duration)
  687. CurrentDecrease.Value = CurrentDecrease.Value - Amount
  688. end), Location.Stats[Stat])
  689. end
  690. else
  691. DamageStatLabel(Location.Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1))
  692. end
  693. end
  694. end
  695. function DecreaseStat(Location, Stat, Amount, Duration, ShowTheStat)
  696. if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil then
  697. if Location.Stats:FindFirstChild("BlockValue").Value ~= true then
  698. if Location.Stats[Stat] ~= nil then
  699. Location.Stats[Stat].Value = Location.Stats[Stat].Value - Amount
  700. if ShowTheStat == true then
  701. if Stat == "Defense" then
  702. DamageStatLabel(Location.Head.CFrame, "-Defense", c3(1, 1, 1))
  703. elseif Stat == "Damage" then
  704. DamageStatLabel(Location.Head.CFrame, "-Damage", c3(1, 1, 1))
  705. elseif Stat == "Movement" then
  706. DamageStatLabel(Location.Head.CFrame, "-Movement", c3(1, 1, 1))
  707. end
  708. end
  709. coroutine.resume(coroutine.create(function(CurrentDecrease)
  710. wait(Duration)
  711. CurrentDecrease.Value = CurrentDecrease.Value + Amount
  712. end), Location.Stats[Stat])
  713. end
  714. else
  715. DamageStatLabel(Location.Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1))
  716. end
  717. end
  718. end
  719. function GetDistance(Part1, Part2, magnitude)
  720. local target = Part1.Position - Part2.Position
  721. local mag = target.magnitude
  722. if magnitude >= mag then
  723. return true
  724. else
  725. return false
  726. end
  727. end
  728. function Damagefunc(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, DecreaseTheStat, DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  729. if hit.Parent == nil then
  730. return
  731. end
  732. h = hit.Parent:FindFirstChild("Humanoid")
  733. for _, v in pairs(hit.Parent:GetChildren()) do
  734. if v:IsA("Humanoid") then
  735. h = v
  736. end
  737. end
  738. if hit.Name == "Hitbox" and ranged ~= true and hit.Parent ~= m then
  739. StaggerHitAnim.Value = true
  740. so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1)
  741. return
  742. end
  743. if AntiTeamKill.Value == true then
  744. if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then
  745. opponent = game.Players:FindFirstChild(hit.Parent.Name)
  746. end
  747. if opponent ~= nil and opponent.TeamColor == Player.TeamColor then
  748. return
  749. end
  750. end
  751. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  752. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  753. end
  754. if hit.Parent.className == "Hat" then
  755. hit = hit.Parent.Parent:findFirstChild("Head")
  756. end
  757. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  758. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  759. return
  760. end
  761. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health <= 0 then
  762. return
  763. end
  764. if hit.Parent:findFirstChild("Stats") ~= nil and hit.Parent.Stats:findFirstChild("StunValue") ~= nil then
  765. hit.Parent.Stats:findFirstChild("StunValue").Value = hit.Parent.Stats:findFirstChild("StunValue").Value + incstun
  766. end
  767. if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:findFirstChild("StaggerAnim") ~= nil and stagger == true then
  768. hit.Parent.Stats:findFirstChild("StaggerAnim").Value = true
  769. end
  770. if hit.Parent:findFirstChild("Stats") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue").Value == true then
  771. DamageStatLabel(hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1))
  772. so(HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
  773. if ranged ~= true then
  774. hit.Parent.Stats:findFirstChild("BlockValue").Value = false
  775. StaggerAnim.Value = true
  776. end
  777. return
  778. end
  779. if DecreaseTheStat ~= nil and hit.Parent:FindFirstChild("Stats") ~= nil then
  780. if DecreaseTheStat == "Defense" then
  781. DecreaseStat(hit.Parent, "Defense", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  782. elseif DecreaseTheStat == "Damage" then
  783. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  784. elseif DecreaseTheStat == "Movement" then
  785. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  786. end
  787. end
  788. local D = math.random(minim, maxim) * Damage.Value
  789. if hit.Parent:FindFirstChild("Stats") ~= nil then
  790. if hit.Parent.Stats:FindFirstChild("Defense") then
  791. if CanPenetrateArmor.Value == true then
  792. else
  793. D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
  794. end
  795. elseif hit.Parent.Stats:FindFirstChild("Defense") == nil then
  796. end
  797. end
  798. if CanCrit.Value == true then
  799. CritChanceNumber = math.random(1, CritChance.Value)
  800. if CritChanceNumber == CritChance.Value then
  801. D = D * 2
  802. end
  803. end
  804. D = math.floor(D)
  805. h.Health = h.Health - D
  806. if D <= 3 and staggerhit == true then
  807. if ranged ~= true then
  808. StaggerHitAnim.Value = true
  809. end
  810. if ranged ~= true then
  811. so(HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1)
  812. end
  813. elseif D > 3 and ranged ~= true then
  814. so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1)
  815. end
  816. if D > 2 and D < 20 then
  817. if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  818. DamageStatLabel(hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254901961, 0, 0))
  819. so("296102734", hit, 1, 1)
  820. else
  821. DamageStatLabel(hit.Parent.Head.CFrame, D, Color3.new(1, 0.8627450980392157, 0))
  822. end
  823. elseif D >= 20 then
  824. if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  825. DamageStatLabel(hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254901961, 0, 0))
  826. so("296102734", hit, 1, 1)
  827. else
  828. DamageStatLabel(hit.Parent.Head.CFrame, D, Color3.new(1, 0, 0))
  829. end
  830. else
  831. if D <= 2 then
  832. if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  833. DamageStatLabel(hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254901961, 0, 0))
  834. so("296102734", hit, 1, 1)
  835. else
  836. DamageStatLabel(hit.Parent.Head.CFrame, D, Color3.new(0.8823529411764706, 0.8823529411764706, 0.8823529411764706))
  837. end
  838. else
  839. end
  840. end
  841. if Type == "Normal" then
  842. so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 2)
  843. vp = Instance.new("BodyVelocity")
  844. vp.P = 500
  845. vp.maxForce = vt(math.huge, 0, math.huge)
  846. if KnockbackType == 1 then
  847. vp.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  848. elseif KnockbackType == 2 then
  849. vp.Velocity = Property.CFrame.lookVector * knockback
  850. end
  851. if knockback > 0 then
  852. vp.Parent = hit.Parent.Torso
  853. end
  854. game:GetService("Debris"):AddItem(vp, 0.5)
  855. elseif Type == "Knockdown" then
  856. so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 2)
  857. vp = Instance.new("BodyVelocity")
  858. vp.P = 1000
  859. vp.maxForce = vt(0, math.huge, 0)
  860. vp.Velocity = Vector3.new(0, 10, 0)
  861. vp.Parent = hit.Parent.Torso
  862. game:GetService("Debris"):AddItem(vp, 0.25)
  863. elseif Type == "Normal2" then
  864. so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 0.8)
  865. vp = Instance.new("BodyVelocity")
  866. vp.P = 500
  867. vp.maxForce = vt(math.huge, 0, math.huge)
  868. if KnockbackType == 1 then
  869. vp.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  870. elseif KnockbackType == 2 then
  871. vp.Velocity = Property.CFrame.lookVector * knockback
  872. end
  873. if knockback > 0 then
  874. vp.Parent = hit.Parent.Torso
  875. end
  876. game:GetService("Debris"):AddItem(vp, 0.5)
  877. elseif Type == "SuperKnockup" then
  878. so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 0.8)
  879. vp = Instance.new("BodyVelocity")
  880. vp.P = 500
  881. vp.maxForce = vt(0, math.huge, 0)
  882. vp.Velocity = vt(0, math.random(20, 40), 0)
  883. if knockback > 0 then
  884. vp.Parent = hit.Parent.Torso
  885. end
  886. game:GetService("Debris"):AddItem(vp, 0.5)
  887. vp2 = Instance.new("BodyVelocity")
  888. vp2.P = 500
  889. vp2.maxForce = vt(math.huge, 0, math.huge)
  890. if KnockbackType == 1 then
  891. vp2.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  892. elseif KnockbackType == 2 then
  893. vp2.Velocity = Property.CFrame.lookVector * knockback
  894. end
  895. if knockback > 0 then
  896. vp2.Parent = hit.Parent.Torso
  897. end
  898. game:GetService("Debris"):AddItem(vp2, 0.5)
  899. elseif Type == "RockHit" then
  900. so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 0.8)
  901. rockvelocity = Instance.new("BodyVelocity")
  902. rockvelocity.P = 500
  903. rockvelocity.maxForce = vt(math.huge, 0, math.huge)
  904. rockvelocity.Velocity = hit.Position * knockback - Property.Position
  905. if knockback > 0 then
  906. rockvelocity.Parent = hit.Parent.Torso
  907. end
  908. game:GetService("Debris"):AddItem(rockvelocity, 0.5)
  909. end
  910. DebounceHit = Instance.new("BoolValue", hit.Parent)
  911. DebounceHit.Name = "DebounceHit"
  912. DebounceHit.Value = true
  913. game:GetService("Debris"):AddItem(DebounceHit, Delay)
  914. end
  915. end
  916. function MagniDamage(Part, magni, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat)
  917. for _, c in pairs(workspace:GetChildren()) do
  918. local hum = c:FindFirstChild("Humanoid")
  919. local head
  920. if hum ~= nil then
  921. head = c:FindFirstChild("Torso")
  922. if head ~= nil then
  923. local targ = head.Position - Part.Position
  924. local mag = targ.magnitude
  925. if magni >= mag and c.Name ~= Player.Name then
  926. Damagefunc(head, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat)
  927. end
  928. end
  929. for _, d in pairs(c:GetChildren()) do
  930. if d.ClassName == "Model" and ranged ~= true then
  931. head = d:FindFirstChild("Hitbox")
  932. if head ~= nil then
  933. local targ = head.Position - Part.Position
  934. local mag = targ.magnitude
  935. if magni >= mag and c.Name ~= Player.Name then
  936. local hitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt())
  937. hitrefpart.Anchored = true
  938. hitrefpart.CFrame = cf(head.Position)
  939. so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hitrefpart, 1, 1)
  940. StaggerHitAnim.Value = true
  941. end
  942. end
  943. end
  944. end
  945. end
  946. end
  947. end
  948. function Lightning(p0, p1, tym, ofs, brickcolor, material, th, tra, last)
  949. local magz = p0 - p1.magnitude
  950. local curpos = p0
  951. local trz = {
  952. -ofs,
  953. ofs
  954. }
  955. for i = 1, tym do
  956. do
  957. local li = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt(th, th, magz / tym))
  958. li.Anchored = true
  959. local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  960. local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz
  961. if tym == i then
  962. local magz2 = curpos - p1.magnitude
  963. li.Size = vt(th, th, magz2)
  964. li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2)
  965. else
  966. li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2)
  967. end
  968. curpos = li.CFrame * cf(0, 0, magz / tym / 2).p
  969. game.Debris:AddItem(li, last)
  970. coroutine.resume(coroutine.create(function()
  971. while li.Transparency ~= 1 do
  972. for i = 0, 1, last do
  973. hbwait()
  974. li.Transparency = li.Transparency + 0.1 / last
  975. end
  976. end
  977. end))
  978. end
  979. end
  980. end
  981. function MagicRing(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  982. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  983. prt.Anchored = true
  984. prt.CFrame = cframe
  985. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  986. game:GetService("Debris"):AddItem(prt, 10)
  987. coroutine.resume(coroutine.create(function(Part, Mesh)
  988. for i = 0, 1, delay do
  989. hbwait()
  990. Part.CFrame = Part.CFrame
  991. Part.Transparency = i
  992. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  993. end
  994. Part.Parent = nil
  995. end), prt, msh)
  996. end
  997. function MagicWave(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  998. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  999. prt.Anchored = true
  1000. prt.CFrame = cframe
  1001. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1002. game:GetService("Debris"):AddItem(prt, 10)
  1003. coroutine.resume(coroutine.create(function(Part, Mesh)
  1004. for i = 0, 1, delay do
  1005. hbwait()
  1006. Part.CFrame = Part.CFrame
  1007. Part.Transparency = i
  1008. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1009. end
  1010. Part.Parent = nil
  1011. end), prt, msh)
  1012. end
  1013. function MagicBlock(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  1014. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1015. prt.Anchored = true
  1016. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1017. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1018. game:GetService("Debris"):AddItem(prt, 10)
  1019. coroutine.resume(coroutine.create(function(Part, Mesh)
  1020. for i = 0, 1, delay do
  1021. hbwait()
  1022. if rotate == true then
  1023. Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1024. else
  1025. end
  1026. Part.Transparency = i
  1027. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1028. end
  1029. Part.Parent = nil
  1030. end), prt, msh)
  1031. end
  1032. function MagicBlock2(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  1033. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1034. prt.Anchored = true
  1035. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1036. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1037. game:GetService("Debris"):AddItem(prt, 10)
  1038. CF = prt.CFrame
  1039. num = math.random(5, 20)
  1040. coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num)
  1041. for i = 0, 1, delay do
  1042. hbwait()
  1043. if rotate == true then
  1044. Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1045. else
  1046. Part.CFrame = CF2 * cf(0, i * Num, 0)
  1047. end
  1048. Part.Transparency = i
  1049. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1050. end
  1051. Part.Parent = nil
  1052. end), prt, msh, CF, num)
  1053. end
  1054. function MagicCylinder(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1055. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1056. prt.Anchored = true
  1057. prt.CFrame = cframe
  1058. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1059. game:GetService("Debris"):AddItem(prt, 10)
  1060. coroutine.resume(coroutine.create(function(Part, Mesh)
  1061. for i = 0, 1, delay do
  1062. hbwait()
  1063. Part.Transparency = i
  1064. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1065. end
  1066. Part.Parent = nil
  1067. end), prt, msh)
  1068. end
  1069. function MagicCircle(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1070. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1071. prt.Anchored = true
  1072. prt.CFrame = cframe
  1073. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1074. game:GetService("Debris"):AddItem(prt, 10)
  1075. coroutine.resume(coroutine.create(function(Part, Mesh)
  1076. for i = 0, 1, delay do
  1077. hbwait()
  1078. Part.Transparency = i
  1079. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1080. end
  1081. Part.Parent = nil
  1082. end), prt, msh)
  1083. end
  1084. function MagicHead(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1085. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1086. prt.Anchored = true
  1087. prt.CFrame = cframe
  1088. local msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
  1089. game:GetService("Debris"):AddItem(prt, 10)
  1090. coroutine.resume(coroutine.create(function(Part, Mesh)
  1091. for i = 0, 1, delay do
  1092. hbwait()
  1093. Part.Transparency = i
  1094. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1095. end
  1096. Part.Parent = nil
  1097. end), prt, msh)
  1098. end
  1099. function BreakEffect(brickcolor, material, rotate, cframe, x1, y1, z1, delay)
  1100. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1101. prt.Anchored = true
  1102. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1103. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1104. game:GetService("Debris"):AddItem(prt, 10)
  1105. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  1106. CF = Part.CFrame
  1107. Numbb = 0
  1108. randnumb = math.random() - math.random()
  1109. for i = 0, 1, delay do
  1110. hbwait()
  1111. CF = CF * cf(0, 1, 0)
  1112. if rotate == true then
  1113. Part.CFrame = CF * angles(Numbb, 0, 0)
  1114. elseif rotate == false then
  1115. Part.CFrame = CF
  1116. end
  1117. Part.Transparency = i
  1118. Numbb = Numbb + randnumb
  1119. end
  1120. Part.Parent = nil
  1121. end), prt, CF, Numbb, randnumb)
  1122. end
  1123. function ElecEffect(brickcolor, material, cf, x, y, z, delay)
  1124. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1125. prt.Anchored = true
  1126. prt.CFrame = cf
  1127. xval = math.random()
  1128. yval = math.random()
  1129. zval = math.random()
  1130. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z))
  1131. game:GetService("Debris"):AddItem(prt, 10)
  1132. coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal)
  1133. for i = 0, 1, delay do
  1134. hbwait()
  1135. Part.CFrame = Part.CFrame
  1136. xvaal = xvaal - 0.1 * (delay * 10)
  1137. yvaal = yvaal - 0.1 * (delay * 10)
  1138. zvaal = zvaal - 0.1 * (delay * 10)
  1139. Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal)
  1140. Part.Transparency = i
  1141. end
  1142. Part.Parent = nil
  1143. end), prt, msh, xval, yval, zval)
  1144. end
  1145. function TrailEffect(brickcolor, material, currentcf, oldcf, meshtype, reflectance, size, x, y, z, delay)
  1146. local prt = part(3, Effects, material, reflectance, 0, brickcolor, "Effect", vt())
  1147. prt.Anchored = true
  1148. prt.CFrame = currentcf
  1149. local TheMeshType = "BlockMesh"
  1150. if meshtype == "Cylinder" then
  1151. TheMeshType = "CylinderMesh"
  1152. end
  1153. local msh = mesh(TheMeshType, prt, "", "", vt(0, 0, 0), vt())
  1154. game:GetService("Debris"):AddItem(prt, 10)
  1155. local magnitudecframe = currentcf.p - oldcf.p.magnitude
  1156. prt.Size = Vector3.new(1, magnitudecframe, 1)
  1157. prt.CFrame = cf((currentcf.p + oldcf.p) / 2, oldcf.p) * angles(math.rad(90), 0, 0)
  1158. msh.Scale = vt(0 + size, 1, 0 + size)
  1159. coroutine.resume(coroutine.create(function(Part, Mesh, TheCurrentCFrame, TheLastCFrame)
  1160. for i = 0, 1, delay do
  1161. hbwait()
  1162. Part.Transparency = i
  1163. Mesh.Scale = Mesh.Scale + vt(x, y, z)
  1164. end
  1165. Part.Parent = nil
  1166. end), prt, msh, currentcf, oldcf)
  1167. end
  1168. function ClangEffect(brickcolor, material, cframe, angle, duration, size, power, reflectance, x, y, z, delay)
  1169. local prt = part(3, Effects, material, 0, 1, brickcolor, "Effect", vt())
  1170. prt.Anchored = true
  1171. prt.CFrame = cframe
  1172. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(0, 0, 0))
  1173. game:GetService("Debris"):AddItem(prt, 10)
  1174. local TheLastPoint = cframe
  1175. coroutine.resume(coroutine.create(function(Part)
  1176. for i = 1, duration do
  1177. hbwait()
  1178. Part.CFrame = Part.CFrame * angles(math.rad(angle), 0, 0) * cf(0, power, 0)
  1179. TrailEffect(brickcolor, material, Part.CFrame, TheLastPoint, "Cylinder", reflectance, size, x, y, z, delay)
  1180. TheLastPoint = Part.CFrame
  1181. end
  1182. Part.Parent = nil
  1183. end), prt)
  1184. end
  1185. function MagicCone(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1186. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1187. prt.Anchored = true
  1188. prt.CFrame = cframe
  1189. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1778999", vt(0, 0, 0), vt(x1, y1, z1))
  1190. game:GetService("Debris"):AddItem(prt, 10)
  1191. coroutine.resume(coroutine.create(function(Part, Mesh)
  1192. for i = 0, 1, delay do
  1193. hbwait()
  1194. Part.Transparency = i
  1195. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1196. end
  1197. Part.Parent = nil
  1198. end), prt, msh)
  1199. end
  1200. function MagicFlatCone(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1201. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1202. prt.Anchored = true
  1203. prt.CFrame = cframe
  1204. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1033714", vt(0, 0, 0), vt(x1, y1, z1))
  1205. game:GetService("Debris"):AddItem(prt, 10)
  1206. coroutine.resume(coroutine.create(function(Part, Mesh)
  1207. for i = 0, 1, delay do
  1208. hbwait()
  1209. Part.Transparency = i
  1210. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1211. end
  1212. Part.Parent = nil
  1213. end), prt, msh)
  1214. end
  1215. function MagicSpikedCrown(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1216. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1217. prt.Anchored = true
  1218. prt.CFrame = cframe
  1219. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1323306", vt(0, 0, 0), vt(x1, y1, z1))
  1220. game:GetService("Debris"):AddItem(prt, 10)
  1221. coroutine.resume(coroutine.create(function(Part, Mesh)
  1222. for i = 0, 1, delay do
  1223. hbwait()
  1224. Part.Transparency = i
  1225. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1226. end
  1227. Part.Parent = nil
  1228. end), prt, msh)
  1229. end
  1230. function MagicCrown(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1231. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1232. prt.Anchored = true
  1233. prt.CFrame = cframe
  1234. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1078075", vt(0, 0, 0), vt(x1, y1, z1))
  1235. game:GetService("Debris"):AddItem(prt, 10)
  1236. coroutine.resume(coroutine.create(function(Part, Mesh)
  1237. for i = 0, 1, delay do
  1238. hbwait()
  1239. Part.Transparency = i
  1240. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1241. end
  1242. Part.Parent = nil
  1243. end), prt, msh)
  1244. end
  1245. function MagicSkull(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1246. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1247. prt.Anchored = true
  1248. prt.CFrame = cframe
  1249. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
  1250. game:GetService("Debris"):AddItem(prt, 10)
  1251. coroutine.resume(coroutine.create(function(Part, Mesh)
  1252. for i = 0, 1, delay do
  1253. hbwait()
  1254. Part.Transparency = i
  1255. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1256. end
  1257. Part.Parent = nil
  1258. end), prt, msh)
  1259. end
  1260. local startequipped = false
  1261. local startequippedwithequipanimation = true
  1262. local disableanimator = true
  1263. local disableanimate = false
  1264. local alternatewalk = false
  1265. local hidemenu = false
  1266. local allowmenutofunction = true
  1267. local allowabilitiestofunction = true
  1268. local canunequiporequip = false
  1269. local allowidle = false
  1270. local allowwalking = false
  1271. local disablemovingarms = false
  1272. local usemotorsinsteadofwelds = false
  1273. local leftarm = false
  1274. local rightarm = false
  1275. local allowhopperbin = false
  1276. local showstunbar = false
  1277. local walkspeeddependsonmovementvalue = true
  1278. local alternatemanaregensystem = true
  1279. local showhealthmanaandstunnumbers = true
  1280. local changebarcolorsifnotenoughmana = false
  1281. local disablejump = false
  1282. if hidemenu == true then
  1283. for _, v in pairs(scrn:GetChildren()) do
  1284. if v.ClassName == "Frame" or v.ClassName == "TextLabel" then
  1285. v.Visible = false
  1286. end
  1287. end
  1288. end
  1289. Humanoid.Changed:connect(function(Jump)
  1290. if Jump == "Jump" and disablejump == true then
  1291. Humanoid.Jump = false
  1292. end
  1293. end)
  1294. if allowmenutofunction == true then
  1295. for _, v in pairs(scrn:GetChildren()) do
  1296. if v.ClassName == "Frame" then
  1297. for _, b in pairs(v:GetChildren()) do
  1298. if b.ClassName == "TextLabel" then
  1299. coroutine.resume(coroutine.create(function(TheTextLabel)
  1300. wait(menuupdatespeed)
  1301. for i = 1, 0, -0.1 do
  1302. hbwait()
  1303. TheTextLabel.TextTransparency = i
  1304. TheTextLabel.TextStrokeTransparency = i
  1305. end
  1306. TheTextLabel.TextTransparency = 0
  1307. TheTextLabel.TextStrokeTransparency = 0
  1308. end), b)
  1309. if showstats == true then
  1310. coroutine.resume(coroutine.create(function(TheTextLabel)
  1311. wait(menuupdatespeed)
  1312. for i = 1, 0, -0.1 do
  1313. hbwait()
  1314. TheTextLabel.TextTransparency = i
  1315. TheTextLabel.TextStrokeTransparency = i
  1316. end
  1317. TheTextLabel.TextTransparency = 0
  1318. TheTextLabel.TextStrokeTransparency = 0
  1319. end), b)
  1320. end
  1321. if showstunbar == true then
  1322. coroutine.resume(coroutine.create(function(TheTextLabel)
  1323. wait(menuupdatespeed)
  1324. for i = 1, 0, -0.1 do
  1325. hbwait()
  1326. TheTextLabel.TextTransparency = i
  1327. TheTextLabel.TextStrokeTransparency = i
  1328. end
  1329. TheTextLabel.TextTransparency = 0
  1330. TheTextLabel.TextStrokeTransparency = 0
  1331. end), b)
  1332. end
  1333. if allowabilitiestofunction == true then
  1334. coroutine.resume(coroutine.create(function(TheTextLabel)
  1335. wait(menuupdatespeed)
  1336. for i = 1, 0, -0.1 do
  1337. hbwait()
  1338. TheTextLabel.TextTransparency = i
  1339. TheTextLabel.TextStrokeTransparency = i
  1340. end
  1341. TheTextLabel.TextTransparency = 0
  1342. TheTextLabel.TextStrokeTransparency = 0
  1343. end), b)
  1344. end
  1345. end
  1346. end
  1347. end
  1348. end
  1349. end
  1350. if allowhopperbin == true then
  1351. if script.Parent.className ~= "HopperBin" then
  1352. Tool = Instance.new("HopperBin")
  1353. Tool.Parent = Backpack
  1354. Tool.Name = "Weapon Name"
  1355. script.Parent = Tool
  1356. end
  1357. Bin = script.Parent
  1358. end
  1359. if disablemovingarms == true then
  1360. RWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
  1361. LWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
  1362. RSH, LSH = nil, nil
  1363. if usemotorsinsteadofwelds == true then
  1364. RW = Instance.new("Motor")
  1365. LW = Instance.new("Motor")
  1366. else
  1367. RW = Instance.new("Weld")
  1368. LW = Instance.new("Weld")
  1369. end
  1370. RW.Name = "Right Shoulder"
  1371. LW.Name = "Left Shoulder"
  1372. RSH = Torso["Right Shoulder"]
  1373. LSH = Torso["Left Shoulder"]
  1374. RSH.Parent = Torso
  1375. LSH.Parent = Torso
  1376. RW.Name = "Right Shoulder"
  1377. RW.Part0 = Torso
  1378. RW.C0 = cf(1.5, 0.5, 0)
  1379. RW.C1 = cf(0, 0.5, 0)
  1380. RW.Part1 = Character["Right Arm"]
  1381. RW.Parent = nil
  1382. LW.Name = "Left Shoulder"
  1383. LW.Part0 = Torso
  1384. LW.C0 = cf(-1.5, 0.5, 0)
  1385. LW.C1 = cf(0, 0.5, 0)
  1386. LW.Part1 = Character["Left Arm"]
  1387. LW.Parent = nil
  1388. else
  1389. RW = Torso["Right Shoulder"]
  1390. LW = Torso["Left Shoulder"]
  1391. RWC0 = cf(-0.5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(0))
  1392. LWC0 = cf(0.5, 0, 0) * angles(math.rad(0), math.rad(-90), math.rad(0))
  1393. end
  1394. if allowidle == true then
  1395. coroutine.resume(coroutine.create(function()
  1396. while true do
  1397. for i = 0, 1, 0.08 do
  1398. wait()
  1399. idleangle = idleangle + 0.005 * idlen
  1400. idlen = idlen - 0.1
  1401. end
  1402. idlen = 0
  1403. for i = 0, 1, 0.08 do
  1404. wait()
  1405. idleangle = idleangle - 0.005 * idlen
  1406. idlen = idlen - 0.1
  1407. end
  1408. idlen = 0
  1409. idleangle = 0
  1410. end
  1411. end))
  1412. end
  1413. if startequipped == true then
  1414. for _, v in pairs(m:GetChildren()) do
  1415. if v.ClassName == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Handle" then
  1416. v.Transparency = 0
  1417. end
  1418. end
  1419. elseif startequippedwithequipanimation == true then
  1420. for _, v in pairs(m:GetChildren()) do
  1421. if v.ClassName == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Handle" then
  1422. coroutine.resume(coroutine.create(function(Part)
  1423. for i = 1, 0, -0.1 do
  1424. hbwait()
  1425. Part.Transparency = i
  1426. end
  1427. Part.Transparency = 0
  1428. end), v)
  1429. end
  1430. end
  1431. end
  1432. function equipanim()
  1433. attack = true
  1434. Movement.Value = Movement.Value - 0.1
  1435. Defense.Value = Defense.Value + 0.4
  1436. so("346134880", RightArm, 0.5, 1)
  1437. so("346134880", LeftArm, 0.5, 1)
  1438. for i = 0, 1, 0.06 / animationspeed do
  1439. hbwait()
  1440. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1441. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1442. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-45)) * RWC0, 0.3 / animationspeed)
  1443. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(45)) * LWC0, 0.3 / animationspeed)
  1444. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1445. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1446. end
  1447. for i = 0, 1, 0.06 / animationspeed do
  1448. hbwait()
  1449. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  1450. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(1.25), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  1451. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.45 / animationspeed)
  1452. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.45 / animationspeed)
  1453. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  1454. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  1455. end
  1456. attack = false
  1457. end
  1458. function unequipanim()
  1459. attack = true
  1460. for i = 0, 1, 0.08 / animationspeed do
  1461. hbwait()
  1462. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1463. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1464. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
  1465. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.3 / animationspeed)
  1466. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
  1467. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.3 / animationspeed)
  1468. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1469. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1470. end
  1471. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1472. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1473. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 1)
  1474. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 1)
  1475. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 1)
  1476. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 1)
  1477. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1478. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1479. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1480. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1481. Movement.Value = Movement.Value + 0.1
  1482. Defense.Value = Defense.Value - 0.4
  1483. attack = false
  1484. end
  1485. if startequipped == true then
  1486. equipped = true
  1487. if disableanimate == true then
  1488. Animate.Disabled = true
  1489. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1490. idleanimation:Play()
  1491. end
  1492. if disableanimator == true then
  1493. Animator.Parent = nil
  1494. end
  1495. if disablemovingarms == true then
  1496. RW.Parent = Torso
  1497. LW.Parent = Torso
  1498. RSH.Parent = nil
  1499. LSH.Parent = nil
  1500. end
  1501. Movement.Value = Movement.Value - 0.1
  1502. Defense.Value = Defense.Value + 0.4
  1503. elseif startequippedwithequipanimation == true then
  1504. equipped = true
  1505. if disableanimate == true then
  1506. Animate.Disabled = true
  1507. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1508. idleanimation:Play()
  1509. end
  1510. if disableanimator == true then
  1511. Animator.Parent = nil
  1512. end
  1513. if disablemovingarms == true then
  1514. RW.Parent = Torso
  1515. LW.Parent = Torso
  1516. RSH.Parent = nil
  1517. LSH.Parent = nil
  1518. end
  1519. coroutine.resume(coroutine.create(function()
  1520. hbwait()
  1521. equipanim()
  1522. end))
  1523. end
  1524. function StaggerHit()
  1525. attack = true
  1526. for i = 1, math.random(2, 4) do
  1527. ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  1528. end
  1529. for i = 0, 1, 0.1 / animationspeed do
  1530. hbwait()
  1531. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3 / animationspeed)
  1532. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1533. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-30), math.rad(0), math.rad(60)) * angles(math.rad(0), math.rad(-30), math.rad(0)) * RWC0, 0.3 / animationspeed)
  1534. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)) * angles(math.rad(0), math.rad(20), math.rad(0)) * LWC0, 0.3 / animationspeed)
  1535. RH.C0 = clerp(RH.C0, cf(1, -0.9 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3 / animationspeed)
  1536. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(10)), 0.3 / animationspeed)
  1537. if StaggerAnim.Value == true or StunAnim.Value == true then
  1538. break
  1539. end
  1540. end
  1541. attack = false
  1542. end
  1543. function Stagger()
  1544. attack = true
  1545. disablejump = true
  1546. for i = 1, math.random(2, 4) do
  1547. ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  1548. end
  1549. attacktype = 1
  1550. local staggervelocity = Instance.new("BodyVelocity", Torso)
  1551. staggervelocity.P = 500
  1552. staggervelocity.maxForce = vt(math.huge, 0, math.huge)
  1553. if Rooted.Value == false then
  1554. staggervelocity.Velocity = RootPart.CFrame.lookVector * -25
  1555. end
  1556. for i = 0, 1, 0.35 / animationspeed do
  1557. hbwait()
  1558. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + idleangle) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3 / animationspeed)
  1559. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(35)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1560. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(20), math.rad(-30), math.rad(40)) * RWC0, 0.3 / animationspeed)
  1561. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(10), math.rad(5), math.rad(-20)) * LWC0, 0.3 / animationspeed)
  1562. RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, -0.25) * angles(math.rad(0), math.rad(100), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(40)), 0.3 / animationspeed)
  1563. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(-60), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(10)), 0.3 / animationspeed)
  1564. end
  1565. for i = 0, 1, 0.2 / animationspeed do
  1566. hbwait()
  1567. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2 + idleangle) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3 / animationspeed)
  1568. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(35)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1569. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(20), math.rad(-30), math.rad(40)) * RWC0, 0.3 / animationspeed)
  1570. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(10), math.rad(5), math.rad(-20)) * LWC0, 0.3 / animationspeed)
  1571. RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, -0.25) * angles(math.rad(0), math.rad(100), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(40)), 0.3 / animationspeed)
  1572. LH.C0 = clerp(LH.C0, cf(-1, -0.9 - idleangle, 0.25) * angles(math.rad(0), math.rad(-60), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(30)), 0.3 / animationspeed)
  1573. end
  1574. staggervelocity:Destroy()
  1575. for i = 0, 1, 0.015 / animationspeed do
  1576. hbwait()
  1577. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-20)) * angles(math.rad(-5), math.rad(-5), math.rad(0)), 0.3 / animationspeed)
  1578. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(20)) * angles(math.rad(0), math.rad(5), math.rad(0)), 0.3 / animationspeed)
  1579. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * angles(math.rad(0), math.rad(-20), math.rad(0)) * RWC0, 0.3 / animationspeed)
  1580. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-10)) * angles(math.rad(0), math.rad(20), math.rad(0)) * LWC0, 0.3 / animationspeed)
  1581. RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(70)) * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3 / animationspeed)
  1582. LH.C0 = clerp(LH.C0, cf(-1, 0.4 - idleangle, -0.5) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-10)), 0.3 / animationspeed)
  1583. if StunAnim.Value == true then
  1584. break
  1585. end
  1586. end
  1587. attacktype = 1
  1588. disablejump = false
  1589. attack = false
  1590. end
  1591. function Stun()
  1592. attack = true
  1593. disablejump = true
  1594. attacktype = 1
  1595. DamageStatLabel(Head.CFrame, "Stunned!", Color3.new(1, 1, 0))
  1596. for i = 0, 1, 0.4 / animationspeed do
  1597. hbwait()
  1598. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(15), math.rad(0), math.rad(-160)), 0.3 / animationspeed)
  1599. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1600. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(70), math.rad(0), math.rad(15)) * RWC0, 0.3 / animationspeed)
  1601. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(70), math.rad(0), math.rad(-15)) * LWC0, 0.3 / animationspeed)
  1602. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.3 / animationspeed)
  1603. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.3 / animationspeed)
  1604. end
  1605. for i = 0, 1, 0.4 / animationspeed do
  1606. hbwait()
  1607. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5 + idleangle) * angles(math.rad(45), math.rad(0), math.rad(-170)), 0.3 / animationspeed)
  1608. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-30)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1609. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(45)) * RWC0, 0.3 / animationspeed)
  1610. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(-45)) * LWC0, 0.3 / animationspeed)
  1611. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-40)), 0.3 / animationspeed)
  1612. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.3 / animationspeed)
  1613. end
  1614. for i = 0, 1, 0.4 / animationspeed do
  1615. hbwait()
  1616. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1 + idleangle) * angles(math.rad(75), math.rad(0), math.rad(-180)), 0.3 / animationspeed)
  1617. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-60)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1618. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(75)) * RWC0, 0.3 / animationspeed)
  1619. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-45), math.rad(0), math.rad(-75)) * LWC0, 0.3 / animationspeed)
  1620. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-40)), 0.3 / animationspeed)
  1621. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-30)), 0.3 / animationspeed)
  1622. end
  1623. gyro = Instance.new("BodyGyro")
  1624. gyro.Parent = nil
  1625. gyro.P = 10000000
  1626. gyro.D = 1000
  1627. gyro.MaxTorque = vt(10000000, 10000000, 10000000)
  1628. gyro.cframe = RootPart.CFrame
  1629. for i = 1, 70 * animationspeed do
  1630. hbwait()
  1631. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5 + idleangle) * angles(math.rad(90), math.rad(0), math.rad(-180)), 0.3 / animationspeed)
  1632. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1633. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(-10), math.rad(90)) * RWC0, 0.3 / animationspeed)
  1634. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-90), math.rad(0), math.rad(-90)) * LWC0, 0.3 / animationspeed)
  1635. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.2) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1636. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-100), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1637. end
  1638. for i = 0, 1, 0.5 / animationspeed do
  1639. hbwait()
  1640. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1 + idleangle) * angles(math.rad(90), math.rad(0), math.rad(-180)), 0.3 / animationspeed)
  1641. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1642. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(-10), math.rad(120)) * RWC0, 0.3 / animationspeed)
  1643. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-90), math.rad(0), math.rad(-120)) * LWC0, 0.3 / animationspeed)
  1644. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.2) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3 / animationspeed)
  1645. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-100), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3 / animationspeed)
  1646. end
  1647. for i = 0, 1, 0.15 / animationspeed do
  1648. hbwait()
  1649. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5 + idleangle) * angles(math.rad(30), math.rad(0), math.rad(120)), 0.3 / animationspeed)
  1650. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1651. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)) * RWC0, 0.3 / animationspeed)
  1652. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(20)) * LWC0, 0.3 / animationspeed)
  1653. RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(70)), 0.3 / animationspeed)
  1654. LH.C0 = clerp(LH.C0, cf(-1, -0.25 - idleangle, -1) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(5), math.rad(0), math.rad(30)), 0.3 / animationspeed)
  1655. end
  1656. gyro.Parent = nil
  1657. attacktype = 1
  1658. disablejump = false
  1659. attack = false
  1660. end
  1661. function Dance()
  1662. if Mode == "Sword" then
  1663. EAbility()
  1664. end
  1665. attack = true
  1666. dancing = true
  1667. disablejump = true
  1668. Rooted.Value = true
  1669. while dancing == true do
  1670. hbwait()
  1671. for i = 0, 1, 0.5 / animationspeed do
  1672. hbwait()
  1673. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.5 / animationspeed)
  1674. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.25 / animationspeed)
  1675. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.25) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.25 / animationspeed)
  1676. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.25) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.25 / animationspeed)
  1677. RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(22.5)), 0.5 / animationspeed)
  1678. LH.C0 = clerp(LH.C0, cf(-1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-22.5)), 0.5 / animationspeed)
  1679. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true or dancing == false then
  1680. break
  1681. end
  1682. end
  1683. for i = 0, 1, 0.15 / animationspeed do
  1684. hbwait()
  1685. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(-0.5, 0, 0 + idleangle) * angles(math.rad(0), math.rad(-20), math.rad(30)), 0.5 / animationspeed)
  1686. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(-30)), 0.25 / animationspeed)
  1687. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(60), math.rad(0), math.rad(-60)) * RWC0, 0.25 / animationspeed)
  1688. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(60), math.rad(0), math.rad(-60)) * LWC0, 0.25 / animationspeed)
  1689. RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(-22.5), math.rad(0), math.rad(-7.5)), 0.5 / animationspeed)
  1690. LH.C0 = clerp(LH.C0, cf(-1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.5 / animationspeed)
  1691. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true or dancing == false then
  1692. break
  1693. end
  1694. end
  1695. for i = 0, 1, 0.5 / animationspeed do
  1696. hbwait()
  1697. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.5 / animationspeed)
  1698. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.25 / animationspeed)
  1699. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.25) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.25 / animationspeed)
  1700. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.25) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.25 / animationspeed)
  1701. RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(22.5)), 0.5 / animationspeed)
  1702. LH.C0 = clerp(LH.C0, cf(-1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-22.5)), 0.5 / animationspeed)
  1703. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true or dancing == false then
  1704. break
  1705. end
  1706. end
  1707. for i = 0, 1, 0.15 / animationspeed do
  1708. hbwait()
  1709. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0.5, 0, 0 + idleangle) * angles(math.rad(0), math.rad(20), math.rad(-30)), 0.5 / animationspeed)
  1710. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(10), math.rad(30)), 0.25 / animationspeed)
  1711. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(60), math.rad(0), math.rad(60)) * RWC0, 0.25 / animationspeed)
  1712. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(60), math.rad(0), math.rad(60)) * LWC0, 0.25 / animationspeed)
  1713. RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.5 / animationspeed)
  1714. LH.C0 = clerp(LH.C0, cf(-1, -0.75 - idleangle, 0) * angles(math.rad(0), math.rad(-60), math.rad(0)) * angles(math.rad(-22.5), math.rad(0), math.rad(7.5)), 0.5 / animationspeed)
  1715. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true or dancing == false then
  1716. break
  1717. end
  1718. end
  1719. end
  1720. disablejump = false
  1721. Rooted.Value = false
  1722. attack = false
  1723. end
  1724. function EAbility()
  1725. attack = true
  1726. if Mode == "Normal" then
  1727. Mode = "Sword"
  1728. for i = 0, 1, 0.08 / animationspeed do
  1729. hbwait()
  1730. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.3 / animationspeed)
  1731. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3 / animationspeed)
  1732. RW.C0 = clerp(RW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-110)) * angles(math.rad(50), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
  1733. LW.C0 = clerp(LW.C0, cf(-1.5, 0.75 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)) * angles(math.rad(40), math.rad(0), math.rad(0)) * LWC0, 0.3 / animationspeed)
  1734. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1735. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.3 / animationspeed)
  1736. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1737. break
  1738. end
  1739. end
  1740. Handleweld.Part0 = LeftArm
  1741. Handleweld.C0 = cf(0.2, -2.5, 0) * angles(math.rad(90), math.rad(20), math.rad(160))
  1742. Defense.Value = Defense.Value + 0.2
  1743. Damage.Value = Damage.Value + 0.5
  1744. Movement.Value = Movement.Value - 0.4
  1745. manawait = 30
  1746. elseif Mode == "Sword" then
  1747. Mode = "Normal"
  1748. for i = 0, 1, 0.08 / animationspeed do
  1749. hbwait()
  1750. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.3 / animationspeed)
  1751. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3 / animationspeed)
  1752. RW.C0 = clerp(RW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-110)) * angles(math.rad(50), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
  1753. LW.C0 = clerp(LW.C0, cf(-1.5, 0.75 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)) * angles(math.rad(40), math.rad(0), math.rad(0)) * LWC0, 0.3 / animationspeed)
  1754. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1755. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.3 / animationspeed)
  1756. Handleweld.C0 = clerp(Handleweld.C0, cf(0.2, -2.5, 0) * angles(math.rad(90), math.rad(20), math.rad(160)), 0.3 / animationspeed)
  1757. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1758. break
  1759. end
  1760. end
  1761. Handleweld.Part0 = Torso
  1762. Handleweld.C0 = cf(-4, 2.5, 0.8) * angles(0, math.rad(-90), 0) * angles(math.rad(-30), 0, 0)
  1763. Defense.Value = Defense.Value - 0.2
  1764. Damage.Value = Damage.Value - 0.5
  1765. Movement.Value = Movement.Value + 0.4
  1766. manawait = 20
  1767. end
  1768. attack = false
  1769. end
  1770. function Attack1()
  1771. attack = true
  1772. if Mode == "Normal" then
  1773. for i = 0, 1, 0.15 / animationspeed do
  1774. hbwait()
  1775. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.45 / animationspeed)
  1776. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(2.5), math.rad(0), math.rad(-40)), 0.45 / animationspeed)
  1777. RW.C0 = clerp(RW.C0, cf(1.5, 0.25 + idleangle, 0) * angles(math.rad(110), math.rad(0), math.rad(-15)) * RWC0, 0.45 / animationspeed)
  1778. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(10)) * LWC0, 0.45 / animationspeed)
  1779. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2.5)), 0.45 / animationspeed)
  1780. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.45 / animationspeed)
  1781. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1782. break
  1783. end
  1784. end
  1785. so("169445092", LeftArm, 1, 0.8)
  1786. for i = 0, 1, 0.15 / animationspeed do
  1787. hbwait()
  1788. MagniDamage(LeftArm, 5, 5, 10, math.random(2, 4), "Normal", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false)
  1789. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.25, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.6 / animationspeed)
  1790. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(50)), 0.6 / animationspeed)
  1791. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(-20)) * RWC0, 0.6 / animationspeed)
  1792. LW.C0 = clerp(LW.C0, cf(-1.5, 0.4 + idleangle, -0.25) * angles(math.rad(100), math.rad(0), math.rad(-20)) * LWC0, 0.6 / animationspeed)
  1793. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-5)), 0.6 / animationspeed)
  1794. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(-40), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(2.5)), 0.6 / animationspeed)
  1795. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1796. break
  1797. end
  1798. end
  1799. for i = 0, 1, 0.15 / animationspeed do
  1800. hbwait()
  1801. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.45 / animationspeed)
  1802. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.45 / animationspeed)
  1803. RW.C0 = clerp(RW.C0, cf(1.5, 0.25 + idleangle, 0) * angles(math.rad(110), math.rad(0), math.rad(-15)) * RWC0, 0.45 / animationspeed)
  1804. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(10)) * LWC0, 0.45 / animationspeed)
  1805. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-5)), 0.45 / animationspeed)
  1806. LH.C0 = clerp(LH.C0, cf(-0.85, -1 - idleangle, 0.4) * angles(math.rad(0), math.rad(-30), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-5)), 0.45 / animationspeed)
  1807. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1808. break
  1809. end
  1810. end
  1811. so("169445092", RightArm, 1, 0.9)
  1812. for i = 0, 1, 0.15 / animationspeed do
  1813. hbwait()
  1814. MagniDamage(RightArm, 5, 5, 10, math.random(2, 4), "Normal", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false)
  1815. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.25, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.6 / animationspeed)
  1816. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-2.5), math.rad(0), math.rad(-50)), 0.6 / animationspeed)
  1817. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, -0.25) * angles(math.rad(90), math.rad(0), math.rad(30)) * RWC0, 0.6 / animationspeed)
  1818. LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, 0) * angles(math.rad(110), math.rad(0), math.rad(30)) * LWC0, 0.6 / animationspeed)
  1819. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(40), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-5)), 0.6 / animationspeed)
  1820. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.6 / animationspeed)
  1821. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1822. break
  1823. end
  1824. end
  1825. elseif Mode == "Sword" then
  1826. for i = 0, 1, 0.05 / animationspeed do
  1827. hbwait()
  1828. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.3 / animationspeed)
  1829. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(10)), 0.3 / animationspeed)
  1830. RW.C0 = clerp(RW.C0, cf(-0.25, 0.25 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-55)) * RWC0, 0.3 / animationspeed)
  1831. LW.C0 = clerp(LW.C0, cf(-1.25, 0.5 + idleangle, -0.25) * angles(math.rad(20), math.rad(0), math.rad(-80)) * angles(math.rad(0), math.rad(150), math.rad(0)) * LWC0, 0.3 / animationspeed)
  1832. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(2.5)), 0.3 / animationspeed)
  1833. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.3 / animationspeed)
  1834. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-50), math.rad(0), math.rad(-5)), 0.3 / animationspeed)
  1835. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1836. break
  1837. end
  1838. end
  1839. so("231917950", Hitbox, 1, 1.2)
  1840. so("203691447", Hitbox, 1, 1.2)
  1841. for i = 0, 1, 0.05 / animationspeed do
  1842. hbwait()
  1843. MagniDamage(Hitbox, 8, 5, 10, math.random(2, 4), "Normal2", RootPart, 0.75, 1, 0, nil, false, true, nil, 0, 0, false)
  1844. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.3 / animationspeed)
  1845. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(30)), 0.3 / animationspeed)
  1846. RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(110), math.rad(0), math.rad(-50)) * RWC0, 0.3 / animationspeed)
  1847. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(30)) * angles(math.rad(0), math.rad(85), math.rad(0)) * LWC0, 0.3 / animationspeed)
  1848. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-5)), 0.3 / animationspeed)
  1849. LH.C0 = clerp(LH.C0, cf(-0.75, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(-20), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-2.5)), 0.3 / animationspeed)
  1850. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -0.5, -0.25) * angles(math.rad(-70), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1851. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1852. break
  1853. end
  1854. end
  1855. end
  1856. attack = false
  1857. end
  1858. function Attack2()
  1859. attack = true
  1860. if Mode == "Normal" then
  1861. for i = 0, 1, 0.15 / animationspeed do
  1862. hbwait()
  1863. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.45 / animationspeed)
  1864. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10)) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  1865. RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(60), math.rad(0), math.rad(-30)) * RWC0, 0.45 / animationspeed)
  1866. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)) * LWC0, 0.45 / animationspeed)
  1867. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-2.5)), 0.45 / animationspeed)
  1868. LH.C0 = clerp(LH.C0, cf(-1, -0.75 - idleangle, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(40)), 0.45 / animationspeed)
  1869. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1870. break
  1871. end
  1872. end
  1873. disablejump = true
  1874. Rooted.Value = true
  1875. so("169445092", LeftLeg, 1, 1)
  1876. for i = 0, 1, 0.15 / animationspeed do
  1877. hbwait()
  1878. MagniDamage(LeftLeg, 5, 5, 10, 0, "Knockdown", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false)
  1879. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.25, 0 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.6 / animationspeed)
  1880. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.6 / animationspeed)
  1881. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(10), math.rad(0), math.rad(10)) * RWC0, 0.6 / animationspeed)
  1882. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)) * LWC0, 0.6 / animationspeed)
  1883. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.6 / animationspeed)
  1884. LH.C0 = clerp(LH.C0, cf(-1, -0.5 - idleangle, -0.25) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-100)), 0.6 / animationspeed)
  1885. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1886. break
  1887. end
  1888. end
  1889. for i = 0, 1, 0.15 / animationspeed do
  1890. hbwait()
  1891. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(-20), math.rad(0), math.rad(-70)), 0.45 / animationspeed)
  1892. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(70)) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  1893. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(30), math.rad(0), math.rad(10)) * RWC0, 0.45 / animationspeed)
  1894. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)) * LWC0, 0.45 / animationspeed)
  1895. RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-22.5), math.rad(0), math.rad(-2.5)), 0.45 / animationspeed)
  1896. LH.C0 = clerp(LH.C0, cf(-1.1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.45 / animationspeed)
  1897. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1898. break
  1899. end
  1900. end
  1901. so("169445092", LeftLeg, 1, 0.7)
  1902. for i = 0, 1, 0.15 / animationspeed do
  1903. hbwait()
  1904. MagniDamage(LeftLeg, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false)
  1905. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -0.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(-90)), 0.6 / animationspeed)
  1906. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(90)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.6 / animationspeed)
  1907. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(30), math.rad(0), math.rad(30)) * RWC0, 0.6 / animationspeed)
  1908. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-10), math.rad(0), math.rad(-50)) * LWC0, 0.6 / animationspeed)
  1909. RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-22.5), math.rad(0), math.rad(-2.5)), 0.6 / animationspeed)
  1910. LH.C0 = clerp(LH.C0, cf(-1.1, -0.35 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-12.5), math.rad(0), math.rad(-2.5)), 0.6 / animationspeed)
  1911. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1912. break
  1913. end
  1914. end
  1915. disablejump = false
  1916. Rooted.Value = false
  1917. elseif Mode == "Sword" then
  1918. for i = 0, 1, 0.05 / animationspeed do
  1919. hbwait()
  1920. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3 / animationspeed)
  1921. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(40)), 0.3 / animationspeed)
  1922. RW.C0 = clerp(RW.C0, cf(0.5, 0 + idleangle, -0.75) * angles(math.rad(90), math.rad(0), math.rad(-55)) * angles(math.rad(15), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
  1923. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(60)) * angles(math.rad(-10), math.rad(-90), math.rad(0)) * LWC0, 0.3 / animationspeed)
  1924. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-5)), 0.3 / animationspeed)
  1925. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0.5) * angles(math.rad(0), math.rad(-30), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(5)), 0.3 / animationspeed)
  1926. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-40), math.rad(0), math.rad(-5)), 0.3 / animationspeed)
  1927. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1928. break
  1929. end
  1930. end
  1931. so("231917950", Hitbox, 1, 1.2)
  1932. so("203691467", Hitbox, 1, 1.2)
  1933. for i = 0, 1, 0.05 / animationspeed do
  1934. hbwait()
  1935. MagniDamage(Hitbox, 8, 5, 10, math.random(2, 4), "Normal2", RootPart, 0.75, 1, 0, nil, false, true, nil, 0, 0, false)
  1936. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3 / animationspeed)
  1937. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-30)), 0.3 / animationspeed)
  1938. RW.C0 = clerp(RW.C0, cf(-0.5, 0 + idleangle, -0.75) * angles(math.rad(90), math.rad(0), math.rad(-100)) * angles(math.rad(20), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
  1939. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-50)) * angles(math.rad(-10), math.rad(-90), math.rad(0)) * LWC0, 0.3 / animationspeed)
  1940. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(40), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(2.5)), 0.3 / animationspeed)
  1941. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-17.5), math.rad(0), math.rad(5)), 0.3 / animationspeed)
  1942. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-50), math.rad(0), math.rad(-5)), 0.3 / animationspeed)
  1943. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1944. break
  1945. end
  1946. end
  1947. end
  1948. attack = false
  1949. end
  1950. function Attack3()
  1951. attack = true
  1952. if Mode == "Normal" then
  1953. disablejump = true
  1954. Rooted.Value = true
  1955. for i = 0, 1, 0.15 / animationspeed do
  1956. hbwait()
  1957. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(-20), math.rad(0), math.rad(80)), 0.45 / animationspeed)
  1958. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-70)) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  1959. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(30)) * RWC0, 0.45 / animationspeed)
  1960. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-5), math.rad(0), math.rad(-20)) * LWC0, 0.45 / animationspeed)
  1961. RH.C0 = clerp(RH.C0, cf(0.75, -0.25 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-60), math.rad(0), math.rad(5)), 0.45 / animationspeed)
  1962. LH.C0 = clerp(LH.C0, cf(-1, -0.7 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-22.5), math.rad(0), math.rad(2.5)), 0.45 / animationspeed)
  1963. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1964. break
  1965. end
  1966. end
  1967. so("169445092", RightLeg, 1, 1.1)
  1968. for i = 0, 1, 0.15 / animationspeed do
  1969. hbwait()
  1970. MagniDamage(RightLeg, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false)
  1971. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0 + idleangle) * angles(math.rad(-15), math.rad(0), math.rad(90)), 0.6 / animationspeed)
  1972. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-80)) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.6 / animationspeed)
  1973. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(45)) * RWC0, 0.6 / animationspeed)
  1974. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-5), math.rad(0), math.rad(-40)) * LWC0, 0.6 / animationspeed)
  1975. RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.25) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-70), math.rad(0), math.rad(0)), 0.6 / animationspeed)
  1976. LH.C0 = clerp(LH.C0, cf(-1, -0.7 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-27.5), math.rad(0), math.rad(2.5)), 0.6 / animationspeed)
  1977. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1978. break
  1979. end
  1980. end
  1981. for i = 0, 1, 0.15 / animationspeed do
  1982. hbwait()
  1983. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, -0.25 + idleangle) * angles(math.rad(5), math.rad(0), math.rad(45)), 0.45 / animationspeed)
  1984. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-45)), 0.45 / animationspeed)
  1985. RW.C0 = clerp(RW.C0, cf(1.5, 0.25 + idleangle, 0) * angles(math.rad(130), math.rad(0), math.rad(-10)) * RWC0, 0.45 / animationspeed)
  1986. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(50), math.rad(0), math.rad(-15)) * LWC0, 0.45 / animationspeed)
  1987. RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, 0.25) * angles(math.rad(0), math.rad(45), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(10)), 0.45 / animationspeed)
  1988. LH.C0 = clerp(LH.C0, cf(-1, -0.75 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-2.5)), 0.45 / animationspeed)
  1989. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  1990. break
  1991. end
  1992. end
  1993. so("169445092", LeftLeg, 1, 1.2)
  1994. for i = 0, 1, 0.15 / animationspeed do
  1995. hbwait()
  1996. MagniDamage(LeftLeg, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false)
  1997. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, 0 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(-80)), 0.6 / animationspeed)
  1998. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(80)) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.6 / animationspeed)
  1999. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(30), math.rad(0), math.rad(5)) * RWC0, 0.6 / animationspeed)
  2000. LW.C0 = clerp(LW.C0, cf(-1.25, 0.25 + idleangle, 0) * angles(math.rad(110), math.rad(0), math.rad(25)) * LWC0, 0.6 / animationspeed)
  2001. RH.C0 = clerp(RH.C0, cf(1, -0.8 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-17.5), math.rad(0), math.rad(-10)), 0.6 / animationspeed)
  2002. LH.C0 = clerp(LH.C0, cf(-0.75, -0.5 - idleangle, -0.25) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-70), math.rad(0), math.rad(-30)), 0.6 / animationspeed)
  2003. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2004. break
  2005. end
  2006. end
  2007. disablejump = false
  2008. Rooted.Value = false
  2009. elseif Mode == "Sword" then
  2010. for i = 0, 1, 0.05 / animationspeed do
  2011. hbwait()
  2012. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(50)), 0.3 / animationspeed)
  2013. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-50)) * angles(math.rad(-7.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2014. RW.C0 = clerp(RW.C0, cf(-0.5, 0.25 + idleangle, -0.5) * angles(math.rad(120), math.rad(0), math.rad(-75)) * angles(math.rad(-40), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
  2015. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(110), math.rad(0), math.rad(-90)) * angles(math.rad(-70), math.rad(60), math.rad(0)) * LWC0, 0.3 / animationspeed)
  2016. RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, 0) * angles(math.rad(0), math.rad(30), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(22.5)), 0.3 / animationspeed)
  2017. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(5)), 0.3 / animationspeed)
  2018. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2019. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2020. break
  2021. end
  2022. end
  2023. so("231917950", Hitbox, 1, 0.8)
  2024. so("203691447", Hitbox, 1, 0.8)
  2025. for i = 0, 1, 0.05 / animationspeed do
  2026. hbwait()
  2027. MagniDamage(Hitbox, 8, 5, 10, math.random(2, 4), "Normal2", RootPart, 0.75, 1, 0, nil, false, true, nil, 0, 0, false)
  2028. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, -0.1 + idleangle) * angles(math.rad(-5), math.rad(0), math.rad(-50)), 0.3 / animationspeed)
  2029. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(50)) * angles(math.rad(7.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2030. RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)) * angles(math.rad(10), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
  2031. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(50)) * angles(math.rad(10), math.rad(80), math.rad(0)) * LWC0, 0.3 / animationspeed)
  2032. RH.C0 = clerp(RH.C0, cf(1, -0.8 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-5)), 0.3 / animationspeed)
  2033. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(-40), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(2.5)), 0.3 / animationspeed)
  2034. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-50), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2035. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2036. break
  2037. end
  2038. end
  2039. end
  2040. attack = false
  2041. end
  2042. function GroundSmash(Part, Range)
  2043. local hit, pos = rayCast(Part.Position, cf(Part.Position, Part.Position + vt(0, -1, 0)).lookVector, Range, Character)
  2044. if hit ~= nil then
  2045. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2046. refpart.Anchored = true
  2047. refpart.CFrame = cf(pos)
  2048. game:GetService("Debris"):AddItem(refpart, 5)
  2049. for i = 1, math.random(10, 20) do
  2050. local flyingdebris = part(3, Effects, hit.Material, 0, 0, hit.BrickColor, "Effect", vt(math.random(100, 200) / 100, math.random(100, 200) / 100, math.random(100, 200) / 100))
  2051. flyingdebris.TopSurface = hit.TopSurface
  2052. flyingdebris.BottomSurface = hit.BottomSurface
  2053. flyingdebris.LeftSurface = hit.LeftSurface
  2054. flyingdebris.RightSurface = hit.RightSurface
  2055. flyingdebris.FrontSurface = hit.FrontSurface
  2056. flyingdebris.BackSurface = hit.BackSurface
  2057. flyingdebris.Anchored = false
  2058. flyingdebris.CFrame = refpart.CFrame * cf(math.random(-100, 100) / 100, 0, math.random(-100, 100) / 100) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
  2059. flyingdebris.Velocity = Vector3.new(math.random(-75, 75), math.random(50, 75), math.random(-75, 75))
  2060. game:GetService("Debris"):AddItem(flyingdebris, 5)
  2061. coroutine.resume(coroutine.create(function(TheDebris)
  2062. for i = 0, 1, 0.1 do
  2063. hbwait()
  2064. TheDebris.Transparency = i
  2065. end
  2066. TheDebris.Transparency = 1
  2067. TheDebris.Parent = nil
  2068. end), flyingdebris)
  2069. end
  2070. for i = 1, math.random(10, 20) do
  2071. local grounddebris = part(3, Effects, hit.Material, 0, 0, hit.BrickColor, "Effect", vt(math.random(100, 200) / 100, math.random(100, 200) / 100, math.random(100, 200) / 100))
  2072. grounddebris.TopSurface = hit.TopSurface
  2073. grounddebris.BottomSurface = hit.BottomSurface
  2074. grounddebris.LeftSurface = hit.LeftSurface
  2075. grounddebris.RightSurface = hit.RightSurface
  2076. grounddebris.FrontSurface = hit.FrontSurface
  2077. grounddebris.BackSurface = hit.BackSurface
  2078. grounddebris.Anchored = true
  2079. grounddebris.CFrame = refpart.CFrame * cf(math.random(-750, 750) / 100, 0, math.random(-750, 750) / 100) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
  2080. game:GetService("Debris"):AddItem(grounddebris, 10)
  2081. coroutine.resume(coroutine.create(function(TheDebris)
  2082. wait(5)
  2083. for i = 0, 1, 0.1 do
  2084. hbwait()
  2085. TheDebris.Transparency = i
  2086. end
  2087. TheDebris.Transparency = 1
  2088. TheDebris.Parent = nil
  2089. end), grounddebris)
  2090. end
  2091. so("199145477", refpart, 1, 0.75)
  2092. so("157878578", refpart, 1, 1)
  2093. MagicRing(hit.BrickColor, hit.Material, refpart.CFrame * angles(math.rad(90), 0, 0), 5, 5, 1, 1, 1, 1, 0.05)
  2094. MagicWave(hit.BrickColor, hit.Material, refpart.CFrame, 2.5, 2.5, 2.5, 0.5, 0.5, 0.5, 0.05)
  2095. MagniDamage(refpart, 15, 5, 10, math.random(5, 10), "Normal2", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false)
  2096. end
  2097. end
  2098. function Attack4()
  2099. attack = true
  2100. if Mode == "Normal" then
  2101. for i = 0, 1, 0.15 / animationspeed do
  2102. hbwait()
  2103. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(5), math.rad(0), math.rad(40)), 0.45 / animationspeed)
  2104. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-40)), 0.45 / animationspeed)
  2105. RW.C0 = clerp(RW.C0, cf(1.5, 0.25 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * angles(math.rad(30), math.rad(0), math.rad(0)) * RWC0, 0.45 / animationspeed)
  2106. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * angles(math.rad(-10), math.rad(0), math.rad(0)) * LWC0, 0.45 / animationspeed)
  2107. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(10)), 0.45 / animationspeed)
  2108. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(10)), 0.45 / animationspeed)
  2109. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2110. break
  2111. end
  2112. end
  2113. so("169445092", LeftArm, 1, 1.3)
  2114. for i = 0, 1, 0.15 / animationspeed do
  2115. hbwait()
  2116. MagniDamage(LeftArm, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false)
  2117. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, 0 + idleangle) * angles(math.rad(5), math.rad(0), math.rad(-70)), 0.45 / animationspeed)
  2118. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(2.5), math.rad(0), math.rad(70)), 0.45 / animationspeed)
  2119. RW.C0 = clerp(RW.C0, cf(1.25, 0.5 + idleangle, -0.25) * angles(math.rad(80), math.rad(0), math.rad(-30)) * RWC0, 0.45 / animationspeed)
  2120. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)) * LWC0, 0.45 / animationspeed)
  2121. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-2.5)), 0.45 / animationspeed)
  2122. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0.5) * angles(math.rad(0), math.rad(-20), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-7.5)), 0.45 / animationspeed)
  2123. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2124. break
  2125. end
  2126. end
  2127. for i = 0, 1, 0.15 / animationspeed do
  2128. hbwait()
  2129. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, -0.25 + idleangle) * angles(math.rad(5), math.rad(0), math.rad(-60)), 0.45 / animationspeed)
  2130. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.45 / animationspeed)
  2131. RW.C0 = clerp(RW.C0, cf(1.25, 0.25 + idleangle, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-20)) * angles(math.rad(-30), math.rad(-30), math.rad(0)) * RWC0, 0.45 / animationspeed)
  2132. LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-50)) * angles(math.rad(30), math.rad(0), math.rad(0)) * LWC0, 0.45 / animationspeed)
  2133. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-17.5), math.rad(0), math.rad(-2.5)), 0.45 / animationspeed)
  2134. LH.C0 = clerp(LH.C0, cf(-1, -0.75 - idleangle, 0) * angles(math.rad(0), math.rad(-30), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-7.5)), 0.45 / animationspeed)
  2135. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2136. break
  2137. end
  2138. end
  2139. so("169445092", RightArm, 1, 1)
  2140. for i = 0, 1, 0.3 / animationspeed do
  2141. hbwait()
  2142. MagniDamage(RightArm, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false)
  2143. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.45 / animationspeed)
  2144. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-80)), 0.45 / animationspeed)
  2145. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)) * angles(math.rad(60), math.rad(0), math.rad(20)) * RWC0, 0.45 / animationspeed)
  2146. LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)) * angles(math.rad(-10), math.rad(0), math.rad(0)) * LWC0, 0.45 / animationspeed)
  2147. RH.C0 = clerp(RH.C0, cf(0.75, -1 - idleangle, 0.5) * angles(math.rad(0), math.rad(10), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(2.5)), 0.45 / animationspeed)
  2148. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-22.5), math.rad(0), math.rad(2.5)), 0.45 / animationspeed)
  2149. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2150. break
  2151. end
  2152. end
  2153. for i = 0, 1, 0.3 / animationspeed do
  2154. hbwait()
  2155. MagniDamage(RightArm, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false)
  2156. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.45 / animationspeed)
  2157. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-80)), 0.45 / animationspeed)
  2158. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)) * angles(math.rad(80), math.rad(0), math.rad(20)) * RWC0, 0.45 / animationspeed)
  2159. LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)) * angles(math.rad(-10), math.rad(0), math.rad(0)) * LWC0, 0.45 / animationspeed)
  2160. RH.C0 = clerp(RH.C0, cf(0.75, -1 - idleangle, 0.5) * angles(math.rad(0), math.rad(10), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(2.5)), 0.45 / animationspeed)
  2161. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-22.5), math.rad(0), math.rad(2.5)), 0.45 / animationspeed)
  2162. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2163. break
  2164. end
  2165. end
  2166. elseif Mode == "Sword" then
  2167. disablejump = true
  2168. Rooted.Value = true
  2169. for i = 0, 1, 0.05 / animationspeed do
  2170. hbwait()
  2171. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.3 / animationspeed)
  2172. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-30)) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2173. RW.C0 = clerp(RW.C0, cf(-0.25, 0.65 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-55)) * angles(math.rad(50), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
  2174. LW.C0 = clerp(LW.C0, cf(-1.5, 0.35 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-10)) * angles(math.rad(100), math.rad(30), math.rad(0)) * LWC0, 0.3 / animationspeed)
  2175. RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(5)), 0.3 / animationspeed)
  2176. LH.C0 = clerp(LH.C0, cf(-1, -0.85 - idleangle, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(7.5)), 0.3 / animationspeed)
  2177. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2178. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2179. break
  2180. end
  2181. end
  2182. so("203691492", Hitbox, 1, 1.2)
  2183. so("203691467", Hitbox, 1, 1.2)
  2184. for i = 0, 1, 0.15 / animationspeed do
  2185. hbwait()
  2186. MagniDamage(Hitbox, 8, 5, 10, math.random(2, 4), "Normal2", RootPart, 0.5, 1, 0, nil, false, true, nil, 0, 0, false)
  2187. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -0.75 + idleangle) * angles(math.rad(5), math.rad(0), math.rad(10)), 0.45 / animationspeed)
  2188. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-10)) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2189. RW.C0 = clerp(RW.C0, cf(-0.35, 0.15 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-60)) * angles(math.rad(-45), math.rad(0), math.rad(0)) * RWC0, 0.45 / animationspeed)
  2190. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-5)) * angles(math.rad(-65), math.rad(-20), math.rad(0)) * LWC0, 0.45 / animationspeed)
  2191. RH.C0 = clerp(RH.C0, cf(1, -0.25 - idleangle, -0.5) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(7.5)), 0.45 / animationspeed)
  2192. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(-100), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(55)), 0.45 / animationspeed)
  2193. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-25), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2194. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2195. break
  2196. end
  2197. end
  2198. GroundSmash(Hitbox, 4)
  2199. for i = 0, 1, 0.05 / animationspeed do
  2200. hbwait()
  2201. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -0.75 + idleangle) * angles(math.rad(5), math.rad(0), math.rad(10)), 0.45 / animationspeed)
  2202. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-10)) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2203. RW.C0 = clerp(RW.C0, cf(-0.35, 0.15 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-60)) * angles(math.rad(-45), math.rad(0), math.rad(0)) * RWC0, 0.45 / animationspeed)
  2204. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-5)) * angles(math.rad(-65), math.rad(-20), math.rad(0)) * LWC0, 0.45 / animationspeed)
  2205. RH.C0 = clerp(RH.C0, cf(1, -0.25 - idleangle, -0.5) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(7.5)), 0.45 / animationspeed)
  2206. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(-100), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(55)), 0.45 / animationspeed)
  2207. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-25), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2208. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2209. break
  2210. end
  2211. end
  2212. disablejump = false
  2213. Rooted.Value = false
  2214. end
  2215. attack = false
  2216. end
  2217. function Move1()
  2218. if Mode == "Sword" then
  2219. EAbility()
  2220. end
  2221. attack = true
  2222. disablejump = true
  2223. Rooted.Value = true
  2224. for i = 0, 1, 0.15 / animationspeed do
  2225. hbwait()
  2226. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.25 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2227. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2228. RW.C0 = clerp(RW.C0, cf(1.25, 0.5 + idleangle, -0.25) * angles(math.rad(80), math.rad(0), math.rad(-45)) * RWC0, 0.45 / animationspeed)
  2229. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(15), math.rad(0), math.rad(-10)) * LWC0, 0.45 / animationspeed)
  2230. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -1) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.45 / animationspeed)
  2231. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.45 / animationspeed)
  2232. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2233. break
  2234. end
  2235. end
  2236. so("156190061", Torso, 0.75, 0.8)
  2237. local aurathingy = 0
  2238. local maxaurathingy = 30
  2239. local TheColor1 = BrickColor.new("Bright yellow").r
  2240. local TheColor2 = BrickColor.new("Bright yellow").g
  2241. local TheColor3 = BrickColor.new("Bright yellow").b
  2242. local auralight = Instance.new("PointLight", Torso)
  2243. auralight.Color = Color3.new(TheColor1, TheColor2, TheColor3)
  2244. auralight.Brightness = 7.5
  2245. auralight.Range = 7.5
  2246. for i = 0, 1, 0.01 / animationspeed do
  2247. hbwait()
  2248. if aurathingy >= maxaurathingy then
  2249. local randomheal = math.floor(math.random(1, 2))
  2250. so("234226639", Torso, 0.5, 1 / (maxaurathingy / 20))
  2251. MagicCircle("Bright yellow", "Neon", Torso.CFrame * angles(math.rad(10), 0, 0), 50, 50, 50, -2.5, 1, -2.5, 0.05)
  2252. DamageStatLabel(Head.CFrame, randomheal, Color3.new(0.29411764705882354, 0.788235294117647, 0.29411764705882354))
  2253. Humanoid.Health = Humanoid.Health + randomheal
  2254. maxaurathingy = maxaurathingy - 2
  2255. aurathingy = 0
  2256. else
  2257. aurathingy = aurathingy + 1
  2258. end
  2259. MagicCircle("Bright yellow", "Neon", RootPart.CFrame * cf(0, -3, 0), 1, 1, 1, 5, 0, 5, 0.1)
  2260. MagicCircle("Bright yellow", "Neon", RootPart.CFrame * cf(0, -3, 0) * angles(math.rad(90), 0, math.rad(math.random(-90, 90))), 1, 1, 1, 0, 10, 0, 0.1)
  2261. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.25 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2262. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2263. RW.C0 = clerp(RW.C0, cf(1.25, 0.5 + idleangle, -0.25) * angles(math.rad(80), math.rad(0), math.rad(-45)) * RWC0, 0.45 / animationspeed)
  2264. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(15), math.rad(0), math.rad(-10)) * LWC0, 0.45 / animationspeed)
  2265. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -1) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.45 / animationspeed)
  2266. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.45 / animationspeed)
  2267. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2268. break
  2269. end
  2270. end
  2271. DecreaseStat(Character, "Defense", 0.1, 5, true)
  2272. DecreaseStat(Character, "Damage", 0.1, 5, true)
  2273. MagicCircle("Bright yellow", "Neon", Torso.CFrame * angles(math.rad(10), 0, 0), 50, 50, 50, 5, 5, 5, 0.1)
  2274. auralight.Parent = nil
  2275. disablejump = false
  2276. Rooted.Value = false
  2277. attack = false
  2278. end
  2279. function GroundSmash2(Part, Range, Damage)
  2280. local hit, pos = rayCast(Part.Position, cf(Part.Position, Part.Position + vt(0, -1, 0)).lookVector, Range, Character)
  2281. if hit ~= nil then
  2282. local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2283. refpart.Anchored = true
  2284. refpart.CFrame = cf(pos)
  2285. game:GetService("Debris"):AddItem(refpart, 5)
  2286. for i = 1, math.random(15, 30) do
  2287. local flyingdebris = part(3, Effects, hit.Material, 0, 0, hit.BrickColor, "Effect", vt(math.random(100, 200) / 100, math.random(100, 200) / 100, math.random(100, 200) / 100))
  2288. flyingdebris.TopSurface = hit.TopSurface
  2289. flyingdebris.BottomSurface = hit.BottomSurface
  2290. flyingdebris.LeftSurface = hit.LeftSurface
  2291. flyingdebris.RightSurface = hit.RightSurface
  2292. flyingdebris.FrontSurface = hit.FrontSurface
  2293. flyingdebris.BackSurface = hit.BackSurface
  2294. flyingdebris.Anchored = false
  2295. flyingdebris.CFrame = refpart.CFrame * cf(math.random(-100, 100) / 100, 0, math.random(-100, 100) / 100) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
  2296. flyingdebris.Velocity = Vector3.new(math.random(-75, 75), math.random(50, 75), math.random(-75, 75))
  2297. game:GetService("Debris"):AddItem(flyingdebris, 5)
  2298. coroutine.resume(coroutine.create(function(TheDebris)
  2299. for i = 0, 1, 0.1 do
  2300. hbwait()
  2301. TheDebris.Transparency = i
  2302. end
  2303. TheDebris.Transparency = 1
  2304. TheDebris.Parent = nil
  2305. end), flyingdebris)
  2306. end
  2307. for i = 1, math.random(15, 30) do
  2308. local grounddebris = part(3, Effects, hit.Material, 0, 0, hit.BrickColor, "Effect", vt(math.random(100, 200) / 100, math.random(100, 200) / 100, math.random(100, 200) / 100))
  2309. grounddebris.TopSurface = hit.TopSurface
  2310. grounddebris.BottomSurface = hit.BottomSurface
  2311. grounddebris.LeftSurface = hit.LeftSurface
  2312. grounddebris.RightSurface = hit.RightSurface
  2313. grounddebris.FrontSurface = hit.FrontSurface
  2314. grounddebris.BackSurface = hit.BackSurface
  2315. grounddebris.Anchored = true
  2316. grounddebris.CFrame = refpart.CFrame * cf(math.random(-750, 750) / 100, 0, math.random(-750, 750) / 100) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
  2317. game:GetService("Debris"):AddItem(grounddebris, 10)
  2318. coroutine.resume(coroutine.create(function(TheDebris)
  2319. wait(5)
  2320. for i = 0, 1, 0.1 do
  2321. hbwait()
  2322. TheDebris.Transparency = i
  2323. end
  2324. TheDebris.Transparency = 1
  2325. TheDebris.Parent = nil
  2326. end), grounddebris)
  2327. end
  2328. so("199145477", refpart, 1, 0.75)
  2329. so("157878578", refpart, 1, 1)
  2330. if Damage > 5 then
  2331. so("2760979", refpart, 1, 0.5)
  2332. end
  2333. if Damage > 10 then
  2334. so("142070127", refpart, 1, 0.75)
  2335. end
  2336. if Damage > 15 then
  2337. so("168586621", refpart, 1, 0.5)
  2338. end
  2339. MagicRing(hit.BrickColor, hit.Material, refpart.CFrame * angles(math.rad(90), 0, 0), 5, 5, 1, 1, 1, 1, 0.025)
  2340. if Damage > 5 then
  2341. MagicWave(hit.BrickColor, hit.Material, refpart.CFrame, 2.5, 2.5, 2.5, 0.5, 0.5, 0.5, 0.025)
  2342. end
  2343. if Damage > 10 then
  2344. MagicCrown(hit.BrickColor, hit.Material, refpart.CFrame, 2.5, 2.5, 2.5, 0.5, 0.5, 0.5, 0.025)
  2345. end
  2346. if Damage > 15 then
  2347. MagicSpikedCrown(hit.BrickColor, hit.Material, refpart.CFrame, 2.5, 2.5, 2.5, 0.5, 0.5, 0.5, 0.025)
  2348. end
  2349. if Damage <= 10 then
  2350. MagniDamage(refpart, 20, 5, 10, math.random(5, 10), "SuperKnockup", refpart, 0.5, 1, 0, nil, false, true, "Movement", 0.2, 10, true)
  2351. else
  2352. MagniDamage(refpart, 20, Damage, Damage * 2, math.random(5, 10), "SuperKnockup", refpart, 0.5, 1, 0, nil, false, true, "Movement", 0.2, 10, true)
  2353. end
  2354. end
  2355. end
  2356. function Move2()
  2357. move2charging = true
  2358. if Mode == "Normal" then
  2359. EAbility()
  2360. end
  2361. attack = true
  2362. Movement.Value = Movement.Value - 0.2
  2363. local chargingstate = 0
  2364. local chargingeffectnum = 1
  2365. local playsound1 = false
  2366. local playsound2 = false
  2367. local playsound3 = false
  2368. so("315746833", Torso, 1, 1)
  2369. while move2charging == true and chargingstate < 155 do
  2370. hbwait()
  2371. chargingstate = chargingstate + 1
  2372. if chargingeffectnum >= 10 then
  2373. chargingeffectnum = 0
  2374. MagicWave("Institutional white", "Neon", RootPart.CFrame * cf(0, -3, 0), 2, 1, 2, 0.5, 0.2, 0.5, 0.1)
  2375. if chargingstate >= 50 then
  2376. if playsound1 == false then
  2377. playsound1 = true
  2378. particleemitter2.Enabled = true
  2379. so("315743350", Torso, 1, 1)
  2380. MagicCircle("Bright yellow", "Neon", Torso.CFrame, 1, 1, 1, 10, 10, 10, 0.15)
  2381. end
  2382. MagicRing("Institutional white", "Neon", RootPart.CFrame * cf(0, -3, 0) * angles(math.rad(90), 0, 0), 2, 2, 1, 1, 1, 0.5, 0.1)
  2383. end
  2384. if chargingstate >= 100 then
  2385. if playsound2 == false then
  2386. playsound2 = true
  2387. particleemitter.Enabled = true
  2388. so("315743331", Torso, 1, 1.5)
  2389. MagicCircle("Bright yellow", "Neon", Torso.CFrame, 1, 1, 1, 10, 10, 10, 0.15)
  2390. end
  2391. MagicCrown("Institutional white", "Neon", RootPart.CFrame * cf(0, -3, 0), 2, 1, 2, 0.5, 0.2, 0.5, 0.1)
  2392. end
  2393. if chargingstate >= 150 and playsound3 == false then
  2394. playsound3 = true
  2395. so("315743298", Torso, 1, 0.75)
  2396. so("315743350", Torso, 1, 0.75)
  2397. MagicCircle("Bright yellow", "Neon", Torso.CFrame, 1, 1, 1, 10, 10, 10, 0.15)
  2398. end
  2399. elseif chargingeffectnum <= 10 then
  2400. chargingeffectnum = chargingeffectnum + 1
  2401. end
  2402. if playsound1 == false and playsound2 == false and playsound3 == false then
  2403. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.25 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(40)), 0.3 / animationspeed)
  2404. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2405. RW.C0 = clerp(RW.C0, cf(-0.5, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-80)) * angles(math.rad(50), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
  2406. LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)) * angles(math.rad(85), math.rad(0), math.rad(10)) * LWC0, 0.3 / animationspeed)
  2407. RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, 0.25) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(12.5)), 0.3 / animationspeed)
  2408. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-7.5), math.rad(0), math.rad(2.5)), 0.3 / animationspeed)
  2409. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2410. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true or move2charging == false or chargingstate >= 155 then
  2411. break
  2412. end
  2413. elseif playsound1 == true and playsound2 == false and playsound3 == false then
  2414. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.25 + idleangle) * angles(math.rad(15), math.rad(0), math.rad(40)), 0.3 / animationspeed)
  2415. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2416. RW.C0 = clerp(RW.C0, cf(-0.5, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-80)) * angles(math.rad(50), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
  2417. LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)) * angles(math.rad(85), math.rad(0), math.rad(10)) * LWC0, 0.3 / animationspeed)
  2418. RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, 0.25) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(17.5)), 0.3 / animationspeed)
  2419. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(2.5)), 0.3 / animationspeed)
  2420. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2421. elseif playsound1 == true and playsound2 == true and playsound3 == false then
  2422. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.25 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.3 / animationspeed)
  2423. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2424. RW.C0 = clerp(RW.C0, cf(-0.5, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-80)) * angles(math.rad(50), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
  2425. LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)) * angles(math.rad(85), math.rad(0), math.rad(10)) * LWC0, 0.3 / animationspeed)
  2426. RH.C0 = clerp(RH.C0, cf(1, -0.75 - idleangle, 0.25) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(22.5)), 0.3 / animationspeed)
  2427. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(2.5), math.rad(0), math.rad(2.5)), 0.3 / animationspeed)
  2428. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2429. end
  2430. end
  2431. Movement.Value = Movement.Value + 0.2
  2432. disablejump = true
  2433. Rooted.Value = true
  2434. particleemitter.Enabled = false
  2435. particleemitter2.Enabled = false
  2436. for i = 1, math.random(5, 10) do
  2437. MagicCircle("Bright yellow", "Neon", Torso.CFrame * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90))), 0.1, 0.1, 0.1, 0.1, 5, 0.1, 0.1)
  2438. end
  2439. for i = 0, 1, 0.05 / animationspeed do
  2440. hbwait()
  2441. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0.25, 0 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(70)), 0.3 / animationspeed)
  2442. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-70)) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2443. RW.C0 = clerp(RW.C0, cf(-0.5, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-80)) * angles(math.rad(70), math.rad(50), math.rad(-10)) * RWC0, 0.3 / animationspeed)
  2444. LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-40)) * angles(math.rad(50), math.rad(110), math.rad(35)) * LWC0, 0.3 / animationspeed)
  2445. RH.C0 = clerp(RH.C0, cf(0.75, -0.5 - idleangle, 0.25) * angles(math.rad(0), math.rad(20), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(25)), 0.3 / animationspeed)
  2446. LH.C0 = clerp(LH.C0, cf(-1, -0.9 - idleangle, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(2.5)), 0.3 / animationspeed)
  2447. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2448. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2449. break
  2450. end
  2451. end
  2452. so("203691492", Hitbox, 1, 1.2)
  2453. so("203691467", Hitbox, 1, 1.2)
  2454. for i = 0, 1, 0.15 / animationspeed do
  2455. hbwait()
  2456. if chargingstate / 10 <= 10 then
  2457. MagniDamage(Hitbox, 8, 5, 10, math.random(5, 10), "Normal2", RootPart, 0.5, 1, 0, nil, false, true, "Movement", 0.2, 10, true)
  2458. else
  2459. MagniDamage(Hitbox, 8, chargingstate / 10, chargingstate / 10 * 2, math.random(5, 10), "Normal2", RootPart, 0.5, 1, 0, nil, false, true, "Movement", 0.2, 10, true)
  2460. end
  2461. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -1 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.45 / animationspeed)
  2462. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2463. RW.C0 = clerp(RW.C0, cf(-0.25, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-40)) * angles(math.rad(-40), math.rad(0), math.rad(0)) * RWC0, 0.45 / animationspeed)
  2464. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(0)) * angles(math.rad(-45), math.rad(5), math.rad(0)) * LWC0, 0.45 / animationspeed)
  2465. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(12.5)), 0.45 / animationspeed)
  2466. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(50)), 0.45 / animationspeed)
  2467. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-30), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2468. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2469. break
  2470. end
  2471. end
  2472. GroundSmash2(Hitbox, 4, chargingstate / 10)
  2473. for i = 0, 1, 0.05 / animationspeed do
  2474. hbwait()
  2475. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -1 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.45 / animationspeed)
  2476. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2477. RW.C0 = clerp(RW.C0, cf(-0.25, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-40)) * angles(math.rad(-40), math.rad(0), math.rad(0)) * RWC0, 0.45 / animationspeed)
  2478. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(0)) * angles(math.rad(-45), math.rad(5), math.rad(0)) * LWC0, 0.45 / animationspeed)
  2479. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(12.5)), 0.45 / animationspeed)
  2480. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(50)), 0.45 / animationspeed)
  2481. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(-30), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2482. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2483. break
  2484. end
  2485. end
  2486. disablejump = false
  2487. Rooted.Value = false
  2488. attack = false
  2489. end
  2490. function Move3()
  2491. if Mode == "Sword" then
  2492. EAbility()
  2493. end
  2494. Movement.Value = Movement.Value - 0.5
  2495. attack = true
  2496. for i = 0, 1, 0.05 / animationspeed do
  2497. hbwait()
  2498. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0.75, -1.5 + idleangle) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2499. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2500. RW.C0 = clerp(RW.C0, cf(1.5, 0.25 + idleangle, -0.5) * angles(math.rad(35), math.rad(0), math.rad(10)) * RWC0, 0.3 / animationspeed)
  2501. LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, -0.5) * angles(math.rad(35), math.rad(0), math.rad(-10)) * LWC0, 0.3 / animationspeed)
  2502. RH.C0 = clerp(RH.C0, cf(1, 0.6 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(30)), 0.3 / animationspeed)
  2503. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(35)), 0.3 / animationspeed)
  2504. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2505. break
  2506. end
  2507. end
  2508. local hit, pos = rayCast(Torso.Position, cf(Torso.Position, Torso.Position + vt(0, -1, 0)).lookVector, 2, Character)
  2509. if hit ~= nil then
  2510. subtractmana(skill3mana)
  2511. cooldown3 = 0
  2512. do
  2513. local soundrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt())
  2514. soundrefpart.Anchored = true
  2515. soundrefpart.CFrame = RootPart.CFrame * cf(0, -3, -3)
  2516. game:GetService("Debris"):AddItem(soundrefpart, 3)
  2517. so("199145477", soundrefpart, 0.75, 1.2)
  2518. MagicWave(hit.BrickColor, hit.Material, soundrefpart.CFrame, 7, 1, 7, 0.1, 0.1, 0.1, 0.05)
  2519. MagicRing(hit.BrickColor, hit.Material, soundrefpart.CFrame * angles(math.rad(90), 0, 0), 8, 8, 8, 0.1, 0.1, 0.1, 0.05)
  2520. local rockthing = part(3, Effects, "SmoothPlastic", 0, 0, "Medium stone grey", "Rock", vt())
  2521. local rockthingmesh = mesh("SpecialMesh", rockthing, "FileMesh", "http://www.roblox.com/asset/?id=1290033", vt(0, 0, 0), vt(3.5, 3.5, 3.5))
  2522. local rockthingweld = weld(LeftArm, rockthing, LeftArm, cf(-2, 3.5, 0), cf(0, 0, 0))
  2523. for i = 0, 1, 0.5 / animationspeed do
  2524. hbwait()
  2525. local mouseposition = vt(Mouse.hit.p.x, RootPart.Position.y, Mouse.hit.p.z)
  2526. local torsoposition = RootPart.CFrame * angles(0, 0, 0)
  2527. local thecframe = cf(torsoposition.p, mouseposition)
  2528. local x, y, z = RootPart.CFrame:toObjectSpace(thecframe):toEulerAnglesXYZ()
  2529. RootJoint.C0 = clerp(RootJoint.C0, angles(x, y, z) * RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2530. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2531. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(190), math.rad(0), math.rad(10)) * RWC0, 0.3 / animationspeed)
  2532. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(190), math.rad(0), math.rad(-10)) * LWC0, 0.3 / animationspeed)
  2533. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2534. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2535. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2536. break
  2537. end
  2538. end
  2539. Humanoid.AutoRotate = false
  2540. for i = 0, 1, 0.05 / animationspeed do
  2541. hbwait()
  2542. local mouseposition = vt(Mouse.hit.p.x, RootPart.Position.y, Mouse.hit.p.z)
  2543. local torsoposition = RootPart.CFrame * angles(0, 0, 0)
  2544. local thecframe = cf(torsoposition.p, mouseposition)
  2545. local x, y, z = RootPart.CFrame:toObjectSpace(thecframe):toEulerAnglesXYZ()
  2546. local randomarmcframe = math.random(-5, 5)
  2547. RootJoint.C0 = clerp(RootJoint.C0, angles(x, y, z) * RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2548. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2549. RW.C0 = clerp(RW.C0, cf(1.5, 0.75 + idleangle, 0) * angles(math.rad(210 + randomarmcframe), math.rad(0), math.rad(10 + randomarmcframe)) * RWC0, 0.3 / animationspeed)
  2550. LW.C0 = clerp(LW.C0, cf(-1.5, 0.75 + idleangle, 0) * angles(math.rad(210 + randomarmcframe), math.rad(0), math.rad(-10 + randomarmcframe)) * LWC0, 0.3 / animationspeed)
  2551. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-10)), 0.3 / animationspeed)
  2552. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(10)), 0.3 / animationspeed)
  2553. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2554. break
  2555. end
  2556. end
  2557. so("169445092", Torso, 1, 0.6)
  2558. rockthingweld.Parent = nil
  2559. rockthing.Size = vt(3.5, 3.5, 3.5)
  2560. local canrocksmash = true
  2561. coroutine.resume(coroutine.create(function(rock)
  2562. wait(0.1)
  2563. rock.CanCollide = true
  2564. local rocktouching = false
  2565. while rock ~= nil and canrocksmash == true do
  2566. wait()
  2567. local rockhit, rockpos = rayCast(rock.Position, cf(rock.Position, rock.Position + vt(0, -1, 0)).lookVector, 3.5, Character)
  2568. if rockhit ~= nil and rocktouching == false then
  2569. rocktouching = true
  2570. rock.Parent = nil
  2571. canrocksmash = false
  2572. local rockhitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt())
  2573. rockhitrefpart.Anchored = true
  2574. rockhitrefpart.CFrame = cf(rockpos)
  2575. game:GetService("Debris"):AddItem(rockhitrefpart, 3)
  2576. for i = 1, math.random(10, 20) do
  2577. local randomsize = math.random(5, 10) / 10
  2578. local flyingdebris = part(3, Effects, "SmoothPlastic", 0, 0, "Medium stone grey", "Effect", vt(randomsize, randomsize, randomsize))
  2579. local flyingdebrismesh = mesh("SpecialMesh", flyingdebris, "FileMesh", "http://www.roblox.com/asset/?id=1290033", vt(0, 0, 0), vt(randomsize, randomsize, randomsize))
  2580. flyingdebris.CanCollide = true
  2581. flyingdebris.CFrame = rockhitrefpart.CFrame * cf(math.random(-100, 100) / 100, 0, math.random(-100, 100) / 100) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
  2582. flyingdebris.Velocity = Vector3.new(math.random(-50, 50), math.random(50, 75), math.random(-50, 50))
  2583. game:GetService("Debris"):AddItem(flyingdebris, 5)
  2584. coroutine.resume(coroutine.create(function(TheDebris)
  2585. wait(4)
  2586. for i = 0, 1, 0.08 do
  2587. hbwait()
  2588. TheDebris.Transparency = i
  2589. end
  2590. TheDebris.Transparency = 1
  2591. TheDebris.Parent = nil
  2592. end), flyingdebris)
  2593. end
  2594. for i = 1, math.random(5, 10) do
  2595. local grounddebris = part(3, Effects, rockhit.Material, 0, 0, rockhit.BrickColor, "Effect", vt(math.random(100, 200) / 100, math.random(100, 200) / 100, math.random(100, 200) / 100))
  2596. grounddebris.TopSurface = rockhit.TopSurface
  2597. grounddebris.BottomSurface = rockhit.BottomSurface
  2598. grounddebris.LeftSurface = rockhit.LeftSurface
  2599. grounddebris.RightSurface = rockhit.RightSurface
  2600. grounddebris.FrontSurface = rockhit.FrontSurface
  2601. grounddebris.BackSurface = rockhit.BackSurface
  2602. grounddebris.Anchored = true
  2603. grounddebris.CFrame = rockhitrefpart.CFrame * cf(math.random(-750, 750) / 100, 0, math.random(-750, 750) / 100) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
  2604. game:GetService("Debris"):AddItem(grounddebris, 10)
  2605. coroutine.resume(coroutine.create(function(TheDebris)
  2606. wait(5)
  2607. for i = 0, 1, 0.1 do
  2608. hbwait()
  2609. TheDebris.Transparency = i
  2610. end
  2611. TheDebris.Transparency = 1
  2612. TheDebris.Parent = nil
  2613. end), grounddebris)
  2614. end
  2615. so("199145477", rockhitrefpart, 1, 0.8)
  2616. so("199145477", rockhitrefpart, 1, 0.8)
  2617. so("168586621", rockhitrefpart, 1, 0.8)
  2618. MagicSpikedCrown(rockhit.BrickColor, rockhit.Material, rockhitrefpart.CFrame, 2.25, 2.25, 2.25, 0.5, 0.5, 0.5, 0.025)
  2619. MagicWave(rockhit.BrickColor, rockhit.Material, rockhitrefpart.CFrame, 2.25, 2.25, 2.25, 0.5, 0.5, 0.5, 0.025)
  2620. MagicRing(rockhit.BrickColor, rockhit.Material, rockhitrefpart.CFrame * angles(math.rad(90), 0, 0), 5.5, 5.5, 5.5, 0.5, 0.5, 0.5, 0.0125)
  2621. MagniDamage(rockhitrefpart, 15, 5, 10, 1.25, "RockHit", rock, 0, 1, 0, nil, false, true, "Movement", 0.2, 5, true)
  2622. end
  2623. end
  2624. end), rockthing)
  2625. local rockmagnitude = (Mouse.hit.p - RootPart.Position).magnitude
  2626. if rockmagnitude <= 25 then
  2627. rockthing.Velocity = (Mouse.hit.p - RootPart.Position).unit * (rockmagnitude * 1.25) + vt(0, 75, 0)
  2628. else
  2629. rockthing.Velocity = (Mouse.hit.p - RootPart.Position).unit * 50 + vt(0, 75, 0)
  2630. end
  2631. for i = 0, 1, 0.05 / animationspeed do
  2632. hbwait()
  2633. local mouseposition = vt(Mouse.hit.p.x, RootPart.Position.y, Mouse.hit.p.z)
  2634. local torsoposition = RootPart.CFrame * angles(0, 0, 0)
  2635. local thecframe = cf(torsoposition.p, mouseposition)
  2636. local x, y, z = RootPart.CFrame:toObjectSpace(thecframe):toEulerAnglesXYZ()
  2637. RootJoint.C0 = clerp(RootJoint.C0, angles(x, y, z) * RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2638. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2639. RW.C0 = clerp(RW.C0, cf(1.25, 0.25 + idleangle, -0.25) * angles(math.rad(60), math.rad(0), math.rad(-20)) * RWC0, 0.45 / animationspeed)
  2640. LW.C0 = clerp(LW.C0, cf(-1.25, 0.25 + idleangle, -0.25) * angles(math.rad(60), math.rad(0), math.rad(20)) * LWC0, 0.45 / animationspeed)
  2641. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.45 / animationspeed)
  2642. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-5)), 0.45 / animationspeed)
  2643. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2644. break
  2645. end
  2646. end
  2647. end
  2648. end
  2649. Humanoid.AutoRotate = true
  2650. Movement.Value = Movement.Value + 0.5
  2651. attack = false
  2652. end
  2653. function GroundSmash3(Origin1, Origin2)
  2654. local swordhitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt())
  2655. swordhitrefpart.Anchored = true
  2656. swordhitrefpart.CFrame = cf(Origin2)
  2657. game:GetService("Debris"):AddItem(swordhitrefpart, 10)
  2658. for i = 1, math.random(15, 30) do
  2659. local flyingdebris = part(3, Effects, Origin1.Material, 0, 0, Origin1.BrickColor, "Effect", vt(math.random(200, 400) / 100, math.random(200, 400) / 100, math.random(200, 400) / 100))
  2660. flyingdebris.TopSurface = Origin1.TopSurface
  2661. flyingdebris.BottomSurface = Origin1.BottomSurface
  2662. flyingdebris.LeftSurface = Origin1.LeftSurface
  2663. flyingdebris.RightSurface = Origin1.RightSurface
  2664. flyingdebris.FrontSurface = Origin1.FrontSurface
  2665. flyingdebris.BackSurface = Origin1.BackSurface
  2666. flyingdebris.Anchored = false
  2667. flyingdebris.CFrame = swordhitrefpart.CFrame * cf(math.random(-100, 100) / 100, 0, math.random(-100, 100) / 100) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
  2668. flyingdebris.Velocity = Vector3.new(math.random(-75, 75), math.random(75, 100), math.random(-75, 75))
  2669. game:GetService("Debris"):AddItem(flyingdebris, 5)
  2670. coroutine.resume(coroutine.create(function(TheDebris)
  2671. for i = 0, 1, 0.025 do
  2672. hbwait()
  2673. TheDebris.Transparency = i
  2674. end
  2675. TheDebris.Transparency = 1
  2676. TheDebris.Parent = nil
  2677. end), flyingdebris)
  2678. end
  2679. for i = 1, math.random(20, 40) do
  2680. local grounddebris = part(3, Effects, Origin1.Material, 0, 0, Origin1.BrickColor, "Effect", vt(math.random(200, 400) / 100, math.random(200, 400) / 100, math.random(200, 400) / 100))
  2681. grounddebris.TopSurface = Origin1.TopSurface
  2682. grounddebris.BottomSurface = Origin1.BottomSurface
  2683. grounddebris.LeftSurface = Origin1.LeftSurface
  2684. grounddebris.RightSurface = Origin1.RightSurface
  2685. grounddebris.FrontSurface = Origin1.FrontSurface
  2686. grounddebris.BackSurface = Origin1.BackSurface
  2687. grounddebris.Anchored = true
  2688. grounddebris.CFrame = swordhitrefpart.CFrame * cf(math.random(-1500, 1500) / 100, 0, math.random(-1500, 1500) / 100) * angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
  2689. game:GetService("Debris"):AddItem(grounddebris, 10)
  2690. coroutine.resume(coroutine.create(function(TheDebris)
  2691. wait(5)
  2692. for i = 0, 1, 0.1 do
  2693. hbwait()
  2694. TheDebris.Transparency = i
  2695. end
  2696. TheDebris.Transparency = 1
  2697. TheDebris.Parent = nil
  2698. end), grounddebris)
  2699. end
  2700. for i = 1, math.random(3, 6) do
  2701. MagicBlock(Origin1.BrickColor, "SmoothPlastic", false, swordhitrefpart.CFrame, 40, 40, 40, 3, 3, 3, 0.0075)
  2702. end
  2703. MagicSpikedCrown(Origin1.BrickColor, Origin1.Material, swordhitrefpart.CFrame, 20, 20, 20, 1, 0.1, 1, 0.0075)
  2704. MagicRing(Origin1.BrickColor, Origin1.Material, swordhitrefpart.CFrame * angles(math.rad(90), 0, 0), 20, 20, 20, 1, 1, 1, 0.0075)
  2705. MagicWave(Origin1.BrickColor, Origin1.Material, swordhitrefpart.CFrame, 20, 20, 20, 0.5, 0.1, 0.5, 0.0075)
  2706. so("199145477", swordhitrefpart, 1.5, 0.6)
  2707. so("157878578", swordhitrefpart, 1.5, 0.6)
  2708. so("2760979", swordhitrefpart, 1.5, 0.6)
  2709. so("168586621", swordhitrefpart, 1.5, 0.6)
  2710. MagniDamage(swordhitrefpart, 20, 20, 30, math.random(1, 2), "RockHit", swordhitrefpart, 0.5, 1, 0, nil, false, true, "Damage", 0.2, 15, true)
  2711. end
  2712. function Move4()
  2713. if Mode == "Sword" then
  2714. EAbility()
  2715. end
  2716. attack = true
  2717. Rooted.Value = true
  2718. for i = 0, 1, 0.1 / animationspeed do
  2719. hbwait()
  2720. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5 + idleangle) * angles(math.rad(15), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2721. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2722. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(15), math.rad(0), math.rad(20)) * RWC0, 0.45 / animationspeed)
  2723. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(15), math.rad(0), math.rad(-20)) * LWC0, 0.45 / animationspeed)
  2724. RH.C0 = clerp(RH.C0, cf(1, 0.6 - idleangle, -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(17.5)), 0.45 / animationspeed)
  2725. LH.C0 = clerp(LH.C0, cf(-1, -0.75 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(55)), 0.45 / animationspeed)
  2726. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2727. break
  2728. end
  2729. end
  2730. Humanoid.Jump = true
  2731. Torso.Velocity = vt(0, 150, 0)
  2732. so("199145327", Torso, 1, 0.8)
  2733. for i = 0, 1, 0.1 / animationspeed do
  2734. hbwait()
  2735. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 2.5 + idleangle) * angles(math.rad(0 - 360 * i), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2736. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2737. RW.C0 = clerp(RW.C0, cf(0.75, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-70)) * RWC0, 0.45 / animationspeed)
  2738. LW.C0 = clerp(LW.C0, cf(-0.75, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(80)) * LWC0, 0.45 / animationspeed)
  2739. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-10)), 0.45 / animationspeed)
  2740. LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(10)), 0.45 / animationspeed)
  2741. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2742. break
  2743. end
  2744. end
  2745. so("199145327", Torso, 1, 1)
  2746. for i = 0, 1, 0.1 / animationspeed do
  2747. hbwait()
  2748. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 2.5 + idleangle) * angles(math.rad(0 - 360 * i), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2749. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(30)), 0.45 / animationspeed)
  2750. RW.C0 = clerp(RW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-110)) * angles(math.rad(50), math.rad(0), math.rad(0)) * RWC0, 0.45 / animationspeed)
  2751. LW.C0 = clerp(LW.C0, cf(-1.5, 0.75 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)) * angles(math.rad(40), math.rad(0), math.rad(0)) * LWC0, 0.45 / animationspeed)
  2752. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-10)), 0.45 / animationspeed)
  2753. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(10)), 0.45 / animationspeed)
  2754. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2755. break
  2756. end
  2757. end
  2758. Mode = "Sword"
  2759. Handleweld.Part0 = LeftArm
  2760. Handleweld.C0 = cf(0.2, -2.5, 0) * angles(math.rad(90), math.rad(20), math.rad(160))
  2761. Movement.Value = Movement.Value - 0.4
  2762. Defense.Value = Defense.Value + 0.2
  2763. Damage.Value = Damage.Value + 0.5
  2764. for i = 0, 1, 0.1 / animationspeed do
  2765. hbwait()
  2766. Torso.Velocity = vt(0, 2.25, 0)
  2767. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 2.5 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2768. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2769. RW.C0 = clerp(RW.C0, cf(1, 0.75 + idleangle, 0) * angles(math.rad(210), math.rad(0), math.rad(-45)) * RWC0, 0.45 / animationspeed)
  2770. LW.C0 = clerp(LW.C0, cf(-1, 0.75 + idleangle, 0) * angles(math.rad(210), math.rad(0), math.rad(45)) * LWC0, 0.45 / animationspeed)
  2771. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.45 / animationspeed)
  2772. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.45 / animationspeed)
  2773. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(135)), 0.45 / animationspeed)
  2774. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2775. break
  2776. end
  2777. end
  2778. for i = 1, 1 do
  2779. so("199145327", Torso, 1, 1.2)
  2780. for i = 0, 1, 0.1 / animationspeed do
  2781. hbwait()
  2782. Torso.Velocity = vt(0, 2.25, 0)
  2783. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 2.5 + idleangle) * angles(math.rad(10 + 360 * i), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2784. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2785. RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(45), math.rad(0), math.rad(-45)) * RWC0, 0.45 / animationspeed)
  2786. LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(45), math.rad(0), math.rad(45)) * LWC0, 0.45 / animationspeed)
  2787. RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-10)), 0.45 / animationspeed)
  2788. LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(10)), 0.45 / animationspeed)
  2789. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2790. break
  2791. end
  2792. end
  2793. end
  2794. local swordhit
  2795. while swordhit == nil do
  2796. hbwait()
  2797. swordhit, swordpos = rayCast(Hitbox.Position, cf(Hitbox.Position, Hitbox.Position + vt(0, -1, 0)).lookVector, 3, Character)
  2798. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 2.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2799. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2800. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-45)) * RWC0, 0.45 / animationspeed)
  2801. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(45)) * angles(math.rad(0), math.rad(180), math.rad(0)) * LWC0, 0.45 / animationspeed)
  2802. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(45)), 0.45 / animationspeed)
  2803. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-45)), 0.45 / animationspeed)
  2804. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.45 / animationspeed)
  2805. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true or swordhit ~= nil then
  2806. break
  2807. end
  2808. end
  2809. GroundSmash3(swordhit, swordpos)
  2810. for i = 0, 1, 0.2 / animationspeed do
  2811. hbwait()
  2812. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2813. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2814. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-45)) * RWC0, 0.45 / animationspeed)
  2815. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(45)) * angles(math.rad(0), math.rad(180), math.rad(0)) * LWC0, 0.45 / animationspeed)
  2816. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(45)), 0.45 / animationspeed)
  2817. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-45)), 0.45 / animationspeed)
  2818. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.45 / animationspeed)
  2819. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2820. break
  2821. end
  2822. end
  2823. for i = 0, 1, 0.05 / animationspeed do
  2824. hbwait()
  2825. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2826. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  2827. RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-45)) * RWC0, 0.45 / animationspeed)
  2828. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(45)) * angles(math.rad(0), math.rad(180), math.rad(0)) * LWC0, 0.45 / animationspeed)
  2829. RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(12.5)), 0.45 / animationspeed)
  2830. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(30)), 0.45 / animationspeed)
  2831. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.45 / animationspeed)
  2832. if StaggerHitAnim.Value == true or StaggerAnim.Value == true or StunAnim.Value == true then
  2833. break
  2834. end
  2835. end
  2836. Rooted.Value = false
  2837. attack = false
  2838. end
  2839. hold = false
  2840. Mouse.Button1Down:connect(function()
  2841. if attack == true or equipped == false then
  2842. return
  2843. end
  2844. hold = true
  2845. if attacktype == 1 then
  2846. attacktype = 2
  2847. Attack1()
  2848. elseif attacktype == 2 then
  2849. attacktype = 3
  2850. Attack2()
  2851. elseif attacktype == 3 then
  2852. attacktype = 4
  2853. Attack3()
  2854. elseif attacktype == 4 then
  2855. attacktype = 1
  2856. Attack4()
  2857. end
  2858. coroutine.resume(coroutine.create(function()
  2859. for i = 1, 50 do
  2860. if attack == false then
  2861. hbwait(1)
  2862. end
  2863. end
  2864. if attack == false then
  2865. attacktype = 1
  2866. end
  2867. end))
  2868. end)
  2869. if allowhopperbin == true then
  2870. function ob1u(Mouse)
  2871. hold = false
  2872. end
  2873. end
  2874. Mouse.KeyDown:connect(function(key)
  2875. if key == "f" and canunequiporequip == true and attack == false then
  2876. if equipped == false then
  2877. equipped = true
  2878. if disableanimate == true then
  2879. Animate.Disabled = true
  2880. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  2881. idleanimation:Play()
  2882. end
  2883. if disableanimator == true then
  2884. Animator.Parent = nil
  2885. end
  2886. if disablemovingarms == true then
  2887. RW.Parent = Torso
  2888. LW.Parent = Torso
  2889. RSH.Parent = nil
  2890. LSH.Parent = nil
  2891. end
  2892. equipanim()
  2893. elseif equipped == true then
  2894. equipped = false
  2895. unequipanim()
  2896. hbwait()
  2897. if disablemovingarms == true then
  2898. RW.Parent = nil
  2899. LW.Parent = nil
  2900. RSH.Parent = Torso
  2901. LSH.Parent = Torso
  2902. end
  2903. if disableanimator == true then
  2904. Animator.Parent = Humanoid
  2905. end
  2906. if disableanimate == true then
  2907. Animate.Disabled = false
  2908. end
  2909. end
  2910. end
  2911. if key == "g" and equipped == true then
  2912. if attack == false and dancing == false then
  2913. Dance()
  2914. elseif dancing == true then
  2915. dancing = false
  2916. end
  2917. end
  2918. if key == "e" and attack == false and equipped == true then
  2919. if Mana.Value >= 10 and Mode == "Normal" then
  2920. subtractmana(10)
  2921. EAbility()
  2922. elseif Mode == "Sword" then
  2923. subtractmana(10)
  2924. EAbility()
  2925. end
  2926. end
  2927. if key == "z" and attack == false and equipped == true and cooldown1 >= co1 and Mana.Value >= skill1mana then
  2928. subtractmana(skill1mana)
  2929. cooldown1 = 0
  2930. Move1()
  2931. end
  2932. if key == "x" and attack == false and equipped == true and cooldown2 >= co2 and Mana.Value >= skill2mana then
  2933. subtractmana(skill2mana)
  2934. cooldown2 = 0
  2935. Move2()
  2936. end
  2937. if key == "c" and attack == false and equipped == true and cooldown3 >= co3 and Mana.Value >= skill3mana then
  2938. Move3()
  2939. end
  2940. if key == "v" and attack == false and equipped == true and cooldown4 >= co4 and Mana.Value >= skill4mana then
  2941. subtractmana(skill4mana)
  2942. cooldown4 = 0
  2943. Move4()
  2944. end
  2945. if key == "q" then
  2946. Mana.Value = 100
  2947. cooldown1 = co1
  2948. cooldown2 = co2
  2949. cooldown3 = co3
  2950. cooldown4 = co4
  2951. end
  2952. if key == "p" then
  2953. StaggerHitAnim.Value = true
  2954. end
  2955. if key == "[" then
  2956. StaggerAnim.Value = true
  2957. end
  2958. if key == "]" then
  2959. StunAnim.Value = true
  2960. end
  2961. end)
  2962. Mouse.KeyUp:connect(function(key2)
  2963. if key2 == "x" and move2charging == true then
  2964. move2charging = false
  2965. end
  2966. end)
  2967. if allowhopperbin == true then
  2968. function s(Mouse)
  2969. Mouse.Button1Down:connect(function()
  2970. ob1d(Mouse)
  2971. end)
  2972. Mouse.Button1Up:connect(function()
  2973. ob1u(Mouse)
  2974. end)
  2975. Mouse.KeyDown:connect(key)
  2976. Mouse.KeyUp:connect(key2)
  2977. end
  2978. end
  2979. if allowhopperbin == true then
  2980. function ds(Mouse)
  2981. end
  2982. end
  2983. if allowhopperbin == true then
  2984. Bin.Selected:connect(s)
  2985. Bin.Deselected:connect(ds)
  2986. end
  2987. function updateskills()
  2988. if allowabilitiestofunction == true then
  2989. if cooldown1 <= co1 then
  2990. cooldown1 = cooldown1 + 0.03333333333333333
  2991. if cooldown1 >= co1 then
  2992. cooldown1 = co1
  2993. end
  2994. end
  2995. if cooldown2 <= co2 then
  2996. cooldown2 = cooldown2 + 0.03333333333333333
  2997. if cooldown2 >= co2 then
  2998. cooldown2 = co2
  2999. end
  3000. end
  3001. if cooldown3 <= co3 then
  3002. cooldown3 = cooldown3 + 0.03333333333333333
  3003. if cooldown3 >= co3 then
  3004. cooldown3 = co3
  3005. end
  3006. end
  3007. if cooldown4 <= co4 then
  3008. cooldown4 = cooldown4 + 0.03333333333333333
  3009. if cooldown4 >= co4 then
  3010. cooldown4 = co4
  3011. end
  3012. end
  3013. if changebarcolorsifnotenoughmana == true then
  3014. if Mana.Value <= skill1mana then
  3015. bar4.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  3016. else
  3017. bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  3018. end
  3019. if Mana.Value <= skill2mana then
  3020. bar3.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  3021. else
  3022. bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  3023. end
  3024. if Mana.Value <= skill3mana then
  3025. bar1.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  3026. else
  3027. bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  3028. end
  3029. if Mana.Value <= skill4mana then
  3030. bar2.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
  3031. else
  3032. bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  3033. end
  3034. elseif changebarcolorsifnotenoughmana == false then
  3035. bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  3036. bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  3037. bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  3038. bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  3039. end
  3040. end
  3041. if alternatemanaregensystem == false then
  3042. if Mana.Value <= maxmana then
  3043. Mana.Value = Mana.Value + recovermana / 30
  3044. elseif Mana.Value >= maxmana then
  3045. Mana.Value = maxmana
  3046. end
  3047. elseif alternatemanaregensystem == true then
  3048. if Mode == "Normal" then
  3049. if Mana.Value >= maxmana then
  3050. Mana.Value = maxmana
  3051. elseif manadelay <= manawait then
  3052. manadelay = manadelay + 1
  3053. else
  3054. manadelay = 0
  3055. Mana.Value = Mana.Value + 1
  3056. end
  3057. elseif Mode == "Sword" then
  3058. if Mana.Value <= 0 then
  3059. Mana.Value = 0
  3060. elseif manadelay <= manawait then
  3061. manadelay = manadelay + 1
  3062. else
  3063. manadelay = 0
  3064. Mana.Value = Mana.Value - 1
  3065. end
  3066. end
  3067. end
  3068. if allowstunbar == true then
  3069. if StunValue.Value <= 0 then
  3070. StunValue.Value = 0
  3071. elseif stundelay <= stunwait then
  3072. stundelay = stundelay + 1
  3073. else
  3074. stundelay = 0
  3075. StunValue.Value = StunValue.Value - 1
  3076. end
  3077. elseif allowstunbar == false then
  3078. StunValue.Value = 0
  3079. end
  3080. end
  3081. if allowmenutofunction == true then
  3082. ArtificialHB.Event:connect(function()
  3083. updateskills()
  3084. if allowabilitiestofunction == true then
  3085. framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3086. framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3087. framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3088. framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3089. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3090. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3091. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3092. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3093. end
  3094. manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3095. manacover:TweenSize(ud(1 * (Mana.Value / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3096. healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3097. healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3098. if allowstunbar == true and showstunbar == true and stunframe ~= nil then
  3099. stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3100. stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3101. end
  3102. if showhealthmanaandstunnumbers == true then
  3103. manatext.Text = "Mana [" .. math.floor(Mana.Value) .. "]"
  3104. healthtext.Text = "Health [" .. math.floor(Humanoid.Health) .. "]"
  3105. if allowstunbar == true and showstunbar == true then
  3106. stuntext.Text = "Stun [" .. math.floor(StunValue.Value) .. "]"
  3107. end
  3108. end
  3109. if showstats == true then
  3110. defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3111. damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3112. movementframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  3113. if 0 < Defense.Value then
  3114. defensetext.Text = "Defense: " .. Defense.Value
  3115. elseif 0 >= Defense.Value then
  3116. defensetext.Text = "Defense: 0"
  3117. end
  3118. if 0 < Damage.Value then
  3119. damagetext.Text = "Damage: " .. Damage.Value
  3120. elseif 0 >= Damage.Value then
  3121. damagetext.Text = "Damage: 0"
  3122. end
  3123. if Rooted.Value == false then
  3124. movementtext.Text = "Movement: " .. Movement.Value
  3125. elseif Rooted.Value == true or 0 >= Movement.Value then
  3126. movementtext.Text = "Movement: 0"
  3127. end
  3128. end
  3129. end)
  3130. end
  3131. function positiveangle(thingy)
  3132. if thingy > 0 then
  3133. thingy = 0
  3134. end
  3135. return thingy
  3136. end
  3137. function negativeangle(thingy)
  3138. if thingy < 0 then
  3139. thingy = 0
  3140. end
  3141. return thingy
  3142. end
  3143. while true do
  3144. hbwait()
  3145. if Hitbox ~= nil then
  3146. if attack == true then
  3147. Hitbox.Name = "Hitbox"
  3148. elseif attack == false then
  3149. Hitbox.Name = "NilHitbox"
  3150. end
  3151. end
  3152. if Humanoid.Health > 0 then
  3153. if walkspeeddependsonmovementvalue == true then
  3154. if Movement.Value < 0 or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true or Rooted.Value == true then
  3155. Humanoid.WalkSpeed = 0
  3156. else
  3157. Humanoid.WalkSpeed = 16 * Movement.Value
  3158. end
  3159. end
  3160. if maxstun <= StunValue.Value then
  3161. StunValue.Value = 0
  3162. StunAnim.Value = true
  3163. end
  3164. if StaggerAnim.Value == true and staggeranim == false then
  3165. coroutine.resume(coroutine.create(function()
  3166. staggeranim = true
  3167. while attack == true do
  3168. hbwait()
  3169. end
  3170. Stagger()
  3171. StaggerAnim.Value = false
  3172. staggeranim = false
  3173. end))
  3174. end
  3175. if StaggerHitAnim.Value == true and staggerhitanim == false then
  3176. coroutine.resume(coroutine.create(function()
  3177. staggerhitanim = true
  3178. while attack == true do
  3179. hbwait()
  3180. end
  3181. StaggerHit()
  3182. StaggerHitAnim.Value = false
  3183. staggerhitanim = false
  3184. end))
  3185. end
  3186. if StunAnim.Value == true and stunanim == false or StunValue.Value >= 100 then
  3187. coroutine.resume(coroutine.create(function()
  3188. StunValue.Value = 0
  3189. stunanim = true
  3190. while attack == true do
  3191. hbwait()
  3192. end
  3193. Stun()
  3194. StunAnim.Value = false
  3195. stunanim = false
  3196. end))
  3197. end
  3198. if Mode == "Sword" and Mana.Value <= 0 and changeanim == false then
  3199. coroutine.resume(coroutine.create(function()
  3200. changeanim = true
  3201. while attack == true do
  3202. hbwait()
  3203. end
  3204. EAbility()
  3205. changeanim = false
  3206. end))
  3207. end
  3208. Head.Running.Pitch = 1.85 * (Humanoid.WalkSpeed / 16)
  3209. sine = sine + change
  3210. someangle = someangle % 100 + change2 / 10
  3211. local walkspeedthingy = 7 - 1 * (Humanoid.WalkSpeed / 16)
  3212. local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude
  3213. local velderp = RootPart.Velocity.y
  3214. local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position)
  3215. hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character)
  3216. if donum >= 0.5 then
  3217. handidle = true
  3218. elseif donum <= 0 then
  3219. handidle = false
  3220. end
  3221. if handidle == false then
  3222. donum = donum + 0.003 / animationspeed
  3223. else
  3224. donum = donum - 0.003 / animationspeed
  3225. end
  3226. if equipped == true or equipped == false then
  3227. if attack == false then
  3228. idle = idle + 1
  3229. else
  3230. idle = 0
  3231. end
  3232. if leftarm == true then
  3233. if Anim == "Walk" and equipped == true and attack == false then
  3234. if alternatewalk == false then
  3235. if walkinganim == true then
  3236. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3237. else
  3238. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3239. end
  3240. elseif walkinganim == true then
  3241. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3242. else
  3243. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3244. end
  3245. elseif Anim ~= "Walk" and equipped == true or attack == true or leftarm == false then
  3246. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3247. end
  3248. end
  3249. if rightarm == true then
  3250. if Anim == "Walk" and equipped == true and attack == false then
  3251. if alternatewalk == false then
  3252. if walkinganim == true then
  3253. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3254. else
  3255. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3256. end
  3257. elseif walkinganim == true then
  3258. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3259. else
  3260. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3261. end
  3262. elseif Anim ~= "Walk" and equipped == true or attack == true or rightarm == false then
  3263. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3264. end
  3265. end
  3266. if allowwalking == true then
  3267. if Anim == "Walk" and equipped == true then
  3268. if alternatewalk == false then
  3269. if walkinganim == true then
  3270. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3271. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3272. else
  3273. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3274. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3275. end
  3276. elseif walkinganim == true then
  3277. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3278. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3279. else
  3280. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3281. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3282. end
  3283. elseif Anim ~= "Walk" and equipped == true then
  3284. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3285. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3286. end
  3287. end
  3288. if Anim == "Walk" and equipped == true then
  3289. RH.C1 = clerp(RH.C1, RHC1 * cf(0.25 * math.cos(sine / walkspeedthingy), -0.15 - 0.25 * math.sin(sine / walkspeedthingy), 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10 + 60 * math.cos(sine / walkspeedthingy))), 0.2 / animationspeed * (Humanoid.WalkSpeed / 16))
  3290. LH.C1 = clerp(LH.C1, LHC1 * cf(0.25 * math.cos(sine / walkspeedthingy), -0.15 + 0.25 * math.sin(sine / walkspeedthingy), 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10 + 60 * math.cos(sine / walkspeedthingy))), 0.2 / animationspeed * (Humanoid.WalkSpeed / 16))
  3291. elseif Anim ~= "Walk" or equipped == false then
  3292. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3293. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3294. end
  3295. if velderp > 1 and hitfloor == nil then
  3296. Anim = "Jump"
  3297. if Mode == "Normal" then
  3298. if attack == false and equipped == true then
  3299. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3300. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3301. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-40), math.rad(0), math.rad(20)) * RWC0, 0.2 / animationspeed)
  3302. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40), math.rad(0), math.rad(-20)) * LWC0, 0.2 / animationspeed)
  3303. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.2 / animationspeed)
  3304. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.2 / animationspeed)
  3305. end
  3306. elseif Mode == "Sword" and attack == false and equipped == true then
  3307. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3308. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3309. RW.C0 = clerp(RW.C0, cf(-0.25, 0.25 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-55)) * angles(math.rad(-40), math.rad(-50), math.rad(0)) * RWC0, 0.2 / animationspeed)
  3310. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(20), math.rad(0), math.rad(-5)) * angles(math.rad(0), math.rad(160), math.rad(0)) * LWC0, 0.2 / animationspeed)
  3311. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.2 / animationspeed)
  3312. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.2 / animationspeed)
  3313. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(5), math.rad(0), math.rad(-5)), 0.2 / animationspeed)
  3314. end
  3315. elseif velderp < -1 and hitfloor == nil then
  3316. Anim = "Fall"
  3317. if Mode == "Normal" then
  3318. if attack == false and equipped == true then
  3319. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3320. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3321. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(60)) * RWC0, 0.2 / animationspeed)
  3322. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)) * LWC0, 0.2 / animationspeed)
  3323. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2 / animationspeed)
  3324. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.2 / animationspeed)
  3325. end
  3326. elseif Mode == "Sword" and attack == false and equipped == true then
  3327. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3328. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3329. RW.C0 = clerp(RW.C0, cf(-0.25, 0.25 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-55)) * angles(math.rad(-40), math.rad(-50), math.rad(0)) * RWC0, 0.2 / animationspeed)
  3330. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(20), math.rad(0), math.rad(-5)) * angles(math.rad(0), math.rad(160), math.rad(0)) * LWC0, 0.2 / animationspeed)
  3331. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2 / animationspeed)
  3332. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.2 / animationspeed)
  3333. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(5), math.rad(0), math.rad(-5)), 0.2 / animationspeed)
  3334. end
  3335. elseif torvel < 1 and hitfloor ~= nil then
  3336. Anim = "Idle"
  3337. if Mode == "Normal" then
  3338. if attack == false and equipped == true then
  3339. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0.02 * math.cos(sine / 30), -0.1 + idleangle) * angles(math.rad(2.5 - 1.25 * math.cos(sine / 30)), math.rad(0), math.rad(20)), 0.15 / animationspeed)
  3340. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * angles(math.rad(2.5 - 1.25 * math.sin(sine / 30)), math.rad(0), math.rad(0)), 0.15 / animationspeed)
  3341. RW.C0 = clerp(RW.C0, cf(1.5, 0.25 + idleangle, 0 - 0.05 * math.sin(sine / 30)) * angles(math.rad(110 + 5 * math.sin(sine / 30)), math.rad(0), math.rad(-10 + 2.5 * math.cos(sine / 30))) * RWC0, 0.15 / animationspeed)
  3342. LW.C0 = clerp(LW.C0, cf(-1.25, 0.25 + idleangle, -0.25 + 0.05 * math.sin(sine / 30)) * angles(math.rad(120 - 5 * math.cos(sine / 30)), math.rad(0), math.rad(20 - 2.5 * math.sin(sine / 30))) * LWC0, 0.15 / animationspeed)
  3343. RH.C0 = clerp(RH.C0, cf(1, -0.9 - idleangle, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(5 - 1.25 * math.cos(sine / 30))), 0.15 / animationspeed)
  3344. LH.C0 = clerp(LH.C0, cf(-1, -0.875 + 0.025 * math.cos(sine / 30) - idleangle, 0.25) * angles(math.rad(0), math.rad(-60), math.rad(0)) * angles(math.rad(-5 - 1.25 * math.cos(sine / 30)), math.rad(0), math.rad(1.25 + 1.25 * math.cos(sine / 30))), 0.15 / animationspeed)
  3345. end
  3346. elseif Mode == "Sword" and attack == false and equipped == true then
  3347. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0.02 * math.cos(sine / 30), -0.1 + idleangle) * angles(math.rad(2.5 - 1.25 * math.cos(sine / 30)), math.rad(0), math.rad(20)), 0.15 / animationspeed)
  3348. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * angles(math.rad(2.5 - 1.25 * math.sin(sine / 30)), math.rad(0), math.rad(0)), 0.15 / animationspeed)
  3349. RW.C0 = clerp(RW.C0, cf(-0.25, 0.25 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-55)) * angles(math.rad(-40 - 1.25 * math.cos(sine / 30)), math.rad(-50), math.rad(0)) * RWC0, 0.15 / animationspeed)
  3350. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(20 - 1.25 * math.cos(sine / 30)), math.rad(0), math.rad(-5)) * angles(math.rad(0), math.rad(160), math.rad(0)) * LWC0, 0.15 / animationspeed)
  3351. RH.C0 = clerp(RH.C0, cf(1, -0.9 - idleangle, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(5 - 1.25 * math.cos(sine / 30))), 0.15 / animationspeed)
  3352. LH.C0 = clerp(LH.C0, cf(-1, -0.875 + 0.025 * math.cos(sine / 30) - idleangle, 0.25) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-5 - 1.25 * math.cos(sine / 30)), math.rad(0), math.rad(1.25 + 1.25 * math.cos(sine / 30))), 0.15 / animationspeed)
  3353. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(5), math.rad(0), math.rad(-5)), 0.15 / animationspeed)
  3354. end
  3355. elseif torvel > 1 and hitfloor ~= nil then
  3356. Anim = "Walk"
  3357. walk = walk + 1 / animationspeed
  3358. if walk >= 15 - 5 * (Humanoid.WalkSpeed / 16) then
  3359. walk = 0
  3360. if walkinganim == true then
  3361. walkinganim = false
  3362. elseif walkinganim == false then
  3363. walkinganim = true
  3364. end
  3365. end
  3366. if Mode == "Normal" then
  3367. if attack == false and equipped == true then
  3368. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + 0.05 * math.cos(sine / (walkspeedthingy / 2)) + idleangle) * angles(math.rad(2.5), math.rad(0) + RootPart.RotVelocity.Y / 100, math.rad(10 + 2.5 * math.cos(sine / walkspeedthingy))), 0.2 / animationspeed)
  3369. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10 - 2.5 * math.cos(sine / walkspeedthingy)) + Head.RotVelocity.Y / 20) * angles(math.rad(2.5 - 1 * math.sin(sine / (walkspeedthingy / 2))), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3370. RW.C0 = clerp(RW.C0, cf(1.5, 0.25 + idleangle, 0) * angles(math.rad(100 - 1 * math.sin(sine / (walkspeedthingy / 2))), math.rad(0), math.rad(-20)) * RWC0, 0.2 / animationspeed)
  3371. LW.C0 = clerp(LW.C0, cf(-1.25, 0.25 + idleangle, -0.25) * angles(math.rad(120 - 1 * math.sin(sine / (walkspeedthingy / 2))), math.rad(0), math.rad(30)) * LWC0, 0.2 / animationspeed)
  3372. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(0) + RightLeg.RotVelocity.Y / 100, math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3373. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-100), math.rad(0)) * angles(math.rad(0) - LeftLeg.RotVelocity.Y / 100, math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3374. end
  3375. elseif Mode == "Sword" and attack == false and equipped == true then
  3376. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + 0.05 * math.cos(sine / (walkspeedthingy / 2)) + idleangle) * angles(math.rad(0), math.rad(0) + RootPart.RotVelocity.Y / 100, math.rad(30 + 2.5 * math.cos(sine / walkspeedthingy))), 0.2 / animationspeed)
  3377. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)) * angles(math.rad(2.5 - 1 * math.sin(sine / (walkspeedthingy / 2))), math.rad(0), math.rad(0 - 2.5 * math.cos(sine / walkspeedthingy)) + Head.RotVelocity.Y / 20), 0.2 / animationspeed)
  3378. RW.C0 = clerp(RW.C0, cf(-0.25, 0.25 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-55)) * angles(math.rad(-40), math.rad(-50), math.rad(0)) * RWC0, 0.2 / animationspeed)
  3379. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(20), math.rad(0), math.rad(-5)) * angles(math.rad(0), math.rad(150 - 2.5 * math.cos(sine / walkspeedthingy)), math.rad(0)) * LWC0, 0.2 / animationspeed)
  3380. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0.25) * angles(math.rad(0), math.rad(60 - 2.5 * math.cos(sine / walkspeedthingy)), math.rad(0)) * angles(math.rad(0) + RightLeg.RotVelocity.Y / 100, math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3381. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.25) * angles(math.rad(0), math.rad(-120 - 2.5 * math.cos(sine / walkspeedthingy)), math.rad(0)) * angles(math.rad(0) - LeftLeg.RotVelocity.Y / 100, math.rad(0), math.rad(0)), 0.2 / animationspeed)
  3382. Handleweld.C0 = clerp(Handleweld.C0, cf(0, -1, 0) * angles(math.rad(5 - 0.5 * math.cos(sine / walkspeedthingy)), math.rad(0), math.rad(-5)), 0.2 / animationspeed)
  3383. end
  3384. end
  3385. end
  3386. end
  3387. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement