Limiting Aim offset

How would I set that up? One side with the bool off and the other side with the bool set to true.