Advertisement
artucox7

Kick and punch script

Jul 5th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. local anim = Instance.new("Animation")
  2. local anim2 = Instance.new("Animation")
  3. local plr = game.Players.LocalPlayer
  4. local RL = plr.Character:FindFirstChild("Right Leg")
  5. local RA = plr.Character:FindFirstChild("Right Arm")
  6.  
  7. anim.AnimationId = "rbxassetid://2041022437"
  8. anim2.AnimationId = "rbxassetid://2023452617"
  9.  
  10. function clicked(Key)
  11. if Key == "c" then
  12. local an = plr.Character.Humanoid:LoadAnimation(anim)
  13. an:Play()
  14.  
  15. wait(0.10)
  16.  
  17. RL.Touched:connect(function(hit)
  18. local human = hit.Parent:FindFirstChild("Humanoid");
  19. if human then
  20. human.Health = 0;
  21. end
  22. end)
  23. wait(1.20)
  24. script.Disabled = true
  25. wait(0.1)
  26. script.Disabled = false
  27.  
  28.  
  29. end
  30. end
  31. game.Players.LocalPlayer:GetMouse().keyDown:connect(clicked)
  32.  
  33. function clicked(Key)
  34. if Key == "e" then
  35. local an2 = plr.Character.Humanoid:LoadAnimation(anim2)
  36. an2:Play()
  37.  
  38. wait(0.10)
  39.  
  40. RA.Touched:connect(function(hit)
  41. local human = hit.Parent:FindFirstChild("Humanoid");
  42. if human then
  43. human.Health = 0;
  44. end
  45. end)
  46. wait(1.20)
  47. script.Disabled = true
  48. wait(0.1)
  49. script.Disabled = false
  50.  
  51.  
  52. end
  53. end
  54. game.Players.LocalPlayer:GetMouse().keyDown:connect(clicked)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement