CriErr, you intellectual genius scholar sent from heaven, I was taking a screen shot of the whole function and cleaning out some debug stuff, when it started compiling again.
Either converting the a Vector2 to a Sting and printing it to a log was causing the crash or it was some movement code I had before adding to the viewport.
Either way, problem solved (ง°ل͜°)ง