Guest User

Untitled

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