Advertisement
memberhero

lol

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