Advertisement
Finnegan5

protegent

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