FPS renderer broken

So I’m trying to use somebody’s old FPS code but the renderer seems broken? Any clue how to fix this as I’m not very good at all with Lua yet (I’m a java person usually)
Here’s the original persons post with their code
https://codea.io/talk/discussion/1054/kmebs-fps-source#latest

Edit* also when firing the gun there’s an error

@chrislightsaber If you look at the date of the discussion you’re referring to, you’ll see it’s from 2012, 6 years old. There’s been a lot of updates to Codea since then. I don’t know if anyone’s going to fix 6 year old code.

P.S. The original post was written by KMEB, and the last time he responded to this forum was in Dec. 2012. So I don’t think he’ll respond to fix his code.

Welp I’m gonna try and fix it

@chrislightsaber That’s one of the ways to get more experience coding, fixing or updating someone else’s code.