Advertisement
Guest User

idk`

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