Advertisement
Guest User

Untitled

a guest
Apr 27th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. local Pressed = false
  2. UserInputService.InputBegan:connect(function(InputObject, GPE)
  3. if Mouse.Target ~= nil then
  4. if InputObject.KeyCode == Enum.KeyCode.T and UserAnimationsPlaying() == false and Mouse.Target ~= nil and Mouse.Target.Name == "Wheat" and LocalPlayer:DistanceFromCharacter(Mouse.Hit.p) <= 8 and Character:FindFirstChild("Sickle") ~= nil then
  5. if Pressed == false then
  6. Pressed = true
  7. local AnSound = Instance.new("Sound", Character:FindFirstChild("Head"))
  8. AnSound.Name = "AnSound"
  9. -- AnSound.SoundId = "rbxassetid://"
  10. AnSound.Looped = true
  11. AnSound:Play()
  12. BandageAnimation:Play()
  13. BandagePercentageCounter.Visible = true
  14. Humanoid.WalkSpeed = 0
  15. Humanoid.JumpPower = 0
  16. spawn(function()
  17. BandageAnimation.Stopped:wait()
  18. BandagePercentageCounter.Visible = false
  19. Humanoid.WalkSpeed = 16
  20. Humanoid.JumpPower = 50
  21. Humanoid.Jump = false
  22. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement