What makes the check gauge light come then the battery gauge rolls from side to side?

What year is your car? Did you mean the CHECK ENGINE light? The battery gauge?