Advertisement
DylanD2003

Untitled

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