Advertisement
Orangeplayer1431

nothing only me

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