Advertisement
DylanD2003

Untitled

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