The error is on line 68
and here is my code
term.clear()
term.setCursorPos(1,1)
write("Strip Miner Initialised")
term.setCursorPos(1,2)
write("Mine Distance: ")
local mineDistance = read()
term.setCursorPos(1,3)
write("Strip Length: ")
local stripLength = read()
term.setCursorPos(1,4)
write("Space Between Strips: ")
local space = read()
term.setCursorPos(1,5)
write("Stripmine Starting")
local function dig()
if turtle.detect() == true then
turtle.dig()
end
end
local function digUp()
if turtle.detectUp() == true then
turtle.digUp()
end
end
local function digDown()
if turtle.detectDown() == true then
turtle.digDown()
end
end
local function digCycle()
digUp()
digDown()
dig()
turtle.forward()
end
local function spaces()
for s=1,space do
digCycle()
end
end
local function turnAround()
turtle.turnLeft()
turtle.turnLeft()
end
local function mineReturn()
for sl=1,stripLength do
digCycle()
end
for gn=1,stripLength do
turtle.back()
end
end
local function stripCycle()
spaces()
turtle.turnRight()
mineReturn()
turnAround()
mineReturn()
turtle,turnRight()
end --this is the line with the error
stripCycle()
all help is appreciated











