azaz09-_____

Yoshikage Kira Dance

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