Advertisement
Guest User

Untitled

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