Hi wpcorley02,
As it is your code works.
I believe there few lines of code in between start of your code to line 157.
The reason line 157 cause error because it did not ‘recognise’ the line local planet1 = …
This could happen if you declare your local planet1 in another local function() and your planet1.enterFrame is out of this function.
e.g
local function myFunction()
local planet1 = display.newImage(“planet.png”) — this is localise within the function
—
end
planet1.enterFrame = scrollPlanet — this is outside of the function so lua doesn’t know what is planet1.
Also, if you are using storyboard, check that there are together in the same scene function. like scene:createScene() or scene:enterScene()
Good Luck!
burhan