Advertisement
Guest User

Untitled

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