Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Pressed = false
- UserInputService.InputBegan:connect(function(InputObject, GPE)
- if Mouse.Target ~= nil then
- 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
- if Pressed == false then
- Pressed = true
- local AnSound = Instance.new("Sound", Character:FindFirstChild("Head"))
- AnSound.Name = "AnSound"
- -- AnSound.SoundId = "rbxassetid://"
- AnSound.Looped = true
- AnSound:Play()
- BandageAnimation:Play()
- BandagePercentageCounter.Visible = true
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- spawn(function()
- BandageAnimation.Stopped:wait()
- BandagePercentageCounter.Visible = false
- Humanoid.WalkSpeed = 16
- Humanoid.JumpPower = 50
- Humanoid.Jump = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement