Advertisement
laddius

Untitled

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