Updated the camera script to remove bugs