Advertisement
Mr-Shadow_Cat

SLAV

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