Advertisement
yougotoof

Untitled

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