In California, the operation of mini bikes or pocket bikes with a 50cc engine on public roads is typically not legal. According to California Vehicle Code (CVC) Section 21720, motorized bicycles (including mini bikes) must have a valid registration and be operated by someone with a valid driver's license, among other requirements.
Law enforcement officers have the discretion to enforce traffic laws, including those related to mini bikes, based on various factors such as local ordinances, safety concerns, and their own judgment. While wearing a helmet is a crucial safety measure, it doesn't necessarily guarantee that you won't be stopped if you are operating a vehicle that is not street-legal.
If you want to ride a mini bike, it is advisable to use it in designated areas such as private properties or off-road trails where it is legal to do so. Always check local laws and regulations to ensure compliance and prioritize safety while riding any type of vehicle.