Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. wait(.1)
  2. local plr = game.Players.LocalPlayer
  3. local Humanoid = plr.Character:WaitForChild("Humanoid")
  4. local m = plr:GetMouse()
  5.  
  6. local debounce = false
  7.  
  8. m.KeyDown:Connect(function(key)
  9. if key == "f" then -- What Key You Want To Be Pressed
  10. if debounce == false then
  11. debounce = true
  12. local Anim = Instance.new("Animation")
  13. Anim.AnimationId = "rbxassetid://" -- Put Animation ID after "//"
  14. local PlayAnim = Humanoid:LoadAnimation(Anim)
  15. PlayAnim:Play()
  16. wait(1) -- Change this to how long you want to be able to play the animation again
  17. debounce = false
  18. end
  19. end
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement