Hello, I am currently working on a farming feature where you can drive the tractor over wheat which will delete the wheat part. There are hundreds of wheat parts and they are all named the same.
Is there any way I am able to make the wheat part destroy after touching that specific wheat part (with the same name as other parts)?
local part = game.Workspace.WHEAT
local name = "WHEAT"
part.Touched:Connect(function(otherpart)
if otherpart.Name == name then
otherpart:Destroy()
end
end)