Advertisement
Guest User

Untitled

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