Advertisement
LuaExploitz

Buttsecks assgore

Oct 6th, 2016
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 21.00 KB | None | 0 0
  1. --------------------------------------------------------
  2.  
  3.     pls = game:GetService'Players'
  4.     rs = game:GetService'RunService'
  5.     uinps = game:GetService'UserInputService'
  6.     lp = pls.LocalPlayer
  7.     mouse = lp:GetMouse()
  8.     c = lp.Character
  9.     human = c.Humanoid
  10.     critTime = .27
  11.  
  12. --------------------------------------------------------
  13.  
  14.     local h = Instance.new("Part",c)
  15.     h.Name = "Trident"
  16.     h.BrickColor = BrickColor.new(1,0,0)
  17.     h.Material = "Neon"
  18.     h.Size = Vector3.new(2,1,10)
  19.     h.Locked = true
  20.     h.CanCollide = false
  21.     h.Name = "Handle"
  22.     local m = Instance.new("SpecialMesh",h)
  23.     m.MeshType = "FileMesh"
  24.     m.Scale = Vector3.new(1.5,2.3,2.3)
  25.     m.MeshId = "http://www.roblox.com/asset/?id=30694864"
  26.     local hw = Instance.new("Motor",c.Torso)
  27.     hw.Name = "HandleWeld"
  28.     hw.Part0 = c.Torso
  29.     hw.Part1 = h
  30.     local l = Instance.new("PointLight",h)
  31.     l.Range = 15
  32.     l.Brightness = .6
  33.     l.Color = Color3.new(1,0,0)
  34.  
  35. --------------------------------------------------------
  36.  
  37.     Debounces = {
  38.         FPS = 0;
  39.         Mode = "Still";
  40.         Debounce = false;
  41.         wasCrit = false;
  42.         SwitchingModes = false;
  43.         attackNumber = 0;
  44.         isAttacking = false;
  45.         isMoving = false;
  46.         isSprinting = false;
  47.         isJumping = false;
  48.         isPassive = false;
  49.         isTyping = false;
  50.         isAgg = false;
  51.         musicOn = false;
  52.         isCombo = 0;
  53.     }
  54.  
  55. --------------------------------------------------------
  56.  
  57.     numLerp = function(start, goal, alpha)
  58.         return(((goal - start) * alpha) + start)
  59.     end
  60.  
  61.     CFrameZero = function()
  62.         return CFrame.new(Vector3.new())
  63.     end
  64.  
  65.     rad = function(value)
  66.         return math.rad(value)
  67.     end
  68.  
  69.     CFAngles = function(Vector)
  70.         return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  71.     end
  72.  
  73. --------------------------------------------------------
  74.  
  75.     AnimStat = {
  76.         lerpSpeed = .2;
  77.     }
  78.  
  79.     Joints = {
  80.         c.HumanoidRootPart.RootJoint;
  81.         c.Torso.Neck;
  82.         c.Torso['Left Shoulder'];
  83.         c.Torso['Right Shoulder'];
  84.         c.Torso['Left Hip'];
  85.         c.Torso['Right Hip'];
  86.         hw;
  87.     }
  88.  
  89.     JointTargets = {
  90.         CFrameZero();
  91.         CFrameZero();
  92.         CFrameZero();
  93.         CFrameZero();
  94.         CFrameZero();
  95.         CFrameZero();
  96.         CFrameZero();
  97.     }
  98.  
  99.  
  100. --------------------------------------------------------
  101.  
  102.     prepareCharacter = function()
  103.         local music = Instance.new("Sound",c)
  104.         music.SoundId = "rbxassetid://509280486"
  105.         music.Looped = true
  106.         music.Volume = 1
  107.         fight = music
  108.         local music2 = Instance.new("Sound",c)
  109.         music2.SoundId = "rbxassetid://506868687 "
  110.         music2.Looped = true
  111.         music2.Volume = 1
  112.         pass = music2
  113.         human.WalkSpeed = 0
  114.         human.JumpPower = 0
  115.         human.Animator:Destroy()
  116.         human.MaxHealth = 5500
  117.         c.Animate:Destroy()
  118.         wait()
  119.         human.Health = 5500
  120.         c.Health:Destroy()
  121.     end
  122.  
  123.     uinps.InputBegan:connect(function(InputObject)
  124.         if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  125.             Debounces.isPassive = not Debounces.isPassive
  126.         end
  127.     end)
  128.  
  129.     uinps.InputBegan:connect(function(InputObject)
  130.         if InputObject.KeyCode == Enum.KeyCode.J and Debounces.isTyping == false then
  131.             Debounces.isAgg = not Debounces.isAgg
  132.         end
  133.     end)
  134.  
  135.     uinps.InputBegan:connect(function(InputObject)
  136.         if InputObject.KeyCode == Enum.KeyCode.L and Debounces.isTyping == false then
  137.             Debounces.musicOn = not Debounces.musicOn
  138.         end
  139.     end)
  140.  
  141.     setJointCFrames = function(table)
  142.         for i = 1,#table do
  143.             JointTargets[i] = table[i]
  144.         end
  145.     end
  146.  
  147.     setLerp = function(speed)
  148.         AnimStat.lerpSpeed = speed
  149.     end
  150.    
  151. --------------------------------------------------------
  152.  
  153.     prepareCharacter()
  154.  
  155. --------------------------------------------------------
  156.  
  157.     spawn(function()
  158.         local sine = 0
  159.         while wait() do
  160.             Debounces.isCombo = Debounces.isCombo + 1/30
  161.             if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isJumping == false and Debounces.Debounce == false then
  162.                 setLerp(.2)
  163.                 if Debounces.isPassive == true then
  164.                     setJointCFrames({
  165.                         CFrame.new(Vector3.new(0, -1 + math.sin(tick() * 1.8)/35, 0)) * CFAngles(Vector3.new(-5, 0, 0));
  166.                         CFrame.new(Vector3.new(0, 1.57 + math.sin(tick() * 1.8)/40, -0.18)) * CFAngles(Vector3.new(-13.501 + math.sin(tick() * 1.8 - 1) * 4, 3.663, 0.523));
  167.                         CFrame.new(Vector3.new(-1.5, 0.069 + math.sin(tick() * 1.8 + 1)/37, -0.56)) * CFAngles(Vector3.new(50.809, 0.672, 3.289));
  168.                         CFrame.new(Vector3.new(1.599, 0.109 + math.sin(tick() * 1.8 + 1)/37, 0.229)) * CFAngles(Vector3.new(-21.149, -1.645, 14.912));
  169.                         CFrame.new(Vector3.new(-0.63, -1.141 - math.sin(tick() * 1.8)/40, -0.64)) * CFAngles(Vector3.new(0.773, 6.984, -4.382));
  170.                         CFrame.new(Vector3.new(0.619, -1.20 - math.sin(tick() * 1.8)/40, 0.78)) * CFAngles(Vector3.new(-61.93, 0.603, 9.809));
  171.                         CFrame.new(Vector3.new(-0.776, -1.416 + math.sin(tick() * 1.8 + 1)/37, 1.533)) * CFAngles(Vector3.new(11.916  + math.sin(tick() * 1.8) * .4, 15.785, -177.784));
  172.                     })
  173.                 else
  174.                     setJointCFrames({
  175.                         CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.8)/35, 0)) * CFAngles(Vector3.new(0, 0, 0));
  176.                         CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * 1.8)/60, -0.1)) * CFAngles(Vector3.new(-14.0871 + math.sin(tick() * 1.8 - 1) * 2, -4.516, -0.001));
  177.                         CFrame.new(Vector3.new(-1.5, -0.001 + math.sin(tick() * 1.8 + 1)/37, -0.4)) * CFAngles(Vector3.new(44.999 + math.sin(tick() * 1.8 - .3) * 2, 14.999, 0));
  178.                         CFrame.new(Vector3.new(1.599, 0.349 + math.sin(tick() * 1.8 + 1)/37, -0.401)) * CFAngles(Vector3.new(74.999 + math.sin(tick() * 1.8 - .3) * 2, 14.999, 0));
  179.                         CFrame.new(Vector3.new(-0.63, -2.02 - math.sin(tick() * 1.8)/40, 0)) * CFAngles(Vector3.new(0.773, 6.984, -4.382));
  180.                         CFrame.new(Vector3.new(0.569, -2 - math.sin(tick() * 1.8)/40, 0)) * CFAngles(Vector3.new(2.093, -9.162, 2.619));
  181.                         CFrame.new(Vector3.new(-1.586, -0.686 + math.sin(tick() * 1.8 - .3)/20, -1.387)) * CFAngles(Vector3.new(89.739, -74.514, -165.774));
  182.                     })
  183.                 end
  184.             elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isJumping == false and Debounces.Debounce == false then
  185.                 sine = sine + math.rad(15)
  186.                 human.WalkSpeed = 15
  187.                 setLerp(.25)
  188.                 setJointCFrames({
  189.                     CFrame.new(Vector3.new(0, math.sin(sine * 2)/17, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  190.                     CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * -1, -0.001));
  191.                     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,math.sin(sine - 2) * 2 - 5));
  192.                     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, math.sin(sine - 2) * 2 + 5));
  193.                     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));
  194.                     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));
  195.                     CFrame.new(Vector3.new(-1.176, -.516 + math.sin(-sine)/2.2, 1.133 + math.sin(-sine)/1.6)) * CFAngles(Vector3.new(-22.916 + math.sin(sine) * 23, 11.785, -177.784));
  196.                 })
  197.             elseif Debounces.isJumping == true and Debounces.Debounce == false then
  198.                 setLerp(.14)
  199.                 setJointCFrames({
  200.                     CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(-8, 0, 0));
  201.                     CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-10.138, 3.687, 0.306));
  202.                     CFrame.new(Vector3.new(-1.23, 0.069, -0.56)) * CFAngles(Vector3.new(50.809, 0.672, 18.704));
  203.                     CFrame.new(Vector3.new(0.929, -0.031, -1.0912)) * CFAngles(Vector3.new(63.00, 13.85, -36.416));
  204.                     CFrame.new(Vector3.new(-0.63, -1.82, -0.74)) * CFAngles(Vector3.new(31.324, 3.424, -1.249));
  205.                     CFrame.new(Vector3.new(0.619, -1.331, 0.82)) * CFAngles(Vector3.new(-59.644, 0.998, 9.776));
  206.                     CFrame.new(Vector3.new(-1.466, -0.716, -1.287)) * CFAngles(Vector3.new(23.713, -68.012, 138.119));
  207.                 })
  208.             end
  209.         end
  210.     end)
  211.  
  212.     human.Changed:connect(function(prop)
  213.         if prop == "MoveDirection" then
  214.             if human.MoveDirection.magnitude > .02 then
  215.                 Debounces.isMoving = true
  216.             else
  217.                 Debounces.isMoving = false
  218.             end
  219.         end
  220.     end)
  221.  
  222.     changeColor = function(mode)
  223.         Debounces.SwitchingModes = true
  224.         local color = Color3.new(0,0,0)
  225.         if mode == "Still" then
  226.             color = Color3.new(1,0,0)
  227.         elseif mode == "Blue" then
  228.             color = Color3.new(0,1,1)
  229.         elseif mode == "Orange" then
  230.             color = Color3.new(1,.5,1/5)
  231.         elseif mode == "Heal" then
  232.             color = Color3.new(.1,1,.1)
  233.         end
  234.         local s = Instance.new("Sound",h)
  235.         s.SoundId = "rbxassetid://262249260"
  236.         s.Volume = .5
  237.         s.Pitch = math.random(95,105)/100
  238.         s:Play()
  239.         h.BrickColor = BrickColor.new(color)
  240.         local e = Instance.new("Part",h)
  241.         e.Size = Vector3.new(1,1,1)
  242.         e.BrickColor = BrickColor.new(color)
  243.         e.Anchored = false
  244.         e.CanCollide = false
  245.         local rm = Instance.new("SpecialMesh",e)
  246.         rm.MeshType = "FileMesh"
  247.         rm.MeshId = "rbxassetid://3270017"
  248.         rm.Scale = Vector3.new(3.2,3.2,10)
  249.         local ew = Instance.new("Weld",e)
  250.         ew.Part0 = h
  251.         ew.Part1 = e
  252.         ew.C0 = CFrame.new(0,0,-5)
  253.         l.Color = color
  254.         local timer = 0
  255.         while rs.RenderStepped:wait() do
  256.             timer = timer + (1/60)/(Debounces.FPS/60)
  257.             ew.C0 = ew.C0:lerp(CFrame.new(0,0,5),.08/(Debounces.FPS/60))
  258.             e.Transparency = math.sin(ew.C0.p.z/2.5)
  259.             if e.Transparency >= .95 then break end
  260.         end
  261.         e:Destroy()
  262.         Debounces.Mode = mode
  263.         Debounces.SwitchingModes = false
  264.         wait(6)
  265.         s:Destroy()
  266.     end
  267.  
  268.     uinps.InputBegan:connect(function(InputObj)
  269.         if InputObj.KeyCode == Enum.KeyCode.Slash then
  270.             local finishEvent = nil
  271.             Debounces.isTyping = true
  272.             finishEvent = uinps.InputBegan:connect(function(InputObj)
  273.                 if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  274.                     Debounces.isTyping = false
  275.                     finishEvent:disconnect()
  276.                 end
  277.             end)
  278.         end
  279.     end)
  280.  
  281.     uinps.InputBegan:connect(function(InputObj)
  282.         if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  283.             Debounces.isSprinting = true
  284.         end
  285.     end)
  286.  
  287.     uinps.InputEnded:connect(function(InputObj)
  288.         if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  289.             Debounces.isSprinting = false
  290.         end
  291.     end)
  292.  
  293.     uinps.InputBegan:connect(function(InputObj)
  294.         local e = nil
  295.         local e2 = nil
  296.         if InputObj.UserInputType == Enum.UserInputType.MouseButton1 and Debounces.isJumping == false and Debounces.isAttacking == false then
  297.             if Debounces.isCombo <= critTime then
  298.                 Debounces.wasCrit = true
  299.             else
  300.                 Debounces.wasCrit = false
  301.             end
  302.             Debounces.attackNumber = Debounces.attackNumber + 1
  303.             Debounces.isCombo = 0
  304.             Debounces.isAttacking = true
  305.             setLerp(.23)
  306.             local playAnim = (Debounces.attackNumber)%3 + 1
  307.             local frame1 = {
  308.                 {
  309.                     CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  310.                     CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-5.914, -13.989, -1.015));
  311.                     CFrame.new(Vector3.new(-1.021, 0.329, -0.75)) * CFAngles(Vector3.new(82.382, 11.798, 41.905));
  312.                     CFrame.new(Vector3.new(1.649, 0.169, 0.749)) * CFAngles(Vector3.new(-77.626, 16.244, 21.328));
  313.                     CFrame.new(Vector3.new(-0.63, -1.871, -0.38)) * CFAngles(Vector3.new(-0.91, 3.562, 0.768));
  314.                     CFrame.new(Vector3.new(0.619, -2.011, 0.31)) * CFAngles(Vector3.new(-26.804, -12.884, -1.817));
  315.                     CFrame.new(Vector3.new(-0.666, 0.294, -1.807)) * CFAngles(Vector3.new(-28.48, 70.346, -83.191));
  316.                 };
  317.                 {
  318.                     CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  319.                     CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-14.957, 9.347, 1.86));
  320.                     CFrame.new(Vector3.new(-1.471, 0.239, -0.98)) * CFAngles(Vector3.new(50.874, -38.983, 14.74));
  321.                     CFrame.new(Vector3.new(1.789, 0.049, 0.249)) * CFAngles(Vector3.new(-39.301, 20.922, 22.363));
  322.                     CFrame.new(Vector3.new(-0.63, -2.02, -0.14)) * CFAngles(Vector3.new(0.523, 3.58, 0.679));
  323.                     CFrame.new(Vector3.new(0.62, -2.011, 0.31)) * CFAngles(Vector3.new(-32.649, -15.017, 6.958));
  324.                     CFrame.new(Vector3.new(-0.646, -0.576, -1.597)) * CFAngles(Vector3.new(-73.07, 86.04, -17.928));
  325.                 };
  326.                 {
  327.                     CFrame.new(Vector3.new(math.random(-10,10)/200, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  328.                     CFrame.new(Vector3.new(0.14, 1.56, -0.01)) * CFAngles(Vector3.new(-8.767, 9.322, 0.967));
  329.                     CFrame.new(Vector3.new(-1.711, -0.051, -0.28)) * CFAngles(Vector3.new(26.633, -15.091, -28.888));
  330.                     CFrame.new(Vector3.new(1.789, 0.049, 0.109)) * CFAngles(Vector3.new(-10.529, 11.255, 19.434));
  331.                     CFrame.new(Vector3.new(-0.59, -2.02, -0.14)) * CFAngles(Vector3.new(1.445, 18.442, -3.585));
  332.                     CFrame.new(Vector3.new(0.799, -2.031, -0.04)) * CFAngles(Vector3.new(1.339, -21.187, 15.748));
  333.                     CFrame.new(Vector3.new(-1.966, -0.756, -1.117)) * CFAngles(Vector3.new(177.818, -16.903, 86.063));
  334.                 };
  335.             }
  336.             local frame2 = {
  337.                 {
  338.                     CFrame.new(Vector3.new(0, 0, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  339.                     CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-8.241, 17.447, -0.169));
  340.                     CFrame.new(Vector3.new(-1.581, -0.151, -0.17)) * CFAngles(Vector3.new(69.448, 37.134, -78.032));
  341.                     CFrame.new(Vector3.new(1.789, 0.049, 0.609)) * CFAngles(Vector3.new(-54.033, 14.452, 26.869));
  342.                     CFrame.new(Vector3.new(-0.63, -2.02, -0.14)) * CFAngles(Vector3.new(-18.859, 3.152, 1.828));
  343.                     CFrame.new(Vector3.new(0.799, -2.011, 0.31)) * CFAngles(Vector3.new(-19.054, -13.009, 10.266));
  344.                     CFrame.new(Vector3.new(-2.386, -0.986, -2.477)) * CFAngles(Vector3.new(174.048, -0.303, 72.496));
  345.                 };
  346.                 {
  347.                     CFrame.new(Vector3.new(math.random(-10,10)/200, math.random(-10,10)/500, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  348.                     CFrame.new(Vector3.new(0, 1.56, -0.01)) * CFAngles(Vector3.new(-9.096, 26.968, -0.885));
  349.                     CFrame.new(Vector3.new(-1.851, 0.239, -0.98)) * CFAngles(Vector3.new(46.523, -35.77, -44.203));
  350.                     CFrame.new(Vector3.new(1.789, 0.049, 0.249)) * CFAngles(Vector3.new(-20.556, 7.594, 51.7));
  351.                     CFrame.new(Vector3.new(-0.9, -2.02, -0.14)) * CFAngles(Vector3.new(0.523, 3.58, -17.2));
  352.                     CFrame.new(Vector3.new(0.889, -2.071, 0.19)) * CFAngles(Vector3.new(-4.831, -22.678, 13.441));
  353.                     CFrame.new(Vector3.new(-3.286, -0.016, -3.167)) * CFAngles(Vector3.new(177.818, -16.903, 86.063));
  354.                 };
  355.                 {
  356.                     CFrame.new(Vector3.new(math.random(-10,10)/200, math.random(-10,10)/500, math.random(-10,10)/200)) * CFAngles(Vector3.new(0, math.random(-2,5), 0));
  357.                     CFrame.new(Vector3.new(0.14, 1.56, -0.01)) * CFAngles(Vector3.new(-8.104, -7.695, 0.899));
  358.                     CFrame.new(Vector3.new(-1.191, 0.109, -0.86)) * CFAngles(Vector3.new(103.661, -62.452, 30.966));
  359.                     CFrame.new(Vector3.new(1.789, 0.049, 0.269)) * CFAngles(Vector3.new(-41.475, -0.825, 22.337));
  360.                     CFrame.new(Vector3.new(-0.69, -2.02, -0.14)) * CFAngles(Vector3.new(-6.435, 20.198, -11.958));
  361.                     CFrame.new(Vector3.new(0.71, -2.031, 0.25)) * CFAngles(Vector3.new(-31.549, -26.093, 2.237));
  362.                     CFrame.new(Vector3.new(0.504, -0.346, -2.117)) * CFAngles(Vector3.new(147.39, 81.207, 135.492));
  363.                 };
  364.             }
  365.             if Debounces.wasCrit == false then
  366.                 local e = Instance.new("Sound",c.Head)
  367.                 e.Volume = .5
  368.                 e.SoundId = "rbxassetid://145486992"
  369.                 e.Pitch = math.random(110,130)/100
  370.                 e:Play()
  371.                 setJointCFrames(frame1[playAnim])
  372.                 setLerp(.35)
  373.                 wait(.07)
  374.                 setJointCFrames(frame2[playAnim])
  375.                 wait(.05)
  376.             else
  377.                 local e = Instance.new("Sound",c.Head)
  378.                 e.Volume = .5
  379.                 e.SoundId = "rbxassetid://181894961"
  380.                 e.Pitch = math.random(130,160)/100
  381.                 e:Play()
  382.                 local e2 = Instance.new("Sound",c.Head)
  383.                 e2.Volume = .6
  384.                 e2.Pitch = math.random(110,130)/100
  385.                 e2.SoundId = "rbxassetid://200632875"
  386.                 e2:Play()
  387.                 setLerp(.6)
  388.                 setJointCFrames(frame1[playAnim])
  389.                 setLerp(.7)
  390.                 wait(.02)
  391.                 setJointCFrames(frame2[playAnim])
  392.                 wait(.01)
  393.             end
  394.             Debounces.isAttacking = false
  395.         end
  396.         wait(5)
  397.         if e then
  398.             e:Destroy()
  399.             e2:Destroy()
  400.         end
  401.     end)
  402.  
  403.     uinps.InputBegan:connect(function(InputObj)
  404.         if InputObj.KeyCode == Enum.KeyCode.Space and Debounces.isTyping == false and Debounces.isJumping == false and Debounces.Debounce == false then
  405.             Debounces.Debounce = true
  406.             human.WalkSpeed = 0
  407.             setLerp(.2)
  408.             setJointCFrames({
  409.                 CFrame.new(Vector3.new(0, -1, 0)) * CFAngles(Vector3.new(0, 0, 0));
  410.                 CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-18.621, -3.513, 0.853));
  411.                 CFrame.new(Vector3.new(-1.01, 0.069, -0.69)) * CFAngles(Vector3.new(50.809, 0.672, 20.794));
  412.                 CFrame.new(Vector3.new(1.309, -0.031, -0.031)) * CFAngles(Vector3.new(-33.146, 36.092, 14.78));
  413.                 CFrame.new(Vector3.new(-0.63, -1.33, -0.74)) * CFAngles(Vector3.new(-13.998, 3.296, 1.554));
  414.                 CFrame.new(Vector3.new(0.619, -1.331, 0.42)) * CFAngles(Vector3.new(-58.408, 1.211, 9.751));
  415.                 CFrame.new(Vector3.new(-2.396, -0.596, -1.287)) * CFAngles(Vector3.new(0.315, -82.579, 125.578));
  416.             })
  417.             wait(.25)
  418.             human.JumpPower = 60
  419.             human.Jump = true
  420.             Debounces.Debounce = false
  421.             human.WalkSpeed = 35
  422.             Debounces.isJumping = true
  423.             wait()
  424.             human.JumpPower = 0
  425.         end
  426.     end)
  427.  
  428.     uinps.InputBegan:connect(function(InputObj)
  429.         if InputObj.KeyCode == Enum.KeyCode.Space and Debounces.isTyping == false and Debounces.isSprinting == true and Debounces.isJumping == false and Debounces.Debounce == false then
  430.             Debounces.Debounce = true
  431.             human.WalkSpeed = 0
  432.             setLerp(.2)
  433.             setJointCFrames({
  434.                 CFrame.new(Vector3.new(0, -1, 0)) * CFAngles(Vector3.new(0, 0, 0));
  435.                 CFrame.new(Vector3.new(0, 1.5, -0.15)) * CFAngles(Vector3.new(-18.621, -3.513, 0.853));
  436.                 CFrame.new(Vector3.new(-1.01, 0.069, -0.69)) * CFAngles(Vector3.new(50.809, 0.672, 20.794));
  437.                 CFrame.new(Vector3.new(1.309, -0.031, -0.031)) * CFAngles(Vector3.new(-33.146, 36.092, 14.78));
  438.                 CFrame.new(Vector3.new(-0.63, -1.33, -0.74)) * CFAngles(Vector3.new(-13.998, 3.296, 1.554));
  439.                 CFrame.new(Vector3.new(0.619, -1.331, 0.42)) * CFAngles(Vector3.new(-58.408, 1.211, 9.751));
  440.                 CFrame.new(Vector3.new(-2.396, -0.596, -1.287)) * CFAngles(Vector3.new(0.315, -82.579, 125.578));
  441.             })
  442.             wait(.25)
  443.             human.JumpPower = 150
  444.             local e = Instance.new("Sound",c.Head)
  445.             e.SoundId = "rbxassetid://180204603"
  446.             e.Pitch = math.random(90,110)/100
  447.             e.Volume = 1
  448.             e:Play()
  449.             local e2 = Instance.new("Part",h)
  450.             e2.Size = Vector3.new(1,1,1)
  451.             e2.CFrame = CFrame.new(c.HumanoidRootPart.CFrame.p - Vector3.new(0,3,0)) * CFrame.Angles(math.pi/2,0,0)
  452.             e2.BrickColor = h.BrickColor
  453.             e2.Anchored = true
  454.             e2.CanCollide = false
  455.             local rm = Instance.new("SpecialMesh",e2)
  456.             rm.MeshType = "FileMesh"
  457.             rm.MeshId = "rbxassetid://3270017"
  458.             rm.Scale = Vector3.new(1,1,6)
  459.             human.Jump = true
  460.             Debounces.Debounce = false
  461.             Debounces.isJumping = true
  462.             human.WalkSpeed = 75
  463.             wait()
  464.             human.JumpPower = 0
  465.             while rs.RenderStepped:wait() do
  466.                 rm.Scale = rm.Scale:lerp(Vector3.new(35,35,6),.15/(Debounces.FPS/60))
  467.                 e2.Transparency = numLerp(e2.Transparency,1,.15/(Debounces.FPS/60))
  468.                 if e2.Transparency >= .98 then
  469.                     break
  470.                 end
  471.             end
  472.             e2:Destroy()
  473.         end
  474.     end)
  475.  
  476.     uinps.InputBegan:connect(function(InputObj)
  477.         if Debounces.isTyping == false then
  478.             if InputObj.KeyCode == Enum.KeyCode.Z and Debounces.SwitchingModes == false then
  479.                 changeColor("Still")
  480.             elseif InputObj.KeyCode == Enum.KeyCode.X and Debounces.SwitchingModes == false then
  481.                 changeColor("Blue")
  482.             elseif InputObj.KeyCode == Enum.KeyCode.C and Debounces.SwitchingModes == false then
  483.                 changeColor("Orange")
  484.             elseif InputObj.KeyCode == Enum.KeyCode.V and Debounces.SwitchingModes == false then
  485.                 changeColor("Heal")
  486.             end
  487.         end
  488.     end)
  489.  
  490.     h.Touched:connect(function(part)
  491.         local h2 = part.Parent:FindFirstChild("Humanoid")
  492.         if h2 then
  493.             canAttack = "false"
  494.             if Debounces.Mode == "Still" then canAttack = "true" end
  495.             if Debounces.Mode == "Blue" and part.Velocity.magnitude > 2 then canAttack = "true" end
  496.             if Debounces.Mode == "Orange" and part.Velocity.magnitude < 2 then canAttack = "true" end
  497.             if Debounces.Mode == "Heal" then canAttack = "heal" end
  498.             if canAttack == "true" then
  499.                 if Debounces.isCombo <= critTime then
  500.                     h2:TakeDamage(math.random(3,7))
  501.                 else
  502.                     h2:TakeDamage(math.random(1,4))
  503.                 end
  504.             elseif canAttack == "heal" then
  505.                 h2:TakeDamage(math.random(-4,-1))
  506.             end
  507.         end
  508.     end)
  509.  
  510.     human.StateChanged:connect(function(os,ns)
  511.         if c.HumanoidRootPart.Velocity.Y < .1 and Debounces.isJumping == true and ns == Enum.HumanoidStateType.Landed then
  512.             Debounces.isJumping = false
  513.         end
  514.     end)
  515.  
  516.     rs.RenderStepped:connect(function()
  517.         Debounces.FPS = 1/rs.RenderStepped:wait()
  518.         if Debounces.isAgg == true then
  519.             fight:Resume()
  520.             pass:Pause()
  521.         else
  522.             fight:Pause()
  523.             pass:Resume()
  524.         end
  525.         if Debounces.musicOn == true then
  526.             pass.Volume = 1
  527.             fight.Volume = 1
  528.         else
  529.             pass.Volume = 0
  530.             fight.Volume = 0
  531.         end
  532.         l.Range = math.sin(tick() * 1.8) * 8 + 5
  533.         local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  534.         for i = 1,#Joints do
  535.             Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  536.             Joints[i].C1 = CFrameZero()
  537.         end
  538.     end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement