Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My scriept for my farmer field not working!?

Asked by 1 year ago
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

0
Is there an error in output? virushunter9 943 — 1y
0
try this local field = game.Workspace["Field of Wheat"]["Field of Wheat " .. tostring(wheat.index)] T3_MasterGamer 2189 — 1y

Answer this question