Advertisement
memberhero

grand2

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