I just added a function to my standard touch script that I use. Make a grass part and put it into the touch part and play. It works but doesn't reset, too tired for that but you can use functions instead of if statements.
Code:
local player = game.Players
local touchPart = script.Parent
touchPart.CanCollide = false
local debounce = true
local function cutGrass(player)
local grass = script.Parent.Grass -- tested with cylinder part
grass.CFrame = grass.CFrame - Vector3.new(0, 0.25, 0)
print("Cutting grass!")
task.wait(1)
end
touchPart.Touched:Connect(function(otherPart)
local character = otherPart.Parent
local humanoid = character:FindFirstChild("Humanoid")
if humanoid and debounce then
debounce = false
cutGrass()
debounce = true
end
end)
touchPart.TouchEnded:Connect(function(otherPart)
local character = otherPart.Parent
local humanoid = character:FindFirstChild("Humanoid")
if humanoid and debounce then
debounce = false
print("Player left instance!")
debounce = true
end
end)