Guest User

scout

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