2 raycasts on the fpwalker/camera

I am still working on the chest script, so you can’t open it from too far away. I added a
Debug.DrawRay(transform.position, transform.forward*2, Color.red); so I could see the ray, but for some reason, I see 2 rays on the FPS controller/Camera. Any thoughts?

In addition, when I try to run the game and switch to scene, I’m not able to move the controller around. How can that be remedied?
Thanks!

If you can see two rays, simultaneously, it means they are not the same or they would be hover each other. That means they are probably not called from a single line of code. try ctrl + shift + f to find all the occurences of DrawRay.

Just to be sure, such a function shouldn’t be in anything GUI related.