Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. local userinput = game:GetService("UserInputService")
  2. local player = game.Players.LocalPlayer
  3. userinput.InputBegan:connect(function(input)
  4. if userinput:GetFocusedTextBox() then
  5. return
  6. end
  7. if input.KeyCode == Enum.KeyCode.V then
  8. game.Players.LocalPlayer.Backpack.ServerTraits.Touch:FireServer(game.Players.LocalPlayer.Backpack.Punch, game.Players.LocalPlayer.Character.RightHand, false)
  9. end
  10. end)
  11. local userinput = game:GetService("UserInputService")
  12. local player = game.Players.LocalPlayer
  13. userinput.InputBegan:connect(function(input)
  14. if userinput:GetFocusedTextBox() then
  15. return
  16. end
  17. if input.KeyCode == Enum.KeyCode.V then
  18. Player = "LocalPlayer"
  19. AnimationId = "465400764"
  20. local Anim = Instance.new("Animation")
  21. Anim.AnimationId = "rbxassetid://"..AnimationId
  22. local k = game.Players[Player].Character.Humanoid:LoadAnimation(Anim)
  23. k:Play() --Play the animation
  24. k:AdjustSpeed(1) --Set '1' to any value you want to adjust the animation speed.
  25. end
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement