Wweroblox12121212

Untitled

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