Advertisement
azaz09-_____

Dancing Scout BLU

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