function OnPartTouch(wheat)
if wheat.Name == 'skarp' then
local field = game.Workspace["Field of Wheat"]["Field of Wheat" .. tostring(wheat.index)]
if field.Transparency == 0 then
wheat.Value = wheat.Value + 1
field.Transparency = 1
end
end
end
skarp = Harvester header
The script is not working, can you look at it and see if i have missed something? ty for the help

2 comments
Is there an error in output?
try this local field = game.Workspace["Field of Wheat"]["Field of Wheat " .. tostring(wheat.index)]