I have a function that is red when I try to run my code. Im not sure why because everything looks right.
function drawRightNow() --This line is entirely red.
for rightDraw = 0, 29, 1 do
rect(25*rightDraw, 25*rightDraw, 25, 25)
rightDraw = rightDraw + 1
end
On the subject of RED lines for errors, there are times when I’ll get an error that’s totally covered with dark RED, so dark that I can’t even read the code that’s under it. The only way to fix it is to put the cursor somewhere in the RED area and type a space or anything else to clear the RED area. Then I can see the line of code to fix it.