Facebook
From Chocolate Tamarin, 2 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 55
  1. local Remote = script.Parent
  2.  
  3. local Combo = 1
  4. local DoingCombo = 0
  5. local Debounce = false
  6. local BlockingDebounce = false
  7. local HeavyDebounce = false
  8. local isBlocking = false
  9. local Equipped = false
  10. local EquipDebounce = false
  11.  
  12. local RS = game:GetService("ReplicatedStorage")
  13. local RAYCAST_HITBOX = require(RS:WaitForChild("RaycastHitboxV3"))
  14.  
  15. local CanDoAnything = true
  16.  
  17. local TweenService = game:GetService("TweenService")
  18. -- If you haven't already go subscribe to my YT: PeteTheSpeed
  19.  
  20. -- Made by PeteTheSpeed (Exploit Protected)
  21. Remote.OnServerEvent:Connect(function(Player,Action,Bool)
  22.         local Char = Player.Character
  23.         local Hum = Char:WaitForChild("Humanoid")
  24.         local HumRP = Char:WaitForChild("HumanoidRootPart")
  25.         local RightArm = Char:WaitForChild("Right Arm")
  26.        
  27.        
  28.         if Hum.Jump == false then
  29.        
  30.                 local FX = script:WaitForChild("FX")
  31.                 local SoundFolder = script:WaitForChild("Sounds")
  32.                
  33.                 local StopAnims = function()
  34.                         local AnimationTracks = Hum:GetPlayingAnimationTracks()
  35.                         for i, track in pairs (AnimationTracks) do
  36.                                 track:Stop()
  37.                         end
  38.                 end
  39.                
  40.                 local StopEnemyAnims = function(Target)
  41.                         local AnimationTracks = Target:GetPlayingAnimationTracks()
  42.                         for i, track in pairs (AnimationTracks) do
  43.                                 track:Stop()
  44.                         end
  45.                 end
  46.                
  47.                 local HiteffectBall = function(Target,Pos)
  48.                         local ClonedBall = FX.Thing:Clone()
  49.                         ClonedBall.Parent = Target
  50.                         ClonedBall.CFrame = Pos
  51.                         ClonedBall.CFrame = CFrame.new(ClonedBall.Position, Target.Position)
  52.                         game.Debris:AddItem(ClonedBall,1)
  53.  
  54.                         if DoingCombo == 4 then
  55.                                 ClonedBall.BrickColor = BrickColor.new("Neon orange")
  56.                         end
  57.  
  58.                         TweenService:Create(ClonedBall,TweenInfo.new(0.5,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut),{CFrame = ClonedBall.CFrame + ClonedBall.CFrame.lookVector * -7,Transparency = 1,Size = Vector3.new(0.087, 0.08, 3.35)}):Play()
  59.                 end
  60.                
  61.                 -- My Soundcloud really has some banger beats
  62.                
  63.                 local Sounds = function(Action2,Target)
  64.                         if Action2 == "HeavySound" then
  65.                                
  66.                         elseif Action2 == "NormalSound" then
  67.                                 local NormalSound = SoundFolder.Normal:Clone()
  68.                                 NormalSound.Parent = HumRP
  69.                                 NormalSound.PlaybackSpeed = math.random(85,110)/100
  70.                                 NormalSound:Play()
  71.                                 game.Debris:AddItem(NormalSound,.4)                            
  72.                                
  73.                         elseif Action2 == "BlockingSound" then 
  74.                                 local BlockSound = SoundFolder.Block:Clone()
  75.                                 BlockSound.Parent = Target
  76.                                 BlockSound.PlaybackSpeed = math.random(90,110)/100
  77.                                 BlockSound:Play()
  78.                                 game.Debris:AddItem(BlockSound,.4)
  79.                                
  80.                         elseif Action2 == "Hit" then
  81.                                 local HitSound = SoundFolder.Hit:Clone()
  82.                                 HitSound.Parent = Target
  83.                                 HitSound.PlaybackSpeed = math.random(90,125)/100
  84.                                 HitSound:Play()
  85.                                 game.Debris:AddItem(HitSound,1)
  86.                                
  87.                         elseif Action2 == "ClashingSound" then
  88.                                 local ClashSound = SoundFolder.Clash:Clone()
  89.                                 ClashSound.Parent = Target
  90.                                 ClashSound.PlaybackSpeed = math.random(90,110)/100
  91.                                 ClashSound:Play()
  92.                                 game.Debris:AddItem(ClashSound,1)
  93.                                
  94.                         elseif Action2 == "HeavySound" then
  95.                                 local HeavySound = SoundFolder.Heavy:Clone()
  96.                                 HeavySound.Parent = HumRP
  97.                                 HeavySound.PlaybackSpeed = math.random(45,65)/100
  98.                                 HeavySound:Play()
  99.                                 game.Debris:AddItem(HeavySound,.8)     
  100.                                
  101.                         elseif Action2 == "BlockBreak" then
  102.                                 local BlockBreakSound = SoundFolder.BlockBreak:Clone()
  103.                                 BlockBreakSound.Parent = Target
  104.                                 BlockBreakSound:Play()
  105.                                 game.Debris:AddItem(BlockBreakSound,.4)
  106.                         elseif Action2 == "Sheathing" then
  107.                                 local SheatheSound = SoundFolder.Sheathing:Clone()
  108.                                 SheatheSound.Parent = Target
  109.                                 SheatheSound:Play()
  110.                                 game.Debris:AddItem(SheatheSound,1.8)  
  111.                         elseif Action2 == "UnSheathe" then
  112.                                 local SheatheSound = SoundFolder.Unsheathe:Clone()
  113.                                 SheatheSound.Parent = Target
  114.                                 SheatheSound:Play()
  115.                                 game.Debris:AddItem(SheatheSound,.7)   
  116.                         end
  117.                 end
  118.                
  119.                 local ignoreList = {Char}
  120.                
  121.                 local InsertDisabled = function(Target,Time)
  122.                         local Disabled = Instance.new("BoolValue",Target)
  123.                         Disabled.Name = "Disabled"
  124.                         game.Debris:AddItem(Disabled,Time)
  125.                 end    
  126.                
  127.                 local BlockBreakAn = script:WaitForChild("Anims"):WaitForChild("BlockBreak")
  128.                
  129.                
  130.                 local Anims = script:WaitForChild("Anims")
  131.                
  132.                 local Combo1Anim = Hum:LoadAnimation(Anims.Combo1)
  133.                 local Combo2Anim = Hum:LoadAnimation(Anims.Combo2)
  134.                 local Combo3Anim = Hum:LoadAnimation(Anims.Combo3)
  135.                 local Combo4Anim = Hum:LoadAnimation(Anims.Combo4)
  136.                 local HeavyAnim = Hum:LoadAnimation(Anims.Heavy)
  137.                 local BlockingAnim = Hum:LoadAnimation(Anims.Blocking)
  138.                 local UnSheatheAnim = Hum:LoadAnimation(Anims.Unsheathe)
  139.                 local SheatheAnim = Hum:LoadAnimation(Anims.Sheathe)
  140.                
  141.                 -- Have you ever heard of Garli?
  142.                
  143.                 if Action == "Slash" then
  144.                         if Debounce == false and Char:FindFirstChild("Disabled") == nil and CanDoAnything == true and Char:FindFirstChild("Blocking") == nil and Equipped == true then
  145.                                 CanDoAnything = false
  146.                                 Debounce = true
  147.                                 delay(0.4,function()
  148.                                         if DoingCombo == 4 then
  149.                                                 delay(0.4,function()
  150.                                                         Debounce = false
  151.                                                         CanDoAnything = true
  152.                                                 end)
  153.                                         else
  154.                                                 CanDoAnything = true
  155.                                                 Debounce = false       
  156.                                         end
  157.                                 end)
  158.                                
  159.                                 if Combo == 1 then
  160.                                         Combo = 2
  161.                                         DoingCombo = 1
  162.                                         delay(1,function()
  163.                                                 if Combo == 2 then
  164.                                                         Combo = 1
  165.                                                 end
  166.                                         end)
  167.                                        
  168.                                         Combo1Anim:Play()
  169.                                        
  170.                                 elseif Combo == 2 then
  171.                                         Combo = 3
  172.                                         DoingCombo = 2
  173.                                         delay(1,function()
  174.                                                 if Combo == 3 then
  175.                                                         Combo = 1
  176.                                                 end
  177.                                         end)
  178.                                        
  179.                                         Combo2Anim:Play()
  180.                                        
  181.                                 elseif Combo == 3 then
  182.                                         Combo = 4
  183.                                         DoingCombo = 3
  184.                                         delay(1,function()
  185.                                                 if Combo == 4 then
  186.                                                         Combo = 1
  187.                                                 end
  188.                                         end)
  189.                                        
  190.                                         Combo3Anim:Play()
  191.                                        
  192.                                 elseif Combo == 4 then
  193.                                         Combo = 1
  194.                                         DoingCombo = 4
  195.                                        
  196.                                         delay(0.6,function()
  197.                                                 DoingCombo = 0
  198.                                         end)
  199.                                        
  200.                                         Combo4Anim:Play()
  201.                                 end
  202.                                
  203.                                 Hum.JumpPower = 0
  204.                                
  205.                                 delay(0.18,function()
  206.                                         newHitbox:HitStart()
  207.                                        
  208.                                         Sounds("NormalSound",nil)
  209.                                        
  210.                                         local TrailCloned = FX.Trail:Clone()
  211.                                         TrailCloned.Parent = Char.Katana.Blade
  212.                                         TrailCloned.Attachment0 = Char.Katana.Blade.Attachment0
  213.                                         TrailCloned.Attachment1 = Char.Katana.Blade.Attachment1
  214.                                         game.Debris:AddItem(TrailCloned,0.2)
  215.                                        
  216.                                         delay(0.15,function()
  217.                                                 newHitbox:HitStop()
  218.                                                 Hum.JumpPower = 50
  219.                                         end)
  220.                                 end)   
  221.                         end
  222.                 elseif Action == "Equip" then
  223.                         if Char:FindFirstChild("Katana") and EquipDebounce == false and isBlocking == false and Char:FindFirstChild("Disabled") == nil and CanDoAnything == true then
  224.                                 Equipped = false -- Unequip
  225.                                 CanDoAnything = false
  226.                                
  227.                                 Hum.WalkSpeed = 0
  228.                                 Hum.JumpPower = 0
  229.                                
  230.                                 delay(0.4,function()
  231.                                         Sounds("Sheathing",HumRP)      
  232.                                 end)
  233.                                
  234.                                 EquipDebounce = true
  235.                                 delay(0.7,function()
  236.                                         EquipDebounce = false
  237.                                         local Sword = Char:FindFirstChild("Katana"):Destroy()
  238.                                         CanDoAnything = true
  239.                                        
  240.                                         Hum.WalkSpeed = 16
  241.                                         Hum.JumpPower = 50
  242.                                 end)
  243.                                
  244.                                 SheatheAnim:Play()
  245.                                
  246.                         elseif Char:FindFirstChild("Katana") == nil and EquipDebounce == false and isBlocking == false and Char:FindFirstChild("Disabled") == nil and CanDoAnything == true then
  247.                                 CanDoAnything = false
  248.                                 Equipped = true
  249.                                
  250.                                 EquipDebounce = true
  251.                                 delay(0.5,function()
  252.                                         EquipDebounce = false
  253.                                 end)
  254.                                
  255.                                 Sounds("UnSheathe",HumRP)
  256.                                
  257.                                 local Sword = script:WaitForChild("Katana"):Clone()
  258.                                 Sword.Parent = Char
  259.  
  260.                                 local Weld = Instance.new("Weld",RightArm)
  261.                                 Weld.Part0 = RightArm
  262.                                 Weld.Part1 = Sword.Handle
  263.                                 Weld.C1 = CFrame.new(0.801995277, -0.00268554688, -1.8551712, -0.0109109292, 0.997559488, -0.0689636171, 0.99906683, 0.0137578184, 0.0409418531, 0.0417907275, -0.0684525371, -0.996778786)-- Equip
  264.                                
  265.                                 UnSheatheAnim:Play()
  266.                                 Hum.WalkSpeed = 0
  267.                                 Hum.JumpPower = 0
  268.                                
  269.                                 delay(0.4,function()
  270.                                         Hum.WalkSpeed = 16
  271.                                         Hum.JumpPower = 50
  272.                                         CanDoAnything = true
  273.                                 end)
  274.                                 -- I am speed yes
  275.                                 newHitbox = RAYCAST_HITBOX:Initialize(Sword.Blade,ignoreList)
  276.  
  277.                                 newHitbox.OnHit:Connect(function(hit, humanoid)
  278.                                         if Char:FindFirstChild("Disabled") == nil then
  279.                                                 local EHumRP = humanoid.Parent:FindFirstChild("HumanoidRootPart")
  280.  
  281.                                                 if Char:FindFirstChild("Heavy") then
  282.                                                         Remote:FireClient(Player,"HeavyShake")
  283.  
  284.                                                         if humanoid.Parent:FindFirstChild("Blocking") then
  285.                                                                 local Count = 0
  286.                                                                 repeat
  287.                                                                         Count = Count + 1
  288.                                                                         HiteffectBall(HumRP,EHumRP.CFrame * CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)))
  289.                                                                 until Count >= 5
  290.  
  291.                                                                 InsertDisabled(humanoid.Parent,.65)
  292.  
  293.                                                                 StopEnemyAnims(humanoid)
  294.  
  295.                                                                 local BlockVal = humanoid.Parent:FindFirstChild("Blocking")
  296.                                                                 if BlockVal then
  297.                                                                         BlockVal:Destroy()
  298.                                                                 end
  299.  
  300.                                                                 local BlockBreakAnim = humanoid:LoadAnimation(BlockBreakAn)
  301.                                                                 BlockBreakAnim:Play()
  302.  
  303.                                                                 Sounds("BlockBreak",EHumRP)
  304.  
  305.                                                                 humanoid.WalkSpeed = 0
  306.                                                                 humanoid.JumpPower = 0
  307.  
  308.                                                                 delay(0.65,function()
  309.                                                                         humanoid.JumpPower = 50
  310.                                                                         humanoid.WalkSpeed = 16
  311.                                                                 end)
  312.                                                         else
  313.                                                                 local Count = 0
  314.                                                                 repeat
  315.                                                                         Count = Count + 1
  316.                                                                         HiteffectBall(EHumRP,EHumRP.CFrame * CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)))
  317.                                                                 until Count >= 5
  318.  
  319.                                                                 Sounds("Hit",EHumRP)
  320. -- Garli also known as Speed
  321.                                                                 humanoid:TakeDamage(10)
  322.  
  323.                                                                 local Pos = HumRP.CFrame*CFrame.new(0,0,-15)
  324.  
  325.                                                                 local BP = Instance.new("BodyPosition",EHumRP)
  326.                                                                 BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  327.                                                                 BP.D = 90
  328.                                                                 BP.P = 400
  329.                                                                 BP.Position = Pos.p
  330.                                                                 game.Debris:AddItem(BP,0.4)
  331.  
  332.                                                                 humanoid.JumpPower = 0
  333.                                                                 humanoid.WalkSpeed = 4
  334.                                                                 delay(0.58,function()
  335.                                                                         humanoid.JumpPower = 50
  336.                                                                         humanoid.WalkSpeed = 16
  337.                                                                 end)
  338.                                                         end
  339.                                                 else
  340.                                                         Remote:FireClient(Player,nil)
  341.  
  342.                                                         if humanoid.Parent:FindFirstChild("Clashing") then
  343.  
  344.                                                                 Hum:TakeDamage(7)
  345.  
  346.                                                                 humanoid:TakeDamage(3)
  347.  
  348.                                                                 local Pos = HumRP.CFrame*CFrame.new(0,0,5)
  349.  
  350.                                                                 local BP = Instance.new("BodyPosition",HumRP)
  351.                                                                 BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  352.                                                                 BP.D = 100
  353.                                                                 BP.P = 300
  354.                                                                 BP.Position = Pos.p
  355.                                                                 game.Debris:AddItem(BP,0.3)
  356.  
  357.                                                                 humanoid.JumpPower = 0
  358.                                                                 humanoid.WalkSpeed = 4
  359.                                                                 delay(0.3,function()
  360.                                                                         humanoid.JumpPower = 50
  361.                                                                         humanoid.WalkSpeed = 16
  362.                                                                 end)
  363.  
  364.                                                                 InsertDisabled(Char,0.5)
  365.  
  366.                                                                 Sounds("ClashingSound",EHumRP)
  367.  
  368.                                                                 local Count = 0
  369.                                                                 repeat
  370.                                                                         Count = Count + 1
  371.                                                                         HiteffectBall(HumRP,EHumRP.CFrame * CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)))
  372.                                                                 until Count >= 5
  373.  
  374.                                                         elseif humanoid.Parent:FindFirstChild("Blocking") then
  375.                                                                 humanoid:TakeDamage(3)
  376.                                                                 Sounds("BlockingSound",EHumRP)
  377.  
  378.                                                                 local Count = 0
  379.                                                                 repeat
  380.                                                                         Count = Count + 1
  381.                                                                         HiteffectBall(EHumRP,EHumRP.CFrame * CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)))
  382.                                                                 until Count >= 5
  383.                                                         else   
  384.                                                                 if DoingCombo == 1 then
  385.                                                                         humanoid:TakeDamage(5)
  386.  
  387.                                                                         InsertDisabled(humanoid.Parent,0.6)
  388.  
  389.                                                                 elseif DoingCombo == 2 then
  390.                                                                         humanoid:TakeDamage(5)
  391.  
  392.                                                                         InsertDisabled(humanoid.Parent,0.6)
  393.  
  394.                                                                 elseif DoingCombo == 3 then
  395.                                                                         humanoid:TakeDamage(5)
  396.  
  397.                                                                         InsertDisabled(humanoid.Parent,0.6)
  398.                                                                 elseif DoingCombo == 4 then
  399.                                                                         humanoid:TakeDamage(10)
  400.  
  401.                                                                         local Pos = HumRP.CFrame*CFrame.new(0,0,-26)
  402.  
  403.                                                                         local BP = Instance.new("BodyPosition",EHumRP)
  404.                                                                         BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  405.                                                                         BP.D = 90
  406.                                                                         BP.P = 400
  407.                                                                         BP.Position = Pos.p
  408.                                                                         game.Debris:AddItem(BP,0.4)
  409.  
  410.                                                                         InsertDisabled(humanoid.Parent,1)
  411.                                                                 end
  412.                                                                 Sounds("Hit",EHumRP)
  413.                                                                 humanoid.WalkSpeed = 4
  414.                                                                 humanoid.JumpPower = 0
  415.                                                                 delay(0.58,function()
  416.                                                                         humanoid.JumpPower = 50
  417.                                                                         humanoid.WalkSpeed = 16
  418.                                                                 end)
  419.  
  420.                                                                 local Count = 0
  421.                                                                 repeat
  422.                                                                         Count = Count + 1
  423.                                                                         HiteffectBall(EHumRP,EHumRP.CFrame * CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)))
  424.                                                                 until Count >= 5
  425.  
  426.                                                                 local NewFX = FX.FXCut:Clone()
  427.                                                                 NewFX.Parent = EHumRP
  428.                                                                 NewFX:Emit(1)
  429.                                                                 game.Debris:AddItem(NewFX,0.6)
  430.  
  431.                                                         end                                    
  432.                                                 end
  433.                                         end    
  434.                                 end)
  435.                         end
  436.                         -- Made by Garli
  437.                 elseif Action == "Block" then
  438.                         if Bool == false and isBlocking == true then
  439.                                 BlockingDebounce = true
  440.                                 delay(.65,function()
  441.                                         BlockingDebounce = false
  442.                                 end)
  443.                                
  444.                                 isBlocking = false
  445.                                
  446.                                 delay(0.4,function()
  447.                                         CanDoAnything = true
  448.                                 end)
  449.                                
  450.                                 local AnimationTracks = Hum:GetPlayingAnimationTracks()
  451.                                 for i, track in pairs (AnimationTracks) do
  452.                                         if track.Name == "Blocking" then
  453.                                                 track:Stop()
  454.                                         end
  455.                                 end
  456.                        
  457.                                 Hum.JumpPower = 50
  458.                                 Hum.WalkSpeed = 16
  459.                                        
  460.                                 local Value = Char:FindFirstChild("Blocking")
  461.                                 if Value then
  462.                                         Value:Destroy()
  463.                                 end
  464.                         elseif Char:FindFirstChild("Disabled") == nil and CanDoAnything == true and Bool == true and BlockingDebounce == false and isBlocking == false and Equipped == true then
  465.                                 isBlocking = true
  466.                                 CanDoAnything = false
  467.                                
  468.                                 Hum.JumpPower = 0
  469.                                
  470.                                 BlockingAnim:Play()
  471.                                
  472.                                 local Val = Instance.new("BoolValue",Char)
  473.                                 Val.Name = "Clashing"
  474.                                 game.Debris:AddItem(Val,0.15)
  475.                                        
  476.                                 Hum.WalkSpeed = 5
  477.                                        
  478.                                 local Value = Instance.new("BoolValue",Char)
  479.                                 Value.Name = "Blocking"
  480.                         end    
  481.                 elseif Action == "Heavy" then
  482.                         if HeavyDebounce == false and Char:FindFirstChild("Disabled") == nil and CanDoAnything == true and Char:FindFirstChild("Blocking") == nil and Equipped == true then
  483.                                 CanDoAnything = false
  484.                                 HeavyDebounce = true
  485.                                
  486.                                 delay(0.8,function()
  487.                                         HeavyDebounce = false
  488.                                 end)
  489.                                 delay(0.5,function()
  490.                                         CanDoAnything = true
  491.                                 end)
  492.                                
  493.                                 HeavyAnim:Play()
  494.                                
  495.                                 Hum.JumpPower = 0
  496.                                 Hum.WalkSpeed = 8
  497.                                
  498.                                 delay(0.5,function()
  499.                                         newHitbox:HitStart()
  500.                                        
  501.                                         Sounds("HeavySound",nil)
  502.                                        
  503.                                         local TrailCloned = FX.Trail:Clone()
  504.                                         TrailCloned.Parent = Char.Katana.Blade
  505.                                         TrailCloned.Attachment0 = Char.Katana.Blade.Attachment0
  506.                                         TrailCloned.Attachment1 = Char.Katana.Blade.Attachment1
  507.                                         game.Debris:AddItem(TrailCloned,0.2)
  508.                                        
  509.                                         local Val = Instance.new("BoolValue",Char)
  510.                                         Val.Name = "Heavy"
  511.                                         game.Debris:AddItem(Val,.19)
  512.  
  513.                                         delay(0.19,function()
  514.                                                 newHitbox:HitStop()
  515.                                                 Hum.WalkSpeed = 16
  516.                                                 Hum.JumpPower = 50
  517.                                         end)
  518.                                 end)
  519.                         end    
  520.                 end
  521.         end
  522. end)
  523.  
  524.