Advertisement
DylanD2003

Untitled

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