Advertisement
Guest User

Untitled

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