Eminic

eskettit

Jun 18th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 125.11 KB | None | 0 0
  1. -- params : ...
  2.  
  3. wait(0.016666666666667)
  4. Player = game:GetService("Players").LocalPlayer
  5. Character = Player.Character
  6. PlayerGui = Player.PlayerGui
  7. Backpack = Player.Backpack
  8. Torso = Character.Torso
  9. Head = Character.Head
  10. Humanoid = Character.Humanoid
  11. LeftArm = Character["Left Arm"]
  12. LeftLeg = Character["Left Leg"]
  13. RightArm = Character["Right Arm"]
  14. RightLeg = Character["Right Leg"]
  15. LS = Torso["Left Shoulder"]
  16. LH = Torso["Left Hip"]
  17. RS = Torso["Right Shoulder"]
  18. RH = Torso["Right Hip"]
  19. Face = Head.face
  20. Neck = Torso.Neck
  21. it = Instance.new
  22. attacktype = 1
  23. vt = Vector3.new
  24. cf = CFrame.new
  25. euler = CFrame.fromEulerAnglesXYZ
  26. angles = CFrame.Angles
  27. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  28. RootCF = angles(math.rad(-90), 0, math.rad(180))
  29. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  30. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  31. RootPart = Character.HumanoidRootPart
  32. RootJoint = RootPart.RootJoint
  33. attack = false
  34. equipped = false
  35. Mouse = Player:GetMouse()
  36. local idle = 0
  37. local Anim = "Idle"
  38. local ShotTarget = RootPart
  39. player = nil
  40. ArtificialHB = Instance.new("BindableEvent", script)
  41. ArtificialHB.Name = "ArtificialHB"
  42. script:WaitForChild("ArtificialHB")
  43. frame = 0.016666666666667
  44. tf = 0
  45. allowframeloss = false
  46. tossremainder = false
  47. lastframe = tick()
  48. script.ArtificialHB:Fire()
  49. game:GetService("RunService").Heartbeat:connect(function(s, p)
  50.  
  51. tf = tf + s
  52. if frame <= tf then
  53. if allowframeloss then
  54. script.ArtificialHB:Fire()
  55. lastframe = tick()
  56. else
  57. for i = 1, math.floor(tf / frame) do
  58. script.ArtificialHB:Fire()
  59. end
  60. lastframe = tick()
  61. end
  62. if tossremainder then
  63. tf = 0
  64. else
  65. tf = tf - frame * math.floor(tf / frame)
  66. end
  67. end
  68. end
  69. )
  70. hbwait = function(number)
  71.  
  72. if number == 0 or number == nil then
  73. ArtificialHB.Event:wait()
  74. else
  75. for i = 0, number do
  76. ArtificialHB.Event:wait()
  77. end
  78. end
  79. end
  80.  
  81. local Stats = Instance.new("Folder", Character)
  82. Stats.Name = "Stats"
  83. local Defense = Instance.new("NumberValue", Stats)
  84. Defense.Name = "Defense"
  85. Defense.Value = 0.6
  86. local Movement = Instance.new("NumberValue", Stats)
  87. Movement.Name = "Movement"
  88. Movement.Value = 1
  89. local Damage = Instance.new("NumberValue", Stats)
  90. Damage.Name = "Damage"
  91. Damage.Value = 1
  92. local Mana = Instance.new("NumberValue", Stats)
  93. Mana.Name = "Mana"
  94. Mana.Value = 0
  95. local Rooted = Instance.new("BoolValue", Stats)
  96. Rooted.Name = "Rooted"
  97. Rooted.Value = false
  98. local BlockValue = Instance.new("BoolValue", Stats)
  99. BlockValue.Name = "BlockValue"
  100. BlockValue.Value = false
  101. local StaggerHitAnim = Instance.new("BoolValue", Stats)
  102. StaggerHitAnim.Name = "StaggerHitAnim"
  103. StaggerHitAnim.Value = false
  104. local staggerhitanim = false
  105. local StaggerAnim = Instance.new("BoolValue", Stats)
  106. StaggerAnim.Name = "StaggerAnim"
  107. StaggerAnim.Value = false
  108. local staggeranim = false
  109. local StunAnim = Instance.new("BoolValue", Stats)
  110. StunAnim.Name = "StunAnim"
  111. StunAnim.Value = false
  112. local stunanim = false
  113. local StunValue = Instance.new("NumberValue", Stats)
  114. StunValue.Name = "StunValue"
  115. StunValue.Value = 0
  116. local CanCrit = Instance.new("BoolValue", Stats)
  117. CanCrit.Name = "CanCrit"
  118. CanCrit.Value = true
  119. local CritChance = Instance.new("NumberValue", Stats)
  120. CritChance.Name = "CritChance"
  121. CritChance.Value = 20
  122. local CritChanceNumber = 0
  123. local CanPenetrateArmor = Instance.new("BoolValue", Stats)
  124. CanPenetrateArmor.Name = "CanPenetrateArmor"
  125. CanPenetrateArmor.Value = false
  126. local AntiTeamKill = Instance.new("BoolValue", Stats)
  127. AntiTeamKill.Name = "AntiTeamKill"
  128. AntiTeamKill.Value = true
  129. local LastPoint = nil
  130. local CustomColor = BrickColor.new("Institutional white")
  131. local Colorpart1 = CustomColor.r
  132. local Colorpart2 = CustomColor.g
  133. local Colorpart3 = CustomColor.b
  134. local InverseColor = BrickColor.new(Color3.new(1 - Colorpart1, 1 - Colorpart2, 1 - Colorpart3))
  135. local idleangle = 0
  136. local idlen = 0
  137. local donum = 0
  138. local sine = 0
  139. local change = 1
  140. local val = 0
  141. local walkinganim = false
  142. local handidle = false
  143. local walk = 0
  144. local someangle = 0
  145. local change2 = 1
  146. local stundelay = 0
  147. local manadelay = 0
  148. local diemodel = false
  149. local animationspeed = 2
  150. local robloxidleanimation = Instance.new("Animation", Torso)
  151. robloxidleanimation.Name = "robloxidleanimation"
  152. robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  153. local Animator = Humanoid:findFirstChild("Animator")
  154. local Animate = Character:findFirstChild("Animate")
  155. local HitPlayerSounds = {199149137, 199149186, 199149221, 199149235, 199149269, 199149297}
  156. local HitArmorSounds = {199149321, 199149338, 199149367, 199149409, 199149452}
  157. local HitWeaponSounds = {199148971, 199149025, 199149072, 199149109, 199149119}
  158. local HitBlockSounds = {199148933, 199148947}
  159. local cooldown1 = 0
  160. local cooldown2 = 0
  161. local cooldown3 = 0
  162. local cooldown4 = 0
  163. local scrn = Instance.new("ScreenGui", PlayerGui)
  164. local ud = UDim2.new
  165. local c3 = Color3.new
  166. local skillcolorscheme = c3(1, 1, 1)
  167. subtractmana = function(k)
  168.  
  169. if k <= Mana.Value then
  170. Mana.Value = Mana.Value - k
  171. end
  172. end
  173.  
  174. local co1 = 1
  175. local co2 = 1
  176. local co3 = 1
  177. local co4 = 120
  178. local maxmana = 100
  179. local maxstun = 100
  180. local recovermana = 1
  181. local losestun = 1
  182. local stunwait = 100
  183. local manawait = 20
  184. local skill1mana = 0
  185. local skill2mana = 0
  186. local skill3mana = 0
  187. local skill4mana = 50
  188. local menuupdatespeed = 0.5
  189. local constantupdate = true
  190. local showstats = true
  191. local allowstunbar = true
  192. makeframe = function(par, trans, pos, size, color, name)
  193.  
  194. local frame = Instance.new("Frame")
  195. frame.Parent = par
  196. frame.BackgroundTransparency = trans
  197. frame.BorderSizePixel = 0
  198. frame.Position = pos
  199. frame.Size = size
  200. frame.BackgroundColor3 = color
  201. frame.Name = name
  202. return frame
  203. end
  204.  
  205. makelabel = function(par, text, trans, stroketrans, name)
  206.  
  207. local label = Instance.new("TextLabel")
  208. label.Parent = par
  209. label.BackgroundTransparency = 1
  210. label.Size = ud(1, 0, 1, 0)
  211. label.Position = ud(0, 0, 0, 0)
  212. label.TextColor3 = c3(255, 255, 255)
  213. label.TextStrokeTransparency = stroketrans
  214. label.TextTransparency = trans
  215. label.FontSize = Enum.FontSize.Size32
  216. label.Font = Enum.Font.Legacy
  217. label.BorderSizePixel = 0
  218. label.TextScaled = true
  219. label.Text = text
  220. label.Name = name
  221. return label
  222. end
  223.  
  224. framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 1")
  225. framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 2")
  226. framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 3")
  227. framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 4")
  228. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 1")
  229. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 2")
  230. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 3")
  231. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 4")
  232. text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1")
  233. text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2")
  234. text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3")
  235. text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4")
  236. manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar")
  237. manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover")
  238. manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text")
  239. healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Bar")
  240. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Cover")
  241. healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text")
  242. if allowstunbar == true then
  243. stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137255), "Stun Frame")
  244. stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137255), "Stun Bar")
  245. stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text")
  246. end
  247. if showstats == true then
  248. defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.3921568627451, 0.3921568627451, 1), "Defense Frame")
  249. damageframe = makeframe(scrn, 0.5, ud(0.322, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.3921568627451, 0.3921568627451), "Damage Frame")
  250. movementframe = makeframe(scrn, 0.5, ud(0.415, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.3921568627451, 1, 0.3921568627451), "Movement Frame")
  251. defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text")
  252. damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text")
  253. movementtext = makelabel(movementframe, "Movement: " .. Movement.Value, 1, 1, "Movement Text")
  254. end
  255. NoOutline = function(Part)
  256.  
  257. Part.TopSurface = 10
  258. end
  259.  
  260. local weldBetween = function(a, b)
  261.  
  262. local weldd = Instance.new("ManualWeld")
  263. weldd.Part0 = a
  264. weldd.Part1 = b
  265. weldd.C0 = CFrame.new()
  266. weldd.C1 = b.CFrame:inverse() * a.CFrame
  267. weldd.Parent = a
  268. return weldd
  269. end
  270.  
  271. nooutline = function(part)
  272.  
  273. part.TopSurface = 10
  274. end
  275.  
  276. part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  277.  
  278. local fp = it("Part")
  279. fp.formFactor = formfactor
  280. fp.Parent = parent
  281. fp.Reflectance = reflectance
  282. fp.Transparency = transparency
  283. fp.CanCollide = false
  284. fp.Locked = true
  285. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  286. fp.Name = name
  287. fp.Size = size
  288. fp.Position = Character.Torso.Position
  289. nooutline(fp)
  290. fp.Material = material
  291. fp:BreakJoints()
  292. return fp
  293. end
  294.  
  295. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  296.  
  297. local mesh = it(Mesh)
  298. mesh.Parent = part
  299. if Mesh == "SpecialMesh" then
  300. mesh.MeshType = meshtype
  301. mesh.MeshId = meshid
  302. end
  303. mesh.Offset = offset
  304. mesh.Scale = scale
  305. return mesh
  306. end
  307.  
  308. weld = function(parent, part0, part1, c0, c1)
  309.  
  310. local weld = it("Motor")
  311. weld.Parent = parent
  312. weld.Part0 = part0
  313. weld.Part1 = part1
  314. weld.C0 = c0
  315. weld.C1 = c1
  316. return weld
  317. end
  318.  
  319. m = Instance.new("Model", Character)
  320. m.Name = "Dread Scythe"
  321. WeapHandle = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 1, "Bright red", "WeapHandle", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  322. WeapHandleweld = weld(m, Character["Right Arm"], WeapHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00391387939, 0.0059928894, 0.0461468697, 1, 2.39325693e-09, -5.96046448e-08, -5.96046448e-08, -2.88393409e-07, -1, -2.39327425e-09, 0.999999881, -2.88393437e-07))
  323. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0.5, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  324. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-7.62939453e-06, -5.63998795, 0.500014782, 1, 0, 9.21537965e-17, 0, 1, 0, 9.21537965e-17, 0, 1))
  325. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 4, 5))
  326. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0.5, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  327. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -5.68453789, 0.0592384338, 1, 0, 9.21537965e-17, 0, 0.984807909, -0.173647925, -8.8817842e-16, 0.17364791, 0.984807849))
  328. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.899999976, 3.5, 6))
  329. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0.5, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  330. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -5.66816902, -0.464752197, 1, 0, 9.21537965e-17, 0, 0.939692736, -0.342019945, 0, 0.342019945, 0.939692736))
  331. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 3, 7))
  332. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0.5, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  333. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-06, -5.57789803, -0.909360886, 1, 0, 9.21537965e-17, -3.55271368e-15, 0.866025686, -0.499999642, 0, 0.499999583, 0.866025567))
  334. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.699999988, 2.5, 8))
  335. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0.5, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  336. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -5.42755699, -1.35415268, 1, 0, 9.21537965e-17, 3.55271368e-15, 0.766044676, -0.642787457, 0, 0.642787397, 0.766044676))
  337. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 2, 9))
  338. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0.5, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  339. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-06, -5.16989326, -1.74185753, 1, 0, 9.21537965e-17, 0, 0.642788291, -0.766043961, 0, 0.766043901, 0.642788291))
  340. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.5, 1, 10))
  341. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, CustomColor, "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  342. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.64998817, 0, 3.81469727e-06, -5.96046448e-08, -1, 0, 1, -5.96046448e-08, -2.7533531e-14, 2.76256848e-14, 0, 1))
  343. mesh("SpecialMesh", Part, Enum.MeshType.Cylinder, "", Vector3.new(0, 0, 0), Vector3.new(35, 2, 2))
  344. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  345. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-06, 0.799987793, 9.53674316e-06, 0.965925813, -1.91820035e-07, 0.258819073, 1.98721096e-07, 1, -5.01501063e-10, -0.258819073, 5.19172261e-08, 0.965925872))
  346. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 0.400000006, 0.400000006))
  347. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  348. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-06, 0.799987793, 1.21593475e-05, 1, 0, 9.21537965e-17, 0, 1, 0, 9.21537965e-17, 0, 1))
  349. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 0.400000006, 0.400000006))
  350. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  351. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.52587891e-05, 0.799987793, 7.62939453e-06, 0.866025567, -6.17053502e-08, 0.499999762, -3.27854082e-08, 1, 1.80196793e-07, -0.499999762, -1.72447727e-07, 0.866025567))
  352. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 0.400000006, 0.400000006))
  353. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  354. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.52587891e-05, 0.799987793, 0, 0.707107186, -3.35478688e-07, 0.707106411, 1.19350247e-07, 1, 3.55088389e-07, -0.707106352, -1.66692232e-07, 0.707107186))
  355. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 0.400000006, 0.400000006))
  356. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  357. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.52587891e-05, 0.799987793, 0, 0.50000006, -2.05052544e-07, 0.866025329, -1.86775395e-09, 1, 2.37852646e-07, -0.866025388, -1.20543859e-07, 0.50000006))
  358. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 0.400000006, 0.400000006))
  359. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  360. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.33514404e-05, 0.799987793, -7.62939453e-06, 0.258819103, -3.75949867e-07, 0.965925813, 6.00402714e-08, 1, 3.73124209e-07, -0.965925872, -3.85772232e-08, 0.258819103))
  361. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.400000006, 0.400000006, 0.400000006))
  362. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  363. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.52587891e-05, -5.19998932, 0, 0.707107306, -2.46071693e-07, 0.707106352, 1.91452699e-07, 1, 1.56545198e-07, -0.707106292, 2.46831746e-08, 0.707107246))
  364. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 0.100000001, 0.800000012))
  365. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  366. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.14440918e-05, -5.19998932, 0, 0.500000119, -3.39162966e-07, 0.866025269, -1.26760824e-11, 1, 3.91639048e-07, -0.866025269, -1.95830538e-07, 0.500000119))
  367. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 0.100000001, 0.800000012))
  368. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  369. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.14440918e-05, -5.19998932, -7.62939453e-06, 0.258819193, -3.31246383e-07, 0.965925813, 1.80866749e-07, 1, 2.94468379e-07, -0.965925813, 9.84897994e-08, 0.258819193))
  370. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 0.100000001, 0.800000012))
  371. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  372. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(8.10623169e-06, -5.19998932, -7.62939453e-06, 6.87039333e-14, -2.08616285e-07, 1, 0, 1, 2.08616285e-07, -1, 0, 6.85196257e-14))
  373. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 0.100000001, 0.800000012))
  374. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  375. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.81469727e-06, -5.19998932, -7.62939453e-06, -0.258818895, -8.43259329e-08, 0.965925932, -3.34573258e-10, 1, 8.72109922e-08, -0.965925872, 2.22486705e-08, -0.258818895))
  376. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 0.100000001, 0.800000012))
  377. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  378. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-06, -5.19998932, -1.52587891e-05, -0.49999997, -4.13668801e-07, 0.866025388, -7.60898899e-10, 1, 4.77224319e-07, -0.866025448, 2.37953202e-07, -0.5))
  379. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.800000012, 0.100000001, 0.800000012))
  380. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  381. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.90734863e-06, -6.09999275, -0.00080871582, 0.000318914856, -3.57643188e-07, 1, 0.000132471323, 1, 3.15396107e-07, -1, 0.000132471221, 0.000318914885))
  382. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 0.600000024, 0.600000024))
  383. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  384. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.90734863e-06, -6.09999275, -0.00080871582, -0.258511096, -4.0474302e-07, 0.966008306, 0.000127881329, 1, 3.46409943e-05, -0.966008306, 0.000132489498, -0.258511096))
  385. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 0.600000024, 0.600000024))
  386. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  387. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.81469727e-06, -6.09999275, -0.00080871582, -0.499723703, -2.1256561e-07, 0.86618495, 0.000114720082, 1, 6.64302715e-05, -0.86618495, 0.00013256559, -0.499723703))
  388. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 0.600000024, 0.600000024))
  389. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  390. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -6.09999275, -0.00080871582, -0.706881404, -4.00275098e-07, 0.707332134, 9.33918636e-05, 1, 9.38982412e-05, -0.707332134, 0.000132433983, -0.706881344))
  391. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 0.600000024, 0.600000024))
  392. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  393. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -6.09999275, -0.00080871582, -0.865866065, -1.07567807e-07, 0.50027591, 6.62323e-05, 1, 0.000114848364, -0.50027591, 0.000132577727, -0.865866065))
  394. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 0.600000024, 0.600000024))
  395. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  396. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-06, -6.09999275, -0.00080871582, -0.96584332, -1.66173422e-07, 0.259127051, 3.42318417e-05, 1, 0.0001282335, -0.259127051, 0.000132723857, -0.96584332))
  397. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 0.600000024, 0.600000024))
  398. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  399. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-06, -6.09999275, -0.00080871582, -0.96584332, -1.66173422e-07, 0.259127051, 3.42318417e-05, 1, 0.0001282335, -0.259127051, 0.000132723857, -0.96584332))
  400. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
  401. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  402. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -6.09999275, -0.00080871582, -0.865866065, -1.07567807e-07, 0.50027591, 6.62323e-05, 1, 0.000114848364, -0.50027591, 0.000132577727, -0.865866065))
  403. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
  404. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  405. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.81469727e-06, -6.09999275, -0.00080871582, -0.499723762, -1.9766442e-07, 0.866184831, 0.000114690098, 1, 6.63957981e-05, -0.86618489, 0.0001325224, -0.499723792))
  406. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
  407. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  408. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.90734863e-06, -6.09999275, -0.00080871582, -0.258511215, -4.0474302e-07, 0.966008306, 0.000127911233, 1, 3.46490124e-05, -0.966008246, 0.000132520465, -0.258511215))
  409. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
  410. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  411. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.09944153e-06, -6.09999275, -0.00080871582, 0.000318736042, -5.51401911e-07, 1, 0.000132471323, 1, 5.09178562e-07, -1, 0.000132471163, 0.0003187361))
  412. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
  413. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  414. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.90734863e-06, -6.09999275, -0.00080871582, 0.259127021, -3.31240955e-07, 0.96584332, 0.000127880165, 1, -3.39661383e-05, -0.96584332, 0.000132313755, 0.259127021))
  415. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
  416. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  417. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.81469727e-06, -6.09999275, -0.00080871582, 0.500276268, -4.13639214e-07, 0.865865827, 0.000114550305, 1, -6.57066776e-05, -0.865865827, 0.000132056681, 0.500276268))
  418. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
  419. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  420. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -6.09999275, -0.000801086426, 0.707332194, -4.24834184e-07, 0.706881404, 9.36561628e-05, 1, -9.3114897e-05, -0.706881344, 0.00013206694, 0.707332134))
  421. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
  422. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  423. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -6.09999275, -0.000801086426, 0.866184711, -2.2554805e-07, 0.499723911, 6.6073655e-05, 1, -0.000114075876, -0.499723971, 0.00013182938, 0.866184831))
  424. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
  425. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  426. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -6.09999275, -0.000806808472, 0.966008365, -1.76834959e-07, 0.258511037, 3.43436259e-05, 1, -0.000127651787, -0.258511007, 0.000132190893, 0.966008306))
  427. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
  428. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  429. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -6.09999275, -0.000806808472, 0.99999994, -8.93150442e-08, -0.00031873578, 4.71724384e-08, 1, -0.000132218003, 0.00031873578, 0.00013221796, 0.99999994))
  430. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
  431. Part = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 0, "Black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  432. Partweld = weld(m, WeapHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -6.09999275, -0.00080871582, -0.706881404, -4.00275098e-07, 0.707332134, 9.33918636e-05, 1, 9.38982412e-05, -0.707332134, 0.000132433983, -0.706881344))
  433. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(1.20000005, 0.100000001, 0.100000001))
  434. Hitbox = part(Enum.FormFactor.Brick, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Hitbox", Vector3.new(0.2, 0.2, 0.2))
  435. Hitboxweld = weld(m, WeapHandle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.14999771, 0, 1.80000567, -5.96046448e-08, -1, 0, 1, -5.96046448e-08, -2.7533531e-14, 2.76256848e-14, 0, 1))
  436. mesh("SpecialMesh", Hitbox, Enum.MeshType.Brick, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  437. WeapHandleweld.Part0 = Torso
  438. WeapHandleweld.C0 = cf(2.5, 1.5, 0.5) * angles(math.rad(180), math.rad(90), math.rad(0)) * angles(math.rad(30), math.rad(0), math.rad(0))
  439. Effects = Instance.new("Folder", m)
  440. Effects.Name = "Effects"
  441. Humanoid.Died:connect(function()
  442.  
  443. attack = true
  444. for _,v in pairs(Character:children()) do
  445. if v:IsA("Model") then
  446. m:Destroy()
  447. end
  448. end
  449. end
  450. )
  451. for i,v in pairs(Character:GetChildren()) do
  452. if v:IsA("Model") then
  453. for _,c in pairs(v:GetChildren()) do
  454. if c:IsA("Part") then
  455. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  456. end
  457. end
  458. end
  459. end
  460. print("Dread Scythe loaded.")
  461. so = function(id, par, vol, pit)
  462.  
  463. coroutine.resume(coroutine.create(function()
  464.  
  465. local sou = Instance.new("Sound", par or workspace)
  466. sou.Volume = vol
  467. sou.Pitch = pit or 1
  468. sou.SoundId = id
  469. hbwait()
  470. sou:play()
  471. game:GetService("Debris"):AddItem(sou, 6)
  472. end
  473. ))
  474. end
  475.  
  476. function clerp(a,b,t)
  477. local qa = {QuaternionFromCFrame(a)}
  478. local qb = {QuaternionFromCFrame(b)}
  479. local ax, ay, az = a.x, a.y, a.z
  480. local bx, by, bz = b.x, b.y, b.z
  481. local _t = 1-t
  482. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  483. end
  484.  
  485. function QuaternionFromCFrame(cf)
  486. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  487. local trace = m00 + m11 + m22
  488. if trace > 0 then
  489. local s = math.sqrt(1 + trace)
  490. local recip = 0.5/s
  491. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  492. else
  493. local i = 0
  494. if m11 > m00 then
  495. i = 1
  496. end
  497. if m22 > (i == 0 and m00 or m11) then
  498. i = 2
  499. end
  500. if i == 0 then
  501. local s = math.sqrt(m00-m11-m22+1)
  502. local recip = 0.5/s
  503. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  504. elseif i == 1 then
  505. local s = math.sqrt(m11-m22-m00+1)
  506. local recip = 0.5/s
  507. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  508. elseif i == 2 then
  509. local s = math.sqrt(m22-m00-m11+1)
  510. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  511. end
  512. end
  513. end
  514.  
  515. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  516. local xs, ys, zs = x + x, y + y, z + z
  517. local wx, wy, wz = w*xs, w*ys, w*zs
  518. local xx = x*xs
  519. local xy = x*ys
  520. local xz = x*zs
  521. local yy = y*ys
  522. local yz = y*zs
  523. local zz = z*zs
  524. 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))
  525. end
  526.  
  527. function QuaternionSlerp(a, b, t)
  528. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  529. local startInterp, finishInterp;
  530. if cosTheta >= 0.0001 then
  531. if (1 - cosTheta) > 0.0001 then
  532. local theta = math.acos(cosTheta)
  533. local invSinTheta = 1/math.sin(theta)
  534. startInterp = math.sin((1-t)*theta)*invSinTheta
  535. finishInterp = math.sin(t*theta)*invSinTheta
  536. else
  537. startInterp = 1-t
  538. finishInterp = t
  539. end
  540. else
  541. if (1+cosTheta) > 0.0001 then
  542. local theta = math.acos(-cosTheta)
  543. local invSinTheta = 1/math.sin(theta)
  544. startInterp = math.sin((t-1)*theta)*invSinTheta
  545. finishInterp = math.sin(t*theta)*invSinTheta
  546. else
  547. startInterp = t-1
  548. finishInterp = t
  549. end
  550. end
  551. 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
  552. end
  553.  
  554. rayCast = function(Pos, Dir, Max, Ignore)
  555.  
  556. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  557. end
  558.  
  559. DamageStatLabel = function(cframe, text, color)
  560.  
  561. local c = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt(0, 0, 0))
  562. c.CFrame = cf(cframe.p + vt(0, 1.5, 0))
  563. game:GetService("Debris"):AddItem(c, 5)
  564. Instance.new("BodyGyro", c)
  565. local f = Instance.new("BodyPosition", c)
  566. f.P = 2000
  567. f.D = 100
  568. f.maxForce = vt(math.huge, math.huge, math.huge)
  569. f.position = c.Position + vt(math.random(-1, 1), 6, math.random(-1, 1))
  570. game:GetService("Debris"):AddItem(c, 5)
  571. local bg = Instance.new("BillboardGui", c)
  572. bg.Adornee = c
  573. bg.Size = UDim2.new(2.5, 0, 2.5, 0)
  574. bg.StudsOffset = vt(-2, 2, 0)
  575. bg.AlwaysOnTop = false
  576. local tl = Instance.new("TextLabel", bg)
  577. tl.BackgroundTransparency = 1
  578. tl.Size = UDim2.new(2.5, 0, 2.5, 0)
  579. tl.Text = text
  580. tl.Font = Enum.Font.SourceSans
  581. tl.FontSize = Enum.FontSize.Size42
  582. tl.TextColor3 = color
  583. tl.TextScaled = false
  584. tl.TextStrokeTransparency = 0
  585. tl.TextScaled = true
  586. tl.TextWrapped = true
  587. f.Parent = c
  588. coroutine.resume(coroutine.create(function(Part, BodyPosition, TextLabel)
  589.  
  590. wait(0.25)
  591. for i = 1, 5 do
  592. wait()
  593. BodyPosition.position = Part.Position - vt(0, 0.5, 0)
  594. end
  595. wait(1.25)
  596. for i = 1, 5 do
  597. wait()
  598. TextLabel.TextTransparency = TextLabel.TextTransparency + 0.2
  599. TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + 0.2
  600. BodyPosition.position = Part.Position + vt(0, 0.5, 0)
  601. end
  602. Part.Parent = nil
  603. end
  604. ), c, f, tl)
  605. end
  606.  
  607. IncreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat)
  608.  
  609. -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  610.  
  611. -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  612.  
  613. if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
  614. Location.Stats[Stat].Value = Location.Stats[Stat].Value + Amount
  615. if ShowTheStat == true then
  616. if Stat == "Defense" then
  617. DamageStatLabel(Location.Head.CFrame, "+Defense", c3(1, 1, 1))
  618. else
  619. if Stat == "Damage" then
  620. DamageStatLabel(Location.Head.CFrame, "+Damage", c3(1, 1, 1))
  621. else
  622. if Stat == "Movement" then
  623. DamageStatLabel(Location.Head.CFrame, "+Movement", c3(1, 1, 1))
  624. end
  625. end
  626. end
  627. end
  628. coroutine.resume(coroutine.create(function(CurrentDecrease)
  629.  
  630. wait(Duration)
  631. CurrentDecrease.Value = CurrentDecrease.Value - Amount
  632. end
  633. ), Location.Stats[Stat])
  634. end
  635. DamageStatLabel(Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
  636. end
  637.  
  638. DecreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat)
  639.  
  640. -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  641.  
  642. -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  643.  
  644. if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
  645. Location.Stats[Stat].Value = Location.Stats[Stat].Value - Amount
  646. if ShowTheStat == true then
  647. if Stat == "Defense" then
  648. DamageStatLabel(Location.Head.CFrame, "-Defense", c3(1, 1, 1))
  649. else
  650. if Stat == "Damage" then
  651. DamageStatLabel(Location.Head.CFrame, "-Damage", c3(1, 1, 1))
  652. else
  653. if Stat == "Movement" then
  654. DamageStatLabel(Location.Head.CFrame, "-Movement", c3(1, 1, 1))
  655. end
  656. end
  657. end
  658. end
  659. coroutine.resume(coroutine.create(function(CurrentDecrease)
  660.  
  661. wait(Duration)
  662. CurrentDecrease.Value = CurrentDecrease.Value + Amount
  663. end
  664. ), Location.Stats[Stat])
  665. end
  666. DamageStatLabel(Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
  667. end
  668.  
  669. GetDistance = function(Part1, Part2, magnitude)
  670.  
  671. local target = Part1.Position - Part2.Position
  672. local mag = target.magnitude
  673. if mag <= magnitude then
  674. return true
  675. else
  676. return false
  677. end
  678. end
  679.  
  680. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, DecreaseTheStat, DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  681.  
  682. if hit.Parent == nil then
  683. return
  684. end
  685. h = hit.Parent:FindFirstChild("Humanoid")
  686. for _,v in pairs(hit.Parent:children()) do
  687. if v:IsA("Humanoid") then
  688. h = v
  689. end
  690. end
  691. if hit.Name == "Hitbox" and ranged ~= true and hit.Parent ~= m then
  692. StaggerHitAnim.Value = true
  693. so("http://roblox.com/asset/?id=" .. HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1)
  694. return
  695. end
  696. if AntiTeamKill.Value == true then
  697. if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then
  698. opponent = game.Players:FindFirstChild(hit.Parent.Name)
  699. end
  700. if opponent ~= nil and opponent.TeamColor == Player.TeamColor then
  701. return
  702. end
  703. end
  704. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  705. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  706. end
  707. if hit.Parent.className == "Hat" then
  708. hit = hit.Parent.Parent:findFirstChild("Head")
  709. end
  710. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  711. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  712. return
  713. end
  714. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health <= 0 then
  715. return
  716. end
  717. if hit.Parent:findFirstChild("Stats") ~= nil and hit.Parent.Stats:findFirstChild("StunValue") ~= nil then
  718. hit.Parent.Stats:findFirstChild("StunValue").Value = hit.Parent.Stats:findFirstChild("StunValue").Value + incstun
  719. end
  720. if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:findFirstChild("StaggerAnim") ~= nil and stagger == true then
  721. hit.Parent.Stats:findFirstChild("StaggerAnim").Value = true
  722. end
  723. if hit.Parent:findFirstChild("Stats") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue").Value == true then
  724. DamageStatLabel(hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
  725. so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
  726. if ranged ~= true then
  727. hit.Parent.Stats:findFirstChild("BlockValue").Value = false
  728. StaggerAnim.Value = true
  729. end
  730. return
  731. end
  732. if DecreaseTheStat ~= nil and hit.Parent:FindFirstChild("Stats") ~= nil then
  733. if DecreaseTheStat == "Defense" then
  734. DecreaseStat(hit.Parent, "Defense", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  735. else
  736. if DecreaseTheStat == "Damage" then
  737. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  738. else
  739. if DecreaseTheStat == "Movement" then
  740. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  741. end
  742. end
  743. end
  744. end
  745. local D = math.random(minim, maxim) * Damage.Value
  746. if hit.Parent:FindFirstChild("Stats") ~= nil then
  747. if hit.Parent.Stats:FindFirstChild("Defense") then
  748. if CanPenetrateArmor.Value == true then
  749. D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
  750. -- DECOMPILER ERROR at PC337: Unhandled construct in 'MakeBoolean' P1
  751.  
  752. if hit.Parent.Stats:FindFirstChild("Defense") ~= nil or CanCrit.Value == true then
  753. CritChanceNumber = math.random(1, CritChance.Value)
  754. if CritChanceNumber == CritChance.Value then
  755. D = D * 2
  756. end
  757. end
  758. D = math.floor(D)
  759. h.Health = h.Health - D
  760. if D <= 3 and staggerhit == true then
  761. if ranged ~= true then
  762. StaggerHitAnim.Value = true
  763. end
  764. if ranged ~= true then
  765. so("http://roblox.com/asset/?id=" .. HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1)
  766. end
  767. else
  768. if D > 3 and ranged ~= true then
  769. so("http://roblox.com/asset/?id=" .. HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1)
  770. end
  771. end
  772. if D > 2 and D < 20 then
  773. if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  774. DamageStatLabel(hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
  775. so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
  776. else
  777. DamageStatLabel(hit.Parent.Head.CFrame, D, Color3.new(1, 0.86274509803922, 0))
  778. end
  779. else
  780. if D >= 20 then
  781. if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  782. DamageStatLabel(hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
  783. so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
  784. else
  785. DamageStatLabel(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0, 0))
  786. end
  787. else
  788. if D <= 2 then
  789. if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  790. DamageStatLabel(hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
  791. so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
  792. else
  793. DamageStatLabel(hit.Parent.Head.CFrame, D, Color3.new(0.88235294117647, 0.88235294117647, 0.88235294117647))
  794. end
  795. end
  796. end
  797. end
  798. if Type == "Normal" then
  799. vp = Instance.new("BodyVelocity")
  800. vp.P = 500
  801. vp.maxForce = vt(math.huge, 0, math.huge)
  802. if KnockbackType == 1 then
  803. vp.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  804. else
  805. if KnockbackType == 2 then
  806. vp.Velocity = Property.CFrame.lookVector * knockback
  807. end
  808. end
  809. if knockback > 0 then
  810. vp.Parent = hit.Parent.Torso
  811. end
  812. game:GetService("Debris"):AddItem(vp, 0.5)
  813. else
  814. if Type == "OrbitalStrike1" then
  815. orbitstrikevelocity = Instance.new("BodyVelocity")
  816. orbitstrikevelocity.P = 500
  817. orbitstrikevelocity.maxForce = vt(math.huge, 0, math.huge)
  818. orbitstrikevelocity.Velocity = Property.Position * knockback - hit.Position
  819. if knockback > 0 then
  820. orbitstrikevelocity.Parent = hit.Parent.Torso
  821. end
  822. game:GetService("Debris"):AddItem(orbitstrikevelocity, 0.5)
  823. else
  824. if Type == "OrbitalStrike2" then
  825. orbitstrikevelocity = Instance.new("BodyVelocity")
  826. orbitstrikevelocity.P = 500
  827. orbitstrikevelocity.maxForce = vt(math.huge, 0, math.huge)
  828. orbitstrikevelocity.Velocity = hit.Position * knockback - Property.Position
  829. if knockback > 0 then
  830. orbitstrikevelocity.Parent = hit.Parent.Torso
  831. end
  832. game:GetService("Debris"):AddItem(orbitstrikevelocity, 0.5)
  833. end
  834. end
  835. end
  836. debounce = Instance.new("BoolValue")
  837. debounce.Name = "DebounceHit"
  838. debounce.Parent = hit.Parent
  839. debounce.Value = true
  840. game:GetService("Debris"):AddItem(debounce, Delay)
  841. c = Instance.new("ObjectValue")
  842. c.Name = "creator"
  843. c.Value = Player
  844. c.Parent = h
  845. game:GetService("Debris"):AddItem(c, 0.5)
  846. end
  847. end
  848. end
  849. end
  850. end
  851.  
  852. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat)
  853.  
  854. for _,c in pairs(workspace:children()) do
  855. local hum = (c:FindFirstChild("Humanoid"))
  856. local head = nil
  857. if hum ~= nil then
  858. head = c:FindFirstChild("Torso")
  859. if head ~= nil then
  860. local targ = head.Position - Part.Position
  861. local mag = targ.magnitude
  862. if mag <= magni and c.Name ~= Player.Name then
  863. Damagefunc(head, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat)
  864. end
  865. end
  866. do
  867. for _,d in pairs(c:children()) do
  868. if d.ClassName == "Model" and ranged ~= true then
  869. head = d:FindFirstChild("Hitbox")
  870. if head ~= nil then
  871. local targ = head.Position - Part.Position
  872. local mag = targ.magnitude
  873. if mag <= magni and c.Name ~= Player.Name then
  874. local hitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt())
  875. hitrefpart.Anchored = true
  876. hitrefpart.CFrame = cf(head.Position)
  877. so("http://roblox.com/asset/?id=" .. HitWeaponSounds[math.random(1, #HitWeaponSounds)], hitrefpart, 1, 1)
  878. StaggerHitAnim.Value = true
  879. end
  880. end
  881. end
  882. end
  883. do
  884. -- DECOMPILER ERROR at PC109: LeaveBlock: unexpected jumping out DO_STMT
  885.  
  886. -- DECOMPILER ERROR at PC109: LeaveBlock: unexpected jumping out IF_THEN_STMT
  887.  
  888. -- DECOMPILER ERROR at PC109: LeaveBlock: unexpected jumping out IF_STMT
  889.  
  890. end
  891. end
  892. end
  893. end
  894. end
  895.  
  896. Lightning = function(p0, p1, tym, ofs, brickcolor, th, tra, last)
  897.  
  898. local magz = p0 - p1.magnitude
  899. local curpos = p0
  900. local trz = {-ofs, ofs}
  901. for i = 1, tym do
  902. local li = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(th, th, magz / tym))
  903. do
  904. li.Anchored = true
  905. local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  906. local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz
  907. if tym == i then
  908. local magz2 = curpos - p1.magnitude
  909. li.Size = vt(th, th, magz2)
  910. li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2)
  911. else
  912. do
  913. do
  914. li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2)
  915. curpos = li.CFrame * cf(0, 0, magz / tym / 2).p
  916. game.Debris:AddItem(li, last)
  917. coroutine.resume(coroutine.create(function()
  918.  
  919. while li.Transparency ~= 1 do
  920. for i = 0, 1, last do
  921. hbwait()
  922. li.Transparency = li.Transparency + 0.1 / last
  923. end
  924. end
  925. end
  926. ))
  927. end
  928. -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  929.  
  930. -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_STMT
  931.  
  932. -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out DO_STMT
  933.  
  934. end
  935. end
  936. end
  937. end
  938. end
  939.  
  940. MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  941.  
  942. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  943. prt.Anchored = true
  944. prt.CFrame = cframe
  945. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  946. game:GetService("Debris"):AddItem(prt, 10)
  947. coroutine.resume(coroutine.create(function(Part, Mesh)
  948.  
  949. for i = 0, 1, delay do
  950. hbwait()
  951. Part.CFrame = Part.CFrame
  952. Part.Transparency = i
  953. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  954. end
  955. Part.Parent = nil
  956. end
  957. ), prt, msh)
  958. end
  959.  
  960. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  961.  
  962. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  963. prt.Anchored = true
  964. prt.CFrame = cframe
  965. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  966. game:GetService("Debris"):AddItem(prt, 10)
  967. coroutine.resume(coroutine.create(function(Part, Mesh)
  968.  
  969. for i = 0, 1, delay do
  970. hbwait()
  971. Part.CFrame = Part.CFrame
  972. Part.Transparency = i
  973. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  974. end
  975. Part.Parent = nil
  976. end
  977. ), prt, msh)
  978. end
  979.  
  980. MagicBlock = function(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  981.  
  982. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  983. prt.Anchored = true
  984. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  985. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  986. game:GetService("Debris"):AddItem(prt, 10)
  987. coroutine.resume(coroutine.create(function(Part, Mesh)
  988.  
  989. for i = 0, 1, delay do
  990. hbwait()
  991. if rotate == true then
  992. Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  993. end
  994. Part.Transparency = i
  995. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  996. end
  997. Part.Parent = nil
  998. end
  999. ), prt, msh)
  1000. end
  1001.  
  1002. MagicBlock2 = function(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  1003.  
  1004. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  1005. prt.Anchored = true
  1006. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1007. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1008. game:GetService("Debris"):AddItem(prt, 10)
  1009. CF = prt.CFrame
  1010. num = math.random(5, 20)
  1011. coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num)
  1012.  
  1013. for i = 0, 1, delay do
  1014. hbwait()
  1015. if rotate == true then
  1016. Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1017. else
  1018. Part.CFrame = CF2 * cf(0, i * Num, 0)
  1019. end
  1020. Part.Transparency = i
  1021. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1022. end
  1023. Part.Parent = nil
  1024. end
  1025. ), prt, msh, CF, num)
  1026. end
  1027.  
  1028. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1029.  
  1030. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  1031. prt.Anchored = true
  1032. prt.CFrame = cframe
  1033. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1034. game:GetService("Debris"):AddItem(prt, 10)
  1035. coroutine.resume(coroutine.create(function(Part, Mesh)
  1036.  
  1037. for i = 0, 1, delay do
  1038. hbwait()
  1039. Part.Transparency = i
  1040. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1041. end
  1042. Part.Parent = nil
  1043. end
  1044. ), prt, msh)
  1045. end
  1046.  
  1047. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1048.  
  1049. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  1050. prt.Anchored = true
  1051. prt.CFrame = cframe
  1052. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1053. game:GetService("Debris"):AddItem(prt, 10)
  1054. coroutine.resume(coroutine.create(function(Part, Mesh)
  1055.  
  1056. for i = 0, 1, delay do
  1057. hbwait()
  1058. Part.Transparency = i
  1059. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1060. end
  1061. Part.Parent = nil
  1062. end
  1063. ), prt, msh)
  1064. end
  1065.  
  1066. BreakEffect = function(brickcolor, rotate, cframe, x1, y1, z1, delay)
  1067.  
  1068. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  1069. prt.Anchored = true
  1070. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1071. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1072. game:GetService("Debris"):AddItem(prt, 10)
  1073. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  1074.  
  1075. CF = Part.CFrame
  1076. Numbb = 0
  1077. randnumb = math.random() - math.random()
  1078. for i = 0, 1, delay do
  1079. hbwait()
  1080. CF = CF * cf(0, 1, 0)
  1081. if rotate == true then
  1082. Part.CFrame = CF * angles(Numbb, 0, 0)
  1083. else
  1084. if rotate == false then
  1085. Part.CFrame = CF
  1086. end
  1087. end
  1088. Part.Transparency = i
  1089. Numbb = Numbb + (randnumb)
  1090. end
  1091. Part.Parent = nil
  1092. end
  1093. ), prt, CF, Numbb, randnumb)
  1094. end
  1095.  
  1096. ElecEffect = function(brickcolor, cf, x, y, z, delay)
  1097.  
  1098. local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
  1099. prt.Anchored = true
  1100. prt.CFrame = cf
  1101. xval = math.random()
  1102. yval = math.random()
  1103. zval = math.random()
  1104. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z))
  1105. game:GetService("Debris"):AddItem(prt, 10)
  1106. coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal)
  1107.  
  1108. for i = 0, 1, delay do
  1109. hbwait()
  1110. Part.CFrame = Part.CFrame
  1111. xvaal = xvaal - 0.1 * (delay * 10)
  1112. yvaal = yvaal - 0.1 * (delay * 10)
  1113. zvaal = zvaal - 0.1 * (delay * 10)
  1114. Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal)
  1115. Part.Transparency = i
  1116. end
  1117. Part.Parent = nil
  1118. end
  1119. ), prt, msh, xval, yval, zval)
  1120. end
  1121.  
  1122. TrailEffect = function(brickcolor, currentcf, oldcf, meshtype, reflectance, neon, size, x, y, z, delay)
  1123.  
  1124. local prt = part(3, Effects, "SmoothPlastic", reflectance, 0, brickcolor, "Effect", vt())
  1125. prt.Anchored = true
  1126. prt.CFrame = currentcf
  1127. local TheMeshType = "BlockMesh"
  1128. if meshtype == "Cylinder" then
  1129. TheMeshType = "CylinderMesh"
  1130. end
  1131. local msh = mesh(TheMeshType, prt, "", "", vt(0, 0, 0), vt())
  1132. if neon == true then
  1133. prt.Material = "Neon"
  1134. end
  1135. game:GetService("Debris"):AddItem(prt, 10)
  1136. local magnitudecframe = currentcf.p - oldcf.p.magnitude
  1137. prt.Size = Vector3.new(1, magnitudecframe, 1)
  1138. prt.CFrame = cf((currentcf.p + oldcf.p) / 2, oldcf.p) * angles(math.rad(90), 0, 0)
  1139. msh.Scale = vt(0 + size, 1, 0 + size)
  1140. coroutine.resume(coroutine.create(function(Part, Mesh, TheCurrentCFrame, TheLastCFrame)
  1141.  
  1142. for i = 0, 1, delay do
  1143. hbwait()
  1144. Part.Transparency = i
  1145. Mesh.Scale = Mesh.Scale + vt(x, y, z)
  1146. end
  1147. Part.Parent = nil
  1148. end
  1149. ), prt, msh, currentcf, oldcf)
  1150. end
  1151.  
  1152. ClangEffect = function(brickcolor, cframe, angle, duration, size, power, reflectance, neon, x, y, z, delay)
  1153.  
  1154. local prt = part(3, Effects, "SmoothPlastic", 0, 1, brickcolor, "Effect", vt())
  1155. prt.Anchored = true
  1156. prt.CFrame = cframe
  1157. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(0, 0, 0))
  1158. game:GetService("Debris"):AddItem(prt, 10)
  1159. local TheLastPoint = cframe
  1160. coroutine.resume(coroutine.create(function(Part)
  1161.  
  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, Part.CFrame, TheLastPoint, "Cylinder", reflectance, neon, size, x, y, z, delay)
  1166. TheLastPoint = Part.CFrame
  1167. end
  1168. Part.Parent = nil
  1169. end
  1170. ), prt)
  1171. end
  1172.  
  1173. local startequipped = false
  1174. local startequippedwithequipanimation = false
  1175. local disableanimator = false
  1176. local disableanimate = true
  1177. local alternatewalk = true
  1178. local hidemenu = false
  1179. local allowmenutofunction = true
  1180. local allowabilitestofunction = true
  1181. local canunequiporequip = true
  1182. local allowidle = false
  1183. local allowwalking = true
  1184. local disablemovingarms = true
  1185. local usemotorsinsteadofwelds = true
  1186. local leftarm = true
  1187. local rightarm = false
  1188. local allowhopperbin = true
  1189. local showstunbar = true
  1190. local walkspeeddependsonspeedvalue = true
  1191. local alternatemanaregensystem = true
  1192. local showhealthmanaandstunnumbers = true
  1193. local changebarcolorsifnotenoughmana = false
  1194. local disablejump = false
  1195. if hidemenu == true then
  1196. for _,v in pairs(scrn:children()) do
  1197. if v.ClassName == "Frame" or v.ClassName == "TextLabel" then
  1198. v.Visible = false
  1199. end
  1200. end
  1201. end
  1202. Humanoid.Changed:connect(function(Jump)
  1203. if Jump == "Jump" and disablejump == true then
  1204. Humanoid.Jump = false
  1205. end
  1206. end
  1207. )
  1208. if allowmenutofunction == true then
  1209. for _,v in pairs(scrn:GetChildren()) do
  1210. if v.ClassName == "Frame" then
  1211. for _,b in pairs(v:GetChildren()) do
  1212. if b.ClassName == "TextLabel" and b.Name ~= "Text 1" and b.Name ~= "Text 2" and b.Name ~= "Text 3" and b.Name ~= "Text 4" then
  1213. coroutine.resume(coroutine.create(function(TheTextLabel)
  1214.  
  1215. wait(menuupdatespeed)
  1216. for i = 1, 0, -0.1 do
  1217. hbwait()
  1218. TheTextLabel.TextTransparency = i
  1219. TheTextLabel.TextStrokeTransparency = i
  1220. end
  1221. TheTextLabel.TextTransparency = 0
  1222. TheTextLabel.TextStrokeTransparency = 0
  1223. end
  1224. ), b)
  1225. end
  1226. end
  1227. end
  1228. end
  1229. end
  1230. if allowmenutofunction == true and allowabilitestofunction == true then
  1231. for _,v in pairs(scrn:GetChildren()) do
  1232. if v.ClassName == "Frame" then
  1233. for _,b in pairs(v:GetChildren()) do
  1234. if b.ClassName == "TextLabel" and b.Name ~= "Health Text" and b.Name ~= "Mana Text" then
  1235. coroutine.resume(coroutine.create(function(TheTextLabel)
  1236.  
  1237. wait(menuupdatespeed)
  1238. for i = 1, 0, -0.1 do
  1239. hbwait()
  1240. TheTextLabel.TextTransparency = i
  1241. TheTextLabel.TextStrokeTransparency = i
  1242. end
  1243. TheTextLabel.TextTransparency = 0
  1244. TheTextLabel.TextStrokeTransparency = 0
  1245. end
  1246. ), b)
  1247. end
  1248. end
  1249. end
  1250. end
  1251. end
  1252. if allowhopperbin == true then
  1253. if script.Parent.className ~= "HopperBin" then
  1254. Tool = Instance.new("HopperBin")
  1255. Tool.Parent = Backpack
  1256. Tool.Name = "Dread Scythe"
  1257. script.Parent = Tool
  1258. end
  1259. Bin = script.Parent
  1260. end
  1261. if disablemovingarms == true then
  1262. RWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
  1263. LWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
  1264. RSH = nil
  1265. if usemotorsinsteadofwelds == true then
  1266. RW = Instance.new("Motor")
  1267. LW = Instance.new("Motor")
  1268. else
  1269. RW = Instance.new("Weld")
  1270. LW = Instance.new("Weld")
  1271. end
  1272. RW.Name = "Right Shoulder"
  1273. LW.Name = "Left Shoulder"
  1274. RSH = Torso["Right Shoulder"]
  1275. LSH = Torso["Left Shoulder"]
  1276. RSH.Parent = Torso
  1277. LSH.Parent = Torso
  1278. RW.Name = "Right Shoulder"
  1279. RW.Part0 = Torso
  1280. RW.C0 = cf(1.5, 0.5, 0)
  1281. RW.C1 = cf(0, 0.5, 0)
  1282. RW.Part1 = Character["Right Arm"]
  1283. RW.Parent = nil
  1284. LW.Name = "Left Shoulder"
  1285. LW.Part0 = Torso
  1286. LW.C0 = cf(-1.5, 0.5, 0)
  1287. LW.C1 = cf(0, 0.5, 0)
  1288. LW.Part1 = Character["Left Arm"]
  1289. LW.Parent = nil
  1290. else
  1291. RW = Torso["Right Shoulder"]
  1292. LW = Torso["Left Shoulder"]
  1293. LH = Torso["Left Hip"]
  1294. RH = Torso["Right Hip"]
  1295. RWC0 = cf(-0.5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(0))
  1296. LWC0 = cf(0.5, 0, 0) * angles(math.rad(0), math.rad(-90), math.rad(0))
  1297. end
  1298. if allowidle == true then
  1299. coroutine.resume(coroutine.create(function()
  1300.  
  1301. while wait() do
  1302. for i = 0, 1, 0.08 do
  1303. wait()
  1304. idleangle = idleangle + 0.005 * idlen
  1305. idlen = idlen - 0.1
  1306. end
  1307. idlen = 0
  1308. for i = 0, 1, 0.08 do
  1309. wait()
  1310. idleangle = idleangle - 0.005 * idlen
  1311. idlen = idlen - 0.1
  1312. end
  1313. idlen = 0
  1314. idleangle = 0
  1315. end
  1316. end
  1317. ))
  1318. end
  1319. equipanim = function()
  1320. attack = true
  1321. for i = 0, 1, 0.08 / animationspeed do
  1322. hbwait()
  1323. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1324. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.3 / animationspeed)
  1325. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(120)) * angles(math.rad(40), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
  1326. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)) * LWC0, 0.3 / animationspeed)
  1327. 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(0)), 0.3 / animationspeed)
  1328. 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(0)), 0.3 / animationspeed)
  1329. end
  1330. WeapHandleweld.Part0 = RightArm
  1331. WeapHandleweld.C0 = cf(0, -1, 0) * angles(math.rad(90), math.rad(-20), math.rad(20))
  1332. Movement.Value = Movement.Value - 0.1
  1333. Defense.Value = Defense.Value + 0.4
  1334. attack = false
  1335. end
  1336.  
  1337. unequipanim = function()
  1338.  
  1339. attack = true
  1340. for i = 0, 1, 0.08 / animationspeed do
  1341. hbwait()
  1342. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3 / animationspeed)
  1343. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.3 / animationspeed)
  1344. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(120)) * angles(math.rad(40), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
  1345. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)) * LWC0, 0.3 / animationspeed)
  1346. 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)
  1347. 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(0)), 0.3 / animationspeed)
  1348. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(90), math.rad(-20), math.rad(20)), 0.3 / animationspeed)
  1349. end
  1350. WeapHandleweld.Part0 = Torso
  1351. WeapHandleweld.C0 = cf(2.5, 1.5, 0.5) * angles(math.rad(180), math.rad(90), math.rad(0)) * angles(math.rad(30), math.rad(0), math.rad(0))
  1352. for i = 0, 1, 0.08 / animationspeed do
  1353. hbwait()
  1354. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1355. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1356. 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)
  1357. 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)
  1358. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 0.3 / animationspeed)
  1359. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 0.3 / animationspeed)
  1360. 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)
  1361. 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)
  1362. end
  1363. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1364. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1365. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 1)
  1366. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 1)
  1367. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * RWC0, 1)
  1368. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * LWC0, 1)
  1369. 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)
  1370. 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)
  1371. 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)
  1372. 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)
  1373. Movement.Value = Movement.Value + 0.1
  1374. Defense.Value = Defense.Value - 0.4
  1375. attack = false
  1376. end
  1377.  
  1378. if startequipped == true then
  1379. equipped = true
  1380. if disableanimate == true then
  1381. Animate.Disabled = true
  1382. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1383. idleanimation:Play()
  1384. end
  1385. if disableanimator == true then
  1386. Animator.Parent = nil
  1387. end
  1388. if disablemovingarms == true then
  1389. RW.Parent = Torso
  1390. LW.Parent = Torso
  1391. RSH.Parent = nil
  1392. LSH.Parent = nil
  1393. end
  1394. Movement.Value = Movement.Value - 0.1
  1395. Defense.Value = Defense.Value + 0.4
  1396. if startequippedwithequipanimation == true then
  1397. equipped = true
  1398. if disableanimate == true then
  1399. Animate.Disabled = true
  1400. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1401. idleanimation:Play()
  1402. end
  1403. if disableanimator == true then
  1404. Animator.Parent = nil
  1405. end
  1406. if disablemovingarms == true then
  1407. RW.Parent = Torso
  1408. LW.Parent = Torso
  1409. RSH.Parent = nil
  1410. LSH.Parent = nil
  1411. end
  1412. equipanim()
  1413. end
  1414. end
  1415. StaggerHit = function()
  1416.  
  1417. attack = true
  1418. for i = 1, math.random(2, 4) do
  1419. ClangEffect("Bright yellow", 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.1, math.random(5, 15) / 10, 0, true, -0.005, 0, -0.005, 0.05)
  1420. end
  1421. for i = 0, 1, 0.1 / animationspeed do
  1422. hbwait()
  1423. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3 / animationspeed)
  1424. 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)
  1425. 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)
  1426. 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)
  1427. 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)
  1428. 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)
  1429. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1430. if StaggerAnim.Value ~= true then
  1431. do
  1432. if StunAnim.Value == true then
  1433. break
  1434. end
  1435. -- DECOMPILER ERROR at PC360: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1436.  
  1437. -- DECOMPILER ERROR at PC360: LeaveBlock: unexpected jumping out IF_STMT
  1438.  
  1439. end
  1440. end
  1441. end
  1442. attack = false
  1443. end
  1444.  
  1445. Stagger = function()
  1446.  
  1447. attack = true
  1448. disablejump = true
  1449. for i = 1, math.random(2, 4) do
  1450. ClangEffect("Bright yellow", 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, true, -0.01, 0, -0.01, 0.05)
  1451. end
  1452. attacktype = 1
  1453. local staggervelocity = Instance.new("BodyVelocity", Torso)
  1454. staggervelocity.P = 500
  1455. staggervelocity.maxForce = vt(math.huge, 0, math.huge)
  1456. if Rooted.Value == false then
  1457. staggervelocity.Velocity = RootPart.CFrame.lookVector * -25
  1458. end
  1459. for i = 0, 1, 0.35 / animationspeed do
  1460. hbwait()
  1461. 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)
  1462. 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)
  1463. 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)
  1464. 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)
  1465. 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)
  1466. 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)
  1467. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3 / animationspeed)
  1468. end
  1469. for i = 0, 1, 0.2 / animationspeed do
  1470. hbwait()
  1471. 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)
  1472. 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)
  1473. 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)
  1474. 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)
  1475. 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)
  1476. 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)
  1477. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3 / animationspeed)
  1478. end
  1479. staggervelocity:Destroy()
  1480. for i = 0, 1, 0.015 / animationspeed do
  1481. hbwait()
  1482. 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)
  1483. 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)
  1484. 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)
  1485. 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)
  1486. 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)
  1487. 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)
  1488. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3 / animationspeed)
  1489. if StunAnim.Value == true then
  1490. break
  1491. end
  1492. end
  1493. do
  1494. attacktype = 1
  1495. disablejump = false
  1496. attack = false
  1497. end
  1498. end
  1499.  
  1500. Stun = function()
  1501.  
  1502. attack = true
  1503. disablejump = true
  1504. attacktype = 1
  1505. DamageStatLabel(Head.CFrame, "Stunned!", Color3.new(1, 1, 0))
  1506. for i = 0, 1, 0.4 / animationspeed do
  1507. hbwait()
  1508. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(15), math.rad(0), math.rad(-160)), 0.3 / animationspeed)
  1509. 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)
  1510. 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)
  1511. 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)
  1512. 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)
  1513. 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)
  1514. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1515. end
  1516. for i = 0, 1, 0.4 / animationspeed do
  1517. hbwait()
  1518. 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)
  1519. 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)
  1520. 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)
  1521. 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)
  1522. 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)
  1523. 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)
  1524. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1525. end
  1526. for i = 0, 1, 0.4 / animationspeed do
  1527. hbwait()
  1528. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1 + idleangle) * angles(math.rad(75), math.rad(0), math.rad(-180)), 0.3 / animationspeed)
  1529. 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)
  1530. 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)
  1531. 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)
  1532. 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)
  1533. 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)
  1534. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1535. end
  1536. gyro = Instance.new("BodyGyro")
  1537. gyro.Parent = nil
  1538. gyro.P = 10000000
  1539. gyro.D = 1000
  1540. gyro.MaxTorque = vt(10000000, 10000000, 10000000)
  1541. gyro.cframe = RootPart.CFrame
  1542. for i = 1, 70 * animationspeed do
  1543. hbwait()
  1544. 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)
  1545. 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)
  1546. 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)
  1547. 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)
  1548. 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)
  1549. 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)
  1550. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1551. end
  1552. for i = 0, 1, 0.5 / animationspeed do
  1553. hbwait()
  1554. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1 + idleangle) * angles(math.rad(90), math.rad(0), math.rad(-180)), 0.3 / animationspeed)
  1555. 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)
  1556. 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)
  1557. 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)
  1558. 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)
  1559. 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)
  1560. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1561. end
  1562. for i = 0, 1, 0.15 / animationspeed do
  1563. hbwait()
  1564. 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)
  1565. 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)
  1566. 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)
  1567. 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)
  1568. 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)
  1569. 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)
  1570. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1571. end
  1572. gyro.Parent = nil
  1573. attacktype = 1
  1574. disablejump = false
  1575. attack = false
  1576. end
  1577.  
  1578. EAbility = function()
  1579.  
  1580. attack = true
  1581. attack = false
  1582. end
  1583.  
  1584. attackone = function()
  1585.  
  1586. attack = true
  1587. for i = 0, 1, 0.1 / animationspeed do
  1588. hbwait()
  1589. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3 / animationspeed)
  1590. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(10)), 0.3 / animationspeed)
  1591. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(20)) * angles(math.rad(0), math.rad(10), math.rad(0)) * RWC0, 0.3 / animationspeed)
  1592. LW.C0 = clerp(LW.C0, cf(0.1, 0.75 + idleangle, -1) * angles(math.rad(170), math.rad(0), math.rad(70)) * angles(math.rad(-10), math.rad(0), math.rad(10)) * LWC0, 0.3 / animationspeed)
  1593. 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)
  1594. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-60), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(5)), 0.3 / animationspeed)
  1595. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(-0.2, 0, 1) * angles(math.rad(-40), math.rad(-10), math.rad(0)), 0.3 / animationspeed)
  1596. if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
  1597. do
  1598. if StunAnim.Value == true then
  1599. break
  1600. end
  1601. -- DECOMPILER ERROR at PC291: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1602.  
  1603. -- DECOMPILER ERROR at PC291: LeaveBlock: unexpected jumping out IF_STMT
  1604.  
  1605. end
  1606. end
  1607. end
  1608. so("http://roblox.com/asset/?id=92597369", Hitbox, 1, 1.2)
  1609. so("http://roblox.com/asset/?id=28144425", Hitbox, 1, 1.2)
  1610. for i = 0, 1, 0.1 / animationspeed do
  1611. hbwait()
  1612. MagniDamage(Hitbox, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(5, 10)), nil, true, false, nil, 0, 0, false)
  1613. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.45 / animationspeed)
  1614. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)), 0.45 / animationspeed)
  1615. RW.C0 = clerp(RW.C0, cf(0, 0.25 + idleangle, -0.75) * angles(math.rad(20), math.rad(0), math.rad(-50)) * angles(math.rad(0), math.rad(-20), math.rad(0)) * RWC0, 0.45 / animationspeed)
  1616. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(20), math.rad(0), math.rad(10)) * angles(math.rad(0), math.rad(-20), math.rad(0)) * LWC0, 0.45 / animationspeed)
  1617. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-5)), 0.45 / animationspeed)
  1618. 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)
  1619. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1, 1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  1620. if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
  1621. do
  1622. if StunAnim.Value == true then
  1623. break
  1624. end
  1625. -- DECOMPILER ERROR at PC620: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1626.  
  1627. -- DECOMPILER ERROR at PC620: LeaveBlock: unexpected jumping out IF_STMT
  1628.  
  1629. end
  1630. end
  1631. end
  1632. attack = false
  1633. end
  1634.  
  1635. attacktwo = function()
  1636.  
  1637. attack = true
  1638. for i = 0, 1, 0.1 / animationspeed do
  1639. hbwait()
  1640. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.3 / animationspeed)
  1641. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(10), math.rad(-20)), 0.3 / animationspeed)
  1642. RW.C0 = clerp(RW.C0, cf(0.25, 0.5 + idleangle, -0.75) * angles(math.rad(90), math.rad(0), math.rad(-90)) * angles(math.rad(10), math.rad(80), math.rad(0)) * RWC0, 0.3 / animationspeed)
  1643. LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(25)) * LWC0, 0.3 / animationspeed)
  1644. 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(-5)), 0.3 / animationspeed)
  1645. 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)
  1646. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -0.5, 1) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.3 / animationspeed)
  1647. if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
  1648. do
  1649. if StunAnim.Value == true then
  1650. break
  1651. end
  1652. -- DECOMPILER ERROR at PC276: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1653.  
  1654. -- DECOMPILER ERROR at PC276: LeaveBlock: unexpected jumping out IF_STMT
  1655.  
  1656. end
  1657. end
  1658. end
  1659. so("http://roblox.com/asset/?id=92597369", Hitbox, 1, 1)
  1660. so("http://roblox.com/asset/?id=28144425", Hitbox, 1, 1)
  1661. for i = 0, 1, 0.1 / animationspeed do
  1662. hbwait()
  1663. MagniDamage(Hitbox, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(5, 10)), nil, true, false, nil, 0, 0, false)
  1664. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.45 / animationspeed)
  1665. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(10)), 0.45 / animationspeed)
  1666. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(80)) * angles(math.rad(-20), math.rad(80), math.rad(0)) * RWC0, 0.45 / animationspeed)
  1667. LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.75) * angles(math.rad(110), math.rad(0), math.rad(50)) * LWC0, 0.45 / animationspeed)
  1668. 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)
  1669. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-50), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(5)), 0.45 / animationspeed)
  1670. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -0.25, 1) * angles(math.rad(-30), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  1671. if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
  1672. do
  1673. if StunAnim.Value == true then
  1674. break
  1675. end
  1676. -- DECOMPILER ERROR at PC590: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1677.  
  1678. -- DECOMPILER ERROR at PC590: LeaveBlock: unexpected jumping out IF_STMT
  1679.  
  1680. end
  1681. end
  1682. end
  1683. attack = false
  1684. end
  1685.  
  1686. attackthree = function()
  1687.  
  1688. attack = true
  1689. for i = 0, 1, 0.1 / animationspeed do
  1690. hbwait()
  1691. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1692. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1693. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(190), math.rad(0), math.rad(-20)) * RWC0, 0.3 / animationspeed)
  1694. LW.C0 = clerp(LW.C0, cf(0.5, 1 + idleangle, -0.75) * angles(math.rad(190), math.rad(0), math.rad(20)) * LWC0, 0.3 / animationspeed)
  1695. 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(-5)), 0.3 / animationspeed)
  1696. 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.3 / animationspeed)
  1697. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1.15, 1) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1698. if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
  1699. do
  1700. if StunAnim.Value == true then
  1701. break
  1702. end
  1703. -- DECOMPILER ERROR at PC261: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1704.  
  1705. -- DECOMPILER ERROR at PC261: LeaveBlock: unexpected jumping out IF_STMT
  1706.  
  1707. end
  1708. end
  1709. end
  1710. so("http://roblox.com/asset/?id=92597369", Hitbox, 1, 1.4)
  1711. so("http://roblox.com/asset/?id=28144425", Hitbox, 1, 1.4)
  1712. for i = 0, 1, 0.1 / animationspeed do
  1713. hbwait()
  1714. MagniDamage(Hitbox, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(5, 10)), nil, true, false, nil, 0, 0, false)
  1715. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  1716. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  1717. RW.C0 = clerp(RW.C0, cf(0.35, 0.5 + idleangle, -0.75) * angles(math.rad(30), math.rad(0), math.rad(-20)) * RWC0, 0.45 / animationspeed)
  1718. LW.C0 = clerp(LW.C0, cf(-0.65, 0.25 + idleangle, -0.5) * angles(math.rad(10), math.rad(0), math.rad(30)) * LWC0, 0.45 / animationspeed)
  1719. 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)
  1720. 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(5)), 0.45 / animationspeed)
  1721. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -0.65, 1) * angles(math.rad(-20), math.rad(-5), math.rad(20)), 0.45 / animationspeed)
  1722. if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
  1723. do
  1724. if StunAnim.Value == true then
  1725. break
  1726. end
  1727. -- DECOMPILER ERROR at PC560: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1728.  
  1729. -- DECOMPILER ERROR at PC560: LeaveBlock: unexpected jumping out IF_STMT
  1730.  
  1731. end
  1732. end
  1733. end
  1734. attack = false
  1735. end
  1736.  
  1737. attackfour = function()
  1738.  
  1739. attack = true
  1740. for i = 0, 1, 0.1 / animationspeed do
  1741. hbwait()
  1742. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.3 / animationspeed)
  1743. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(-50)), 0.3 / animationspeed)
  1744. RW.C0 = clerp(RW.C0, cf(0, 0.5 + idleangle, -0.75) * angles(math.rad(80), math.rad(0), math.rad(-110)) * angles(math.rad(10), math.rad(80), math.rad(0)) * RWC0, 0.3 / animationspeed)
  1745. LW.C0 = clerp(LW.C0, cf(-1.5, 0.25 + idleangle, 0) * angles(math.rad(100), math.rad(0), math.rad(7.5)) * LWC0, 0.3 / animationspeed)
  1746. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(5)), 0.3 / animationspeed)
  1747. 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.3 / animationspeed)
  1748. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -0.5, 1) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  1749. if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
  1750. do
  1751. if StunAnim.Value == true then
  1752. break
  1753. end
  1754. -- DECOMPILER ERROR at PC276: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1755.  
  1756. -- DECOMPILER ERROR at PC276: LeaveBlock: unexpected jumping out IF_STMT
  1757.  
  1758. end
  1759. end
  1760. end
  1761. so("http://roblox.com/asset/?id=203691467", Torso, 0.5, 1.2)
  1762. so("http://roblox.com/asset/?id=92597369", Hitbox, 1, 0.8)
  1763. so("http://roblox.com/asset/?id=28144425", Hitbox, 1, 0.8)
  1764. for i = 0, 1, 0.15 / animationspeed do
  1765. hbwait()
  1766. MagniDamage(Hitbox, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.25, 1, (math.random(5, 10)), nil, true, false, nil, 0, 0, false)
  1767. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-10 - 360 * i)), 0.45 / animationspeed)
  1768. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(20)), 0.45 / animationspeed)
  1769. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(60)) * angles(math.rad(0), math.rad(80), math.rad(0)) * RWC0, 0.45 / animationspeed)
  1770. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(60)) * LWC0, 0.45 / animationspeed)
  1771. 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(-10)), 0.45 / animationspeed)
  1772. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-50), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(5)), 0.45 / animationspeed)
  1773. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -0.5, 1) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.45 / animationspeed)
  1774. if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
  1775. do
  1776. if StunAnim.Value == true then
  1777. break
  1778. end
  1779. -- DECOMPILER ERROR at PC597: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1780.  
  1781. -- DECOMPILER ERROR at PC597: LeaveBlock: unexpected jumping out IF_STMT
  1782.  
  1783. end
  1784. end
  1785. end
  1786. for i = 0, 1, 0.1 / animationspeed do
  1787. hbwait()
  1788. MagniDamage(Hitbox, 5, 5, 10, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(5, 10)), nil, true, false, nil, 0, 0, false)
  1789. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.45 / animationspeed)
  1790. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.45 / animationspeed)
  1791. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(80)) * angles(math.rad(-30), math.rad(80), math.rad(0)) * RWC0, 0.45 / animationspeed)
  1792. LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(70), math.rad(0), math.rad(30)) * LWC0, 0.45 / animationspeed)
  1793. RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(80), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.45 / animationspeed)
  1794. LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-50), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(5)), 0.45 / animationspeed)
  1795. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -0.5, 1) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.45 / animationspeed)
  1796. if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
  1797. do
  1798. if StunAnim.Value == true then
  1799. break
  1800. end
  1801. -- DECOMPILER ERROR at PC899: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1802.  
  1803. -- DECOMPILER ERROR at PC899: LeaveBlock: unexpected jumping out IF_STMT
  1804.  
  1805. end
  1806. end
  1807. end
  1808. attack = false
  1809. end
  1810.  
  1811. Move1 = function()
  1812.  
  1813. attack = true
  1814. attack = false
  1815. end
  1816.  
  1817. Move2 = function()
  1818.  
  1819. attack = true
  1820. attack = false
  1821. end
  1822.  
  1823. Move3 = function()
  1824.  
  1825. attack = true
  1826. attack = false
  1827. end
  1828.  
  1829. Move4 = function()
  1830.  
  1831. attack = true
  1832. disablejump = true
  1833. Rooted.Value = true
  1834. for i = 0, 1, 0.08 / animationspeed do
  1835. hbwait()
  1836. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3 / animationspeed)
  1837. 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.3 / animationspeed)
  1838. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(30)) * RWC0, 0.3 / animationspeed)
  1839. LW.C0 = clerp(LW.C0, cf(-1.5, 0.15 + idleangle, 0) * angles(math.rad(30), math.rad(0), math.rad(-5)) * LWC0, 0.3 / animationspeed)
  1840. RH.C0 = clerp(RH.C0, cf(1, 0.5 - idleangle, -0.25) * angles(math.rad(0), math.rad(60), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.3 / animationspeed)
  1841. 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(70)), 0.3 / animationspeed)
  1842. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0.2, -1.5, 0.1) * angles(math.rad(70), math.rad(10), math.rad(0)), 0.3 / animationspeed)
  1843. if StaggerHitAnim.Value ~= true and StaggerAnim.Value ~= true then
  1844. do
  1845. if StunAnim.Value == true then
  1846. break
  1847. end
  1848. -- DECOMPILER ERROR at PC280: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1849.  
  1850. -- DECOMPILER ERROR at PC280: LeaveBlock: unexpected jumping out IF_STMT
  1851.  
  1852. end
  1853. end
  1854. end
  1855. local spacelasercframe = 0
  1856. do
  1857. for i = 1, 1 do
  1858. local size = 30
  1859. local startrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Black", "Effect", vt())
  1860. startrefpart.Anchored = true
  1861. startrefpart.CFrame = RootPart.CFrame * cf(spacelasercframe, 500, 0)
  1862. game:GetService("Debris"):AddItem(startrefpart, 15)
  1863. local HitPosition = startrefpart.Position + vt(0, -1, 0)
  1864. do
  1865. local OtherHitPosition = cf((startrefpart.Position + HitPosition) / 2, HitPosition).lookVector
  1866. do
  1867. local hit, pos = rayCast(startrefpart.Position, OtherHitPosition, 999, Character)
  1868. if hit ~= nil then
  1869. local refpart = part(3, Effects, "SmoothPlastic", 0, 0.5, "Black", "Effect", vt())
  1870. refpart.Anchored = true
  1871. refpart.CFrame = cf(pos) * angles(0, 0, math.rad(90))
  1872. local refpartmesh = mesh("SpecialMesh", refpart, "Cylinder", "", vt(0, 0, 0), vt(1, size * 10, size * 10))
  1873. game:GetService("Debris"):AddItem(refpart, 15)
  1874. local refpart2 = part(3, Effects, "SmoothPlastic", 0, 0.5, "Light stone grey", "Effect", vt())
  1875. refpart2.Anchored = true
  1876. refpart2.CFrame = refpart.CFrame
  1877. local refpart2mesh = mesh("SpecialMesh", refpart2, "Cylinder", "", vt(0, 0, 0), vt(1.1, 1, 1))
  1878. game:GetService("Debris"):AddItem(refpart2, 15)
  1879. so("http://roblox.com/asset/?id=203691785", refpart, 1, 1)
  1880. so("http://roblox.com/asset/?id=183763515", refpart, 1, 1)
  1881. so("http://roblox.com/asset/?id=87767777", refpart, 1, 0.4)
  1882. MagicBlock("Black", true, refpart.CFrame, size * 10, size * 10, size * 10, -size, -size, -size, 0.1)
  1883. MagniDamage(refpart, size + 1, 1, 2, 1, "OrbitalStrike1", refpart, 0, 1, (math.random(5, 10)), nil, true, true, "Movement", 0.2, 6, true)
  1884. coroutine.resume(coroutine.create(function(StartPart, Part1, Part2, Mesh1, Mesh2)
  1885.  
  1886. for i = 1, size * 10 do
  1887. hbwait()
  1888. MagicBlock("Black", true, Part1.CFrame * cf(math.random(0, 10), math.random(-size, size), math.random(-size, size)), 1, 1, 1, 0.1, 0.1, 0.1, 0.1)
  1889. Mesh2.Scale = vt(1.1, i, i)
  1890. end
  1891. local refpartmag = (StartPart.Position - pos).magnitude
  1892. so("http://roblox.com/asset/?id=87784452", Part1, 1, 0.8)
  1893. so("http://roblox.com/asset/?id=178452221", Part1, 1, 0.6)
  1894. MagicBlock("Black", true, refpart.CFrame, size / 10, size / 10, size / 10, size, size, size, 0.1)
  1895. MagicRing("Black", Part1.CFrame * angles(0, math.rad(90), 0), size, size, size, size / 10, size / 10, 0, 0.05)
  1896. MagicCylinder("Black", cf((StartPart.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 10, refpartmag * 5, 10, 0.2, 0, 0.2, 0.05)
  1897. MagniDamage(Part1, size + 1, 20, 30, math.random(125, 150) / 100, "OrbitalStrike2", Part1, 0, 1, (math.random(30, 40)), nil, true, true, "Damage", 0.1, 5, true)
  1898. Part1.Transparency = 1
  1899. Part2.Parent = nil
  1900. StartPart.Parent = nil
  1901. end
  1902. ), startrefpart, refpart, refpart2, refpartmesh, refpart2mesh)
  1903. end
  1904. do
  1905. wait(0.1)
  1906. end
  1907. -- DECOMPILER ERROR at PC498: LeaveBlock: unexpected jumping out DO_STMT
  1908.  
  1909. end
  1910. end
  1911. end
  1912. end
  1913. Rooted.Value = false
  1914. disablejump = false
  1915. attack = false
  1916. end
  1917.  
  1918. hold = false
  1919. ob1d = function(Mouse)
  1920.  
  1921. if attack == true or equipped == false then
  1922. return
  1923. end
  1924. hold = true
  1925. if attacktype == 1 then
  1926. attacktype = 2
  1927. attackone()
  1928. else
  1929. if attacktype == 2 then
  1930. attacktype = 3
  1931. attacktwo()
  1932. else
  1933. if attacktype == 3 then
  1934. attacktype = 4
  1935. attackthree()
  1936. else
  1937. if attacktype == 4 then
  1938. attacktype = 1
  1939. attackfour()
  1940. end
  1941. end
  1942. end
  1943. end
  1944. coroutine.resume(coroutine.create(function()
  1945.  
  1946. for i = 1, 50 do
  1947. if attack == false then
  1948. wait()
  1949. end
  1950. end
  1951. if attack == false then
  1952. attacktype = 1
  1953. end
  1954. end
  1955. ))
  1956. end
  1957.  
  1958. if allowhopperbin == true then
  1959. ob1u = function(Mouse)
  1960.  
  1961. hold = false
  1962. end
  1963.  
  1964. end
  1965. key = function(key)
  1966.  
  1967. if key == "f" and canunequiporequip == true and attack == false then
  1968. if equipped == false then
  1969. equipped = true
  1970. if disableanimate == true then
  1971. Animate.Disabled = true
  1972. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1973. idleanimation:Play()
  1974. end
  1975. if disableanimator == true then
  1976. Animator.Parent = nil
  1977. end
  1978. if disablemovingarms == true then
  1979. RW.Parent = Torso
  1980. LW.Parent = Torso
  1981. RSH.Parent = nil
  1982. LSH.Parent = nil
  1983. end
  1984. equipanim()
  1985. elseif equipped == true then
  1986. equipped = false
  1987. unequipanim()
  1988. hbwait()
  1989. if disablemovingarms == true then
  1990. RW.Parent = nil
  1991. LW.Parent = nil
  1992. RSH.Parent = Torso
  1993. LSH.Parent = Torso
  1994. end
  1995. if disableanimator == true then
  1996. Animator.Parent = Humanoid
  1997. end
  1998. if disableanimate == true then
  1999. Animate.Disabled = false
  2000. end
  2001. end
  2002. end
  2003. if key == "e" and attack == false and equipped == true then
  2004. EAbility()
  2005. end
  2006. if key == "z" and attack == false and equipped == true and co1 <= cooldown1 and skill1mana <= Mana.Value then
  2007. subtractmana(skill1mana)
  2008. cooldown1 = 0
  2009. Move1()
  2010. end
  2011. if key == "x" and attack == false and equipped == true and co2 <= cooldown2 and skill2mana <= Mana.Value then
  2012. subtractmana(skill2mana)
  2013. cooldown2 = 0
  2014. Move2()
  2015. end
  2016. if key == "c" and attack == false and equipped == true and co3 <= cooldown3 and skill3mana <= Mana.Value then
  2017. subtractmana(skill3mana)
  2018. cooldown3 = 0
  2019. Move3()
  2020. end
  2021. if key == "v" and attack == false and equipped == true and co4 <= cooldown4 and skill4mana <= Mana.Value then
  2022. subtractmana(skill4mana)
  2023. cooldown4 = 0
  2024. Move4()
  2025. end
  2026. if key == "q" then
  2027. Mana.Value = 100
  2028. cooldown1 = co1
  2029. cooldown2 = co2
  2030. cooldown3 = co3
  2031. cooldown4 = co4
  2032. end
  2033. if key == "p" then
  2034. StaggerHitAnim.Value = true
  2035. end
  2036. if key == "[" then
  2037. StaggerAnim.Value = true
  2038. end
  2039. if key == "]" then
  2040. StunAnim.Value = true
  2041. end
  2042. end
  2043.  
  2044.  
  2045. if allowhopperbin == true then
  2046. key2 = function(key)
  2047. end
  2048.  
  2049. end
  2050. if allowhopperbin == true then
  2051. s = function(Mouse)
  2052.  
  2053. Mouse.Button1Down:connect(function()
  2054.  
  2055. ob1d(Mouse)
  2056. end
  2057. )
  2058. Mouse.Button1Up:connect(function()
  2059.  
  2060. ob1u(Mouse)
  2061. end
  2062. )
  2063. Mouse.KeyDown:connect(key)
  2064. Mouse.KeyUp:connect(key2)
  2065. end
  2066.  
  2067. end
  2068. if allowhopperbin == true then
  2069. ds = function(Mouse)
  2070.  
  2071. end
  2072.  
  2073. end
  2074. if allowhopperbin == true then
  2075. Bin.Selected:connect(s)
  2076. Bin.Deselected:connect(ds)
  2077. end
  2078. updateskills = function()
  2079.  
  2080. if allowabilitestofunction == true then
  2081. if cooldown1 <= co1 then
  2082. cooldown1 = cooldown1 + 0.033333333333333
  2083. if co1 <= cooldown1 then
  2084. cooldown1 = co1
  2085. end
  2086. end
  2087. if cooldown2 <= co2 then
  2088. cooldown2 = cooldown2 + 0.033333333333333
  2089. if co2 <= cooldown2 then
  2090. cooldown2 = co2
  2091. end
  2092. end
  2093. if cooldown3 <= co3 then
  2094. cooldown3 = cooldown3 + 0.033333333333333
  2095. if co3 <= cooldown3 then
  2096. cooldown3 = co3
  2097. end
  2098. end
  2099. if cooldown4 <= co4 then
  2100. cooldown4 = cooldown4 + 0.033333333333333
  2101. if co4 <= cooldown4 then
  2102. cooldown4 = co4
  2103. end
  2104. end
  2105. if changebarcolorsifnotenoughmana == true then
  2106. if Mana.Value <= skill1mana then
  2107. bar4.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  2108. else
  2109. bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  2110. end
  2111. if Mana.Value <= skill2mana then
  2112. bar3.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  2113. else
  2114. bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  2115. end
  2116. if Mana.Value <= skill3mana then
  2117. bar1.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  2118. else
  2119. bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  2120. end
  2121. if Mana.Value <= skill4mana then
  2122. bar2.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  2123. else
  2124. bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  2125. end
  2126. else
  2127. if changebarcolorsifnotenoughmana == false then
  2128. bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  2129. bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  2130. bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  2131. bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  2132. end
  2133. end
  2134. end
  2135. if alternatemanaregensystem == false then
  2136. if Mana.Value <= maxmana then
  2137. Mana.Value = Mana.Value + recovermana / 30
  2138. else
  2139. if maxmana <= Mana.Value then
  2140. Mana.Value = maxmana
  2141. end
  2142. end
  2143. else
  2144. if alternatemanaregensystem == true then
  2145. if maxmana <= Mana.Value then
  2146. Mana.Value = maxmana
  2147. else
  2148. if manadelay <= manawait then
  2149. manadelay = manadelay + 1
  2150. else
  2151. manadelay = 0
  2152. Mana.Value = Mana.Value + 1
  2153. end
  2154. end
  2155. end
  2156. end
  2157. if allowstunbar == true then
  2158. if StunValue.Value <= 0 then
  2159. StunValue.Value = 0
  2160. else
  2161. if stundelay <= stunwait then
  2162. stundelay = stundelay + 1
  2163. else
  2164. stundelay = 0
  2165. StunValue.Value = StunValue.Value - 1
  2166. end
  2167. end
  2168. else
  2169. if allowstunbar == false then
  2170. StunValue.Value = 0
  2171. end
  2172. end
  2173. end
  2174.  
  2175. if allowmenutofunction == true then
  2176. ArtificialHB.Event:connect(function()
  2177.  
  2178. updateskills()
  2179. if allowabilitestofunction == true then
  2180. framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2181. framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2182. framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2183. framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2184. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2185. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2186. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2187. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2188. end
  2189. manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2190. manacover:TweenSize(ud(1 * (Mana.Value / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2191. healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2192. healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2193. if allowstunbar == true and showstunbar == true and stunframe ~= nil then
  2194. stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2195. stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2196. end
  2197. if showhealthmanaandstunnumbers == true then
  2198. manatext.Text = "Mana [" .. math.floor(Mana.Value) .. "]"
  2199. healthtext.Text = "Health [" .. math.floor(Humanoid.Health) .. "]"
  2200. if allowstunbar == true and showstunbar == true then
  2201. stuntext.Text = "Stun [" .. math.floor(StunValue.Value) .. "]"
  2202. end
  2203. end
  2204. if showstats == true then
  2205. defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2206. damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2207. movementframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2208. defensetext.Text = "Defense: " .. Defense.Value
  2209. damagetext.Text = "Damage: " .. Damage.Value
  2210. if Rooted.Value == false then
  2211. movementtext.Text = "Movement: " .. Movement.Value
  2212. else
  2213. movementtext.Text = "Movement: 0"
  2214. end
  2215. end
  2216. end
  2217. )
  2218. end
  2219. while 1 do
  2220. hbwait()
  2221. if attack == true then
  2222. Hitbox.Name = "Hitbox"
  2223. elseif attack == false then
  2224. Hitbox.Name = "NilHitbox"
  2225. end
  2226. if 0 < Humanoid.Health then
  2227. if walkspeeddependsonspeedvalue == true then
  2228. if Movement.Value < 0 or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true or Rooted.Value == true then
  2229. Humanoid.WalkSpeed = 0
  2230. else
  2231. Humanoid.WalkSpeed = 16 * Movement.Value
  2232. end
  2233. end
  2234. if maxstun <= StunValue.Value then
  2235. StunValue.Value = 0
  2236. StunAnim.Value = true
  2237. end
  2238. if StaggerAnim.Value == true and staggeranim == false then
  2239. coroutine.resume(coroutine.create(function()
  2240.  
  2241. staggeranim = true
  2242. while attack == true do
  2243. hbwait()
  2244. end
  2245. Stagger()
  2246. StaggerAnim.Value = false
  2247. staggeranim = false
  2248. end
  2249. ))
  2250. end
  2251. if StaggerHitAnim.Value == true and staggerhitanim == false then
  2252. coroutine.resume(coroutine.create(function()
  2253.  
  2254. staggerhitanim = true
  2255. while attack == true do
  2256. hbwait()
  2257. end
  2258. StaggerHit()
  2259. StaggerHitAnim.Value = false
  2260. staggerhitanim = false
  2261. end
  2262. ))
  2263. end
  2264. if (StunAnim.Value == true and stunanim == false) or 100 <= StunValue.Value then
  2265. coroutine.resume(coroutine.create(function()
  2266.  
  2267. StunValue.Value = 0
  2268. stunanim = true
  2269. while attack == true do
  2270. hbwait()
  2271. end
  2272. Stun()
  2273. StunAnim.Value = false
  2274. stunanim = false
  2275. end
  2276. ))
  2277. end
  2278. sine = sine + change
  2279. someangle = someangle % 100 + change2 / 10
  2280. local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude
  2281. local velderp = RootPart.Velocity.y
  2282. local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position)
  2283. hitfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character)
  2284. if 0.5 <= donum then
  2285. handidle = true
  2286. else
  2287. if donum <= 0 then
  2288. handidle = false
  2289. end
  2290. end
  2291. if handidle == false then
  2292. donum = donum + 0.0015
  2293. else
  2294. donum = donum - 0.0015
  2295. end
  2296. if equipped == true or equipped == false then
  2297. if attack == false then
  2298. idle = idle + 1
  2299. else
  2300. idle = 0
  2301. end
  2302. if leftarm == true then
  2303. if Anim == "Walk" and equipped == true and attack == false then
  2304. if alternatewalk == false then
  2305. if walkinganim == true then
  2306. 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)
  2307. else
  2308. 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)
  2309. end
  2310. elseif walkinganim == true then
  2311. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(torvel * 2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2312. else
  2313. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-torvel * 2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2314. end
  2315. elseif (Anim == "Walk" and equipped == true) or leftarm == false then
  2316. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2317. end
  2318. end
  2319. if rightarm == true then
  2320. if Anim == "Walk" and equipped == true and attack == false then
  2321. if alternatewalk == false then
  2322. if walkinganim == true then
  2323. 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)
  2324. else
  2325. 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)
  2326. end
  2327. elseif walkinganim == true then
  2328. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-torvel * 2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2329. else
  2330. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(torvel * 2.5), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2331. end
  2332. elseif (Anim == "Walk" and equipped == true) or rightarm == false then
  2333. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3 / animationspeed)
  2334. end
  2335. end
  2336. if allowwalking == true then
  2337. if Anim == "Walk" and equipped == true then
  2338. if alternatewalk == false then
  2339. if walkinganim == true then
  2340. 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)
  2341. 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)
  2342. else
  2343. 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)
  2344. 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)
  2345. end
  2346. elseif walkinganim == true then
  2347. 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(torvel * 2.5)), 0.3 / animationspeed)
  2348. 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(torvel * 2.5)), 0.3 / animationspeed)
  2349. else
  2350. 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(-torvel * 2.5)), 0.3 / animationspeed)
  2351. 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(-torvel * 2.5)), 0.3 / animationspeed)
  2352. end
  2353. elseif Anim ~= "Walk" and equipped == true then
  2354. 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.3 / animationspeed)
  2355. 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.3 / animationspeed)
  2356. end
  2357. end
  2358. if 1 < velderp and hitfloor == nil then
  2359. Anim = "Jump"
  2360. if attack == false and equipped == true then
  2361. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  2362. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  2363. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(70), math.rad(0), math.rad(60)) * RWC0, 0.2 / animationspeed)
  2364. 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)
  2365. 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)
  2366. 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)
  2367. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0, -1.5, 0.1) * angles(math.rad(80), math.rad(-10), math.rad(0)), 0.2 / animationspeed)
  2368. end
  2369. end
  2370. if velderp < -1 and hitfloor == nil then
  2371. Anim = "Fall"
  2372. if attack == false and equipped == true then
  2373. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  2374. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  2375. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * RWC0, 0.2 / animationspeed)
  2376. 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)
  2377. 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)
  2378. 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)
  2379. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0.2, -1.5, 0.1) * angles(math.rad(70), math.rad(15), math.rad(0)), 0.2 / animationspeed)
  2380. end
  2381. end
  2382. if torvel < 1 and hitfloor ~= nil then
  2383. Anim = "Idle"
  2384. if attack == false and equipped == true then
  2385. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(5 - (donum) / 0.075), math.rad(0), math.rad(-30)), 0.15 / animationspeed)
  2386. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10 - (donum) / 0.05), math.rad(0), math.rad(30)), 0.15 / animationspeed)
  2387. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(80 + (donum) / 0.05), math.rad(0), math.rad(30 - (donum) / 0.05)) * RWC0, 0.15 / animationspeed)
  2388. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(20 - (donum) / 0.05), math.rad(0), math.rad(-20 - (donum) / 0.05)) * angles(math.rad(0), math.rad(10), math.rad(0)) * LWC0, 0.15 / animationspeed)
  2389. 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(0 - (donum) / 0.057)), 0.15 / animationspeed)
  2390. 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(-5 + (donum) / 0.075)), 0.15 / animationspeed)
  2391. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0.2, -1.5, 0.1) * angles(math.rad(70), math.rad(10 + (donum) / 0.075), math.rad(0)), 0.15 / animationspeed)
  2392. end
  2393. end
  2394. if 2 < torvel or torvel > 22 and hitfloor ~= nil then
  2395. Anim = "Walk"
  2396. walk = walk + 1 / animationspeed
  2397. if 10 <= walk then
  2398. walk = 0
  2399. if walkinganim == true then
  2400. walkinganim = false
  2401. elseif walkinganim == false then
  2402. walkinganim = true
  2403. end
  2404. end
  2405. if attack == false and equipped == true then
  2406. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + idleangle) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  2407. Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2 / animationspeed)
  2408. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(80), math.rad(0), math.rad(30)) * RWC0, 0.2 / animationspeed)
  2409. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)) * LWC0, 0.2 / animationspeed)
  2410. 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(0)), 0.2 / animationspeed)
  2411. 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(0)), 0.2 / animationspeed)
  2412. WeapHandleweld.C0 = clerp(WeapHandleweld.C0, cf(0.2, -1.5, 0.1) * angles(math.rad(70), math.rad(10), math.rad(0)), 0.2 / animationspeed)
  2413. end
  2414. end
  2415. end
  2416. end
  2417. end
Add Comment
Please, Sign In to add comment