soins1

Untitled

Nov 25th, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 80.01 KB | None | 0 0
  1. efense = Instance.new("NumberValue", Stats)
  2. Defense.Name = "Defense"
  3. Defense.Value = 0.1
  4. local Movement = Instance.new("NumberValue", Stats)
  5. Movement.Name = "Movement"
  6. Movement.Value = 0.35
  7. local Damage = Instance.new("NumberValue", Stats)
  8. Damage.Name = "Damage"
  9. Damage.Value = 0
  10. local Mana = Instance.new("NumberValue", Stats)
  11. Mana.Name = "Mana"
  12. Mana.Value = 0
  13. local Rooted = Instance.new("BoolValue", Stats)
  14. Rooted.Name = "Rooted"
  15. Rooted.Value = false
  16. local BlockValue = Instance.new("BoolValue", Stats)
  17. BlockValue.Name = "BlockValue"
  18. BlockValue.Value = false
  19. local StaggerHitAnim = Instance.new("BoolValue", Stats)
  20. StaggerHitAnim.Name = "StaggerHitAnim"
  21. StaggerHitAnim.Value = false
  22. local StaggerAnim = Instance.new("BoolValue", Stats)
  23. StaggerAnim.Name = "StaggerAnim"
  24. StaggerAnim.Value = false
  25. local StunAnim = Instance.new("BoolValue", Stats)
  26. StunAnim.Name = "StunAnim"
  27. StunAnim.Value = false
  28. local StunValue = Instance.new("NumberValue", Stats)
  29. StunValue.Name = "StunValue"
  30. StunValue.Value = 0
  31. local CanCrit = Instance.new("BoolValue", Stats)
  32. CanCrit.Name = "CanCrit"
  33. CanCrit.Value = false
  34. local CritChance = Instance.new("NumberValue", Stats)
  35. CritChance.Name = "CritChance"
  36. CritChance.Value = 20
  37. local CanPenetrateArmor = Instance.new("BoolValue", Stats)
  38. CanPenetrateArmor.Name = "CanPenetrateArmor"
  39. CanPenetrateArmor.Value = false
  40. local AntiTeamKill = Instance.new("BoolValue", Stats)
  41. AntiTeamKill.Name = "AntiTeamKill"
  42. AntiTeamKill.Value = false
  43. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  44. RootCF = angles(rad(-90), 0, rad(180))
  45. local idle = 0
  46. local Anim = "Idle"
  47. local animtype = math.floor(math.random(1, 3))
  48. local attacktype = 1
  49. local attack = false
  50. local equipped = false
  51. local LastPoint = nil
  52. local staggerhitanim = false
  53. local staggeranim = false
  54. local stunanim = false
  55. local CritChanceNumber = 0
  56. local idlen = 0
  57. local donum = 0
  58. local sine = 0
  59. local change = 2 / animationspeed
  60. local walkinganim = false
  61. local handidle = false
  62. local walk = 0
  63. local stundelay = 0
  64. local manadelay = 0
  65. local robloxidleanimation = Instance.new("Animation", Torso)
  66. robloxidleanimation.Name = "robloxidleanimation"
  67. robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  68. local Animator = Humanoid:FindFirstChild("Animator")
  69. local Animate = Character:FindFirstChild("Animate")
  70. local HitPlayerSounds = {199149137, 199149186, 199149221, 199149235, 199149269, 199149297}
  71. local HitArmorSounds = {199149321, 199149338, 199149367, 199149409, 199149452}
  72. local HitWeaponSounds = {199148971, 199149025, 199149072, 199149109, 199149119}
  73. local HitBlockSounds = {199148933, 199148947}
  74. local cooldown1 = 0
  75. local cooldown2 = 0
  76. local cooldown3 = 0
  77. local cooldown4 = 0
  78. local scrn = Instance.new("ScreenGui", PlayerGui)
  79. local ud = UDim2.new
  80. local c3 = Color3.new
  81. local skillcolorscheme = c3(1, 1, 1)
  82. subtractmana = function(k)
  83.  
  84. if k <= Mana.Value then
  85. Mana.Value = Mana.Value - k
  86. end
  87. end
  88.  
  89. local co1 = 0
  90. local co2 = 0
  91. local co3 = 0
  92. local co4 = 0
  93. local maxmana = 0
  94. local maxstun = 1
  95. local recovermana = 0
  96. local losestun = 0
  97. local stunwait = 0
  98. local manawait = 0
  99. local skill1mana = 0
  100. local skill2mana = 0
  101. local skill3mana = 0
  102. local skill4mana = 0
  103. local menuupdatespeed = 0
  104. local constantupdate = false
  105. local showstats = false
  106. local allowstunbar = false
  107. local CustomColor = Torso.BrickColor
  108. local Colorpart1 = CustomColor.r
  109. local Colorpart2 = CustomColor.g
  110. local Colorpart3 = CustomColor.b
  111. local InverseColor = BrickColor.new(Color3.new(1 - Colorpart1, 1 - Colorpart2, 1 - Colorpart3))
  112. makeframe = function(par, trans, pos, size, color, name)
  113.  
  114. local frame = Instance.new("Frame")
  115. frame.Parent = par
  116. frame.BackgroundTransparency = trans
  117. frame.BorderSizePixel = 2
  118. frame.Position = pos
  119. frame.Size = size
  120. frame.BackgroundColor3 = color
  121. frame.Name = name
  122. return frame
  123. end
  124.  
  125. makelabel = function(par, text, trans, stroketrans, name)
  126.  
  127. local label = Instance.new("TextLabel")
  128. label.Parent = par
  129. label.BackgroundTransparency = 1
  130. label.Size = ud(1, 0, 1, 0)
  131. label.Position = ud(0, 0, 0, 0)
  132. label.TextColor3 = c3(255, 255, 255)
  133. label.TextStrokeTransparency = stroketrans
  134. label.TextTransparency = trans
  135. label.FontSize = Enum.FontSize.Size32
  136. label.Font = Enum.Font.Legacy
  137. label.BorderSizePixel = 0
  138. label.TextScaled = true
  139. label.Text = text
  140. label.Name = name
  141. return label
  142. end
  143.  
  144. framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 1")
  145. framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 2")
  146. framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 3")
  147. framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 4")
  148. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 1")
  149. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 2")
  150. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 3")
  151. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 4")
  152. text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1")
  153. text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2")
  154. text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3")
  155. text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4")
  156. manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar")
  157. manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover")
  158. manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text")
  159. 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")
  160. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Cover")
  161. healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text")
  162. if allowstunbar == true then
  163. 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")
  164. stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137255), "Stun Bar")
  165. stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text")
  166. end
  167. if showstats == true then
  168. 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")
  169. damageframe = makeframe(scrn, 0.5, ud(0.3225, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.3921568627451, 0.3921568627451), "Damage Frame")
  170. 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")
  171. defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text")
  172. damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text")
  173. movementtext = makelabel(movementframe, "Movement: " .. Movement.Value, 1, 1, "Movement Text")
  174. end
  175. NoOutline = function(Part)
  176.  
  177. Part.TopSurface = 10
  178. end
  179.  
  180. local weldBetween = function(a, b)
  181.  
  182. local weldd = Instance.new("ManualWeld")
  183. weldd.Part0 = a
  184. weldd.Part1 = b
  185. weldd.C0 = CFrame.new()
  186. weldd.C1 = b.CFrame:inverse() * a.CFrame
  187. weldd.Parent = a
  188. return weldd
  189. end
  190.  
  191. nooutline = function(part)
  192.  
  193. part.TopSurface = 10
  194. end
  195.  
  196. part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  197.  
  198. local fp = it("Part")
  199. fp.formFactor = formfactor
  200. fp.Parent = parent
  201. fp.Reflectance = reflectance
  202. fp.Transparency = transparency
  203. fp.CanCollide = false
  204. fp.Locked = true
  205. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  206. fp.Name = name
  207. fp.Size = size
  208. fp.Position = Character.Torso.Position
  209. nooutline(fp)
  210. fp.Material = material
  211. fp:BreakJoints()
  212. return fp
  213. end
  214.  
  215. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  216.  
  217. local mesh = it(Mesh)
  218. mesh.Parent = part
  219. if Mesh == "SpecialMesh" then
  220. mesh.MeshType = meshtype
  221. mesh.MeshId = meshid
  222. end
  223. mesh.Offset = offset
  224. mesh.Scale = scale
  225. return mesh
  226. end
  227.  
  228. weld = function(parent, part0, part1, c0, c1)
  229.  
  230. local weld = it("Motor")
  231. weld.Parent = parent
  232. weld.Part0 = part0
  233. weld.Part1 = part1
  234. weld.C0 = c0
  235. weld.C1 = c1
  236. return weld
  237. end
  238.  
  239. local WeaponName = "Russian Kick"
  240. local ClassName = "Russian Kick"
  241. local PlayerSize = 1
  242. local RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0))
  243. local LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0))
  244. if PlayerSize ~= 1 then
  245. RootPart.Size = RootPart.Size * PlayerSize
  246. Torso.Size = Torso.Size * PlayerSize
  247. Head.Size = Head.Size * PlayerSize
  248. RightArm.Size = RightArm.Size * PlayerSize
  249. LeftArm.Size = LeftArm.Size * PlayerSize
  250. RightLeg.Size = RightLeg.Size * PlayerSize
  251. LeftLeg.Size = LeftLeg.Size * PlayerSize
  252. RootJoint.Parent = RootPart
  253. Neck.Parent = Torso
  254. LS.Parent = Torso
  255. RS.Parent = Torso
  256. LH.Parent = Torso
  257. RH.Parent = Torso
  258. RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0))
  259. Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0))
  260. Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize)
  261. RS.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0
  262. LS.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0
  263. RS.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
  264. LS.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
  265. RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0))
  266. LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0))
  267. RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
  268. LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
  269. for _,v in pairs(Character:GetChildren()) do
  270. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  271. v.Parent = nil
  272. v.Parent = Character
  273. v.Handle.Mesh.Scale = v.Handle.Mesh.Scale * PlayerSize
  274. for _,b in pairs(v.Handle:GetChildren()) do
  275. if b.ClassName == "Weld" or b.ClassName == "Motor" then
  276. local p1 = b.Part1
  277. b.Part1 = nil
  278. local c01, c02, c03, c04, c05, c06, c07, c08, c09, c010, c011, c012 = b.C0:components()
  279. local c11, c12, c13, c14, c15, c16, c17, c18, c19, c110, c111, c112 = b.C1:components()
  280. b.C0 = cf(c01 * PlayerSize, c02 * PlayerSize, c03 * PlayerSize, c04, c05, c06, c07, c08, c09, c010, c011, c012)
  281. b.C1 = cf(c11 * PlayerSize, c12 * PlayerSize, c13 * PlayerSize, c14, c15, c16, c17, c18, c19, c110, c111, c112)
  282. b.Part1 = p1
  283. end
  284. end
  285. end
  286. end
  287. end
  288. m = Instance.new("Model", Character)
  289. m.Name = WeaponName
  290. Effects = Instance.new("Folder", m)
  291. Effects.Name = "Effects"
  292. Humanoid.Died:connect(function()
  293.  
  294. attack = true
  295. for _,v in pairs(Character:GetChildren()) do
  296. if v.ClassName == "Model" then
  297. v:Destroy()
  298. end
  299. end
  300. end
  301. )
  302. for i,v in pairs(Character:GetChildren()) do
  303. if v.ClassName == "Model" then
  304. for _,c in pairs(v:GetChildren()) do
  305. if c.ClassName == "Part" then
  306. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  307. end
  308. end
  309. end
  310. end
  311. print(ClassName .. " loaded.")
  312. clerp = function(a, b, t)
  313. return a:lerp(b, t)
  314. end
  315.  
  316. positiveangle = function(number)
  317.  
  318. if number > 0 then
  319. number = 0
  320. end
  321. return number
  322. end
  323.  
  324. negativeangle = function(number)
  325.  
  326. if number < 0 then
  327. number = 0
  328. end
  329. return number
  330. end
  331.  
  332. so = function(id, par, vol, pit)
  333.  
  334. coroutine.resume(coroutine.create(function()
  335.  
  336. local sou = Instance.new("Sound", par or workspace)
  337. sou.Volume = vol
  338. sou.Pitch = pit or 1
  339. sou.SoundId = "http://roblox.com/asset/?id=257768376" hbwait()
  340. sou:play()
  341. game:GetService("Debris"):AddItem(sou, 10)
  342. end
  343. ))
  344. end
  345.  
  346. GetDistance = function(Part1, Part2, magnitude)
  347.  
  348. local target = Part1.Position - Part2.Position
  349. local mag = target.magnitude
  350. if mag <= magnitude then
  351. return true
  352. else
  353. return false
  354. end
  355. end
  356.  
  357. rayCast = function(Pos, Dir, Max, Ignore)
  358.  
  359. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  360. end
  361.  
  362. DamageStatLabel = function(labeltype, cframe, text, color)
  363.  
  364. local c = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt(0, 0, 0))
  365. c.CFrame = cf(cframe.p + vt(0, 1.5, 0))
  366. game:GetService("Debris"):AddItem(c, 5)
  367. Instance.new("BodyGyro", c)
  368. local f = Instance.new("BodyPosition", c)
  369. f.P = 2000
  370. f.D = 100
  371. f.maxForce = vt(math.huge, math.huge, math.huge)
  372. if labeltype == "Normal" then
  373. f.position = c.Position + vt(math.random(-2, 2), 6, math.random(-2, 2))
  374. else
  375. if labeltype == "Debuff" then
  376. f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2))
  377. else
  378. if labeltype == "Interruption" then
  379. f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2))
  380. end
  381. end
  382. end
  383. game:GetService("Debris"):AddItem(c, 5)
  384. local bg = Instance.new("BillboardGui", c)
  385. bg.Adornee = c
  386. bg.Size = UDim2.new(2.5, 0, 2.5, 0)
  387. bg.StudsOffset = vt(-2, 2, 0)
  388. bg.AlwaysOnTop = false
  389. local tl = Instance.new("TextLabel", bg)
  390. tl.BackgroundTransparency = 1
  391. tl.Size = UDim2.new(2.5, 0, 2.5, 0)
  392. tl.Text = text
  393. tl.Font = Enum.Font.SourceSans
  394. tl.FontSize = Enum.FontSize.Size42
  395. tl.TextColor3 = color
  396. tl.TextScaled = false
  397. tl.TextStrokeTransparency = 0
  398. tl.TextScaled = true
  399. tl.TextWrapped = true
  400. f.Parent = c
  401. coroutine.resume(coroutine.create(function(Part, BodyPosition, TextLabel)
  402.  
  403. wait(0.25)
  404. for i = 1, 5 do
  405. wait()
  406. BodyPosition.position = Part.Position - vt(0, 0.5, 0)
  407. end
  408. wait(1.25)
  409. for i = 1, 5 do
  410. wait()
  411. TextLabel.TextTransparency = TextLabel.TextTransparency + 0.2
  412. TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + 0.2
  413. BodyPosition.position = Part.Position + vt(0, 0.5, 0)
  414. end
  415. Part.Parent = nil
  416. end
  417. ), c, f, tl)
  418. end
  419.  
  420. IncreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat)
  421.  
  422. -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  423.  
  424. -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  425.  
  426. if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
  427. Location.Stats[Stat].Value = Location.Stats[Stat].Value + Amount
  428. if ShowTheStat == true then
  429. if Stat == "Defense" then
  430. DamageStatLabel("Debuff", Location.Head.CFrame, "+Defense", c3(1, 1, 1))
  431. else
  432. if Stat == "Damage" then
  433. DamageStatLabel("Debuff", Location.Head.CFrame, "+Damage", c3(1, 1, 1))
  434. else
  435. if Stat == "Movement" then
  436. DamageStatLabel("Debuff", Location.Head.CFrame, "+Movement", c3(1, 1, 1))
  437. end
  438. end
  439. end
  440. end
  441. coroutine.resume(coroutine.create(function(CurrentDecrease)
  442.  
  443. wait(Duration)
  444. CurrentDecrease.Value = CurrentDecrease.Value - Amount
  445. end
  446. ), Location.Stats[Stat])
  447. end
  448. DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
  449. end
  450.  
  451. DecreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat)
  452.  
  453. -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  454.  
  455. -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  456.  
  457. if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
  458. Location.Stats[Stat].Value = Location.Stats[Stat].Value - Amount
  459. if ShowTheStat == true then
  460. if Stat == "Defense" then
  461. DamageStatLabel("Debuff", Location.Head.CFrame, "-Defense", c3(1, 1, 1))
  462. else
  463. if Stat == "Damage" then
  464. DamageStatLabel("Debuff", Location.Head.CFrame, "-Damage", c3(1, 1, 1))
  465. else
  466. if Stat == "Movement" then
  467. DamageStatLabel("Debuff", Location.Head.CFrame, "-Movement", c3(1, 1, 1))
  468. end
  469. end
  470. end
  471. end
  472. coroutine.resume(coroutine.create(function(CurrentDecrease)
  473.  
  474. wait(Duration)
  475. CurrentDecrease.Value = CurrentDecrease.Value + Amount
  476. end
  477. ), Location.Stats[Stat])
  478. end
  479. DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
  480. end
  481.  
  482. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, DecreaseTheStat, DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  483.  
  484. if hit.Parent == nil then
  485. return
  486. end
  487. h = hit.Parent:FindFirstChild("Humanoid")
  488. for _,v in pairs(hit.Parent:GetChildren()) do
  489. if v:IsA("Humanoid") then
  490. h = v
  491. end
  492. end
  493. if hit.Name == "Hitbox" and ranged ~= true and hit.Parent ~= m then
  494. StaggerHitAnim.Value = true
  495. so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1)
  496. return
  497. end
  498. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  499. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  500. end
  501. if hit.Parent.className == "Hat" then
  502. hit = hit.Parent.Parent:FindFirstChild("Head")
  503. end
  504. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  505. if hit.Parent:FindFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  506. return
  507. end
  508. if AntiTeamKill.Value == true and Player.Neutral == false and game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  509. return
  510. end
  511. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health <= 0 then
  512. return
  513. end
  514. if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StunValue") ~= nil then
  515. hit.Parent.Stats:FindFirstChild("StunValue").Value = hit.Parent.Stats:FindFirstChild("StunValue").Value + incstun
  516. end
  517. if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StaggerAnim") ~= nil and stagger == true then
  518. hit.Parent.Stats:FindFirstChild("StaggerAnim").Value = true
  519. end
  520. if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue").Value == true then
  521. if hit.Parent.Stats:FindFirstChild("BlockDebounce") == nil then
  522. DamageStatLabel("Interruption", hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
  523. local BlockDebounce = Instance.new("BoolValue", hit.Parent.Stats)
  524. BlockDebounce.Name = "BlockDebounce"
  525. BlockDebounce.Value = true
  526. game:GetService("Debris"):AddItem(BlockDebounce, 0.1)
  527. end
  528. do
  529. if ranged ~= true then
  530. do
  531. if hit.Parent.Stats:FindFirstChild("BlockDebounce2") == nil then
  532. local BlockDebounce2 = Instance.new("BoolValue", hit.Parent.Stats)
  533. BlockDebounce2.Name = "BlockDebounce2"
  534. BlockDebounce2.Value = true
  535. game:GetService("Debris"):AddItem(BlockDebounce2, 0.1)
  536. so(HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
  537. end
  538. hit.Parent.Stats:FindFirstChild("BlockValue").Value = false
  539. StaggerAnim.Value = true
  540. do return end
  541. if DecreaseTheStat ~= nil and hit.Parent:FindFirstChild("Stats") ~= nil then
  542. if DecreaseTheStat == "Defense" then
  543. DecreaseStat(hit.Parent, "Defense", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  544. else
  545. if DecreaseTheStat == "Damage" then
  546. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  547. else
  548. if DecreaseTheStat == "Movement" then
  549. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  550. end
  551. end
  552. end
  553. end
  554. local D = math.random(minim, maxim) * Damage.Value
  555. if hit.Parent:FindFirstChild("Stats") ~= nil then
  556. if hit.Parent.Stats:FindFirstChild("Defense") then
  557. if CanPenetrateArmor.Value == true then
  558. D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
  559. -- DECOMPILER ERROR at PC377: Unhandled construct in 'MakeBoolean' P1
  560.  
  561. if hit.Parent.Stats:FindFirstChild("Defense") ~= nil or CanCrit.Value == true then
  562. CritChanceNumber = math.random(1, CritChance.Value)
  563. if CritChanceNumber == CritChance.Value then
  564. D = D * 2
  565. end
  566. end
  567. D = math.floor(D)
  568. h.Health = h.Health - D
  569. if D <= 3 and staggerhit == true then
  570. if ranged ~= true then
  571. StaggerHitAnim.Value = true
  572. end
  573. if ranged ~= true then
  574. so(HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1)
  575. end
  576. else
  577. if D > 3 and ranged ~= true then
  578. so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1)
  579. end
  580. end
  581. if D > 3 and D < 20 then
  582. if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  583. DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
  584. so("296102734", hit, 1, 1)
  585. else
  586. DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0.86274509803922, 0))
  587. end
  588. else
  589. if D >= 20 then
  590. if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  591. DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
  592. so("296102734", hit, 1, 1)
  593. else
  594. DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0, 0))
  595. end
  596. else
  597. if D <= 3 then
  598. if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  599. DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
  600. so("296102734", hit, 1, 1)
  601. else
  602. DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(0.88235294117647, 0.88235294117647, 0.88235294117647))
  603. end
  604. end
  605. end
  606. end
  607. do
  608. if Type == "Normal" then
  609. local vp = Instance.new("BodyVelocity")
  610. vp.P = 500
  611. vp.maxForce = vt(math.huge, 0, math.huge)
  612. if KnockbackType == 1 then
  613. vp.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  614. else
  615. if KnockbackType == 2 then
  616. vp.Velocity = Property.CFrame.lookVector * knockback
  617. end
  618. end
  619. if knockback > 0 then
  620. vp.Parent = hit.Parent.Torso
  621. end
  622. game:GetService("Debris"):AddItem(vp, 0.5)
  623. end
  624. local DebounceHit = Instance.new("BoolValue", hit.Parent)
  625. DebounceHit.Name = "DebounceHit"
  626. DebounceHit.Value = true
  627. game:GetService("Debris"):AddItem(DebounceHit, Delay)
  628. end
  629. end
  630. end
  631. end
  632. end
  633. end
  634. end
  635. end
  636. end
  637. end
  638.  
  639. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat)
  640.  
  641. for _,c in pairs(workspace:GetChildren()) do
  642. local hum = (c:FindFirstChild("Humanoid"))
  643. local head = nil
  644. if hum ~= nil then
  645. head = c:FindFirstChild("Torso")
  646. if head ~= nil then
  647. local targ = head.Position - Part.Position
  648. local mag = targ.magnitude
  649. if mag <= magni and c.Name ~= Player.Name then
  650. Damagefunc(head, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat)
  651. end
  652. end
  653. do
  654. for _,d in pairs(c:GetChildren()) do
  655. if d.ClassName == "Model" and ranged ~= true then
  656. head = d:FindFirstChild("Hitbox")
  657. if head ~= nil then
  658. local targ = head.Position - Part.Position
  659. local mag = targ.magnitude
  660. if mag <= magni and c.Name ~= Player.Name then
  661. local hitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt())
  662. hitrefpart.Anchored = true
  663. hitrefpart.CFrame = cf(head.Position)
  664. so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hitrefpart, 1, 1)
  665. StaggerHitAnim.Value = true
  666. end
  667. end
  668. end
  669. end
  670. do
  671. -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out DO_STMT
  672.  
  673. -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_THEN_STMT
  674.  
  675. -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_STMT
  676.  
  677. end
  678. end
  679. end
  680. end
  681. end
  682.  
  683. MagniBufforDebuff = function(Part, Magni, Type, Stat, Amount, Duration, ShowTheBufforDebuff, ApplyToOthersInstead)
  684.  
  685. if Player.Neutral == true then
  686. if Type == "Buff" then
  687. IncreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff)
  688. else
  689. if Type == "Debuff" then
  690. DecreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff)
  691. end
  692. end
  693. end
  694. for _,c in pairs(workspace:GetChildren()) do
  695. local hum = (c:FindFirstChild("Humanoid"))
  696. local head = nil
  697. if hum ~= nil then
  698. head = c:FindFirstChild("Torso")
  699. if head ~= nil then
  700. local targ = head.Position - Part.Position
  701. local mag = targ.magnitude
  702. -- DECOMPILER ERROR at PC83: Unhandled construct in 'MakeBoolean' P1
  703.  
  704. if ApplyToOthersInstead == true and mag <= Magni and c.Name ~= Player.Name and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  705. if Type == "Buff" then
  706. IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
  707. else
  708. if Type == "Debuff" then
  709. DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
  710. end
  711. end
  712. end
  713. end
  714. end
  715. if ApplyToOthersInstead == false and mag <= Magni and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  716. if Type == "Buff" then
  717. IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
  718. else
  719. if Type == "Debuff" then
  720. DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
  721. end
  722. end
  723. end
  724. end
  725. end
  726.  
  727. Lightning = function(p0, p1, tym, ofs, brickcolor, material, th, tra, last)
  728.  
  729. local magz = p0 - p1.magnitude
  730. local curpos = p0
  731. local trz = {-ofs, ofs}
  732. for i = 1, tym do
  733. local li = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt(th, th, magz / tym))
  734. do
  735. li.Anchored = true
  736. local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  737. local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz
  738. if tym == i then
  739. local magz2 = curpos - p1.magnitude
  740. li.Size = vt(th, th, magz2)
  741. li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2)
  742. else
  743. do
  744. do
  745. li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2)
  746. curpos = li.CFrame * cf(0, 0, magz / tym / 2).p
  747. game.Debris:AddItem(li, last)
  748. coroutine.resume(coroutine.create(function()
  749.  
  750. while li.Transparency ~= 1 do
  751. for i = 0, 1, last do
  752. hbwait()
  753. li.Transparency = li.Transparency + 0.1 / last
  754. end
  755. end
  756. end
  757. ))
  758. end
  759. -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  760.  
  761. -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_STMT
  762.  
  763. -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out DO_STMT
  764.  
  765. end
  766. end
  767. end
  768. end
  769. end
  770.  
  771. MagicRing = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  772.  
  773. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  774. prt.Anchored = true
  775. prt.CFrame = cframe
  776. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  777. game:GetService("Debris"):AddItem(prt, 10)
  778. coroutine.resume(coroutine.create(function(Part, Mesh)
  779.  
  780. for i = 0, 1, delay do
  781. hbwait()
  782. Part.CFrame = Part.CFrame
  783. Part.Transparency = i
  784. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  785. end
  786. Part.Parent = nil
  787. end
  788. ), prt, msh)
  789. end
  790.  
  791. MagicWave = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  792.  
  793. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  794. prt.Anchored = true
  795. prt.CFrame = cframe
  796. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, -0.1 * z1), vt(x1, y1, z1))
  797. game:GetService("Debris"):AddItem(prt, 10)
  798. coroutine.resume(coroutine.create(function(Part, Mesh)
  799.  
  800. for i = 0, 1, delay do
  801. hbwait()
  802. Part.CFrame = Part.CFrame
  803. Part.Transparency = i
  804. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  805. end
  806. Part.Parent = nil
  807. end
  808. ), prt, msh)
  809. end
  810.  
  811. MagicBlock = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  812.  
  813. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  814. prt.Anchored = true
  815. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  816. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  817. game:GetService("Debris"):AddItem(prt, 10)
  818. coroutine.resume(coroutine.create(function(Part, Mesh)
  819.  
  820. for i = 0, 1, delay do
  821. hbwait()
  822. if rotate == true then
  823. Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  824. end
  825. Part.Transparency = i
  826. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  827. end
  828. Part.Parent = nil
  829. end
  830. ), prt, msh)
  831. end
  832.  
  833. MagicBlock2 = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  834.  
  835. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  836. prt.Anchored = true
  837. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  838. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  839. game:GetService("Debris"):AddItem(prt, 10)
  840. CF = prt.CFrame
  841. num = math.random(5, 20)
  842. coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num)
  843.  
  844. for i = 0, 1, delay do
  845. hbwait()
  846. if rotate == true then
  847. Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  848. else
  849. Part.CFrame = CF2 * cf(0, i * Num, 0)
  850. end
  851. Part.Transparency = i
  852. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  853. end
  854. Part.Parent = nil
  855. end
  856. ), prt, msh, CF, num)
  857. end
  858.  
  859. MagicCylinder = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  860.  
  861. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  862. prt.Anchored = true
  863. prt.CFrame = cframe
  864. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  865. game:GetService("Debris"):AddItem(prt, 10)
  866. coroutine.resume(coroutine.create(function(Part, Mesh)
  867.  
  868. for i = 0, 1, delay do
  869. hbwait()
  870. Part.Transparency = i
  871. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  872. end
  873. Part.Parent = nil
  874. end
  875. ), prt, msh)
  876. end
  877.  
  878. MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  879.  
  880. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  881. prt.Anchored = true
  882. prt.CFrame = cframe
  883. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  884. game:GetService("Debris"):AddItem(prt, 10)
  885. coroutine.resume(coroutine.create(function(Part, Mesh)
  886.  
  887. for i = 0, 1, delay do
  888. hbwait()
  889. Part.Transparency = i
  890. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  891. end
  892. Part.Parent = nil
  893. end
  894. ), prt, msh)
  895. end
  896.  
  897. MagicHead = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  898.  
  899. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  900. prt.Anchored = true
  901. prt.CFrame = cframe
  902. local msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
  903. game:GetService("Debris"):AddItem(prt, 10)
  904. coroutine.resume(coroutine.create(function(Part, Mesh)
  905.  
  906. for i = 0, 1, delay do
  907. hbwait()
  908. Part.Transparency = i
  909. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  910. end
  911. Part.Parent = nil
  912. end
  913. ), prt, msh)
  914. end
  915.  
  916. BreakEffect = function(brickcolor, material, rotate, cframe, x1, y1, z1, delay)
  917.  
  918. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  919. prt.Anchored = true
  920. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  921. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  922. game:GetService("Debris"):AddItem(prt, 10)
  923. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  924.  
  925. CF = Part.CFrame
  926. Numbb = 0
  927. randnumb = math.random() - math.random()
  928. for i = 0, 1, delay do
  929. hbwait()
  930. CF = CF * cf(0, 1, 0)
  931. if rotate == true then
  932. Part.CFrame = CF * angles(Numbb, 0, 0)
  933. else
  934. if rotate == false then
  935. Part.CFrame = CF
  936. end
  937. end
  938. Part.Transparency = i
  939. Numbb = Numbb + (randnumb)
  940. end
  941. Part.Parent = nil
  942. end
  943. ), prt, CF, Numbb, randnumb)
  944. end
  945.  
  946. ElecEffect = function(brickcolor, material, cf, x, y, z, delay)
  947.  
  948. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  949. prt.Anchored = true
  950. prt.CFrame = cf
  951. xval = math.random()
  952. yval = math.random()
  953. zval = math.random()
  954. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z))
  955. game:GetService("Debris"):AddItem(prt, 10)
  956. coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal)
  957.  
  958. for i = 0, 1, delay do
  959. hbwait()
  960. Part.CFrame = Part.CFrame
  961. xvaal = xvaal - 0.1 * (delay * 10)
  962. yvaal = yvaal - 0.1 * (delay * 10)
  963. zvaal = zvaal - 0.1 * (delay * 10)
  964. Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal)
  965. Part.Transparency = i
  966. end
  967. Part.Parent = nil
  968. end
  969. ), prt, msh, xval, yval, zval)
  970. end
  971.  
  972. TrailEffect = function(brickcolor, material, currentcf, oldcf, meshtype, reflectance, size, x, y, z, delay)
  973.  
  974. local magnitudecframe = currentcf.p - oldcf.p.magnitude
  975. if magnitudecframe > 0.01 then
  976. local prt = part(3, Effects, material, reflectance, 0, brickcolor, "Effect", vt(1, magnitudecframe, 1))
  977. prt.Anchored = true
  978. prt.CFrame = cf((currentcf.p + oldcf.p) / 2, oldcf.p) * angles(rad(90), 0, 0)
  979. local TheMeshType = "BlockMesh"
  980. if meshtype == "Cylinder" then
  981. TheMeshType = "CylinderMesh"
  982. end
  983. local msh = mesh(TheMeshType, prt, "", "", vt(0, 0, 0), vt(0 + size, 1, 0 + size))
  984. game:GetService("Debris"):AddItem(prt, 10)
  985. coroutine.resume(coroutine.create(function(Part, Mesh, TheCurrentCFrame, TheLastCFrame)
  986.  
  987. for i = 0, 1, delay do
  988. hbwait()
  989. Part.Transparency = i
  990. Mesh.Scale = Mesh.Scale + vt(x, y, z)
  991. end
  992. Part.Parent = nil
  993. end
  994. ), prt, msh, currentcf, oldcf)
  995. end
  996. end
  997.  
  998. ClangEffect = function(brickcolor, material, cframe, angle, duration, size, power, reflectance, x, y, z, delay)
  999.  
  1000. local prt = part(3, Effects, material, 0, 1, brickcolor, "Effect", vt())
  1001. prt.Anchored = true
  1002. prt.CFrame = cframe
  1003. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(0, 0, 0))
  1004. game:GetService("Debris"):AddItem(prt, 10)
  1005. local TheLastPoint = cframe
  1006. coroutine.resume(coroutine.create(function(Part)
  1007.  
  1008. for i = 1, duration do
  1009. hbwait()
  1010. Part.CFrame = Part.CFrame * angles(rad(angle), 0, 0) * cf(0, power, 0)
  1011. TrailEffect(brickcolor, material, Part.CFrame, TheLastPoint, "Cylinder", reflectance, size, x, y, z, delay)
  1012. TheLastPoint = Part.CFrame
  1013. end
  1014. Part.Parent = nil
  1015. end
  1016. ), prt)
  1017. end
  1018.  
  1019. MagicCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1020.  
  1021. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1022. prt.Anchored = true
  1023. prt.CFrame = cframe
  1024. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1778999", vt(0, 0, 0), vt(x1, y1, z1))
  1025. game:GetService("Debris"):AddItem(prt, 10)
  1026. coroutine.resume(coroutine.create(function(Part, Mesh)
  1027.  
  1028. for i = 0, 1, delay do
  1029. hbwait()
  1030. Part.Transparency = i
  1031. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1032. end
  1033. Part.Parent = nil
  1034. end
  1035. ), prt, msh)
  1036. end
  1037.  
  1038. MagicFlatCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1039.  
  1040. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1041. prt.Anchored = true
  1042. prt.CFrame = cframe
  1043. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1033714", vt(0, 0, 0), vt(x1, y1, z1))
  1044. game:GetService("Debris"):AddItem(prt, 10)
  1045. coroutine.resume(coroutine.create(function(Part, Mesh)
  1046.  
  1047. for i = 0, 1, delay do
  1048. hbwait()
  1049. Part.Transparency = i
  1050. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1051. end
  1052. Part.Parent = nil
  1053. end
  1054. ), prt, msh)
  1055. end
  1056.  
  1057. MagicSpikedCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1058.  
  1059. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1060. prt.Anchored = true
  1061. prt.CFrame = cframe
  1062. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1323306", vt(0, 0, 0), vt(x1, y1, z1))
  1063. game:GetService("Debris"):AddItem(prt, 10)
  1064. coroutine.resume(coroutine.create(function(Part, Mesh)
  1065.  
  1066. for i = 0, 1, delay do
  1067. hbwait()
  1068. Part.Transparency = i
  1069. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1070. end
  1071. Part.Parent = nil
  1072. end
  1073. ), prt, msh)
  1074. end
  1075.  
  1076. MagicCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1077.  
  1078. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1079. prt.Anchored = true
  1080. prt.CFrame = cframe
  1081. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1078075", vt(0, 0, 0), vt(x1, y1, z1))
  1082. game:GetService("Debris"):AddItem(prt, 10)
  1083. coroutine.resume(coroutine.create(function(Part, Mesh)
  1084.  
  1085. for i = 0, 1, delay do
  1086. hbwait()
  1087. Part.Transparency = i
  1088. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1089. end
  1090. Part.Parent = nil
  1091. end
  1092. ), prt, msh)
  1093. end
  1094.  
  1095. MagicSkull = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1096.  
  1097. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1098. prt.Anchored = true
  1099. prt.CFrame = cframe
  1100. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
  1101. game:GetService("Debris"):AddItem(prt, 10)
  1102. coroutine.resume(coroutine.create(function(Part, Mesh)
  1103.  
  1104. for i = 0, 1, delay do
  1105. hbwait()
  1106. Part.Transparency = i
  1107. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1108. end
  1109. Part.Parent = nil
  1110. end
  1111. ), prt, msh)
  1112. end
  1113.  
  1114. local startequipped = true
  1115. local startequippedwithequipanimation = false
  1116. local disableanimator = true
  1117. local disableanimate = true
  1118. local alternatewalk = false
  1119. local hidemenu = false
  1120. local allowmenutofunction = false
  1121. local allowabilitiestofunction = false
  1122. local canunequiporequip = false
  1123. local allowwalking = false
  1124. local disablemovingarms = false
  1125. local usemotorsinsteadofwelds = false
  1126. local leftarm = false
  1127. local rightarm = false
  1128. local allowhopperbin = false
  1129. local showstunbar = false
  1130. local walkspeeddependsonmovementvalue = true
  1131. local alternatemanaregensystem = false
  1132. local showhealthmanaandstunnumbers = false
  1133. local changebarcolorsifnotenoughmana = false
  1134. local disablejump = false
  1135. if hidemenu == true or allowmenutofunction == false then
  1136. for _,v in pairs(scrn:GetChildren()) do
  1137. if v.ClassName == "Frame" or v.ClassName == "TextLabel" then
  1138. v.Visible = false
  1139. v.BorderSizePixel = 0
  1140. end
  1141. end
  1142. end
  1143. do
  1144. Humanoid.Changed:connect(function(Jump)
  1145.  
  1146. if Jump == "Jump" and disablejump == true then
  1147. Humanoid.Jump = false
  1148. end
  1149. end
  1150. )
  1151. if allowmenutofunction == true then
  1152. for _,v in pairs(scrn:GetChildren()) do
  1153. if v.ClassName == "Frame" then
  1154. for _,b in pairs(v:GetChildren()) do
  1155. if b.ClassName == "TextLabel" then
  1156. coroutine.resume(coroutine.create(function(TheTextLabel)
  1157.  
  1158. wait(menuupdatespeed)
  1159. for i = 1, 0, -0.1 do
  1160. hbwait()
  1161. TheTextLabel.TextTransparency = i
  1162. TheTextLabel.TextStrokeTransparency = i
  1163. end
  1164. TheTextLabel.TextTransparency = 0
  1165. TheTextLabel.TextStrokeTransparency = 0
  1166. end
  1167. ), b)
  1168. if showstats == true then
  1169. coroutine.resume(coroutine.create(function(TheTextLabel)
  1170.  
  1171. wait(menuupdatespeed)
  1172. for i = 1, 0, -0.1 do
  1173. hbwait()
  1174. TheTextLabel.TextTransparency = i
  1175. TheTextLabel.TextStrokeTransparency = i
  1176. end
  1177. TheTextLabel.TextTransparency = 0
  1178. TheTextLabel.TextStrokeTransparency = 0
  1179. end
  1180. ), b)
  1181. end
  1182. if showstunbar == true then
  1183. coroutine.resume(coroutine.create(function(TheTextLabel)
  1184.  
  1185. wait(menuupdatespeed)
  1186. for i = 1, 0, -0.1 do
  1187. hbwait()
  1188. TheTextLabel.TextTransparency = i
  1189. TheTextLabel.TextStrokeTransparency = i
  1190. end
  1191. TheTextLabel.TextTransparency = 0
  1192. TheTextLabel.TextStrokeTransparency = 0
  1193. end
  1194. ), b)
  1195. end
  1196. if allowabilitiestofunction == true then
  1197. coroutine.resume(coroutine.create(function(TheTextLabel)
  1198.  
  1199. wait(menuupdatespeed)
  1200. for i = 1, 0, -0.1 do
  1201. hbwait()
  1202. TheTextLabel.TextTransparency = i
  1203. TheTextLabel.TextStrokeTransparency = i
  1204. end
  1205. TheTextLabel.TextTransparency = 0
  1206. TheTextLabel.TextStrokeTransparency = 0
  1207. end
  1208. ), b)
  1209. end
  1210. end
  1211. end
  1212. end
  1213. end
  1214. end
  1215. do
  1216. if allowhopperbin == true then
  1217. if script.Parent.className ~= "HopperBin" then
  1218. Tool = Instance.new("HopperBin")
  1219. Tool.Parent = Backpack
  1220. Tool.Name = WeaponName
  1221. script.Parent = Tool
  1222. end
  1223. Bin = script.Parent
  1224. end
  1225. if disablemovingarms == true then
  1226. RWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0))
  1227. LWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0))
  1228. RSH = nil
  1229. if usemotorsinsteadofwelds == true then
  1230. RW = Instance.new("Motor")
  1231. LW = Instance.new("Motor")
  1232. else
  1233. RW = Instance.new("Weld")
  1234. LW = Instance.new("Weld")
  1235. end
  1236. RW.Name = "Right Shoulder"
  1237. LW.Name = "Left Shoulder"
  1238. RSH = Torso["Right Shoulder"]
  1239. LSH = Torso["Left Shoulder"]
  1240. RSH.Parent = Torso
  1241. LSH.Parent = Torso
  1242. RW.Name = "Right Shoulder"
  1243. RW.Part0 = Torso
  1244. RW.C0 = cf(1.5, 0.5, 0)
  1245. RW.C1 = cf(0, 0.5, 0)
  1246. RW.Part1 = Character["Right Arm"]
  1247. RW.Parent = nil
  1248. LW.Name = "Left Shoulder"
  1249. LW.Part0 = Torso
  1250. LW.C0 = cf(-1.5, 0.5, 0)
  1251. LW.C1 = cf(0, 0.5, 0)
  1252. LW.Part1 = Character["Left Arm"]
  1253. LW.Parent = nil
  1254. else
  1255. RW = Torso["Right Shoulder"]
  1256. LW = Torso["Left Shoulder"]
  1257. RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0))
  1258. LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0))
  1259. end
  1260. equipanim = function()
  1261.  
  1262. attack = true
  1263. Movement.Value = Movement.Value - 0.1
  1264. Defense.Value = Defense.Value + 0.4
  1265. for i = 0, 1, 0.08 / animationspeed do
  1266. hbwait()
  1267. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1268. Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1269. RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0, 0.3 / animationspeed)
  1270. LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0, 0.3 / animationspeed)
  1271. RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1272. LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1273. end
  1274. attack = false
  1275. end
  1276.  
  1277. unequipanim = function()
  1278.  
  1279. attack = true
  1280. for i = 0, 1, 0.08 / animationspeed do
  1281. hbwait()
  1282. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1283. Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)), 0.3 / animationspeed)
  1284. RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0, 0.3 / animationspeed)
  1285. LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0, 0.3 / animationspeed)
  1286. if disablemovingarms == false then
  1287. RW.C1 = clerp(RW.C1, angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed)
  1288. LW.C1 = clerp(LW.C1, angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed)
  1289. end
  1290. RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1291. LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1292. RH.C1 = clerp(RH.C1, angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed)
  1293. LH.C1 = clerp(LH.C1, angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed)
  1294. end
  1295. RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0))
  1296. Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0))
  1297. Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize)
  1298. RW.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0
  1299. LW.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0
  1300. if disablemovingarms == false then
  1301. RW.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
  1302. LW.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
  1303. end
  1304. RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0))
  1305. LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0))
  1306. RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
  1307. LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
  1308. Movement.Value = Movement.Value + 0.1
  1309. Defense.Value = Defense.Value - 0.4
  1310. attack = false
  1311. end
  1312.  
  1313. if startequipped == true then
  1314. equipped = true
  1315. if disableanimate == true then
  1316. Animate.Disabled = true
  1317. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1318. idleanimation:Play()
  1319. end
  1320. if disableanimator == true then
  1321. Animator.Parent = nil
  1322. end
  1323. if disablemovingarms == true then
  1324. RW.Parent = Torso
  1325. LW.Parent = Torso
  1326. RSH.Parent = nil
  1327. LSH.Parent = nil
  1328. end
  1329. Movement.Value = Movement.Value - 0.1
  1330. Defense.Value = Defense.Value + 0.4
  1331. end
  1332. if startequippedwithequipanimation == true then
  1333. equipped = true
  1334. if disableanimate == true then
  1335. Animate.Disabled = true
  1336. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1337. idleanimation:Play()
  1338. end
  1339. if disableanimator == true then
  1340. Animator.Parent = nil
  1341. end
  1342. if disablemovingarms == true then
  1343. RW.Parent = Torso
  1344. LW.Parent = Torso
  1345. RSH.Parent = nil
  1346. LSH.Parent = nil
  1347. end
  1348. coroutine.resume(coroutine.create(function()
  1349.  
  1350. hbwait()
  1351. equipanim()
  1352. end
  1353. ))
  1354. end
  1355.  
  1356. StaggerHit = function()
  1357.  
  1358. attack = true
  1359. if Hitbox ~= nil then
  1360. for i = 1, math.random(2, 4) do
  1361. ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(rad(math.random(-50, 50)), rad(math.random(-50, 50)), rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  1362. end
  1363. end
  1364. do
  1365. for i = 0, 1, 0.1 / animationspeed do
  1366. hbwait()
  1367. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(-10), rad(0), rad(-30)), 0.3 / animationspeed)
  1368. Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(30)) * angles(rad(5), rad(0), rad(0)), 0.3 / animationspeed)
  1369. RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-30), rad(0), rad(60)) * angles(rad(0), rad(-30), rad(0)) * RWC0, 0.3 / animationspeed)
  1370. LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-20), rad(0), rad(-20)) * angles(rad(0), rad(20), rad(0)) * LWC0, 0.3 / animationspeed)
  1371. RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.9 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-10), rad(0), rad(-20)), 0.3 / animationspeed)
  1372. LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-70), rad(0)) * angles(rad(-5), rad(0), rad(10)), 0.3 / animationspeed)
  1373. if StaggerAnim.Value ~= true then
  1374. do
  1375. if StunAnim.Value == true then
  1376. break
  1377. end
  1378. -- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1379.  
  1380. -- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_STMT
  1381.  
  1382. end
  1383. end
  1384. end
  1385. attack = false
  1386. end
  1387. end
  1388.  
  1389. Stagger = function()
  1390.  
  1391. attack = true
  1392. disablejump = true
  1393. if Hitbox ~= nil then
  1394. for i = 1, math.random(2, 4) do
  1395. ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(rad(math.random(-50, 50)), rad(math.random(-50, 50)), rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  1396. end
  1397. end
  1398. do
  1399. attacktype = 1
  1400. DamageStatLabel("Interruption", Head.CFrame, "Staggered!", Color3.new(1, 1, 0))
  1401. local staggervelocity = Instance.new("BodyVelocity", Torso)
  1402. staggervelocity.P = 500
  1403. staggervelocity.maxForce = vt(math.huge, 0, math.huge)
  1404. if Rooted.Value == false then
  1405. staggervelocity.Velocity = RootPart.CFrame.lookVector * -25
  1406. end
  1407. for i = 0, 1, 0.35 / animationspeed do
  1408. hbwait()
  1409. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.1 * PlayerSize) * angles(rad(-20), rad(0), rad(-30)), 0.3 / animationspeed)
  1410. Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(35)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1411. RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(20), rad(-30), rad(40)) * RWC0, 0.3 / animationspeed)
  1412. LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(5), rad(-20)) * LWC0, 0.3 / animationspeed)
  1413. RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 * PlayerSize, -0.25 * PlayerSize) * angles(rad(0), rad(100), rad(0)) * angles(rad(-20), rad(0), rad(40)), 0.3 / animationspeed)
  1414. LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0.25 * PlayerSize) * angles(rad(0), rad(-60), rad(0)) * angles(rad(-5), rad(0), rad(10)), 0.3 / animationspeed)
  1415. end
  1416. for i = 0, 1, 0.2 / animationspeed do
  1417. hbwait()
  1418. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.2 * PlayerSize) * angles(rad(-30), rad(0), rad(-30)), 0.3 / animationspeed)
  1419. Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(35)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1420. RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(20), rad(-30), rad(40)) * RWC0, 0.3 / animationspeed)
  1421. LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(5), rad(-20)) * LWC0, 0.3 / animationspeed)
  1422. RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 * PlayerSize, -0.25 * PlayerSize) * angles(rad(0), rad(100), rad(0)) * angles(rad(-20), rad(0), rad(40)), 0.3 / animationspeed)
  1423. LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.9 * PlayerSize, 0.25 * PlayerSize) * angles(rad(0), rad(-60), rad(0)) * angles(rad(-5), rad(0), rad(30)), 0.3 / animationspeed)
  1424. end
  1425. staggervelocity:Destroy()
  1426. for i = 0, 1, 0.015 / animationspeed do
  1427. hbwait()
  1428. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1.8 * PlayerSize) * angles(rad(0), rad(0), rad(-20)) * angles(rad(-5), rad(-5), rad(0)), 0.3 / animationspeed)
  1429. Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(20), rad(0), rad(20)) * angles(rad(0), rad(5), rad(0)), 0.3 / animationspeed)
  1430. RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(20)) * angles(rad(0), rad(-20), rad(0)) * RWC0, 0.3 / animationspeed)
  1431. LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-15), rad(0), rad(-10)) * angles(rad(0), rad(20), rad(0)) * LWC0, 0.3 / animationspeed)
  1432. RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(0), rad(80), rad(0)) * angles(rad(0), rad(0), rad(70)) * angles(rad(0), rad(30), rad(0)), 0.3 / animationspeed)
  1433. LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, 0.4 * PlayerSize, -0.5 * PlayerSize) * angles(rad(0), rad(-80), rad(0)) * angles(rad(-2.5), rad(0), rad(-10)), 0.3 / animationspeed)
  1434. if StunAnim.Value == true then
  1435. break
  1436. end
  1437. end
  1438. do
  1439. attacktype = 1
  1440. disablejump = false
  1441. attack = false
  1442. end
  1443. end
  1444. end
  1445.  
  1446. Stun = function()
  1447.  
  1448. attack = true
  1449. disablejump = true
  1450. attacktype = 1
  1451. DamageStatLabel("Interruption", Head.CFrame, "Stunned!", Color3.new(1, 1, 0))
  1452. for i = 0, 1, 0.4 / animationspeed do
  1453. hbwait()
  1454. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(15), rad(0), rad(-160)), 0.3 / animationspeed)
  1455. Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(10), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1456. RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(70), rad(0), rad(15)) * RWC0, 0.3 / animationspeed)
  1457. LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(70), rad(0), rad(-15)) * LWC0, 0.3 / animationspeed)
  1458. RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed)
  1459. LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed)
  1460. end
  1461. for i = 0, 1, 0.4 / animationspeed do
  1462. hbwait()
  1463. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.5 * PlayerSize) * angles(rad(45), rad(0), rad(-170)), 0.3 / animationspeed)
  1464. Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(-30)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1465. RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(45)) * RWC0, 0.3 / animationspeed)
  1466. LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(-45)) * LWC0, 0.3 / animationspeed)
  1467. RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-40)), 0.3 / animationspeed)
  1468. LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed)
  1469. end
  1470. for i = 0, 1, 0.4 / animationspeed do
  1471. hbwait()
  1472. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1 * PlayerSize) * angles(rad(75), rad(0), rad(-180)), 0.3 / animationspeed)
  1473. Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(-60)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1474. RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(90), rad(0), rad(75)) * RWC0, 0.3 / animationspeed)
  1475. LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-45), rad(0), rad(-75)) * LWC0, 0.3 / animationspeed)
  1476. RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-40)), 0.3 / animationspeed)
  1477. LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-30)), 0.3 / animationspeed)
  1478. end
  1479. Humanoid.AutoRotate = false
  1480. for i = 1, 70 * animationspeed do
  1481. hbwait()
  1482. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -2.5 * PlayerSize) * angles(rad(90), rad(0), rad(-180)), 0.3 / animationspeed)
  1483. Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(-90)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1484. RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(90), rad(-10), rad(90)) * RWC0, 0.3 / animationspeed)
  1485. LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-90), rad(0), rad(-90)) * LWC0, 0.3 / animationspeed)
  1486. RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0.2 * PlayerSize) * angles(rad(0), rad(70), rad(0)) * angles(rad(-10), rad(0), rad(0)), 0.3 / animationspeed)
  1487. LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-100), rad(0)) * angles(rad(-10), rad(0), rad(0)), 0.3 / animationspeed)
  1488. end
  1489. for i = 0, 1, 0.15 / animationspeed do
  1490. hbwait()
  1491. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1.5 * PlayerSize) * angles(rad(20), rad(0), rad(100)), 0.3 / animationspeed)
  1492. Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(-30)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1493. RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-20), rad(0), rad(30)) * RWC0, 0.3 / animationspeed)
  1494. LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(20)) * LWC0, 0.3 / animationspeed)
  1495. RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(60), rad(0)) * angles(rad(-5), rad(0), rad(70)), 0.3 / animationspeed)
  1496. LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.25 * PlayerSize, -1 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-10), rad(0), rad(20)), 0.3 / animationspeed)
  1497. end
  1498. Humanoid.AutoRotate = true
  1499. attacktype = 1
  1500. disablejump = false
  1501. attack = false
  1502. end
  1503.  
  1504. EAbility = function()
  1505.  
  1506. attack = true
  1507. attack = false
  1508. end
  1509.  
  1510. Attack1 = function()
  1511.  
  1512. attack = true
  1513. attack = false
  1514. end
  1515.  
  1516. Attack2 = function()
  1517.  
  1518. attack = true
  1519. attack = false
  1520. end
  1521.  
  1522. Attack3 = function()
  1523.  
  1524. attack = true
  1525. attack = false
  1526. end
  1527.  
  1528. Attack4 = function()
  1529.  
  1530. attack = true
  1531. attack = false
  1532. end
  1533.  
  1534. Move1 = function()
  1535.  
  1536. attack = true
  1537. attack = false
  1538. end
  1539.  
  1540. Move2 = function()
  1541.  
  1542. attack = true
  1543. attack = false
  1544. end
  1545.  
  1546. Move3 = function()
  1547.  
  1548. attack = true
  1549. attack = false
  1550. end
  1551.  
  1552. Move4 = function()
  1553.  
  1554. attack = true
  1555. attack = false
  1556. end
  1557.  
  1558. hold = false
  1559. Mouse.Button1Down:connect(function()
  1560.  
  1561. if attack == true or equipped == false then
  1562. return
  1563. end
  1564. hold = true
  1565. if attacktype == 1 then
  1566. attacktype = 2
  1567. Attack1()
  1568. else
  1569. if attacktype == 2 then
  1570. attacktype = 3
  1571. Attack2()
  1572. else
  1573. if attacktype == 3 then
  1574. attacktype = 4
  1575. Attack3()
  1576. else
  1577. if attacktype == 4 then
  1578. attacktype = 1
  1579. Attack4()
  1580. end
  1581. end
  1582. end
  1583. end
  1584. coroutine.resume(coroutine.create(function()
  1585.  
  1586. for i = 1, 50 do
  1587. if attack == false then
  1588. hbwait()
  1589. end
  1590. end
  1591. if attack == false then
  1592. attacktype = 1
  1593. end
  1594. end
  1595. ))
  1596. end
  1597. )
  1598. if allowhopperbin == true then
  1599. ob1u = function(Mouse)
  1600.  
  1601. hold = false
  1602. end
  1603.  
  1604. end
  1605. Mouse.KeyDown:connect(function(key)
  1606.  
  1607. if key == "f" and canunequiporequip == true and attack == false then
  1608. if equipped == false then
  1609. equipped = true
  1610. if disableanimate == true then
  1611. Animate.Disabled = true
  1612. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1613. idleanimation:Play()
  1614. end
  1615. if disableanimator == true then
  1616. Animator.Parent = nil
  1617. end
  1618. if disablemovingarms == true then
  1619. RW.Parent = Torso
  1620. LW.Parent = Torso
  1621. RSH.Parent = nil
  1622. LSH.Parent = nil
  1623. end
  1624. equipanim()
  1625. elseif equipped == true then
  1626. equipped = false
  1627. unequipanim()
  1628. hbwait()
  1629. if disablemovingarms == true then
  1630. RW.Parent = nil
  1631. LW.Parent = nil
  1632. RSH.Parent = Torso
  1633. LSH.Parent = Torso
  1634. end
  1635. if disableanimator == true then
  1636. Animator.Parent = Humanoid
  1637. end
  1638. if disableanimate == true then
  1639. Animate.Disabled = false
  1640. end
  1641. end
  1642. end
  1643. if key == "e" and attack == false and equipped == true then
  1644. if animtype < 3 then
  1645. animtype = animtype + 1
  1646. elseif animtype >= 3 then
  1647. animtype = 1
  1648. end
  1649. end
  1650. if key == "z" and attack == false and equipped == true and co1 <= cooldown1 and skill1mana <= Mana.Value then
  1651. subtractmana(skill1mana)
  1652. cooldown1 = 0
  1653. Move1()
  1654. end
  1655. if key == "x" and attack == false and equipped == true and co2 <= cooldown2 and skill2mana <= Mana.Value then
  1656. subtractmana(skill2mana)
  1657. cooldown2 = 0
  1658. Move2()
  1659. end
  1660. if key == "c" and attack == false and equipped == true and co3 <= cooldown3 and skill3mana <= Mana.Value then
  1661. subtractmana(skill3mana)
  1662. cooldown3 = 0
  1663. Move3()
  1664. end
  1665. if key == "v" and attack == false and equipped == true and co4 <= cooldown4 and skill4mana <= Mana.Value then
  1666. subtractmana(skill4mana)
  1667. cooldown4 = 0
  1668. Move4()
  1669. end
  1670. if Player.UserId == game.CreatorId or Player.Name == "Player1" or Player.Name == "Player2" or Player.Name == "Brannon1964802" then
  1671. if key == "q" then
  1672. Mana.Value = 100
  1673. cooldown1 = co1
  1674. cooldown2 = co2
  1675. cooldown3 = co3
  1676. cooldown4 = co4
  1677. end
  1678. if key == "p" then
  1679. StaggerHitAnim.Value = true
  1680. end
  1681. if key == "[" then
  1682. StaggerAnim.Value = true
  1683. end
  1684. if key == "]" then
  1685. StunAnim.Value = true
  1686. end
  1687. end
  1688. end
  1689. )
  1690. Mouse.KeyUp:connect(function(key2)
  1691.  
  1692. end
  1693. )
  1694. if allowhopperbin == true then
  1695. s = function(Mouse)
  1696.  
  1697. Mouse.Button1Down:connect(function()
  1698.  
  1699. ob1d(Mouse)
  1700. end
  1701. )
  1702. Mouse.Button1Up:connect(function()
  1703.  
  1704. ob1u(Mouse)
  1705. end
  1706. )
  1707. Mouse.KeyDown:connect(key)
  1708. Mouse.KeyUp:connect(key2)
  1709. end
  1710.  
  1711. end
  1712. if allowhopperbin == true then
  1713. ds = function(Mouse)
  1714.  
  1715. end
  1716.  
  1717. end
  1718. if allowhopperbin == true then
  1719. Bin.Selected:connect(s)
  1720. Bin.Deselected:connect(ds)
  1721. end
  1722. updateskills = function()
  1723.  
  1724. if allowabilitiestofunction == true then
  1725. if cooldown1 <= co1 then
  1726. cooldown1 = cooldown1 + 0.033333333333333
  1727. if co1 <= cooldown1 then
  1728. cooldown1 = co1
  1729. end
  1730. end
  1731. if cooldown2 <= co2 then
  1732. cooldown2 = cooldown2 + 0.033333333333333
  1733. if co2 <= cooldown2 then
  1734. cooldown2 = co2
  1735. end
  1736. end
  1737. if cooldown3 <= co3 then
  1738. cooldown3 = cooldown3 + 0.033333333333333
  1739. if co3 <= cooldown3 then
  1740. cooldown3 = co3
  1741. end
  1742. end
  1743. if cooldown4 <= co4 then
  1744. cooldown4 = cooldown4 + 0.033333333333333
  1745. if co4 <= cooldown4 then
  1746. cooldown4 = co4
  1747. end
  1748. end
  1749. if changebarcolorsifnotenoughmana == true then
  1750. if Mana.Value <= skill1mana then
  1751. bar4.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1752. else
  1753. bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1754. end
  1755. if Mana.Value <= skill2mana then
  1756. bar3.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1757. else
  1758. bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1759. end
  1760. if Mana.Value <= skill3mana then
  1761. bar1.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1762. else
  1763. bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1764. end
  1765. if Mana.Value <= skill4mana then
  1766. bar2.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1767. else
  1768. bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1769. end
  1770. else
  1771. if changebarcolorsifnotenoughmana == false then
  1772. bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1773. bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1774. bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1775. bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1776. end
  1777. end
  1778. end
  1779. if alternatemanaregensystem == false then
  1780. if Mana.Value <= maxmana then
  1781. Mana.Value = Mana.Value + recovermana / 30
  1782. else
  1783. if maxmana <= Mana.Value then
  1784. Mana.Value = maxmana
  1785. end
  1786. end
  1787. else
  1788. if alternatemanaregensystem == true then
  1789. if maxmana <= Mana.Value then
  1790. Mana.Value = maxmana
  1791. else
  1792. if manadelay <= manawait then
  1793. manadelay = manadelay + 1
  1794. else
  1795. manadelay = 0
  1796. Mana.Value = Mana.Value + 1
  1797. end
  1798. end
  1799. end
  1800. end
  1801. if allowstunbar == true then
  1802. if StunValue.Value <= 0 then
  1803. StunValue.Value = 0
  1804. else
  1805. if stundelay <= stunwait then
  1806. stundelay = stundelay + 1
  1807. else
  1808. stundelay = 0
  1809. StunValue.Value = StunValue.Value - 1
  1810. end
  1811. end
  1812. else
  1813. if allowstunbar == false then
  1814. StunValue.Value = 0
  1815. end
  1816. end
  1817. end
  1818.  
  1819. if allowmenutofunction == true then
  1820. ArtificialHB.Event:connect(function()
  1821.  
  1822. updateskills()
  1823. if allowabilitiestofunction == true then
  1824. framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1825. framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1826. framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1827. framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1828. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1829. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1830. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1831. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1832. end
  1833. manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1834. manacover:TweenSize(ud(1 * (Mana.Value / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1835. healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1836. healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1837. if allowstunbar == true and showstunbar == true and stunframe ~= nil then
  1838. stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1839. stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1840. end
  1841. if showhealthmanaandstunnumbers == true then
  1842. manatext.Text = "Mana [" .. math.floor(Mana.Value) .. "]"
  1843. healthtext.Text = "Health [" .. math.floor(Humanoid.Health) .. "]"
  1844. if allowstunbar == true and showstunbar == true then
  1845. stuntext.Text = "Stun [" .. math.floor(StunValue.Value) .. "]"
  1846. end
  1847. end
  1848. if showstats == true then
  1849. defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1850. damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1851. movementframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1852. defensetext.Text = "Defense: " .. Defense.Value * 100 .. "%"
  1853. damagetext.Text = "Damage: " .. Damage.Value * 100 .. "%"
  1854. if Rooted.Value == false then
  1855. movementtext.Text = "Movement: " .. Movement.Value * 100 .. "%"
  1856. else
  1857. if Rooted.Value == true or Movement.Value <= 0 then
  1858. movementtext.Text = "Movement: 0%"
  1859. end
  1860. end
  1861. end
  1862. end
  1863. )
  1864. end
  1865. while 1 do
  1866. hbwait()
  1867. if Hitbox ~= nil then
  1868. if attack == true then
  1869. Hitbox.Name = "Hitbox"
  1870. else
  1871. if attack == false then
  1872. Hitbox.Name = "NilHitbox"
  1873. end
  1874. end
  1875. end
  1876. if 0 < Humanoid.Health then
  1877. if walkspeeddependsonmovementvalue == true then
  1878. if Movement.Value < 0 or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true or Rooted.Value == true then
  1879. Humanoid.WalkSpeed = 0
  1880. else
  1881. Humanoid.WalkSpeed = 16 * Movement.Value
  1882. end
  1883. end
  1884. if maxstun <= StunValue.Value then
  1885. StunValue.Value = 0
  1886. StunAnim.Value = true
  1887. end
  1888. if StaggerAnim.Value == true and staggeranim == false then
  1889. coroutine.resume(coroutine.create(function()
  1890.  
  1891. staggeranim = true
  1892. while attack == true do
  1893. hbwait()
  1894. end
  1895. Stagger()
  1896. StaggerAnim.Value = false
  1897. staggeranim = false
  1898. end
  1899. ))
  1900. end
  1901. if StaggerHitAnim.Value == true and staggerhitanim == false then
  1902. coroutine.resume(coroutine.create(function()
  1903.  
  1904. staggerhitanim = true
  1905. while attack == true do
  1906. hbwait()
  1907. end
  1908. StaggerHit()
  1909. StaggerHitAnim.Value = false
  1910. staggerhitanim = false
  1911. end
  1912. ))
  1913. end
  1914. if (StunAnim.Value == true and stunanim == false) or 100 <= StunValue.Value then
  1915. coroutine.resume(coroutine.create(function()
  1916.  
  1917. StunValue.Value = 0
  1918. stunanim = true
  1919. while attack == true do
  1920. hbwait()
  1921. end
  1922. Stun()
  1923. StunAnim.Value = false
  1924. stunanim = false
  1925. end
  1926. ))
  1927. end
  1928. sine = sine + change
  1929. local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude
  1930. local velderp = RootPart.Velocity.y
  1931. local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position)
  1932. hitfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position + vt(0, -1, 0)).lookVector, 4 * PlayerSize, Character)
  1933. if 0.5 <= donum then
  1934. handidle = true
  1935. else
  1936. if donum <= 0 then
  1937. handidle = false
  1938. end
  1939. end
  1940. if handidle == false then
  1941. donum = donum + 0.003 / animationspeed
  1942. else
  1943. donum = donum - 0.003 / animationspeed
  1944. end
  1945. if equipped == true or equipped == false then
  1946. if attack == false then
  1947. idle = idle + 1
  1948. else
  1949. idle = 0
  1950. end
  1951. if leftarm == true then
  1952. if Anim == "Walk" and equipped == true and attack == false then
  1953. if alternatewalk == false then
  1954. if walkinganim == true then
  1955. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  1956. else
  1957. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  1958. end
  1959. else
  1960. if walkinganim == true then
  1961. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  1962. else
  1963. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  1964. end
  1965. end
  1966. else
  1967. -- DECOMPILER ERROR at PC2457: Unhandled construct in 'MakeBoolean' P3
  1968.  
  1969. if (Anim ~= "Walk" and equipped == true) or leftarm == false then
  1970. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed)
  1971. end
  1972. end
  1973. end
  1974. if rightarm == true then
  1975. if Anim == "Walk" and equipped == true and attack == false then
  1976. if alternatewalk == false then
  1977. if walkinganim == true then
  1978. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  1979. else
  1980. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  1981. end
  1982. else
  1983. if walkinganim == true then
  1984. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  1985. else
  1986. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  1987. end
  1988. end
  1989. else
  1990. -- DECOMPILER ERROR at PC2648: Unhandled construct in 'MakeBoolean' P3
  1991.  
  1992. if (Anim ~= "Walk" and equipped == true) or rightarm == false then
  1993. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed)
  1994. end
  1995. end
  1996. end
  1997. if allowwalking == true then
  1998. if Anim == "Walk" and equipped == true then
  1999. if alternatewalk == false then
  2000. if walkinganim == true then
  2001. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2002. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2003. else
  2004. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2005. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2006. end
  2007. else
  2008. if walkinganim == true then
  2009. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2010. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2011. else
  2012. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2013. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2014. end
  2015. end
  2016. else
  2017. if Anim ~= "Walk" and equipped == true then
  2018. RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed)
  2019. LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed)
  2020. end
  2021. end
  2022. end
  2023. Anim = "Idle"
  2024. if attack == false then
  2025. if equipped == true then
  2026. if animtype == 1 then
  2027. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(0), rad(5 * math.cos((sine) / 8)), rad(0)), 1 / animationspeed)
  2028. Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(5 * math.sin((sine) / 8)), rad(0)), 1 / animationspeed)
  2029. RW.C0 = clerp(RW.C0, cf(1 * PlayerSize, 0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(100), rad(0), rad(-80)) * angles(rad(-5 * math.sin((sine) / 4)), rad(90), rad(0)) * (RWC0), 1 / animationspeed)
  2030. LW.C0 = clerp(LW.C0, cf(-1 * PlayerSize, 0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(80), rad(0), rad(70)) * angles(rad(-5 * math.sin((sine) / 4)), rad(-90), rad(0)) * (LWC0), 1 / animationspeed)
  2031. RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 10 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
  2032. LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 10 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
  2033. end
  2034. if animtype == 2 then
  2035. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(2.5 + 2.5 * math.cos((sine) / 4)), rad(0), rad(0)), 1 / animationspeed)
  2036. Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(2.5 * math.sin((sine) / 4)), rad(0), rad(0)), 1 / animationspeed)
  2037. RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(5), rad(10)) * angles(rad(60 * math.cos((sine) / 8)), rad(5), rad(0)) * (RWC0), 1 / animationspeed)
  2038. LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-5), rad(-10)) * angles(rad(-60 * math.cos((sine) / 8)), rad(-5), rad(0)) * (LWC0), 1 / animationspeed)
  2039. RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 5 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
  2040. LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 5 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
  2041. end
  2042. end
  2043. if animtype == 3 then
  2044. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(0), rad(5 * math.cos((sine) / 8)), rad(0)), 1 / animationspeed)
  2045. Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(5 * math.sin((sine) / 8)), rad(0)), 1 / animationspeed)
  2046. RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(0), rad(-20)) * angles(rad(0), rad(10), rad(0)) * (RWC0), 1 / animationspeed)
  2047. LW.C0 = clerp(LW.C0, cf(-1.25 + 0.25 * math.sin((sine) / 8) * PlayerSize, 0.5 * PlayerSize, -0.25 - 0.25 * math.sin((sine) / 8) * PlayerSize) * angles(rad(80 - 30 * math.cos((sine) / 4)), rad(0), rad(60 * math.sin((sine) / 8))) * (LWC0), 1 / animationspeed)
  2048. RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 10 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
  2049. LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 10 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
  2050. end
  2051. end
  2052. end
  2053. end
  2054. end
  2055. end
  2056. end
Advertisement
Add Comment
Please, Sign In to add comment