vovaa3

Untitled

Feb 24th, 2018
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 133.12 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. Humanoid = Character.Humanoid
  8. RootPart = Character.HumanoidRootPart
  9. RootJoint = RootPart.RootJoint
  10. LeftArm = Character["Left Arm"]
  11. LeftLeg = Character["Left Leg"]
  12. RightArm = Character["Right Arm"]
  13. RightLeg = Character["Right Leg"]
  14. LS = Torso["Left Shoulder"]
  15. LH = Torso["Left Hip"]
  16. RS = Torso["Right Shoulder"]
  17. RH = Torso["Right Hip"]
  18. Humanoid.MaxHealth = math.huge
  19. wait()
  20. Humanoid.Health = Humanoid.MaxHealth
  21. local BC = Character["Body Colors"]
  22. BC.HeadColor = BrickColor.new("Pastel brown")
  23. BC.LeftArmColor = BrickColor.new("Pastel brown")
  24. BC.LeftLegColor = BrickColor.new("Pastel brown")
  25. BC.RightArmColor = BrickColor.new("Pastel brown")
  26. BC.RightLegColor = BrickColor.new("Pastel brown")
  27. BC.TorsoColor = BrickColor.new("Pastel brown")
  28. for i,v in pairs(Character:children()) do
  29. if v:IsA("Shirt") then
  30. v:Destroy()
  31. end
  32. end
  33. for i,v in pairs(Character:children()) do
  34. if v:IsA("Pants") then
  35. v:Destroy()
  36. end
  37. end
  38. ------Face----------
  39. Character.Head.face.Texture = "rbxassetid://416805592"
  40. ------Remover-------
  41.  
  42. for i,v in pairs(Character:children()) do
  43. if v:IsA("Hat") then
  44. v:Destroy()
  45. end
  46. end
  47. for i,v in pairs(Character:children()) do
  48. if v:IsA("Accessory") then
  49. v:Destroy()
  50. end
  51. end
  52. for i,v in pairs(Character:children()) do
  53. if v:IsA("Hair") then
  54. v:Destroy()
  55. end
  56. end
  57. ------Heavy---------
  58. CV="Maroon"
  59. Player = game.Players.LocalPlayer
  60. char = Player.Character
  61. local txt = Instance.new("BillboardGui", Character)
  62. txt.Adornee = Character .Head
  63. txt.Name = "_status"
  64. txt.Size = UDim2.new(2, 0, 1.2, 0)
  65. txt.StudsOffset = Vector3.new(-9, 8, 0)
  66. local text = Instance.new("TextLabel", txt)
  67. text.Size = UDim2.new(10, 0, 7, 0)
  68. text.FontSize = "Size24"
  69. text.TextScaled = true
  70. text.TextTransparency = 0
  71. text.BackgroundTransparency = 1
  72. text.TextTransparency = 0
  73. text.TextStrokeTransparency = 0
  74. text.Font = "Bodoni"
  75. text.TextStrokeColor3 = Color3.new(255,255,255)
  76.  
  77. v=Instance.new("Part")
  78. v.Name = "ColorBrick"
  79. v.Parent=Player.Character
  80. v.FormFactor="Symmetric"
  81. v.Anchored=true
  82. v.CanCollide=false
  83. v.BottomSurface="Smooth"
  84. v.TopSurface="Smooth"
  85. v.Size=Vector3.new(10,5,3)
  86. v.Transparency=1
  87. v.CFrame=Character.Torso.CFrame
  88. v.BrickColor=BrickColor.new(CV)
  89. v.Transparency=1
  90. text.TextColor3 = Color3.new(255,0,0)
  91. v.Shape="Block"
  92. text.Text = "Sans"
  93. --------------------
  94. shirt = Instance.new("Shirt", Character)
  95. shirt.Name = "Shirt"
  96. pants = Instance.new("Pants", Character)
  97. pants.Name = "Pants"
  98. Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=302011210"
  99. Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=305718140"
  100. sound = Instance.new("Sound", Character)
  101. sound.SoundId = "rbxassetid://395780625"
  102. sound.Volume = 100000000
  103. sound.EmitterSize = 25
  104. sound:Play()
  105. sound.Looped = true
  106. Face = Head.face
  107. Neck = Torso.Neck
  108. it = Instance.new
  109. vt = Vector3.new
  110. cf = CFrame.new
  111. rad = math.rad
  112. euler = CFrame.fromEulerAnglesXYZ
  113. angles = CFrame.Angles
  114. Mouse = Player:GetMouse()
  115. coroutine.resume(coroutine.create(function()
  116. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  117. Text = "Fixed by PixelFir3 / Cortana#8155";
  118. Color = Color3.new(0, 1, 1);
  119. Font = Enum.Font.Code;
  120. FontSize = Enum.FontSize.Size24;
  121. })
  122. end))
  123. ArtificialHB = Instance.new("BindableEvent", script)
  124. ArtificialHB.Name = "ArtificialHB"
  125. script:WaitForChild("ArtificialHB")
  126. frame = 0.016666666666667
  127. tf = 0
  128. allowframeloss = false
  129. tossremainder = false
  130. lastframe = tick()
  131. script.ArtificialHB:Fire()
  132. game:GetService("RunService").Heartbeat:connect(function(s, p)
  133.  
  134. tf = tf + s
  135. if frame <= tf then
  136. if allowframeloss then
  137. script.ArtificialHB:Fire()
  138. lastframe = tick()
  139. else
  140. for i = 1, math.floor(tf / frame) do
  141. script.ArtificialHB:Fire()
  142. end
  143. lastframe = tick()
  144. end
  145. if tossremainder then
  146. tf = 0
  147. else
  148. tf = tf - frame * math.floor(tf / frame)
  149. end
  150. end
  151. end
  152. )
  153. local animationspeed = 2
  154. hbwait = function(number)
  155.  
  156. if number == 0 or number == nil then
  157. ArtificialHB.Event:wait()
  158. else
  159. for i = 0, number do
  160. ArtificialHB.Event:wait()
  161. end
  162. end
  163. end
  164.  
  165. local Stats = Instance.new("Folder", Character)
  166. Stats.Name = "Stats"
  167. local Defense = Instance.new("NumberValue", Stats)
  168. Defense.Name = "Defense"
  169. Defense.Value = 0.1
  170. local Movement = Instance.new("NumberValue", Stats)
  171. Movement.Name = "Movement"
  172. Movement.Value = 0.35
  173. local Damage = Instance.new("NumberValue", Stats)
  174. Damage.Name = "Damage"
  175. Damage.Value = 0
  176. local Mana = Instance.new("NumberValue", Stats)
  177. Mana.Name = "Mana"
  178. Mana.Value = 0
  179. local Rooted = Instance.new("BoolValue", Stats)
  180. Rooted.Name = "Rooted"
  181. Rooted.Value = false
  182. local BlockValue = Instance.new("BoolValue", Stats)
  183. BlockValue.Name = "BlockValue"
  184. BlockValue.Value = false
  185. local StaggerHitAnim = Instance.new("BoolValue", Stats)
  186. StaggerHitAnim.Name = "StaggerHitAnim"
  187. StaggerHitAnim.Value = false
  188. local StaggerAnim = Instance.new("BoolValue", Stats)
  189. StaggerAnim.Name = "StaggerAnim"
  190. StaggerAnim.Value = false
  191. local StunAnim = Instance.new("BoolValue", Stats)
  192. StunAnim.Name = "StunAnim"
  193. StunAnim.Value = false
  194. local StunValue = Instance.new("NumberValue", Stats)
  195. StunValue.Name = "StunValue"
  196. StunValue.Value = 0
  197. local CanCrit = Instance.new("BoolValue", Stats)
  198. CanCrit.Name = "CanCrit"
  199. CanCrit.Value = false
  200. local CritChance = Instance.new("NumberValue", Stats)
  201. CritChance.Name = "CritChance"
  202. CritChance.Value = 20
  203. local CanPenetrateArmor = Instance.new("BoolValue", Stats)
  204. CanPenetrateArmor.Name = "CanPenetrateArmor"
  205. CanPenetrateArmor.Value = false
  206. local AntiTeamKill = Instance.new("BoolValue", Stats)
  207. AntiTeamKill.Name = "AntiTeamKill"
  208. AntiTeamKill.Value = false
  209. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  210. RootCF = angles(rad(-90), 0, rad(180))
  211. local idle = 0
  212. local Anim = "Idle"
  213. local animtype = math.floor(math.random(1, 3))
  214. local attacktype = 1
  215. local attack = false
  216. local equipped = false
  217. local LastPoint = nil
  218. local staggerhitanim = false
  219. local staggeranim = false
  220. local stunanim = false
  221. local CritChanceNumber = 0
  222. local idlen = 0
  223. local donum = 0
  224. local sine = 0
  225. local change = 2 / animationspeed
  226. local walkinganim = false
  227. local handidle = false
  228. local walk = 0
  229. local stundelay = 0
  230. local manadelay = 0
  231. local robloxidleanimation = Instance.new("Animation", Torso)
  232. robloxidleanimation.Name = "robloxidleanimation"
  233. robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  234. local Animator = Humanoid:FindFirstChild("Animator")
  235. local Animate = Character:FindFirstChild("Animate")
  236. local HitPlayerSounds = {199149137, 199149186, 199149221, 199149235, 199149269, 199149297}
  237. local HitArmorSounds = {199149321, 199149338, 199149367, 199149409, 199149452}
  238. local HitWeaponSounds = {199148971, 199149025, 199149072, 199149109, 199149119}
  239. local HitBlockSounds = {199148933, 199148947}
  240. local cooldown1 = 0
  241. local cooldown2 = 0
  242. local cooldown3 = 0
  243. local cooldown4 = 0
  244. local scrn = Instance.new("ScreenGui", PlayerGui)
  245. local ud = UDim2.new
  246. local c3 = Color3.new
  247. local skillcolorscheme = c3(1, 1, 1)
  248. subtractmana = function(k)
  249.  
  250. if k <= Mana.Value then
  251. Mana.Value = Mana.Value - k
  252. end
  253. end
  254.  
  255. local co1 = 0
  256. local co2 = 0
  257. local co3 = 0
  258. local co4 = 0
  259. local maxmana = 0
  260. local maxstun = 1
  261. local recovermana = 0
  262. local losestun = 0
  263. local stunwait = 0
  264. local manawait = 0
  265. local skill1mana = 0
  266. local skill2mana = 0
  267. local skill3mana = 0
  268. local skill4mana = 0
  269. local menuupdatespeed = 0
  270. local constantupdate = false
  271. local showstats = false
  272. local allowstunbar = false
  273. local CustomColor = Torso.BrickColor
  274. local Colorpart1 = CustomColor.r
  275. local Colorpart2 = CustomColor.g
  276. local Colorpart3 = CustomColor.b
  277. local InverseColor = BrickColor.new(Color3.new(1 - Colorpart1, 1 - Colorpart2, 1 - Colorpart3))
  278. makeframe = function(par, trans, pos, size, color, name)
  279.  
  280. local frame = Instance.new("Frame")
  281. frame.Parent = par
  282. frame.BackgroundTransparency = trans
  283. frame.BorderSizePixel = 2
  284. frame.Position = pos
  285. frame.Size = size
  286. frame.BackgroundColor3 = color
  287. frame.Name = name
  288. return frame
  289. end
  290.  
  291. makelabel = function(par, text, trans, stroketrans, name)
  292.  
  293. local label = Instance.new("TextLabel")
  294. label.Parent = par
  295. label.BackgroundTransparency = 1
  296. label.Size = ud(1, 0, 1, 0)
  297. label.Position = ud(0, 0, 0, 0)
  298. label.TextColor3 = c3(255, 255, 255)
  299. label.TextStrokeTransparency = stroketrans
  300. label.TextTransparency = trans
  301. label.FontSize = Enum.FontSize.Size32
  302. label.Font = Enum.Font.Legacy
  303. label.BorderSizePixel = 0
  304. label.TextScaled = true
  305. label.Text = text
  306. label.Name = name
  307. return label
  308. end
  309.  
  310. framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 1")
  311. framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 2")
  312. framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 3")
  313. framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 4")
  314. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 1")
  315. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 2")
  316. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 3")
  317. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 4")
  318. text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1")
  319. text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2")
  320. text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3")
  321. text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4")
  322. manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar")
  323. manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover")
  324. manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text")
  325. 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")
  326. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Cover")
  327. healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text")
  328. if allowstunbar == true then
  329. 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")
  330. stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137255), "Stun Bar")
  331. stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text")
  332. end
  333. if showstats == true then
  334. 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")
  335. 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")
  336. 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")
  337. defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text")
  338. damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text")
  339. movementtext = makelabel(movementframe, "Movement: " .. Movement.Value, 1, 1, "Movement Text")
  340. end
  341. NoOutline = function(Part)
  342.  
  343. Part.TopSurface = 10
  344. end
  345.  
  346. local weldBetween = function(a, b)
  347.  
  348. local weldd = Instance.new("ManualWeld")
  349. weldd.Part0 = a
  350. weldd.Part1 = b
  351. weldd.C0 = CFrame.new()
  352. weldd.C1 = b.CFrame:inverse() * a.CFrame
  353. weldd.Parent = a
  354. return weldd
  355. end
  356.  
  357. nooutline = function(part)
  358.  
  359. part.TopSurface = 10
  360. end
  361.  
  362. part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  363.  
  364. local fp = it("Part")
  365. fp.formFactor = formfactor
  366. fp.Parent = parent
  367. fp.Reflectance = reflectance
  368. fp.Transparency = transparency
  369. fp.CanCollide = false
  370. fp.Locked = true
  371. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  372. fp.Name = name
  373. fp.Size = size
  374. fp.Position = Character.Torso.Position
  375. nooutline(fp)
  376. fp.Material = material
  377. fp:BreakJoints()
  378. return fp
  379. end
  380.  
  381. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  382.  
  383. local mesh = it(Mesh)
  384. mesh.Parent = part
  385. if Mesh == "SpecialMesh" then
  386. mesh.MeshType = meshtype
  387. mesh.MeshId = meshid
  388. end
  389. mesh.Offset = offset
  390. mesh.Scale = scale
  391. return mesh
  392. end
  393.  
  394. weld = function(parent, part0, part1, c0, c1)
  395.  
  396. local weld = it("Motor")
  397. weld.Parent = parent
  398. weld.Part0 = part0
  399. weld.Part1 = part1
  400. weld.C0 = c0
  401. weld.C1 = c1
  402. return weld
  403. end
  404.  
  405. local WeaponName = "Russian Kick"
  406. local ClassName = "Russian Kick"
  407. local PlayerSize = 1
  408. local RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0))
  409. local LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0))
  410. if PlayerSize ~= 1 then
  411. RootPart.Size = RootPart.Size * PlayerSize
  412. Torso.Size = Torso.Size * PlayerSize
  413. Head.Size = Head.Size * PlayerSize
  414. RightArm.Size = RightArm.Size * PlayerSize
  415. LeftArm.Size = LeftArm.Size * PlayerSize
  416. RightLeg.Size = RightLeg.Size * PlayerSize
  417. LeftLeg.Size = LeftLeg.Size * PlayerSize
  418. RootJoint.Parent = RootPart
  419. Neck.Parent = Torso
  420. LS.Parent = Torso
  421. RS.Parent = Torso
  422. LH.Parent = Torso
  423. RH.Parent = Torso
  424. RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0))
  425. Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0))
  426. Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize)
  427. RS.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0
  428. LS.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0
  429. RS.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
  430. LS.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
  431. RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0))
  432. LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0))
  433. RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
  434. LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
  435. for _,v in pairs(Character:GetChildren()) do
  436. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  437. v.Parent = nil
  438. v.Parent = Character
  439. v.Handle.Mesh.Scale = v.Handle.Mesh.Scale * PlayerSize
  440. for _,b in pairs(v.Handle:GetChildren()) do
  441. if b.ClassName == "Weld" or b.ClassName == "Motor" then
  442. local p1 = b.Part1
  443. b.Part1 = nil
  444. local c01, c02, c03, c04, c05, c06, c07, c08, c09, c010, c011, c012 = b.C0:components()
  445. local c11, c12, c13, c14, c15, c16, c17, c18, c19, c110, c111, c112 = b.C1:components()
  446. b.C0 = cf(c01 * PlayerSize, c02 * PlayerSize, c03 * PlayerSize, c04, c05, c06, c07, c08, c09, c010, c011, c012)
  447. b.C1 = cf(c11 * PlayerSize, c12 * PlayerSize, c13 * PlayerSize, c14, c15, c16, c17, c18, c19, c110, c111, c112)
  448. b.Part1 = p1
  449. end
  450. end
  451. end
  452. end
  453. end
  454. m = Instance.new("Model", Character)
  455. m.Name = WeaponName
  456. Effects = Instance.new("Folder", m)
  457. Effects.Name = "Effects"
  458. Humanoid.Died:connect(function()
  459.  
  460. attack = true
  461. for _,v in pairs(Character:GetChildren()) do
  462. if v.ClassName == "Model" then
  463. v:Destroy()
  464. end
  465. end
  466. end
  467. )
  468. for i,v in pairs(Character:GetChildren()) do
  469. if v.ClassName == "Model" then
  470. for _,c in pairs(v:GetChildren()) do
  471. if c.ClassName == "Part" then
  472. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  473. end
  474. end
  475. end
  476. end
  477. print(ClassName .. " loaded.")
  478. clerp = function(a, b, t)
  479. return a:lerp(b, t)
  480. end
  481.  
  482. positiveangle = function(number)
  483.  
  484. if number > 0 then
  485. number = 0
  486. end
  487. return number
  488. end
  489.  
  490. negativeangle = function(number)
  491.  
  492. if number < 0 then
  493. number = 0
  494. end
  495. return number
  496. end
  497.  
  498. so = function(id, par, vol, pit)
  499.  
  500. coroutine.resume(coroutine.create(function()
  501.  
  502. local sou = Instance.new("Sound", par or workspace)
  503. sou.Volume = vol
  504. sou.Pitch = pit or 1
  505. sou.SoundId = "http://roblox.com/asset/?id=" .. id
  506. hbwait()
  507. sou:play()
  508. game:GetService("Debris"):AddItem(sou, 10)
  509. end
  510. ))
  511. end
  512.  
  513. GetDistance = function(Part1, Part2, magnitude)
  514.  
  515. local target = Part1.Position - Part2.Position
  516. local mag = target.magnitude
  517. if mag <= magnitude then
  518. return true
  519. else
  520. return false
  521. end
  522. end
  523.  
  524. rayCast = function(Pos, Dir, Max, Ignore)
  525.  
  526. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  527. end
  528.  
  529. DamageStatLabel = function(labeltype, cframe, text, color)
  530.  
  531. local c = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt(0, 0, 0))
  532. c.CFrame = cf(cframe.p + vt(0, 1.5, 0))
  533. game:GetService("Debris"):AddItem(c, 5)
  534. Instance.new("BodyGyro", c)
  535. local f = Instance.new("BodyPosition", c)
  536. f.P = 2000
  537. f.D = 100
  538. f.maxForce = vt(math.huge, math.huge, math.huge)
  539. if labeltype == "Normal" then
  540. f.position = c.Position + vt(math.random(-2, 2), 6, math.random(-2, 2))
  541. else
  542. if labeltype == "Debuff" then
  543. f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2))
  544. else
  545. if labeltype == "Interruption" then
  546. f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2))
  547. end
  548. end
  549. end
  550. game:GetService("Debris"):AddItem(c, 5)
  551. local bg = Instance.new("BillboardGui", c)
  552. bg.Adornee = c
  553. bg.Size = UDim2.new(2.5, 0, 2.5, 0)
  554. bg.StudsOffset = vt(-2, 2, 0)
  555. bg.AlwaysOnTop = false
  556. local tl = Instance.new("TextLabel", bg)
  557. tl.BackgroundTransparency = 1
  558. tl.Size = UDim2.new(2.5, 0, 2.5, 0)
  559. tl.Text = text
  560. tl.Font = Enum.Font.SourceSans
  561. tl.FontSize = Enum.FontSize.Size42
  562. tl.TextColor3 = color
  563. tl.TextScaled = false
  564. tl.TextStrokeTransparency = 0
  565. tl.TextScaled = true
  566. tl.TextWrapped = true
  567. f.Parent = c
  568. coroutine.resume(coroutine.create(function(Part, BodyPosition, TextLabel)
  569.  
  570. wait(0.25)
  571. for i = 1, 5 do
  572. wait()
  573. BodyPosition.position = Part.Position - vt(0, 0.5, 0)
  574. end
  575. wait(1.25)
  576. for i = 1, 5 do
  577. wait()
  578. TextLabel.TextTransparency = TextLabel.TextTransparency + 0.2
  579. TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + 0.2
  580. BodyPosition.position = Part.Position + vt(0, 0.5, 0)
  581. end
  582. Part.Parent = nil
  583. end
  584. ), c, f, tl)
  585. end
  586.  
  587. IncreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat)
  588.  
  589. -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  590.  
  591. -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  592.  
  593. if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
  594. Location.Stats[Stat].Value = Location.Stats[Stat].Value + Amount
  595. if ShowTheStat == true then
  596. if Stat == "Defense" then
  597. DamageStatLabel("Debuff", Location.Head.CFrame, "+Defense", c3(1, 1, 1))
  598. else
  599. if Stat == "Damage" then
  600. DamageStatLabel("Debuff", Location.Head.CFrame, "+Damage", c3(1, 1, 1))
  601. else
  602. if Stat == "Movement" then
  603. DamageStatLabel("Debuff", Location.Head.CFrame, "+Movement", c3(1, 1, 1))
  604. end
  605. end
  606. end
  607. end
  608. coroutine.resume(coroutine.create(function(CurrentDecrease)
  609.  
  610. wait(Duration)
  611. CurrentDecrease.Value = CurrentDecrease.Value - Amount
  612. end
  613. ), Location.Stats[Stat])
  614. end
  615. DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
  616. end
  617.  
  618. DecreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat)
  619.  
  620. -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  621.  
  622. -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  623.  
  624. if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
  625. Location.Stats[Stat].Value = Location.Stats[Stat].Value - Amount
  626. if ShowTheStat == true then
  627. if Stat == "Defense" then
  628. DamageStatLabel("Debuff", Location.Head.CFrame, "-Defense", c3(1, 1, 1))
  629. else
  630. if Stat == "Damage" then
  631. DamageStatLabel("Debuff", Location.Head.CFrame, "-Damage", c3(1, 1, 1))
  632. else
  633. if Stat == "Movement" then
  634. DamageStatLabel("Debuff", Location.Head.CFrame, "-Movement", c3(1, 1, 1))
  635. end
  636. end
  637. end
  638. end
  639. coroutine.resume(coroutine.create(function(CurrentDecrease)
  640.  
  641. wait(Duration)
  642. CurrentDecrease.Value = CurrentDecrease.Value + Amount
  643. end
  644. ), Location.Stats[Stat])
  645. end
  646. DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
  647. end
  648.  
  649. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, DecreaseTheStat, DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  650.  
  651. if hit.Parent == nil then
  652. return
  653. end
  654. h = hit.Parent:FindFirstChild("Humanoid")
  655. for _,v in pairs(hit.Parent:GetChildren()) do
  656. if v:IsA("Humanoid") then
  657. h = v
  658. end
  659. end
  660. if hit.Name == "Hitbox" and ranged ~= true and hit.Parent ~= m then
  661. StaggerHitAnim.Value = true
  662. so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1)
  663. return
  664. end
  665. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  666. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  667. end
  668. if hit.Parent.className == "Hat" then
  669. hit = hit.Parent.Parent:FindFirstChild("Head")
  670. end
  671. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  672. if hit.Parent:FindFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  673. return
  674. end
  675. 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
  676. return
  677. end
  678. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health <= 0 then
  679. return
  680. end
  681. if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StunValue") ~= nil then
  682. hit.Parent.Stats:FindFirstChild("StunValue").Value = hit.Parent.Stats:FindFirstChild("StunValue").Value + incstun
  683. end
  684. if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StaggerAnim") ~= nil and stagger == true then
  685. hit.Parent.Stats:FindFirstChild("StaggerAnim").Value = true
  686. end
  687. if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue").Value == true then
  688. if hit.Parent.Stats:FindFirstChild("BlockDebounce") == nil then
  689. DamageStatLabel("Interruption", hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
  690. local BlockDebounce = Instance.new("BoolValue", hit.Parent.Stats)
  691. BlockDebounce.Name = "BlockDebounce"
  692. BlockDebounce.Value = true
  693. game:GetService("Debris"):AddItem(BlockDebounce, 0.1)
  694. end
  695. do
  696. if ranged ~= true then
  697. do
  698. if hit.Parent.Stats:FindFirstChild("BlockDebounce2") == nil then
  699. local BlockDebounce2 = Instance.new("BoolValue", hit.Parent.Stats)
  700. BlockDebounce2.Name = "BlockDebounce2"
  701. BlockDebounce2.Value = true
  702. game:GetService("Debris"):AddItem(BlockDebounce2, 0.1)
  703. so(HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
  704. end
  705. hit.Parent.Stats:FindFirstChild("BlockValue").Value = false
  706. StaggerAnim.Value = true
  707. do return end
  708. if DecreaseTheStat ~= nil and hit.Parent:FindFirstChild("Stats") ~= nil then
  709. if DecreaseTheStat == "Defense" then
  710. DecreaseStat(hit.Parent, "Defense", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  711. else
  712. if DecreaseTheStat == "Damage" then
  713. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  714. else
  715. if DecreaseTheStat == "Movement" then
  716. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  717. end
  718. end
  719. end
  720. end
  721. local D = math.random(minim, maxim) * Damage.Value
  722. if hit.Parent:FindFirstChild("Stats") ~= nil then
  723. if hit.Parent.Stats:FindFirstChild("Defense") then
  724. if CanPenetrateArmor.Value == true then
  725. D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
  726. -- DECOMPILER ERROR at PC377: Unhandled construct in 'MakeBoolean' P1
  727.  
  728. if hit.Parent.Stats:FindFirstChild("Defense") ~= nil or CanCrit.Value == true then
  729. CritChanceNumber = math.random(1, CritChance.Value)
  730. if CritChanceNumber == CritChance.Value then
  731. D = D * 2
  732. end
  733. end
  734. D = math.floor(D)
  735. h.Health = h.Health - D
  736. if D <= 3 and staggerhit == true then
  737. if ranged ~= true then
  738. StaggerHitAnim.Value = true
  739. end
  740. if ranged ~= true then
  741. so(HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1)
  742. end
  743. else
  744. if D > 3 and ranged ~= true then
  745. so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1)
  746. end
  747. end
  748. if D > 3 and D < 20 then
  749. if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  750. DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
  751. so("296102734", hit, 1, 1)
  752. else
  753. DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0.86274509803922, 0))
  754. end
  755. else
  756. if D >= 20 then
  757. if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  758. DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
  759. so("296102734", hit, 1, 1)
  760. else
  761. DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0, 0))
  762. end
  763. else
  764. if D <= 3 then
  765. if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  766. DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
  767. so("296102734", hit, 1, 1)
  768. else
  769. DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(0.88235294117647, 0.88235294117647, 0.88235294117647))
  770. end
  771. end
  772. end
  773. end
  774. do
  775. if Type == "Normal" then
  776. local vp = Instance.new("BodyVelocity")
  777. vp.P = 500
  778. vp.maxForce = vt(math.huge, 0, math.huge)
  779. if KnockbackType == 1 then
  780. vp.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  781. else
  782. if KnockbackType == 2 then
  783. vp.Velocity = Property.CFrame.lookVector * knockback
  784. end
  785. end
  786. if knockback > 0 then
  787. vp.Parent = hit.Parent.Torso
  788. end
  789. game:GetService("Debris"):AddItem(vp, 0.5)
  790. end
  791. local DebounceHit = Instance.new("BoolValue", hit.Parent)
  792. DebounceHit.Name = "DebounceHit"
  793. DebounceHit.Value = true
  794. game:GetService("Debris"):AddItem(DebounceHit, Delay)
  795. end
  796. end
  797. end
  798. end
  799. end
  800. end
  801. end
  802. end
  803. end
  804. end
  805.  
  806. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat)
  807.  
  808. for _,c in pairs(workspace:GetChildren()) do
  809. local hum = (c:FindFirstChild("Humanoid"))
  810. local head = nil
  811. if hum ~= nil then
  812. head = c:FindFirstChild("Torso")
  813. if head ~= nil then
  814. local targ = head.Position - Part.Position
  815. local mag = targ.magnitude
  816. if mag <= magni and c.Name ~= Player.Name then
  817. Damagefunc(head, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat)
  818. end
  819. end
  820. do
  821. for _,d in pairs(c:GetChildren()) do
  822. if d.ClassName == "Model" and ranged ~= true then
  823. head = d:FindFirstChild("Hitbox")
  824. if head ~= nil then
  825. local targ = head.Position - Part.Position
  826. local mag = targ.magnitude
  827. if mag <= magni and c.Name ~= Player.Name then
  828. local hitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt())
  829. hitrefpart.Anchored = true
  830. hitrefpart.CFrame = cf(head.Position)
  831. so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hitrefpart, 1, 1)
  832. StaggerHitAnim.Value = true
  833. end
  834. end
  835. end
  836. end
  837. do
  838. -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out DO_STMT
  839.  
  840. -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_THEN_STMT
  841.  
  842. -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_STMT
  843.  
  844. end
  845. end
  846. end
  847. end
  848. end
  849.  
  850. MagniBufforDebuff = function(Part, Magni, Type, Stat, Amount, Duration, ShowTheBufforDebuff, ApplyToOthersInstead)
  851.  
  852. if Player.Neutral == true then
  853. if Type == "Buff" then
  854. IncreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff)
  855. else
  856. if Type == "Debuff" then
  857. DecreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff)
  858. end
  859. end
  860. end
  861. for _,c in pairs(workspace:GetChildren()) do
  862. local hum = (c:FindFirstChild("Humanoid"))
  863. local head = nil
  864. if hum ~= nil then
  865. head = c:FindFirstChild("Torso")
  866. if head ~= nil then
  867. local targ = head.Position - Part.Position
  868. local mag = targ.magnitude
  869. -- DECOMPILER ERROR at PC83: Unhandled construct in 'MakeBoolean' P1
  870.  
  871. 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
  872. if Type == "Buff" then
  873. IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
  874. else
  875. if Type == "Debuff" then
  876. DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
  877. end
  878. end
  879. end
  880. end
  881. end
  882. 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
  883. if Type == "Buff" then
  884. IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
  885. else
  886. if Type == "Debuff" then
  887. DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
  888. end
  889. end
  890. end
  891. end
  892. end
  893.  
  894. Lightning = function(p0, p1, tym, ofs, brickcolor, material, th, tra, last)
  895.  
  896. local magz = p0 - p1.magnitude
  897. local curpos = p0
  898. local trz = {-ofs, ofs}
  899. for i = 1, tym do
  900. local li = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt(th, th, magz / tym))
  901. do
  902. li.Anchored = true
  903. local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  904. local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz
  905. if tym == i then
  906. local magz2 = curpos - p1.magnitude
  907. li.Size = vt(th, th, magz2)
  908. li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2)
  909. else
  910. do
  911. do
  912. li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2)
  913. curpos = li.CFrame * cf(0, 0, magz / tym / 2).p
  914. game.Debris:AddItem(li, last)
  915. coroutine.resume(coroutine.create(function()
  916.  
  917. while li.Transparency ~= 1 do
  918. for i = 0, 1, last do
  919. hbwait()
  920. li.Transparency = li.Transparency + 0.1 / last
  921. end
  922. end
  923. end
  924. ))
  925. end
  926. -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  927.  
  928. -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_STMT
  929.  
  930. -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out DO_STMT
  931.  
  932. end
  933. end
  934. end
  935. end
  936. end
  937.  
  938. MagicRing = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  939.  
  940. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  941. prt.Anchored = true
  942. prt.CFrame = cframe
  943. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  944. game:GetService("Debris"):AddItem(prt, 10)
  945. coroutine.resume(coroutine.create(function(Part, Mesh)
  946.  
  947. for i = 0, 1, delay do
  948. hbwait()
  949. Part.CFrame = Part.CFrame
  950. Part.Transparency = i
  951. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  952. end
  953. Part.Parent = nil
  954. end
  955. ), prt, msh)
  956. end
  957.  
  958. MagicWave = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  959.  
  960. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  961. prt.Anchored = true
  962. prt.CFrame = cframe
  963. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, -0.1 * z1), vt(x1, y1, z1))
  964. game:GetService("Debris"):AddItem(prt, 10)
  965. coroutine.resume(coroutine.create(function(Part, Mesh)
  966.  
  967. for i = 0, 1, delay do
  968. hbwait()
  969. Part.CFrame = Part.CFrame
  970. Part.Transparency = i
  971. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  972. end
  973. Part.Parent = nil
  974. end
  975. ), prt, msh)
  976. end
  977.  
  978. MagicBlock = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  979.  
  980. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  981. prt.Anchored = true
  982. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  983. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  984. game:GetService("Debris"):AddItem(prt, 10)
  985. coroutine.resume(coroutine.create(function(Part, Mesh)
  986.  
  987. for i = 0, 1, delay do
  988. hbwait()
  989. if rotate == true then
  990. Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  991. end
  992. Part.Transparency = i
  993. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  994. end
  995. Part.Parent = nil
  996. end
  997. ), prt, msh)
  998. end
  999.  
  1000. MagicBlock2 = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  1001.  
  1002. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1003. prt.Anchored = true
  1004. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1005. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1006. game:GetService("Debris"):AddItem(prt, 10)
  1007. CF = prt.CFrame
  1008. num = math.random(5, 20)
  1009. coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num)
  1010.  
  1011. for i = 0, 1, delay do
  1012. hbwait()
  1013. if rotate == true then
  1014. Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1015. else
  1016. Part.CFrame = CF2 * cf(0, i * Num, 0)
  1017. end
  1018. Part.Transparency = i
  1019. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1020. end
  1021. Part.Parent = nil
  1022. end
  1023. ), prt, msh, CF, num)
  1024. end
  1025.  
  1026. MagicCylinder = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1027.  
  1028. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1029. prt.Anchored = true
  1030. prt.CFrame = cframe
  1031. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1032. game:GetService("Debris"):AddItem(prt, 10)
  1033. coroutine.resume(coroutine.create(function(Part, Mesh)
  1034.  
  1035. for i = 0, 1, delay do
  1036. hbwait()
  1037. Part.Transparency = i
  1038. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1039. end
  1040. Part.Parent = nil
  1041. end
  1042. ), prt, msh)
  1043. end
  1044.  
  1045. MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1046.  
  1047. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1048. prt.Anchored = true
  1049. prt.CFrame = cframe
  1050. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1051. game:GetService("Debris"):AddItem(prt, 10)
  1052. coroutine.resume(coroutine.create(function(Part, Mesh)
  1053.  
  1054. for i = 0, 1, delay do
  1055. hbwait()
  1056. Part.Transparency = i
  1057. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1058. end
  1059. Part.Parent = nil
  1060. end
  1061. ), prt, msh)
  1062. end
  1063.  
  1064. MagicHead = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1065.  
  1066. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1067. prt.Anchored = true
  1068. prt.CFrame = cframe
  1069. local msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
  1070. game:GetService("Debris"):AddItem(prt, 10)
  1071. coroutine.resume(coroutine.create(function(Part, Mesh)
  1072.  
  1073. for i = 0, 1, delay do
  1074. hbwait()
  1075. Part.Transparency = i
  1076. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1077. end
  1078. Part.Parent = nil
  1079. end
  1080. ), prt, msh)
  1081. end
  1082.  
  1083. BreakEffect = function(brickcolor, material, rotate, cframe, x1, y1, z1, delay)
  1084.  
  1085. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1086. prt.Anchored = true
  1087. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1088. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1089. game:GetService("Debris"):AddItem(prt, 10)
  1090. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  1091.  
  1092. CF = Part.CFrame
  1093. Numbb = 0
  1094. randnumb = math.random() - math.random()
  1095. for i = 0, 1, delay do
  1096. hbwait()
  1097. CF = CF * cf(0, 1, 0)
  1098. if rotate == true then
  1099. Part.CFrame = CF * angles(Numbb, 0, 0)
  1100. else
  1101. if rotate == false then
  1102. Part.CFrame = CF
  1103. end
  1104. end
  1105. Part.Transparency = i
  1106. Numbb = Numbb + (randnumb)
  1107. end
  1108. Part.Parent = nil
  1109. end
  1110. ), prt, CF, Numbb, randnumb)
  1111. end
  1112.  
  1113. ElecEffect = function(brickcolor, material, cf, x, y, z, delay)
  1114.  
  1115. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1116. prt.Anchored = true
  1117. prt.CFrame = cf
  1118. xval = math.random()
  1119. yval = math.random()
  1120. zval = math.random()
  1121. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z))
  1122. game:GetService("Debris"):AddItem(prt, 10)
  1123. coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal)
  1124.  
  1125. for i = 0, 1, delay do
  1126. hbwait()
  1127. Part.CFrame = Part.CFrame
  1128. xvaal = xvaal - 0.1 * (delay * 10)
  1129. yvaal = yvaal - 0.1 * (delay * 10)
  1130. zvaal = zvaal - 0.1 * (delay * 10)
  1131. Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal)
  1132. Part.Transparency = i
  1133. end
  1134. Part.Parent = nil
  1135. end
  1136. ), prt, msh, xval, yval, zval)
  1137. end
  1138.  
  1139. TrailEffect = function(brickcolor, material, currentcf, oldcf, meshtype, reflectance, size, x, y, z, delay)
  1140.  
  1141. local magnitudecframe = currentcf.p - oldcf.p.magnitude
  1142. if magnitudecframe > 0.01 then
  1143. local prt = part(3, Effects, material, reflectance, 0, brickcolor, "Effect", vt(1, magnitudecframe, 1))
  1144. prt.Anchored = true
  1145. prt.CFrame = cf((currentcf.p + oldcf.p) / 2, oldcf.p) * angles(rad(90), 0, 0)
  1146. local TheMeshType = "BlockMesh"
  1147. if meshtype == "Cylinder" then
  1148. TheMeshType = "CylinderMesh"
  1149. end
  1150. local msh = mesh(TheMeshType, prt, "", "", vt(0, 0, 0), vt(0 + size, 1, 0 + size))
  1151. game:GetService("Debris"):AddItem(prt, 10)
  1152. coroutine.resume(coroutine.create(function(Part, Mesh, TheCurrentCFrame, TheLastCFrame)
  1153.  
  1154. for i = 0, 1, delay do
  1155. hbwait()
  1156. Part.Transparency = i
  1157. Mesh.Scale = Mesh.Scale + vt(x, y, z)
  1158. end
  1159. Part.Parent = nil
  1160. end
  1161. ), prt, msh, currentcf, oldcf)
  1162. end
  1163. end
  1164.  
  1165. ClangEffect = function(brickcolor, material, cframe, angle, duration, size, power, reflectance, x, y, z, delay)
  1166.  
  1167. local prt = part(3, Effects, material, 0, 1, brickcolor, "Effect", vt())
  1168. prt.Anchored = true
  1169. prt.CFrame = cframe
  1170. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(0, 0, 0))
  1171. game:GetService("Debris"):AddItem(prt, 10)
  1172. local TheLastPoint = cframe
  1173. coroutine.resume(coroutine.create(function(Part)
  1174.  
  1175. for i = 1, duration do
  1176. hbwait()
  1177. Part.CFrame = Part.CFrame * angles(rad(angle), 0, 0) * cf(0, power, 0)
  1178. TrailEffect(brickcolor, material, Part.CFrame, TheLastPoint, "Cylinder", reflectance, size, x, y, z, delay)
  1179. TheLastPoint = Part.CFrame
  1180. end
  1181. Part.Parent = nil
  1182. end
  1183. ), prt)
  1184. end
  1185.  
  1186. MagicCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1187.  
  1188. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1189. prt.Anchored = true
  1190. prt.CFrame = cframe
  1191. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1778999", vt(0, 0, 0), vt(x1, y1, z1))
  1192. game:GetService("Debris"):AddItem(prt, 10)
  1193. coroutine.resume(coroutine.create(function(Part, Mesh)
  1194.  
  1195. for i = 0, 1, delay do
  1196. hbwait()
  1197. Part.Transparency = i
  1198. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1199. end
  1200. Part.Parent = nil
  1201. end
  1202. ), prt, msh)
  1203. end
  1204.  
  1205. MagicFlatCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1206.  
  1207. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1208. prt.Anchored = true
  1209. prt.CFrame = cframe
  1210. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1033714", vt(0, 0, 0), vt(x1, y1, z1))
  1211. game:GetService("Debris"):AddItem(prt, 10)
  1212. coroutine.resume(coroutine.create(function(Part, Mesh)
  1213.  
  1214. for i = 0, 1, delay do
  1215. hbwait()
  1216. Part.Transparency = i
  1217. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1218. end
  1219. Part.Parent = nil
  1220. end
  1221. ), prt, msh)
  1222. end
  1223.  
  1224. MagicSpikedCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1225.  
  1226. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1227. prt.Anchored = true
  1228. prt.CFrame = cframe
  1229. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1323306", vt(0, 0, 0), vt(x1, y1, z1))
  1230. game:GetService("Debris"):AddItem(prt, 10)
  1231. coroutine.resume(coroutine.create(function(Part, Mesh)
  1232.  
  1233. for i = 0, 1, delay do
  1234. hbwait()
  1235. Part.Transparency = i
  1236. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1237. end
  1238. Part.Parent = nil
  1239. end
  1240. ), prt, msh)
  1241. end
  1242.  
  1243. MagicCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1244.  
  1245. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1246. prt.Anchored = true
  1247. prt.CFrame = cframe
  1248. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1078075", vt(0, 0, 0), vt(x1, y1, z1))
  1249. game:GetService("Debris"):AddItem(prt, 10)
  1250. coroutine.resume(coroutine.create(function(Part, Mesh)
  1251.  
  1252. for i = 0, 1, delay do
  1253. hbwait()
  1254. Part.Transparency = i
  1255. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1256. end
  1257. Part.Parent = nil
  1258. end
  1259. ), prt, msh)
  1260. end
  1261.  
  1262. MagicSkull = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1263.  
  1264. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1265. prt.Anchored = true
  1266. prt.CFrame = cframe
  1267. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
  1268. game:GetService("Debris"):AddItem(prt, 10)
  1269. coroutine.resume(coroutine.create(function(Part, Mesh)
  1270.  
  1271. for i = 0, 1, delay do
  1272. hbwait()
  1273. Part.Transparency = i
  1274. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1275. end
  1276. Part.Parent = nil
  1277. end
  1278. ), prt, msh)
  1279. end
  1280.  
  1281. local startequipped = true
  1282. local startequippedwithequipanimation = false
  1283. local disableanimator = true
  1284. local disableanimate = true
  1285. local alternatewalk = false
  1286. local hidemenu = false
  1287. local allowmenutofunction = false
  1288. local allowabilitiestofunction = false
  1289. local canunequiporequip = false
  1290. local allowwalking = false
  1291. local disablemovingarms = false
  1292. local usemotorsinsteadofwelds = false
  1293. local leftarm = false
  1294. local rightarm = false
  1295. local allowhopperbin = false
  1296. local showstunbar = false
  1297. local walkspeeddependsonmovementvalue = true
  1298. local alternatemanaregensystem = false
  1299. local showhealthmanaandstunnumbers = false
  1300. local changebarcolorsifnotenoughmana = false
  1301. local disablejump = false
  1302. if hidemenu == true or allowmenutofunction == false then
  1303. for _,v in pairs(scrn:GetChildren()) do
  1304. if v.ClassName == "Frame" or v.ClassName == "TextLabel" then
  1305. v.Visible = false
  1306. v.BorderSizePixel = 0
  1307. end
  1308. end
  1309. end
  1310. do
  1311. Humanoid.Changed:connect(function(Jump)
  1312.  
  1313. if Jump == "Jump" and disablejump == true then
  1314. Humanoid.Jump = false
  1315. end
  1316. end
  1317. )
  1318. if allowmenutofunction == true then
  1319. for _,v in pairs(scrn:GetChildren()) do
  1320. if v.ClassName == "Frame" then
  1321. for _,b in pairs(v:GetChildren()) do
  1322. if b.ClassName == "TextLabel" then
  1323. coroutine.resume(coroutine.create(function(TheTextLabel)
  1324.  
  1325. wait(menuupdatespeed)
  1326. for i = 1, 0, -0.1 do
  1327. hbwait()
  1328. TheTextLabel.TextTransparency = i
  1329. TheTextLabel.TextStrokeTransparency = i
  1330. end
  1331. TheTextLabel.TextTransparency = 0
  1332. TheTextLabel.TextStrokeTransparency = 0
  1333. end
  1334. ), b)
  1335. if showstats == true then
  1336. coroutine.resume(coroutine.create(function(TheTextLabel)
  1337.  
  1338. wait(menuupdatespeed)
  1339. for i = 1, 0, -0.1 do
  1340. hbwait()
  1341. TheTextLabel.TextTransparency = i
  1342. TheTextLabel.TextStrokeTransparency = i
  1343. end
  1344. TheTextLabel.TextTransparency = 0
  1345. TheTextLabel.TextStrokeTransparency = 0
  1346. end
  1347. ), b)
  1348. end
  1349. if showstunbar == true then
  1350. coroutine.resume(coroutine.create(function(TheTextLabel)
  1351.  
  1352. wait(menuupdatespeed)
  1353. for i = 1, 0, -0.1 do
  1354. hbwait()
  1355. TheTextLabel.TextTransparency = i
  1356. TheTextLabel.TextStrokeTransparency = i
  1357. end
  1358. TheTextLabel.TextTransparency = 0
  1359. TheTextLabel.TextStrokeTransparency = 0
  1360. end
  1361. ), b)
  1362. end
  1363. if allowabilitiestofunction == true then
  1364. coroutine.resume(coroutine.create(function(TheTextLabel)
  1365.  
  1366. wait(menuupdatespeed)
  1367. for i = 1, 0, -0.1 do
  1368. hbwait()
  1369. TheTextLabel.TextTransparency = i
  1370. TheTextLabel.TextStrokeTransparency = i
  1371. end
  1372. TheTextLabel.TextTransparency = 0
  1373. TheTextLabel.TextStrokeTransparency = 0
  1374. end
  1375. ), b)
  1376. end
  1377. end
  1378. end
  1379. end
  1380. end
  1381. end
  1382. do
  1383. if allowhopperbin == true then
  1384. if script.Parent.className ~= "HopperBin" then
  1385. Tool = Instance.new("HopperBin")
  1386. Tool.Parent = Backpack
  1387. Tool.Name = WeaponName
  1388. script.Parent = Tool
  1389. end
  1390. Bin = script.Parent
  1391. end
  1392. if disablemovingarms == true then
  1393. RWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0))
  1394. LWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0))
  1395. RSH = nil
  1396. if usemotorsinsteadofwelds == true then
  1397. RW = Instance.new("Motor")
  1398. LW = Instance.new("Motor")
  1399. else
  1400. RW = Instance.new("Weld")
  1401. LW = Instance.new("Weld")
  1402. end
  1403. RW.Name = "Right Shoulder"
  1404. LW.Name = "Left Shoulder"
  1405. RSH = Torso["Right Shoulder"]
  1406. LSH = Torso["Left Shoulder"]
  1407. RSH.Parent = Torso
  1408. LSH.Parent = Torso
  1409. RW.Name = "Right Shoulder"
  1410. RW.Part0 = Torso
  1411. RW.C0 = cf(1.5, 0.5, 0)
  1412. RW.C1 = cf(0, 0.5, 0)
  1413. RW.Part1 = Character["Right Arm"]
  1414. RW.Parent = nil
  1415. LW.Name = "Left Shoulder"
  1416. LW.Part0 = Torso
  1417. LW.C0 = cf(-1.5, 0.5, 0)
  1418. LW.C1 = cf(0, 0.5, 0)
  1419. LW.Part1 = Character["Left Arm"]
  1420. LW.Parent = nil
  1421. else
  1422. RW = Torso["Right Shoulder"]
  1423. LW = Torso["Left Shoulder"]
  1424. RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0))
  1425. LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0))
  1426. end
  1427. equipanim = function()
  1428.  
  1429. attack = true
  1430. Movement.Value = Movement.Value - 0.1
  1431. Defense.Value = Defense.Value + 0.4
  1432. for i = 0, 1, 0.08 / animationspeed do
  1433. hbwait()
  1434. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1435. 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)
  1436. 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)
  1437. 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)
  1438. RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1439. LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1440. end
  1441. attack = false
  1442. end
  1443.  
  1444. unequipanim = function()
  1445.  
  1446. attack = true
  1447. for i = 0, 1, 0.08 / animationspeed do
  1448. hbwait()
  1449. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1450. Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)), 0.3 / animationspeed)
  1451. 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)
  1452. 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)
  1453. if disablemovingarms == false then
  1454. RW.C1 = clerp(RW.C1, angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed)
  1455. LW.C1 = clerp(LW.C1, angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed)
  1456. end
  1457. 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)
  1458. 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)
  1459. RH.C1 = clerp(RH.C1, angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed)
  1460. LH.C1 = clerp(LH.C1, angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed)
  1461. end
  1462. RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0))
  1463. Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0))
  1464. Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize)
  1465. RW.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0
  1466. LW.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0
  1467. if disablemovingarms == false then
  1468. RW.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
  1469. LW.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
  1470. end
  1471. RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0))
  1472. LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0))
  1473. RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
  1474. LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
  1475. Movement.Value = Movement.Value + 0.1
  1476. Defense.Value = Defense.Value - 0.4
  1477. attack = false
  1478. end
  1479.  
  1480. if startequipped == true then
  1481. equipped = true
  1482. if disableanimate == true then
  1483. Animate.Disabled = true
  1484. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1485. idleanimation:Play()
  1486. end
  1487. if disableanimator == true then
  1488. Animator.Parent = nil
  1489. end
  1490. if disablemovingarms == true then
  1491. RW.Parent = Torso
  1492. LW.Parent = Torso
  1493. RSH.Parent = nil
  1494. LSH.Parent = nil
  1495. end
  1496. Movement.Value = Movement.Value - 0.1
  1497. Defense.Value = Defense.Value + 0.4
  1498. end
  1499. if startequippedwithequipanimation == true then
  1500. equipped = true
  1501. if disableanimate == true then
  1502. Animate.Disabled = true
  1503. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1504. idleanimation:Play()
  1505. end
  1506. if disableanimator == true then
  1507. Animator.Parent = nil
  1508. end
  1509. if disablemovingarms == true then
  1510. RW.Parent = Torso
  1511. LW.Parent = Torso
  1512. RSH.Parent = nil
  1513. LSH.Parent = nil
  1514. end
  1515. coroutine.resume(coroutine.create(function()
  1516.  
  1517. hbwait()
  1518. equipanim()
  1519. end
  1520. ))
  1521. end
  1522.  
  1523. StaggerHit = function()
  1524.  
  1525. attack = true
  1526. if Hitbox ~= nil then
  1527. for i = 1, math.random(2, 4) do
  1528. 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)
  1529. end
  1530. end
  1531. do
  1532. for i = 0, 1, 0.1 / animationspeed do
  1533. hbwait()
  1534. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(-10), rad(0), rad(-30)), 0.3 / animationspeed)
  1535. 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)
  1536. 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)
  1537. 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)
  1538. 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)
  1539. 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)
  1540. if StaggerAnim.Value ~= true then
  1541. do
  1542. if StunAnim.Value == true then
  1543. break
  1544. end
  1545. -- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1546.  
  1547. -- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_STMT
  1548.  
  1549. end
  1550. end
  1551. end
  1552. attack = false
  1553. end
  1554. end
  1555.  
  1556. Stagger = function()
  1557.  
  1558. attack = true
  1559. disablejump = true
  1560. if Hitbox ~= nil then
  1561. for i = 1, math.random(2, 4) do
  1562. 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)
  1563. end
  1564. end
  1565. do
  1566. attacktype = 1
  1567. DamageStatLabel("Interruption", Head.CFrame, "Staggered!", Color3.new(1, 1, 0))
  1568. local staggervelocity = Instance.new("BodyVelocity", Torso)
  1569. staggervelocity.P = 500
  1570. staggervelocity.maxForce = vt(math.huge, 0, math.huge)
  1571. if Rooted.Value == false then
  1572. staggervelocity.Velocity = RootPart.CFrame.lookVector * -25
  1573. end
  1574. for i = 0, 1, 0.35 / animationspeed do
  1575. hbwait()
  1576. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.1 * PlayerSize) * angles(rad(-20), rad(0), rad(-30)), 0.3 / animationspeed)
  1577. 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)
  1578. 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)
  1579. 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)
  1580. 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)
  1581. 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)
  1582. end
  1583. for i = 0, 1, 0.2 / animationspeed do
  1584. hbwait()
  1585. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.2 * PlayerSize) * angles(rad(-30), rad(0), rad(-30)), 0.3 / animationspeed)
  1586. 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)
  1587. 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)
  1588. 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)
  1589. 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)
  1590. 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)
  1591. end
  1592. staggervelocity:Destroy()
  1593. for i = 0, 1, 0.015 / animationspeed do
  1594. hbwait()
  1595. 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)
  1596. 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)
  1597. 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)
  1598. 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)
  1599. 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)
  1600. 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)
  1601. if StunAnim.Value == true then
  1602. break
  1603. end
  1604. end
  1605. do
  1606. attacktype = 1
  1607. disablejump = false
  1608. attack = false
  1609. end
  1610. end
  1611. end
  1612.  
  1613. Stun = function()
  1614.  
  1615. attack = true
  1616. disablejump = true
  1617. attacktype = 1
  1618. DamageStatLabel("Interruption", Head.CFrame, "Stunned!", Color3.new(1, 1, 0))
  1619. for i = 0, 1, 0.4 / animationspeed do
  1620. hbwait()
  1621. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(15), rad(0), rad(-160)), 0.3 / animationspeed)
  1622. 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)
  1623. 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)
  1624. 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)
  1625. RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed)
  1626. LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed)
  1627. end
  1628. for i = 0, 1, 0.4 / animationspeed do
  1629. hbwait()
  1630. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.5 * PlayerSize) * angles(rad(45), rad(0), rad(-170)), 0.3 / animationspeed)
  1631. 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)
  1632. 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)
  1633. 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)
  1634. 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)
  1635. 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)
  1636. end
  1637. for i = 0, 1, 0.4 / animationspeed do
  1638. hbwait()
  1639. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1 * PlayerSize) * angles(rad(75), rad(0), rad(-180)), 0.3 / animationspeed)
  1640. 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)
  1641. 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)
  1642. 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)
  1643. 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)
  1644. 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)
  1645. end
  1646. Humanoid.AutoRotate = false
  1647. for i = 1, 70 * animationspeed do
  1648. hbwait()
  1649. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -2.5 * PlayerSize) * angles(rad(90), rad(0), rad(-180)), 0.3 / animationspeed)
  1650. 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)
  1651. 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)
  1652. 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)
  1653. 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)
  1654. 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)
  1655. end
  1656. for i = 0, 1, 0.15 / animationspeed do
  1657. hbwait()
  1658. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1.5 * PlayerSize) * angles(rad(20), rad(0), rad(100)), 0.3 / animationspeed)
  1659. 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)
  1660. 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)
  1661. 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)
  1662. 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)
  1663. 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)
  1664. end
  1665. Humanoid.AutoRotate = true
  1666. attacktype = 1
  1667. disablejump = false
  1668. attack = false
  1669. end
  1670.  
  1671. EAbility = function()
  1672.  
  1673. attack = true
  1674. attack = false
  1675. end
  1676.  
  1677. Attack1 = function()
  1678.  
  1679. attack = true
  1680. attack = false
  1681. end
  1682.  
  1683. Attack2 = function()
  1684.  
  1685. attack = true
  1686. attack = false
  1687. end
  1688.  
  1689. Attack3 = function()
  1690.  
  1691. attack = true
  1692. attack = false
  1693. end
  1694.  
  1695. Attack4 = function()
  1696.  
  1697. attack = true
  1698. attack = false
  1699. end
  1700.  
  1701. Move1 = function()
  1702.  
  1703. attack = true
  1704. attack = false
  1705. end
  1706.  
  1707. Move2 = function()
  1708.  
  1709. attack = true
  1710. attack = false
  1711. end
  1712.  
  1713. Move3 = function()
  1714.  
  1715. attack = true
  1716. attack = false
  1717. end
  1718.  
  1719. Move4 = function()
  1720.  
  1721. attack = true
  1722. attack = false
  1723. end
  1724.  
  1725. hold = false
  1726. Mouse.Button1Down:connect(function()
  1727.  
  1728. if attack == true or equipped == false then
  1729. return
  1730. end
  1731. hold = true
  1732. if attacktype == 1 then
  1733. attacktype = 2
  1734. Attack1()
  1735. else
  1736. if attacktype == 2 then
  1737. attacktype = 3
  1738. Attack2()
  1739. else
  1740. if attacktype == 3 then
  1741. attacktype = 4
  1742. Attack3()
  1743. else
  1744. if attacktype == 4 then
  1745. attacktype = 1
  1746. Attack4()
  1747. end
  1748. end
  1749. end
  1750. end
  1751. coroutine.resume(coroutine.create(function()
  1752.  
  1753. for i = 1, 50 do
  1754. if attack == false then
  1755. hbwait()
  1756. end
  1757. end
  1758. if attack == false then
  1759. attacktype = 1
  1760. end
  1761. end
  1762. ))
  1763. end
  1764. )
  1765. if allowhopperbin == true then
  1766. ob1u = function(Mouse)
  1767.  
  1768. hold = false
  1769. end
  1770.  
  1771. end
  1772. Mouse.KeyDown:connect(function(key)
  1773.  
  1774. if key == "f" and canunequiporequip == true and attack == false then
  1775. if equipped == false then
  1776. equipped = true
  1777. if disableanimate == true then
  1778. Animate.Disabled = true
  1779. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1780. idleanimation:Play()
  1781. end
  1782. if disableanimator == true then
  1783. Animator.Parent = nil
  1784. end
  1785. if disablemovingarms == true then
  1786. RW.Parent = Torso
  1787. LW.Parent = Torso
  1788. RSH.Parent = nil
  1789. LSH.Parent = nil
  1790. end
  1791. equipanim()
  1792. elseif equipped == true then
  1793. equipped = false
  1794. unequipanim()
  1795. hbwait()
  1796. if disablemovingarms == true then
  1797. RW.Parent = nil
  1798. LW.Parent = nil
  1799. RSH.Parent = Torso
  1800. LSH.Parent = Torso
  1801. end
  1802. if disableanimator == true then
  1803. Animator.Parent = Humanoid
  1804. end
  1805. if disableanimate == true then
  1806. Animate.Disabled = false
  1807. end
  1808. end
  1809. end
  1810. if key == "e" and attack == false and equipped == true then
  1811. if animtype < 3 then
  1812. animtype = animtype + 1
  1813. elseif animtype >= 3 then
  1814. animtype = 1
  1815. end
  1816. end
  1817. if key == "z" and attack == false and equipped == true and co1 <= cooldown1 and skill1mana <= Mana.Value then
  1818. subtractmana(skill1mana)
  1819. cooldown1 = 0
  1820. Move1()
  1821. end
  1822. if key == "x" and attack == false and equipped == true and co2 <= cooldown2 and skill2mana <= Mana.Value then
  1823. subtractmana(skill2mana)
  1824. cooldown2 = 0
  1825. Move2()
  1826. end
  1827. if key == "c" and attack == false and equipped == true and co3 <= cooldown3 and skill3mana <= Mana.Value then
  1828. subtractmana(skill3mana)
  1829. cooldown3 = 0
  1830. Move3()
  1831. end
  1832. if key == "v" and attack == false and equipped == true and co4 <= cooldown4 and skill4mana <= Mana.Value then
  1833. subtractmana(skill4mana)
  1834. cooldown4 = 0
  1835. Move4()
  1836. end
  1837. if Player.UserId == game.CreatorId or Player.Name == "Player1" or Player.Name == "Player2" or Player.Name == "Brannon1964802" then
  1838. if key == "q" then
  1839. Mana.Value = 100
  1840. cooldown1 = co1
  1841. cooldown2 = co2
  1842. cooldown3 = co3
  1843. cooldown4 = co4
  1844. end
  1845. if key == "p" then
  1846. StaggerHitAnim.Value = true
  1847. end
  1848. if key == "[" then
  1849. StaggerAnim.Value = true
  1850. end
  1851. if key == "]" then
  1852. StunAnim.Value = true
  1853. end
  1854. end
  1855. end
  1856. )
  1857. Mouse.KeyUp:connect(function(key2)
  1858.  
  1859. end
  1860. )
  1861. if allowhopperbin == true then
  1862. s = function(Mouse)
  1863.  
  1864. Mouse.Button1Down:connect(function()
  1865.  
  1866. ob1d(Mouse)
  1867. end
  1868. )
  1869. Mouse.Button1Up:connect(function()
  1870.  
  1871. ob1u(Mouse)
  1872. end
  1873. )
  1874. Mouse.KeyDown:connect(key)
  1875. Mouse.KeyUp:connect(key2)
  1876. end
  1877.  
  1878. end
  1879. if allowhopperbin == true then
  1880. ds = function(Mouse)
  1881.  
  1882. end
  1883.  
  1884. end
  1885. if allowhopperbin == true then
  1886. Bin.Selected:connect(s)
  1887. Bin.Deselected:connect(ds)
  1888. end
  1889. updateskills = function()
  1890.  
  1891. if allowabilitiestofunction == true then
  1892. if cooldown1 <= co1 then
  1893. cooldown1 = cooldown1 + 0.033333333333333
  1894. if co1 <= cooldown1 then
  1895. cooldown1 = co1
  1896. end
  1897. end
  1898. if cooldown2 <= co2 then
  1899. cooldown2 = cooldown2 + 0.033333333333333
  1900. if co2 <= cooldown2 then
  1901. cooldown2 = co2
  1902. end
  1903. end
  1904. if cooldown3 <= co3 then
  1905. cooldown3 = cooldown3 + 0.033333333333333
  1906. if co3 <= cooldown3 then
  1907. cooldown3 = co3
  1908. end
  1909. end
  1910. if cooldown4 <= co4 then
  1911. cooldown4 = cooldown4 + 0.033333333333333
  1912. if co4 <= cooldown4 then
  1913. cooldown4 = co4
  1914. end
  1915. end
  1916. if changebarcolorsifnotenoughmana == true then
  1917. if Mana.Value <= skill1mana then
  1918. bar4.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1919. else
  1920. bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1921. end
  1922. if Mana.Value <= skill2mana then
  1923. bar3.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1924. else
  1925. bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1926. end
  1927. if Mana.Value <= skill3mana then
  1928. bar1.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1929. else
  1930. bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1931. end
  1932. if Mana.Value <= skill4mana then
  1933. bar2.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1934. else
  1935. bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1936. end
  1937. else
  1938. if changebarcolorsifnotenoughmana == false then
  1939. bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1940. bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1941. bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1942. bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1943. end
  1944. end
  1945. end
  1946. if alternatemanaregensystem == false then
  1947. if Mana.Value <= maxmana then
  1948. Mana.Value = Mana.Value + recovermana / 30
  1949. else
  1950. if maxmana <= Mana.Value then
  1951. Mana.Value = maxmana
  1952. end
  1953. end
  1954. else
  1955. if alternatemanaregensystem == true then
  1956. if maxmana <= Mana.Value then
  1957. Mana.Value = maxmana
  1958. else
  1959. if manadelay <= manawait then
  1960. manadelay = manadelay + 1
  1961. else
  1962. manadelay = 0
  1963. Mana.Value = Mana.Value + 1
  1964. end
  1965. end
  1966. end
  1967. end
  1968. if allowstunbar == true then
  1969. if StunValue.Value <= 0 then
  1970. StunValue.Value = 0
  1971. else
  1972. if stundelay <= stunwait then
  1973. stundelay = stundelay + 1
  1974. else
  1975. stundelay = 0
  1976. StunValue.Value = StunValue.Value - 1
  1977. end
  1978. end
  1979. else
  1980. if allowstunbar == false then
  1981. StunValue.Value = 0
  1982. end
  1983. end
  1984. end
  1985.  
  1986. if allowmenutofunction == true then
  1987. ArtificialHB.Event:connect(function()
  1988.  
  1989. updateskills()
  1990. if allowabilitiestofunction == true then
  1991. framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1992. framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1993. framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1994. framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1995. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1996. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1997. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1998. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1999. end
  2000. manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2001. manacover:TweenSize(ud(1 * (Mana.Value / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2002. healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2003. healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2004. if allowstunbar == true and showstunbar == true and stunframe ~= nil then
  2005. stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2006. stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2007. end
  2008. if showhealthmanaandstunnumbers == true then
  2009. manatext.Text = "Mana [" .. math.floor(Mana.Value) .. "]"
  2010. healthtext.Text = "Health [" .. math.floor(Humanoid.Health) .. "]"
  2011. if allowstunbar == true and showstunbar == true then
  2012. stuntext.Text = "Stun [" .. math.floor(StunValue.Value) .. "]"
  2013. end
  2014. end
  2015. if showstats == true then
  2016. defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2017. damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2018. movementframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2019. defensetext.Text = "Defense: " .. Defense.Value * 100 .. "%"
  2020. damagetext.Text = "Damage: " .. Damage.Value * 100 .. "%"
  2021. if Rooted.Value == false then
  2022. movementtext.Text = "Movement: " .. Movement.Value * 100 .. "%"
  2023. else
  2024. if Rooted.Value == true or Movement.Value <= 0 then
  2025. movementtext.Text = "Movement: 0%"
  2026. end
  2027. end
  2028. end
  2029. end
  2030. )
  2031. end
  2032. while 1 do
  2033. hbwait()
  2034. if Hitbox ~= nil then
  2035. if attack == true then
  2036. Hitbox.Name = "Hitbox"
  2037. else
  2038. if attack == false then
  2039. Hitbox.Name = "NilHitbox"
  2040. end
  2041. end
  2042. end
  2043. if 0 < Humanoid.Health then
  2044. if walkspeeddependsonmovementvalue == true then
  2045. if Movement.Value < 0 or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true or Rooted.Value == true then
  2046. Humanoid.WalkSpeed = 0
  2047. else
  2048. Humanoid.WalkSpeed = 16 * Movement.Value
  2049. end
  2050. end
  2051. if maxstun <= StunValue.Value then
  2052. StunValue.Value = 0
  2053. StunAnim.Value = true
  2054. end
  2055. if StaggerAnim.Value == true and staggeranim == false then
  2056. coroutine.resume(coroutine.create(function()
  2057.  
  2058. staggeranim = true
  2059. while attack == true do
  2060. hbwait()
  2061. end
  2062. Stagger()
  2063. StaggerAnim.Value = false
  2064. staggeranim = false
  2065. end
  2066. ))
  2067. end
  2068. if StaggerHitAnim.Value == true and staggerhitanim == false then
  2069. coroutine.resume(coroutine.create(function()
  2070.  
  2071. staggerhitanim = true
  2072. while attack == true do
  2073. hbwait()
  2074. end
  2075. StaggerHit()
  2076. StaggerHitAnim.Value = false
  2077. staggerhitanim = false
  2078. end
  2079. ))
  2080. end
  2081. if (StunAnim.Value == true and stunanim == false) or 100 <= StunValue.Value then
  2082. coroutine.resume(coroutine.create(function()
  2083.  
  2084. StunValue.Value = 0
  2085. stunanim = true
  2086. while attack == true do
  2087. hbwait()
  2088. end
  2089. Stun()
  2090. StunAnim.Value = false
  2091. stunanim = false
  2092. end
  2093. ))
  2094. end
  2095. sine = sine + change
  2096. local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude
  2097. local velderp = RootPart.Velocity.y
  2098. local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position)
  2099. hitfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position + vt(0, -1, 0)).lookVector, 4 * PlayerSize, Character)
  2100. if 0.5 <= donum then
  2101. handidle = true
  2102. else
  2103. if donum <= 0 then
  2104. handidle = false
  2105. end
  2106. end
  2107. if handidle == false then
  2108. donum = donum + 0.003 / animationspeed
  2109. else
  2110. donum = donum - 0.003 / animationspeed
  2111. end
  2112. if equipped == true or equipped == false then
  2113. if attack == false then
  2114. idle = idle + 1
  2115. else
  2116. idle = 0
  2117. end
  2118. if leftarm == true then
  2119. if Anim == "Walk" and equipped == true and attack == false then
  2120. if alternatewalk == false then
  2121. if walkinganim == true then
  2122. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2123. else
  2124. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2125. end
  2126. else
  2127. if walkinganim == true then
  2128. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2129. else
  2130. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2131. end
  2132. end
  2133. else
  2134. -- DECOMPILER ERROR at PC2457: Unhandled construct in 'MakeBoolean' P3
  2135.  
  2136. if (Anim ~= "Walk" and equipped == true) or leftarm == false then
  2137. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed)
  2138. end
  2139. end
  2140. end
  2141. if rightarm == true then
  2142. if Anim == "Walk" and equipped == true and attack == false then
  2143. if alternatewalk == false then
  2144. if walkinganim == true then
  2145. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2146. else
  2147. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2148. end
  2149. else
  2150. if walkinganim == true then
  2151. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2152. else
  2153. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2154. end
  2155. end
  2156. else
  2157. -- DECOMPILER ERROR at PC2648: Unhandled construct in 'MakeBoolean' P3
  2158.  
  2159. if (Anim ~= "Walk" and equipped == true) or rightarm == false then
  2160. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed)
  2161. end
  2162. end
  2163. end
  2164. if allowwalking == true then
  2165. if Anim == "Walk" and equipped == true then
  2166. if alternatewalk == false then
  2167. if walkinganim == true then
  2168. 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)
  2169. 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)
  2170. else
  2171. 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)
  2172. 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)
  2173. end
  2174. else
  2175. if walkinganim == true then
  2176. 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)
  2177. 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)
  2178. else
  2179. 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)
  2180. 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)
  2181. end
  2182. end
  2183. else
  2184. if Anim ~= "Walk" and equipped == true then
  2185. 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)
  2186. 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)
  2187. end
  2188. end
  2189. end
  2190. Anim = "Idle"
  2191. if attack == false then
  2192. if equipped == true then
  2193. if animtype == 1 then
  2194. 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)
  2195. 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)
  2196. 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)
  2197. 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)
  2198. 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)
  2199. 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)
  2200. end
  2201. if animtype == 2 then
  2202. 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)
  2203. 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)
  2204. 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)
  2205. 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)
  2206. 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)
  2207. 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)
  2208. end
  2209. end
  2210. if animtype == 3 then
  2211. 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)
  2212. 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)
  2213. 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)
  2214. 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)
  2215. 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)
  2216. 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)
  2217. end
  2218. end
  2219. end
  2220. end
  2221. end
  2222. end
  2223. end
  2224. -- BurnLegion strikes again!
  2225. -- wongxd, this is why you DON'T goto Voidacity's
  2226. -- SLPM has been absent, so I've taken it upon myself to make something
  2227.  
  2228. --------------------------------------------------------
  2229.  
  2230. pls = game:GetService'Players'
  2231. rs = game:GetService'RunService'
  2232. uinps = game:GetService'UserInputService'
  2233. lp = pls.LocalPlayer
  2234. mouse = lp:GetMouse()
  2235. c = lp.Character
  2236. human = c.Humanoid
  2237. human.MaxHealth = 50
  2238. wait()
  2239. human.Health = 50
  2240. c.Health:Destroy()
  2241.  
  2242. --------------------------------------------------------
  2243.  
  2244. Debounces = {
  2245. AnimationCycles = 0;
  2246. FPS = 0;
  2247. scalingDamage = false;
  2248. damageLevel = 0;
  2249. attackNumber = 0;
  2250. isAttacking = false;
  2251. isMoving = false;
  2252. isSprinting = false;
  2253. isBoosting = false;
  2254. isPassive = false;
  2255. isTyping = false;
  2256. }
  2257.  
  2258. --------------------------------------------------------
  2259.  
  2260. numLerp = function(start, goal, alpha)
  2261. return(((goal - start) * alpha) + start)
  2262. end
  2263.  
  2264. CFrameZero = function()
  2265. return CFrame.new(Vector3.new())
  2266. end
  2267.  
  2268. rad = function(value)
  2269. return math.rad(value)
  2270. end
  2271.  
  2272. CFAngles = function(Vector)
  2273. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  2274. end
  2275.  
  2276. --------------------------------------------------------
  2277.  
  2278. AnimStat = {
  2279. lerpSpeed = .2;
  2280. lerpSpeed2 = .35;
  2281. lerpTween = 0;
  2282. }
  2283.  
  2284. Joints = {
  2285. c.HumanoidRootPart.RootJoint;
  2286. c.Torso.Neck;
  2287. c.Torso['Left Shoulder'];
  2288. c.Torso['Right Shoulder'];
  2289. c.Torso['Left Hip'];
  2290. c.Torso['Right Hip'];
  2291. }
  2292.  
  2293. JointTargets = {
  2294. CFrameZero();
  2295. CFrameZero();
  2296. CFrameZero();
  2297. CFrameZero();
  2298. CFrameZero();
  2299. CFrameZero();
  2300. }
  2301.  
  2302. --------------------------------------------------------
  2303.  
  2304. BodyColors = {
  2305. HeadColor = BrickColor.new("Institutional white");
  2306. LeftArmColor = BrickColor.new("Institutional white");
  2307. RightArmColor = BrickColor.new("Institutional white");
  2308. LeftLegColor = BrickColor.new("Institutional white");
  2309. RightLegColor = BrickColor.new("Institutional white");
  2310. TorsoColor = BrickColor.new("Mid gray");
  2311. }
  2312.  
  2313. Customs = {
  2314. Face = "http://www.roblox.com/asset/?id=8560915";
  2315. Shirt = "http://www.roblox.com/asset/?id=334781688";
  2316. Pants = "http://www.roblox.com/asset/?id=335237283";
  2317. }
  2318.  
  2319. --------------------------------------------------------
  2320.  
  2321. prepareCharacter = function()
  2322. local transPoints = {
  2323. NumberSequenceKeypoint.new(0,.819,.0375),
  2324. NumberSequenceKeypoint.new(.207,.594,.0187),
  2325. NumberSequenceKeypoint.new(.4,.55,.031),
  2326. NumberSequenceKeypoint.new(.57,.619,.05),
  2327. NumberSequenceKeypoint.new(.76,.8,.0375),
  2328. NumberSequenceKeypoint.new(1,1,0),
  2329. }
  2330. local sizePoints = {
  2331. NumberSequenceKeypoint.new(0,.687,0),
  2332. NumberSequenceKeypoint.new(.111,.875,0),
  2333. NumberSequenceKeypoint.new(.327,1.19,0),
  2334. NumberSequenceKeypoint.new(.646,1.56,0),
  2335. NumberSequenceKeypoint.new(.805,1.37,0),
  2336. NumberSequenceKeypoint.new(.905,1.06,0),
  2337. NumberSequenceKeypoint.new(.968,.938,0),
  2338. NumberSequenceKeypoint.new(.984,1.13,0),
  2339. NumberSequenceKeypoint.new(1,1.62,0),
  2340. }
  2341. local Size = NumberSequence.new(sizePoints)
  2342. local Transparency = NumberSequence.new(transPoints)
  2343. rayModel = Instance.new("Model",c)
  2344. efxBlock = Instance.new("Part",c)
  2345. efxBlock.BrickColor = BrickColor.new("Cyan")
  2346. efxBlock.Material = "Neon"
  2347. efxBlock.FormFactor = "Custom"
  2348. efxBlock.Transparency = .3
  2349. efxBlock.Size = Vector3.new(.3,.3,.3)
  2350. local mesh = Instance.new("SpecialMesh",efxBlock)
  2351. mesh.MeshType = Enum.MeshType.Sphere
  2352. mesh.Scale = Vector3.new(1,1,1)
  2353. light = Instance.new("PointLight",c.Head)
  2354. light.Range = 10
  2355. light.Color = Color3.new(0,200/255,1)
  2356. light.Shadows = false
  2357. local particles = Instance.new("ParticleEmitter",efxBlock)
  2358. particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
  2359. particles.LightEmission = .95
  2360. particles.Size = Size
  2361. particles.Name = "Fire"
  2362. particles.Transparency = Transparency
  2363. particles.LockedToPart = true
  2364. particles.VelocityInheritance = .5
  2365. particles.LockedToPart = true
  2366. particles.Rate = 70
  2367. particles.Texture = "rbxassetid://56561915"
  2368. particles.Lifetime = NumberRange.new(2,2)
  2369. particles.RotSpeed = NumberRange.new(100,100)
  2370. particles.Speed = NumberRange.new(7,7)
  2371. script.Parent = efxBlock
  2372. fire = particles
  2373. local offset = Vector3.new(-0.11, .23, -0.5)
  2374. local weld = Instance.new("Weld",c.Head)
  2375. weld.Part0 = c.Head
  2376. weld.Part1 = efxBlock
  2377. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
  2378. efxBlock.Parent = c
  2379. local music = Instance.new("Sound",c)
  2380. music.SoundId = "rbxassetid://316012176"
  2381. music.Looped = true
  2382. music.Volume = 0
  2383. fight = music
  2384. local music2 = Instance.new("Sound",c)
  2385. music2.SoundId = "rbxassetid://316014309"
  2386. music2.Looped = true
  2387. music2.Volume = 0
  2388. sans = music2
  2389. pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
  2390. pointGyro.P = 1e7
  2391. pointGyro.D = 1e3
  2392. pointGyro.MaxTorque = Vector3.new(0,1e7,0)
  2393. animator = c.Humanoid:FindFirstChild("Animator")
  2394. if animator then
  2395. animator:Destroy()
  2396. end
  2397. c.Torso.roblox:Destroy()
  2398. for i,v in pairs (c.Head:children()) do
  2399. if v.ClassName == "Sound" then
  2400. v:Destroy()
  2401. end
  2402. end
  2403. for i = 1,#Joints do
  2404. Joints[i].C1 = CFrame.new(Vector3.new())
  2405. end
  2406. human.WalkSpeed = 0
  2407. human.JumpPower = 0
  2408. end
  2409.  
  2410. uinps.InputBegan:connect(function(InputObject)
  2411. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  2412. Debounces.isPassive = not Debounces.isPassive
  2413. end
  2414. end)
  2415.  
  2416. setJointCFrames = function(table)
  2417. for i = 1,#table do
  2418. JointTargets[i] = table[i]
  2419. end
  2420. AnimationCycles = 0
  2421. end
  2422.  
  2423. setLerp = function(speed)
  2424. AnimStat.lerpSpeed = speed
  2425. end
  2426.  
  2427. setTween = function(tween)
  2428. AnimStat.lerpTween = tween
  2429. end
  2430.  
  2431. takeDamage = function(position,damage,distance,platformStand)
  2432. for i,v in pairs (pls:children()) do
  2433. if v.ClassName == "Player" and v:FindFirstChild("Character") then
  2434. local torso = v.Character:FindFirstChild("Torso")
  2435. if torso and (torso.Position - position).magnitude < distance then
  2436. v.Character.Humanoid:TakeDamage(damage)
  2437. if platformStand == true then
  2438. v.Character.PlatformStand = platformStand
  2439. end
  2440. end
  2441. end
  2442. end
  2443. end
  2444.  
  2445. --------------------------------------------------------
  2446.  
  2447. prepareCharacter()
  2448.  
  2449. --------------------------------------------------------
  2450.  
  2451. spawn(function()
  2452. local sine = 0
  2453. while wait() do
  2454. pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
  2455. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
  2456. setLerp(.1)
  2457. if Debounces.isPassive == true then
  2458. setJointCFrames({
  2459. CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
  2460. CFrame.new(Vector3.new(-0.001, 1.52 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(-10.861 + math.sin((-tick() + 2) * 1.5) * 5, 13.765, -1.658));
  2461. CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
  2462. CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
  2463. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
  2464. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
  2465. })
  2466. else
  2467. setJointCFrames({
  2468. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  2469. CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(1.554 + math.sin((-tick() + 2) * 1.5) * 5, -0.001, -0.001));
  2470. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  2471. CFrame.new(Vector3.new(1.059, -0.031 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, -3.842, -29.511));
  2472. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  2473. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  2474. })
  2475. end
  2476. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
  2477. sine = sine + math.rad(12)
  2478. human.WalkSpeed = 15
  2479. setLerp(.15)
  2480. setJointCFrames({
  2481. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  2482. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
  2483. CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20, 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0, 0));
  2484. CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20, 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, 0));
  2485. CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7, 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0));
  2486. CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7, 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0));
  2487. })
  2488. end
  2489. if Debounces.scalingDamage == true then
  2490. takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
  2491. end
  2492. end
  2493. end)
  2494.  
  2495. human.Changed:connect(function(prop)
  2496. if prop == "MoveDirection" then
  2497. if human.MoveDirection.magnitude > .02 then
  2498. Debounces.isMoving = true
  2499. else
  2500. Debounces.isMoving = false
  2501. end
  2502. end
  2503. end)
  2504.  
  2505. uinps.InputBegan:connect(function(InputObject)
  2506. if InputObject.KeyCode == Enum.KeyCode.A and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2507. Debounces.isBoosting = true
  2508. Debounces.damageLevel = 10
  2509. Debounces.scalingDamage = true
  2510. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  2511. setLerp(.15)
  2512. setJointCFrames({
  2513. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
  2514. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
  2515. CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
  2516. CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
  2517. CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
  2518. CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
  2519. })
  2520. local boostSpeed = 250
  2521. local efx = Instance.new("Sound",c.Head)
  2522. efx.SoundId = "rbxassetid://200632875"
  2523. efx.Pitch = math.random(1100,1300)/1000
  2524. efx.Volume = .5
  2525. efx:Play()
  2526. spawn(function()
  2527. wait(5)
  2528. efx:Destroy()
  2529. end)
  2530. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
  2531. vel.P = 1e3
  2532. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  2533. wait(.15)
  2534. vel.P = 1000
  2535. vel.MaxForce = Vector3.new(3000,0,3000)
  2536. vel.Velocity = Vector3.new()
  2537. wait(.3)
  2538. setLerp(.3)
  2539. setJointCFrames({
  2540. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
  2541. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
  2542. CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
  2543. CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
  2544. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
  2545. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
  2546. })
  2547. wait(.2)
  2548. vel:Destroy()
  2549. Debounces.damageLevel = 0
  2550. Debounces.scalingDamage = false
  2551. Debounces.isBoosting = false
  2552. end
  2553. end)
  2554.  
  2555. uinps.InputBegan:connect(function(InputObject)
  2556. if InputObject.KeyCode == Enum.KeyCode.D and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2557. Debounces.isBoosting = true
  2558. Debounces.damageLevel = 10
  2559. Debounces.scalingDamage = true
  2560. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  2561. setLerp(.15)
  2562. setJointCFrames({
  2563. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
  2564. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
  2565. CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
  2566. CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
  2567. CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
  2568. CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
  2569. })
  2570. local boostSpeed = 250
  2571. local efx = Instance.new("Sound",c.Head)
  2572. efx.SoundId = "rbxassetid://200632875"
  2573. efx.Pitch = math.random(1100,1300)/1000
  2574. efx.Volume = .5
  2575. efx:Play()
  2576. spawn(function()
  2577. wait(5)
  2578. efx:Destroy()
  2579. end)
  2580. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
  2581. vel.P = 1e3
  2582. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  2583. wait(.15)
  2584. vel.P = 1000
  2585. vel.MaxForce = Vector3.new(3000,0,3000)
  2586. vel.Velocity = Vector3.new()
  2587. wait(.3)
  2588. setLerp(.3)
  2589. setJointCFrames({
  2590. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
  2591. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  2592. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  2593. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  2594. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  2595. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  2596. })
  2597. wait(.2)
  2598. vel:Destroy()
  2599. Debounces.damageLevel = 0
  2600. Debounces.scalingDamage = false
  2601. Debounces.isBoosting = false
  2602. end
  2603. end)
  2604.  
  2605. uinps.InputBegan:connect(function(InputObject)
  2606. if InputObject.KeyCode == Enum.KeyCode.W and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2607. Debounces.isBoosting = true
  2608. Debounces.damageLevel = 10
  2609. Debounces.scalingDamage = true
  2610. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  2611. setLerp(.15)
  2612. setJointCFrames({
  2613. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
  2614. CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
  2615. CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  2616. CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
  2617. CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
  2618. CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  2619. })
  2620. local boostSpeed = 250
  2621. local efx = Instance.new("Sound",c.Head)
  2622. efx.SoundId = "rbxassetid://200632875"
  2623. efx.Pitch = math.random(1100,1300)/1000
  2624. efx.Volume = .5
  2625. efx:Play()
  2626. spawn(function()
  2627. wait(5)
  2628. efx:Destroy()
  2629. end)
  2630. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
  2631. vel.P = 1e3
  2632. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  2633. wait(.15)
  2634. vel.P = 1000
  2635. vel.MaxForce = Vector3.new(3000,0,3000)
  2636. vel.Velocity = Vector3.new()
  2637. wait(.3)
  2638. setLerp(.3)
  2639. setJointCFrames({
  2640. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
  2641. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  2642. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  2643. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  2644. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  2645. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  2646. })
  2647. wait(.2)
  2648. vel:Destroy()
  2649. Debounces.damageLevel = 0
  2650. Debounces.scalingDamage = false
  2651. Debounces.isBoosting = false
  2652. end
  2653. end)
  2654.  
  2655. uinps.InputBegan:connect(function(InputObject)
  2656. if InputObject.KeyCode == Enum.KeyCode.S and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2657. Debounces.isBoosting = true
  2658. Debounces.damageLevel = 10
  2659. Debounces.scalingDamage = true
  2660. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  2661. setLerp(.15)
  2662. setJointCFrames({
  2663. CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
  2664. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
  2665. CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
  2666. CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
  2667. CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
  2668. CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  2669. })
  2670. local boostSpeed = 150
  2671. local boostSpeed = 250
  2672. local efx = Instance.new("Sound",c.Head)
  2673. efx.SoundId = "rbxassetid://200632875"
  2674. efx.Pitch = math.random(1100,1300)/1000
  2675. efx.Volume = .5
  2676. efx:Play()
  2677. spawn(function()
  2678. wait(5)
  2679. efx:Destroy()
  2680. end)
  2681. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
  2682. vel.P = 1e3
  2683. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  2684. wait(.15)
  2685. vel.P = 1000
  2686. vel.MaxForce = Vector3.new(3000,0,3000)
  2687. vel.Velocity = Vector3.new()
  2688. wait(.3)
  2689. setLerp(.3)
  2690. setJointCFrames({
  2691. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
  2692. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
  2693. CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
  2694. CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
  2695. CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
  2696. CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
  2697. })
  2698. wait(.2)
  2699. vel:Destroy()
  2700. Debounces.damageLevel = 0
  2701. Debounces.scalingDamage = false
  2702. Debounces.isBoosting = false
  2703. end
  2704. end)
  2705.  
  2706. uinps.InputBegan:connect(function(InputObject)
  2707. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2708. local isLooping = true
  2709. uinps.InputEnded:connect(function(InputObject2)
  2710. if InputObject2.KeyCode == Enum.KeyCode.Q then
  2711. isLooping = false
  2712. end
  2713. end)
  2714. while true do
  2715. if isLooping == false then
  2716. break
  2717. end
  2718. Debounces.attackNumber = Debounces.attackNumber + 1
  2719. local aimPos = mouse.Hit.p
  2720. local head = Instance.new("Part",c)
  2721. head.Size = Vector3.new(12,.2,12)
  2722. head.CanCollide = false
  2723. head.Anchored = true
  2724. head.Transparency = 1
  2725. for i = 1,2 do
  2726. local decal = Instance.new("Decal",head)
  2727. decal.Texture = "rbxassetid://323497117"
  2728. if i == 1 then
  2729. decal.Face = Enum.NormalId.Top
  2730. else
  2731. decal.Face = Enum.NormalId.Bottom
  2732. end
  2733. end
  2734. if Debounces.attackNumber%2 == 1 then
  2735. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  2736. else
  2737. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  2738. end
  2739. spawn(function()
  2740. local timer = 0
  2741. while rs.RenderStepped:wait() do
  2742. if timer >= 1.55 then
  2743. break
  2744. end
  2745. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  2746. timer = timer + 1/30/(Debounces.FPS/60)
  2747. end
  2748. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  2749. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  2750. local hit, pos = workspace:FindPartOnRay(ray,c)
  2751. local dis = (head.CFrame.p - pos).magnitude
  2752. local rayPart = Instance.new("Part",rayModel)
  2753. rayPart.Material = "Neon"
  2754. rayPart.FormFactor = "Custom"
  2755. rayPart.BrickColor = BrickColor.new(1,1,1)
  2756. rayPart.Anchored = true
  2757. rayPart.CanCollide = false
  2758. rayPart.Size = Vector3.new(7,7,dis + 400)
  2759. local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
  2760. rayPart.CFrame = rayCFrame
  2761. head:Destroy()
  2762. end)
  2763. wait()
  2764. local s = Instance.new("Sound",head)
  2765. s.Volume = 1
  2766. s.SoundId = "rbxassetid://332223043"
  2767. s:Play()
  2768. wait(.04)
  2769. end
  2770. end
  2771. end)
  2772.  
  2773. uinps.InputBegan:connect(function(InputObj)
  2774. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2775. Debounces.isAttacking = true
  2776. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  2777. local head = Instance.new("Part",c)
  2778. head.Size = Vector3.new(18,.2,18)
  2779. head.CanCollide = false
  2780. head.Anchored = true
  2781. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  2782. head.Transparency = 1
  2783. for i = 1,2 do
  2784. local decal = Instance.new("Decal",head)
  2785. decal.Texture = "rbxassetid://323497117"
  2786. if i == 1 then
  2787. decal.Face = Enum.NormalId.Top
  2788. else
  2789. decal.Face = Enum.NormalId.Bottom
  2790. end
  2791. end
  2792. setLerp(.1)
  2793. setJointCFrames({
  2794. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  2795. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  2796. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  2797. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  2798. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  2799. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  2800. })
  2801. spawn(function()
  2802. local timer = 0
  2803. while rs.RenderStepped:wait() do
  2804. if timer >= 1.55/.8 then
  2805. break
  2806. end
  2807. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  2808. timer = timer + 1/30/(Debounces.FPS/60)
  2809. end
  2810. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  2811. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  2812. local hit, pos = workspace:FindPartOnRay(ray,c)
  2813. local dis = (head.CFrame.p - pos).magnitude
  2814. local rayPart = Instance.new("Part",rayModel)
  2815. rayPart.Material = "Neon"
  2816. rayPart.FormFactor = "Custom"
  2817. rayPart.Name = "Punch"
  2818. rayPart.BrickColor = BrickColor.new(1,1,1)
  2819. rayPart.Anchored = true
  2820. rayPart.CanCollide = false
  2821. rayPart.Size = Vector3.new(28,28,dis + 400)
  2822. local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
  2823. rayPart.CFrame = rayCFrame
  2824. head:Destroy()
  2825. end)
  2826. wait()
  2827. local s = Instance.new("Sound",head)
  2828. s.Volume = 1
  2829. s.SoundId = "rbxassetid://332223043"
  2830. s.Pitch = .8
  2831. s:Play()
  2832. wait(.75)
  2833. setLerp(.17)
  2834. setJointCFrames({
  2835. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  2836. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  2837. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  2838. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  2839. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  2840. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  2841. })
  2842. wait(.5)
  2843. Debounces.isAttacking = false
  2844. end
  2845. end)
  2846.  
  2847. reflect = function(d,n)
  2848. local i, n = -1 * d.unit, n.unit
  2849. local dot = n:Dot(i)
  2850. return 2*dot*n - i
  2851. end
  2852.  
  2853. makeReflectionBeam = function(pos,look,isCrit)
  2854. local ray = Ray.new(pos,look)
  2855. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  2856. local e = Instance.new("Part",rayModel)
  2857. e.Anchored = true
  2858. e.CanCollide = false
  2859. e.BrickColor = BrickColor.new("White")
  2860. e.Material = "Neon"
  2861. e.FormFactor = "Custom"
  2862. e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  2863. if isCrit == true then
  2864. e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  2865. e.Name = "Punch"
  2866. end
  2867. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  2868. local e = Instance.new("Sound",c)
  2869. if isCrit == true then
  2870. e.Volume = .5
  2871. else
  2872. e.Volume = .3
  2873. e.Pitch = 1.5
  2874. end
  2875. e.SoundId = "rbxassetid://200632875"
  2876. e:Play()
  2877. spawn(function()
  2878. wait(6)
  2879. e:Destroy()
  2880. end)
  2881. wait(.05)
  2882. if hit ~= nil then
  2883. newDir = reflect(look.unit,norm,isCrit)
  2884. makeReflectionBeam(hitpos,newDir * 999,isCrit)
  2885. end
  2886. end
  2887.  
  2888. uinps.InputBegan:connect(function(InputObject)
  2889. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  2890. local isLooping = true
  2891. uinps.InputEnded:connect(function(InputObject2)
  2892. if InputObject2.KeyCode == Enum.KeyCode.Q then
  2893. isLooping = false
  2894. end
  2895. end)
  2896. while true do
  2897. if isLooping == false then
  2898. break
  2899. end
  2900. Debounces.attackNumber = Debounces.attackNumber + 1
  2901. local aimPos = mouse.Hit.p
  2902. local head = Instance.new("Part",c)
  2903. head.Size = Vector3.new(12,.2,12)
  2904. head.CanCollide = false
  2905. head.Anchored = true
  2906. head.Transparency = 1
  2907. for i = 1,2 do
  2908. local decal = Instance.new("Decal",head)
  2909. decal.Texture = "rbxassetid://323497117"
  2910. if i == 1 then
  2911. decal.Face = Enum.NormalId.Top
  2912. else
  2913. decal.Face = Enum.NormalId.Bottom
  2914. end
  2915. end
  2916. if Debounces.attackNumber%2 == 1 then
  2917. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  2918. else
  2919. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  2920. end
  2921. spawn(function()
  2922. local timer = 0
  2923. while rs.RenderStepped:wait() do
  2924. if timer >= 1.55 then
  2925. break
  2926. end
  2927. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  2928. timer = timer + 1/30/(Debounces.FPS/60)
  2929. end
  2930. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  2931. head:Destroy()
  2932. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
  2933. end)
  2934.  
  2935. wait()
  2936. local s = Instance.new("Sound",head)
  2937. s.Volume = 1
  2938. s.SoundId = "rbxassetid://332223043"
  2939. s.Pitch = 1.02
  2940. s:Play()
  2941. wait(.2)
  2942. end
  2943. end
  2944. end)
  2945.  
  2946. uinps.InputBegan:connect(function(InputObj)
  2947. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  2948. Debounces.isAttacking = true
  2949. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  2950. local head = Instance.new("Part",c)
  2951. head.Size = Vector3.new(18,.2,18)
  2952. head.CanCollide = false
  2953. head.Anchored = true
  2954. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  2955. head.Transparency = 1
  2956. for i = 1,2 do
  2957. local decal = Instance.new("Decal",head)
  2958. decal.Texture = "rbxassetid://323497117"
  2959. if i == 1 then
  2960. decal.Face = Enum.NormalId.Top
  2961. else
  2962. decal.Face = Enum.NormalId.Bottom
  2963. end
  2964. end
  2965. setLerp(.1)
  2966. setJointCFrames({
  2967. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  2968. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  2969. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  2970. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  2971. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  2972. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  2973. })
  2974. spawn(function()
  2975. local timer = 0
  2976. while rs.RenderStepped:wait() do
  2977. if timer >= 1.55/.8 then
  2978. break
  2979. end
  2980. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  2981. timer = timer + 1/30/(Debounces.FPS/60)
  2982. end
  2983. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  2984. head:Destroy()
  2985. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
  2986. end)
  2987. wait()
  2988. local s = Instance.new("Sound",head)
  2989. s.Volume = 2
  2990. s.SoundId = "rbxassetid://332223043"
  2991. s.Pitch = .8
  2992. s:Play()
  2993. wait(.75)
  2994. setLerp(.17)
  2995. setJointCFrames({
  2996. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  2997. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  2998. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  2999. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  3000. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  3001. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  3002. })
  3003. wait(.5)
  3004. Debounces.isAttacking = false
  3005. end
  3006. end)
  3007.  
  3008. uinps.InputBegan:connect(function(InputObj)
  3009. if InputObj.KeyCode == Enum.KeyCode.Slash then
  3010. local finishEvent = nil
  3011. Debounces.isTyping = true
  3012. finishEvent = uinps.InputBegan:connect(function(InputObj)
  3013. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  3014. Debounces.isTyping = false
  3015. finishEvent:disconnect()
  3016. end
  3017. end)
  3018. end
  3019. end)
  3020.  
  3021. uinps.InputBegan:connect(function(InputObj)
  3022. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  3023. Debounces.isSprinting = true
  3024. end
  3025. end)
  3026.  
  3027. uinps.InputEnded:connect(function(InputObj)
  3028. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  3029. Debounces.isSprinting = false
  3030. end
  3031. end)
  3032.  
  3033. rs.RenderStepped:connect(function()
  3034. Debounces.FPS = 1/rs.RenderStepped:wait()
  3035. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  3036. if Debounces.isPassive == false then
  3037. fire.Enabled = false
  3038. light.Range = 0
  3039. fight:Pause()
  3040. sans:Resume()
  3041. efxBlock.Transparency = 1
  3042. else
  3043. fire.Enabled = true
  3044. light.Range = 10
  3045. fight:Resume()
  3046. sans:Pause()
  3047. efxBlock.Transparency = 0
  3048. end
  3049. for i,v in pairs (rayModel:children()) do
  3050. if v.Transparency >= 1 then
  3051. v:Destroy()
  3052. else
  3053. v.CanCollide = true
  3054. local parts = v:GetTouchingParts()
  3055. v.CanCollide = false
  3056. for i = 1,#parts do
  3057. if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
  3058. parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
  3059. elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
  3060. parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
  3061. end
  3062. end
  3063. v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
  3064. v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  3065. end
  3066. end
  3067. for i = 1,#Joints do
  3068. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  3069. end
  3070. local sineval = math.sin(tick() * 2) * 3
  3071. fire.Acceleration = Vector3.new(sineval,1,sineval)
  3072. light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
  3073. end)
Add Comment
Please, Sign In to add comment