Advertisement
Guest User

Kicker

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