My character controller is spinning uncontrollably?

I have a character controller, and after I try to move the camera independently of the camera, it starts to spin uncontrollably. I have no idea why. Here is the code:

Character Controller:
https://pastebin.com/5sBmhUpk

Camera Controller:
https://pastebin.com/4vn1BZc0