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

0

Is there an error in output?

0

try this local field = game.Workspace["Field of Wheat"]["Field of Wheat " .. tostring(wheat.index)]