Advertisement
00fjg

Untitled

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