Advertisement
Mr-Shadow_Cat

The Dance Script

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